JP2843051B2 - Thermal printer - Google Patents

Thermal printer

Info

Publication number
JP2843051B2
JP2843051B2 JP12226089A JP12226089A JP2843051B2 JP 2843051 B2 JP2843051 B2 JP 2843051B2 JP 12226089 A JP12226089 A JP 12226089A JP 12226089 A JP12226089 A JP 12226089A JP 2843051 B2 JP2843051 B2 JP 2843051B2
Authority
JP
Japan
Prior art keywords
dots
group
heating resistors
groups
driving
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.)
Expired - Lifetime
Application number
JP12226089A
Other languages
Japanese (ja)
Other versions
JPH02301454A (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.)
Toshiba Corp
Toshiba Social Engineering Co Ltd
Original Assignee
Toshiba Corp
Toshiba Social Engineering Co 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 Toshiba Corp, Toshiba Social Engineering Co Ltd filed Critical Toshiba Corp
Priority to JP12226089A priority Critical patent/JP2843051B2/en
Publication of JPH02301454A publication Critical patent/JPH02301454A/en
Application granted granted Critical
Publication of JP2843051B2 publication Critical patent/JP2843051B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、感熱記録紙に印字するサーマルプリンタに
関し、更に詳しくは、印字しようとする文字の所定の桁
数に相当するラインサーマルヘッドを効率適に制御して
感熱記録紙に印字するサーマルプリンタに関する。
Description of the Invention (Object of the Invention) (Field of Industrial Application) The present invention relates to a thermal printer for printing on thermal recording paper, and more specifically, it corresponds to a predetermined number of digits of a character to be printed. The present invention relates to a thermal printer that prints on thermal recording paper by efficiently controlling a line thermal head.

(従来の技術) 小型で携帯型でありながら各種データ処理を行うこと
ができるハンディターミナルにプリンタを搭載した場合
には、その活用範囲を更に広げることができ、非常に便
利なものになるが、このようなハンディターミナルに搭
載し得るプリンタとしては一般にサーマルプリンタが使
用されている。
(Prior art) When a printer is mounted on a handy terminal that can perform various data processing while being small and portable, the range of use can be further expanded and it becomes very convenient. As a printer that can be mounted on such a handy terminal, a thermal printer is generally used.

サーマルプリンタは、騒音がなく、構造が比較的簡単
で、かつ取り扱いが非常に簡単であるという利点を有
し、ハンディターミナル等に最適なものであるが、印字
用紙として特殊な感熱記録紙を使用することを必要と
し、この感熱記録紙にサーマルヘッドの発熱抵抗体を押
し付けて印字を行っている。
Thermal printers have the advantages of being quiet, having a relatively simple structure, and being extremely easy to handle, and are ideal for handy terminals, etc., but use special thermal recording paper as printing paper. The printing is performed by pressing the heating resistor of the thermal head against the thermal recording paper.

また、サーマルプリンタは、複数の文字からなる1行
を印字するために、該複数の文字の1行分のドットを印
字する複数の発熱抵抗体をライン状に1行に直列に配列
したラインサーマルベッドを使用し、このラインサーマ
ルヘッドを構成する複数の発熱抵抗体を駆動して、文字
を印字するようになっている。
Further, in order to print one line of a plurality of characters, the thermal printer is a line thermal printer in which a plurality of heating resistors for printing dots of one line of the plurality of characters are arranged in a line in a line. The bed is used to drive a plurality of heating resistors constituting the line thermal head to print characters.

(発明が解決しようとする課題) 上述したように、サーマルプリンタにおいてラインサ
ーマルヘッドを構成する複数の発熱抵抗体を駆動する場
合に、複数の発熱抵抗体をすべて同時に駆動すれば、印
字速度を高速化することができるが、サーマルプリンタ
を例えばハンデイターミナルのように電池駆動の装置に
使用する場合には、電池の容量が足りないため、複数の
発熱抵抗体をすべて同時に駆動することができないとい
う問題がある。
(Problems to be Solved by the Invention) As described above, when driving a plurality of heating resistors constituting a line thermal head in a thermal printer, if all the plurality of heating resistors are driven simultaneously, the printing speed is increased. However, when a thermal printer is used for a battery-driven device such as a handy terminal, the battery capacity is insufficient, so that a plurality of heating resistors cannot all be driven at the same time. There is.

また、電池容量を増大すれば、複数の発熱抵抗体を同
時に駆動することはできるが、電池の大きさが大きくな
るため、この結果、ハンディターミナルも大型化してし
まい、携帯に適しないという問題がある。
In addition, if the battery capacity is increased, a plurality of heating resistors can be driven at the same time, but the size of the battery is increased. As a result, the size of the handy terminal is increased, which is not suitable for carrying. is there.

また、サーマルヘッドを所定のドット数単位のグルー
プに分割し、グループ毎に順番に分割駆動すれば、電池
の容量を大きくする必要はないが、サーマルヘッドを駆
動する回数が増えるため、印字速度が遅くなるという問
題がある。
Also, if the thermal head is divided into groups of a predetermined number of dots and divided and driven in order for each group, there is no need to increase the battery capacity, but the number of times the thermal head is driven increases, so the printing speed is reduced. There is a problem that it becomes slow.

本発明は、上記に鑑みてされたもので、その目的とす
るところは、電池容量を考慮するとともに印字の際の駆
動回数を少なくすることができ、その結果高速な印字を
行うことができるサーマルプリンタを提供することを目
的とする。
The present invention has been made in view of the above, and an object of the present invention is to consider a battery capacity and to reduce the number of times of driving at the time of printing, and as a result, a thermal printing that can perform high-speed printing It is intended to provide a printer.

〔発明の構成〕[Configuration of the invention]

(課題を解決するための手段) 上記目的を達成するため、本発明のサーマルプリンタ
は、ライン状に配列された複数の発熱抵抗体からなるサ
ーマルヘッドを使用して文字及び符号を含む記号を記録
紙に印字するサーマルプリンタであって、前記サーマル
ヘッドの複数の発熱抵抗体を所定のドット数単位のグル
ープに分割しこのグループ単位で発熱抵抗体を駆動する
ために各グループに対応して設けられた複数のドライバ
と、所定の記号を印字しようとする際に前記発熱抵抗体
のグループ毎に印字しようとする記号に含まれるドット
の数を計数するドット計数手段と、このドット計数手段
で計数した全てのグループのドット数の総和を求め、こ
のドット数の総和が予め定められた同時駆動可能なドッ
ト数以下であるか否かを判定する第1の判定手段と、こ
の第1の判定手段にて同時駆動可能なドット数以下であ
る場合には前記複数のドライバにより前記発熱抵抗体の
全グループを同時に駆動する第1の駆動手段と、前記第
1の判定手段にて印字ドット数の総和が予め定められた
同時駆動可能なドット数を超えていると判定された場合
には前記各グループ毎のドット数のうちのドット数のも
っとも小さいグループのドット数が予め定められた同時
駆動可能なドット数の半数を超えているかどうかを判定
する第2の判定手段と、この第2の判定手段にて同時駆
動可能なドット数の半数を超えていると判定された場合
は前記複数のドライバ毎に前記発熱抵抗体の各グループ
を駆動する第2の駆動手段と、前記第2の判定手段にて
同時駆動可能なドット数の半数を超えていないと判定さ
れた場合は同時駆動可能な発熱抵抗体のグループの組み
合わせを判別したうえで前記複数のドライバにより前記
発熱抵抗体の各グループを組み合わせて駆動する第3の
駆動手段とを有することを特徴とする。
(Means for Solving the Problems) In order to achieve the above object, a thermal printer of the present invention uses a thermal head composed of a plurality of heating resistors arranged in a line to record symbols including characters and symbols. A thermal printer for printing on paper, wherein a plurality of heating resistors of the thermal head are divided into groups each having a predetermined number of dots, and provided in correspondence with each group to drive the heating resistors in units of the groups. A plurality of drivers, dot counting means for counting the number of dots included in the symbols to be printed for each group of the heating resistors when printing a predetermined symbol, and counting by the dot counting means. The first determination is to determine the total number of dots of all groups and determine whether the total number of dots is equal to or less than a predetermined number of simultaneously operable dots. Means for simultaneously driving all groups of the heating resistors by the plurality of drivers when the number of dots is equal to or less than the number of dots that can be simultaneously driven by the first determination means; If the determination unit determines that the total number of print dots exceeds a predetermined number of simultaneously operable dots, the number of dots of the group having the smallest number of dots among the numbers of dots for each group Determining whether or not exceeds a predetermined half of the number of simultaneously operable dots, and determining that the number of the simultaneously operable dots exceeds half of the predetermined number of simultaneously operable dots. In this case, the second driving means for driving each group of the heating resistors for each of the plurality of drivers and the second determination means determine that the number of dots that can be simultaneously driven does not exceed half the number of dots. Place And having a third driving means for driving a combination of each group of the heat generating resistor by the plurality of drivers upon which to determine the combination of a group of simultaneously drivable heating resistor.

(作用) 本発明のサーマルプリンタでは、ドット数を計数して
サーマルヘッドの複数の発熱抵抗体を分割駆動する際
に、同時駆動をするかどうかを最初に判定し、さらに、
同時駆動可能なドット数を超えている場合にはドット数
のもっとも小さいグループのドット数が同時駆動可能な
ドット数の半数を超えているかを判定して、発熱抵抗体
の各グループ毎に駆動するか、組み合わせて駆動するか
を判定している。
(Operation) In the thermal printer of the present invention, when the plurality of heating resistors of the thermal head are divided and driven by counting the number of dots, it is first determined whether or not to drive them simultaneously.
If the number of dots that can be simultaneously driven is exceeded, it is determined whether the number of dots in the group with the smallest number of dots is more than half of the number of dots that can be simultaneously driven, and the heating resistor is driven for each group. It is determined whether to drive in combination.

(実施例) 以下、図面を用いて本発明の実施例を説明する。(Example) Hereinafter, an example of the present invention is described using a drawing.

第1図は、本発明の一実施例に係わるサーマルプリン
タを適用したハンディターミナルの外観構成を示す斜視
図である。同図に示すハンディターミナルは、その上部
に本発明の一実施例に係わるサーマルプリンタ1を搭載
し、図においては該サーマルプリンタ1で印字された感
熱記録紙3が繰り出されている様子が示されている。
FIG. 1 is a perspective view showing an external configuration of a handy terminal to which a thermal printer according to an embodiment of the present invention is applied. The handy terminal shown in FIG. 1 has a thermal printer 1 according to an embodiment of the present invention mounted on the upper portion thereof. In the drawing, the thermal recording paper 3 printed by the thermal printer 1 is shown being fed out. ing.

また、第1図に示すハンディターミナルは、前記サー
マルプリンタ1の下側に各種データを表示する液晶ディ
スプレイ(LCD)5が搭載され、更に該液晶ディスプレ
イ5の下側に各種データおよび指令情報を入力するキー
ボード7が設けられている。
The handy terminal shown in FIG. 1 has a liquid crystal display (LCD) 5 for displaying various data below the thermal printer 1 and further inputs various data and command information below the liquid crystal display 5. Keyboard 7 is provided.

第2図は、第1図に示すハンディターミナルの全体的
回路構成を示すブロック図である。ハンディターミナル
は、同図に示すように、第1図に示したサーマルプリン
タ1、液晶ディスプレイ5およびキーボード7に加え
て、全体の制御を行う16ビットのマイクロプロセッサか
らなるCPU11と、該CPU11にデータバス12を介して接続さ
れ、固定データや各種データ処理用のプログラム等を記
憶している64KBのROM13と、一時的に各種データを記憶
する256KB,512KBまたは768KBのRAM15と、時刻および年
月日を計時する時計・カレンダ17と、JIS第1水準の漢
字を記憶している第1の漢字ROM19と、JIS第2水準の漢
字を記憶している第2の漢字RAM21と、前記キーボード
7用のキーボードインタフェース23と、前記液晶ディス
プレイ5用のLCDコントローラ25と、前記液晶ディスプ
レイ5用のバックライト27と、前記サーマルプリンタ1
用のプリンタコントローラ29と、ブザーコントローラ31
及び該ブザーコントローラ31で駆動させるブザー33と、
外部装置と通信するための通信インタフェース35と、該
通信コントローラ35に接続されているインタフェースコ
ネクタ37および光結合素子39と、各種時間を計測するタ
イム41と、RS−232Cインタフェース43と、該RS−232Cイ
ンタフェース43に接続されたRS−232CI/Fコネクタ45
と、MSリーダコントローラ47と、メモリカードに対する
データの書き込み/読み出しを行うメモリカードリーダ
ライタンコントローラ51と、ICカードに対するデータの
書き込み/読み出しを行うICカードリーダライタコント
ローラ55と、本ハンディターミナルの全体に動作電圧を
供給するカートリッジ式の主電池59と、前記RAM15およ
び時計・カレンダ17にバッファアップ用の電圧を供給す
る副電池61とを有するとともに、また前記MSリーダコネ
クタ47、メモリカードリーダライタコントローラ51およ
びICカードリーダライタコントローラ55には、点線で示
すように、MSリーダコネクタ49、メモリカードR/Wコネ
クタ53およびICカードR/Wコネクタ57がそれぞれ接続し
得るようになっている。
FIG. 2 is a block diagram showing an overall circuit configuration of the handy terminal shown in FIG. As shown in the figure, the handy terminal has a CPU 11 composed of a 16-bit microprocessor for controlling the whole, in addition to the thermal printer 1, the liquid crystal display 5 and the keyboard 7 shown in FIG. A 64 KB ROM 13 which is connected via a bus 12 and stores fixed data and various data processing programs, a 256 KB, 512 KB or 768 KB RAM 15 for temporarily storing various data, a time and a date A clock / calendar 17 for clocking the time, a first kanji ROM 19 for storing JIS first-level kanji, a second kanji RAM 21 for storing JIS second-level kanji, A keyboard interface 23; an LCD controller 25 for the liquid crystal display 5; a backlight 27 for the liquid crystal display 5;
Printer controller 29 and buzzer controller 31
And a buzzer 33 driven by the buzzer controller 31,
A communication interface 35 for communicating with an external device; an interface connector 37 and an optical coupling element 39 connected to the communication controller 35; a time 41 for measuring various times; an RS-232C interface 43; RS-232CI / F connector 45 connected to 232C interface 43
, An MS reader controller 47, a memory card reader / writer controller 51 for writing / reading data to / from a memory card, an IC card reader / writer controller 55 for writing / reading data to / from an IC card, and the entire handy terminal. It has a cartridge-type main battery 59 for supplying an operating voltage, a sub-battery 61 for supplying a buffer-up voltage to the RAM 15 and the clock / calendar 17, and also has the MS reader connector 47, a memory card reader / writer controller 51. As shown by the dotted lines, the MS reader connector 49, the memory card R / W connector 53, and the IC card R / W connector 57 can be connected to the IC card reader / writer controller 55, respectively.

第3図は、前記サーマルプリンタ1を制御する前記プ
リンタコントローラ29の回路構成図である。同図に示す
ように、該プリンタコントローラ29は、前記データバス
12に接続され、該データバス12を介して前記CPU11およ
び漢字ROM19,21から印字すべきデータを受信し、印字動
作を制御する制御部63と、該制御部63に接続され、該制
御部63が受信した印字データを順次受け入れるシフトレ
ジスタ65と、該シフトレジスタ65および制御部63に接続
され、前記シフトレジスタ65から順次出力される印字デ
ータのドット数を計数し、このドット計数値を前記制御
部63に供給するカウンタ67と、前記シフトレジスタ65の
出力に接続され、該シフトレジスタ65からの印字データ
を一時的に蓄積するとともに、サーマルヘッドを構成す
る複数の発熱抵抗体を駆動する第1〜第4図のバッファ
ドライバ69a〜69dと、これらのバッファドライバ69a〜6
9dにそれぞれ接続され、ラインサーマルヘッドを構成す
るようにライン状に1行に直列配列された384超の発熱
抵抗体R1〜R384とから構成されている。
FIG. 3 is a circuit diagram of the printer controller 29 for controlling the thermal printer 1. As shown in the figure, the printer controller 29
A control unit 63 for receiving data to be printed from the CPU 11 and the kanji ROMs 19 and 21 via the data bus 12 and controlling a printing operation; and Is connected to the shift register 65 and the control unit 63 for sequentially receiving the received print data, counts the number of dots of the print data sequentially output from the shift register 65, and controls the dot count value. A first counter connected to an output of the shift register 65 for temporarily storing print data from the shift register 65 and driving a plurality of heating resistors constituting a thermal head; 4 and the buffer drivers 69a to 69d shown in FIG.
9d, each of which is composed of more than 384 heating resistors R1 to R384 arranged in a line in a line so as to constitute a line thermal head.

前記サーマルプリンタ1は、第1図に示すように、ハ
ンディターミナルに利用するものであるため、比較的幅
の狭い感熱記録紙3に印字するが、この印字は該感熱記
録紙3の幅方向において横24ドットの文字を16桁まで印
字する。なお、英数字の場合には、横12ビットの英数字
を32桁まで印字することができる。また、縦方向のドッ
ト数は24ドットであるので、漢字等の文字は24ドット×
24ドットで1文字を表し、英数字は12ドット×24ドット
で1文字を表すようになっている。
As shown in FIG. 1, since the thermal printer 1 is used for a handy terminal, printing is performed on a relatively narrow thermosensitive recording paper 3 in the width direction of the thermosensitive recording paper 3. Prints up to 16 digits of 24 dots horizontally. In the case of alphanumeric characters, 12-bit horizontal alphanumeric characters can be printed up to 32 digits. Also, since the number of dots in the vertical direction is 24 dots, characters such as kanji are 24 dots ×
24 dots represent one character, and alphanumeric characters represent one character by 12 dots x 24 dots.

従って、本サーマルプリンタ1は、横24ドットの文字
を16桁まで1行に印字するために、上述したようにライ
ン状に1行に直列配列された24×16=384ドットに対応
する384個の発熱抵抗体R1〜R384からなるラインサーマ
ルヘッドを使用し、この384個の発熱抵抗体R1〜R384を
駆動しながら、感熱記録紙3を長手方向に1ドット分に
相当する長さずつ24ドット分繰り出すことにより、24ド
ット×24ドットの文字を印字できるようになっている。
Therefore, this thermal printer 1 prints 384 characters corresponding to 24 × 16 = 384 dots serially arranged in one line in a line as described above in order to print characters of 24 dots in width up to 16 digits in one line. Using a line thermal head composed of the heating resistors R1 to R384, while driving the 384 heating resistors R1 to R384, the thermal recording paper 3 is moved in the longitudinal direction by 24 dots each having a length equivalent to one dot. By feeding out the characters, 24 dots x 24 dots characters can be printed.

また、384ドットに対応する384個の発熱抵抗体R1〜R3
84を同時に駆動すると、ハンディターミナルの主電池61
の電力容量の問題から、384個の発熱抵抗体R1〜R384を9
6ずつ4つのグループに分割し、すなわち第3図に示す
ように発熱抵抗体R289〜R384からなる第1の発熱抵抗体
群RG1、発熱抵抗体R193〜R288からなる第2の発熱抵抗
体群RG2、発熱抵抗体R97〜R192からなる第3の発熱抵抗
体群RG3、発熱抵抗体R1〜R96からなる第4の発熱抵抗体
群RG4に分割し、それぞれをバッファドライバ69a〜69d
で駆動するようにしている。なお、各バッファドライバ
69a〜69dは制御部63からの駆動信号S1〜S4で制御され、
該駆動信号S1〜S4が供給されると、各バッファドライバ
69a〜69dは対応する発熱抵抗体群を駆動するようになっ
ている。
Also, 384 heating resistors R1 to R3 corresponding to 384 dots
When the 84 is driven at the same time, the main battery 61
384 heating resistors R1 to R384
The first heating resistor group RG1 is composed of heating resistors R289 to R384, and the second heating resistor group RG2 is composed of heating resistors R193 to R288, as shown in FIG. , A third heating resistor group RG3 including the heating resistors R97 to R192, and a fourth heating resistor group RG4 including the heating resistors R1 to R96, each of which is a buffer driver 69a to 69d.
It is driven by. Note that each buffer driver
69a to 69d are controlled by drive signals S1 to S4 from the control unit 63,
When the drive signals S1 to S4 are supplied, each buffer driver
Reference numerals 69a to 69d drive the corresponding heating resistor groups.

上述したように、4つのグループ、すなわち第1の発
熱抵抗体群RG1〜第4の発熱抵抗体群RG4に分割された各
グループの発熱抵抗体の数は、96個になっているが、本
実施例では96個までの発熱抵抗体を同時に駆動し得るも
のとして制御している。そして、この場合に単に各発熱
抵抗体群を1つずつ順次駆動するのでなく、印字しよう
とする文字に含まれるドットの数を前記カウンタ67で計
数し、このドット数に応じて各発熱抵抗体群を適宜、具
体的にはすべての発熱抵抗体群を同時にまたはそれぞれ
別々に等のように駆動し、これにより印字速度の向上を
図っている。具体的には、印字しようとする文字は、す
べてがドットであるのでなく、ドットの組合せであるた
め、文字によってはドットが少ないものもあるので、ド
ットが少ない文字の場合には、そのドットの数に応じて
すべての発熱抵抗体を同時に、すなわちすべての発熱抵
抗体群を同時に駆動しているものである。
As described above, the number of the heating resistors in each of the four groups, that is, the first heating resistor group RG1 to the fourth heating resistor group RG4, is 96. In this embodiment, up to 96 heating resistors are controlled so that they can be driven simultaneously. In this case, the number of dots included in the character to be printed is counted by the counter 67, instead of simply driving each heating resistor group one by one, and each heating resistor group is counted according to the number of dots. The groups are appropriately driven, specifically, all the heating resistor groups are driven simultaneously or separately, etc., thereby improving the printing speed. Specifically, the characters to be printed are not all dots but a combination of dots.Therefore, some characters have a small number of dots. According to the number, all the heating resistors are simultaneously driven, that is, all the heating resistor groups are simultaneously driven.

次に、第4図に示すフローチャートを参照して作用を
説明する。
Next, the operation will be described with reference to the flowchart shown in FIG.

第4図のフローチャートでは、前述した384個の発熱
抵抗体を各発熱抵抗体群に相当する96個までを同時に駆
動し得るものとするとともに、、第1の発熱抵抗体群RG
1〜第4の発熱抵抗体群RG4をそれぞれ駆動するバッファ
ドライバ69a〜69dの各々に一時的に蓄積される文字のド
ットパターンをそれぞれX1,X2,X3,X4とし、この各ドッ
トパターンX1〜X4に含まれるドットの数、すなわち前記
カウンタ67で計数した各ドットの数をそれぞれN1,N2,N
3,N4とすると、この各ドット数N1,N2,N3,N4を大きい順
にソートし、このソートしたドット数を大きい順にn1,n
2,n3,n4と並べ替えるとともに、この並べ替えたドット
数n1,n2,n3,n4の前記文字のドットパターンX1,X2,X3,X4
に対応する各文字のドットパターンをそれぞれX1′,X
2′,X3′,X4′として表している。
In the flowchart of FIG. 4, it is assumed that the above-mentioned 384 heating resistors can be simultaneously driven up to 96 corresponding to each heating resistor group, and the first heating resistor group RG
The dot patterns of characters temporarily stored in the buffer drivers 69a to 69d respectively driving the first to fourth heat generating resistor groups RG4 are X1, X2, X3, X4, respectively, and these dot patterns X1 to X4 , The number of dots counted by the counter 67, respectively, N1, N2, N
3, N4, the numbers of dots N1, N2, N3, N4 are sorted in descending order, and the sorted dot numbers are sorted in descending order, n1, n
2, n3, n4 and the dot patterns X1, X2, X3, X4 of the characters with the rearranged dot numbers n1, n2, n3, n4
The dot pattern of each character corresponding to
It is represented as 2 ', X3', X4 '.

第4図においては、まず、前記ドット数n1,n2,n3,n4
をすべて加えたドット合計値が96以下であるか否かをチ
ェックし(ステップ110)、96以下である場合には、前
記文字のドットパターンX1′,X2′,X3′,X4′を「+」
記号で説明的に示すように同時に駆動する(ステップ12
0)。ステップ110において、ドット合計値が96より大き
い場合には、ドット数n4が96/2=48より大きいか否かを
チェックし(ステップ130)、大きい場合には、X1′,X
2′,X3′,X4′をそれぞれ別々に駆動する(ステップ14
0)。
In FIG. 4, first, the dot numbers n1, n2, n3, n4
It is checked whether or not the dot total value obtained by adding all the characters is 96 or less (step 110). If the total value is 96 or less, the dot pattern X1 ', X2', X3 ', X4' of the character is changed to "+ "
Drive at the same time as indicated by the symbols (step 12
0). In step 110, if the total dot value is greater than 96, it is checked whether or not the number of dots n4 is greater than 96/2 = 48 (step 130).
2 ', X3', X4 'are separately driven (step 14
0).

また、ステップ130において、96/2=48より大きくな
い場合には、ドット数n3が96/2=48より大きいか否かを
チェックし(ステップ150)、大きい場合には、更にス
テップ160において、n3+n4が96より大きいか否かチェ
ックし、大きい場合には、X1′,X2′,X3′,X4′をそれ
ぞれ別々に駆動する(ステップ170)。また、ステップ1
60で大きくない場合には、X1′およびX2′を単独で駆動
するとともに、X3′とX4′とを同時に駆動する(ステッ
プ180)。
If it is determined in step 130 that the number of dots n3 is not larger than 96/2 = 48, it is checked whether or not the dot number n3 is larger than 96/2 = 48 (step 150). It is checked whether n3 + n4 is greater than 96, and if it is, X1 ', X2', X3 ', X4' are separately driven (step 170). Step 1
If it is not large at 60, X1 'and X2' are driven independently, and X3 'and X4' are simultaneously driven (step 180).

更に、ステップ150において、n3が96/2=48よりも大
きくない場合には、ステップ190に進み、n1+n4およびn
2+n3の両方が96以下であるか否かをチェックし、96以
下である場合には、ステップ200に示すように、X1′とX
4′を同時に駆動し、またX2′とX3′を同時に駆動す
る。96以下でない場合には、ステップ210に進んで、n2
+n3+n4が96以下であるか否かチェックし、96以下であ
る場合には、X1′を単独で駆動し、X2′,X3′およびX
4′を同時に駆動する(ステップ220)。また、96以下で
ない場合には、X1′とX2′とを単独で駆動し、X3′とX
4′とを同時に駆動する(ステップ230)。
Further, in step 150, if n3 is not greater than 96/2 = 48, the process proceeds to step 190, where n1 + n4 and n1
It is checked whether both 2 + n3 are less than 96, and if both are less than 96, as shown in step 200, X1 'and X1'
4 'are driven simultaneously, and X2' and X3 'are driven simultaneously. If not less than 96, proceed to step 210, where n2
+ N3 + n4 is checked whether it is 96 or less, and if it is 96 or less, X1 'is driven alone and X2', X3 'and X2'
4 'are simultaneously driven (step 220). If not less than 96, X1 'and X2' are driven independently, and X3 'and X2'
And 4 'are simultaneously driven (step 230).

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、ドット数を計
数してサーマルヘッドの複数の発熱抵抗体を分割駆動す
る際に、同時駆動をするかどうかを最初に判定し、さら
に、同時駆動可能なドット数を超えている場合にはドッ
ト数のもっとも小さいグループのドット数が同時駆動可
能なドット数の半数を超えているかを判定して、発熱抵
抗体の各グループ毎に駆動するか、組み合わせて駆動す
るかを判定するため、ハンディターミナルのような駆動
電源として電池を使用するような装置においては、印字
の際の駆動回数を少なくすることができ、その結果高速
な印字を行うことができる。
As described above, according to the present invention, when the plurality of heating resistors of the thermal head are divided and driven by counting the number of dots, it is first determined whether or not to perform simultaneous driving, and furthermore, simultaneous driving is possible. If the number of dots exceeds the minimum, it is determined whether the number of dots in the group with the smallest number of dots is more than half the number of dots that can be simultaneously driven, and whether each group of heating resistors is driven or combined. In a device such as a handy terminal that uses a battery as a driving power source, it is possible to reduce the number of times of driving at the time of printing, and as a result, it is possible to perform high-speed printing .

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の一実施例に係わるサーマルプリンタを
使用したハンディターミナルの全体的外観を示す斜視
図、第2図は第1図のハンディターミナルの全体的回路
構成を示すブロック図、第3図は第2図に示すハンディ
ターミナルの回路ブロックに使用されているプリンタコ
ントローラの回路構成を示す図、第4図は第3図に回路
構成を示すサーマルプリンタをの作用を示すフローチャ
ートである。 1……サーマルプリンタ、 3……感熱記録紙、 63……制御部、 65……シフトレジスタ、 67……カウンタ、 69a〜69d……バッファドライバ、 RG1〜RG4……発熱抵抗体群。
FIG. 1 is a perspective view showing the overall appearance of a handy terminal using a thermal printer according to one embodiment of the present invention, FIG. 2 is a block diagram showing the overall circuit configuration of the handy terminal of FIG. FIG. 4 is a diagram showing a circuit configuration of a printer controller used in a circuit block of the handy terminal shown in FIG. 2, and FIG. 4 is a flowchart showing an operation of the thermal printer having a circuit configuration shown in FIG. 1 ... thermal printer, 3 ... thermal recording paper, 63 ... control unit, 65 ... shift register, 67 ... counter, 69a to 69d ... buffer driver, RG1 to RG4 ... heating resistor group.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−290556(JP,A) 特開 昭63−67162(JP,A) 特開 昭56−106881(JP,A) (58)調査した分野(Int.Cl.6,DB名) B41J 2/35 - 2/37──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-62-290556 (JP, A) JP-A-63-67162 (JP, A) JP-A-56-106811 (JP, A) (58) Field (Int.Cl. 6 , DB name) B41J 2/35-2/37

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ライン状に配列された複数の発熱抵抗体か
らなるサーマルヘッドを使用して文字及び符号を含む記
号を記録紙に印字するサーマルプリンタであって、 前記サーマルヘッドの複数の発熱抵抗体を所定のドット
数単位のグループに分割しこのグループ単位で発熱抵抗
体を駆動するために各グループに対応して設けられた複
数のドライバと、 所定の記号を印字しようとする際に前記発熱抵抗体のグ
ループ毎に印字しようとする記号に含まれるドットの数
を計数するドット計数手段と、 このドット計数手段で計数した全てのグループのドット
数の総和を求め、このドット数の総和が予め定められた
同時駆動可能なドット数以下であるか否かを判定する第
1の判定手段と、 この第1の判定手段にて同時駆動可能なドット数以下で
ある場合には前記複数のドライバにより前記発熱抵抗体
の全グループを同時に駆動する第1の駆動手段と、 前記第1の判定手段にて印字ドット数の総和が予め定め
られた同時駆動可能なドット数を超えていると判定され
た場合には前記各グループ毎のドット数のうちのドット
数のもっとも小さいグループのドット数が予め定められ
た同時駆動可能なドット数の半数を超えているかどうか
を判定する第2の判定手段と、 この第2の判定手段にて同時駆動可能なドット数の半数
を超えていると判定された場合は前記複数のドライバ毎
に前記発熱抵抗体の各グループを駆動する第2の駆動手
段と、 前記第2の判定手段にて同時駆動可能なドット数の半数
を超えていないと判定された場合は同時駆動可能な発熱
抵抗体のグループの組み合わせを判別したうえで前記複
数のドライバにより前記発熱抵抗体の各グループを組み
合わせて駆動する第3の駆動手段と を有することを特徴とするサーマルプリンタ。
1. A thermal printer for printing symbols including characters and codes on recording paper using a thermal head comprising a plurality of heating resistors arranged in a line, wherein the plurality of heating resistors of the thermal head are provided. The body is divided into groups of a predetermined number of dots, and a plurality of drivers are provided corresponding to each group to drive the heating resistors in units of the groups. Dot counting means for counting the number of dots included in the symbol to be printed for each resistor group; and calculating the sum of the dot numbers of all the groups counted by the dot counting means. First determining means for determining whether or not the number is equal to or less than a predetermined number of simultaneously operable dots; A first driving unit for simultaneously driving all groups of the heating resistors by the plurality of drivers; and a total number of printing dots determined by the first determination unit is a predetermined number of simultaneously drivable dots. When it is determined that the number of dots is exceeded, it is determined whether or not the number of dots of the group having the smallest number of dots among the numbers of dots of each group exceeds half of a predetermined number of simultaneously drivable dots. A second determining unit that, when the second determining unit determines that the number of dots that can be simultaneously driven exceeds half, drives each group of the heating resistors for each of the plurality of drivers; If it is determined by the second driving means that the number of dots that can be simultaneously driven is not more than half of the number of dots that can be simultaneously driven, the combination of groups of heating resistors that can be simultaneously driven is determined. Thermal printer characterized in that it comprises a third driving means for driving a combination of each group of the heat generating resistor by the plurality of drivers.
【請求項2】前記第1の判定手段は、前記ドット計数手
段で計数した前記各グループ毎のドット数を大小順にソ
ートするとともに全てのグループのドット数の総和を求
め、このドット数の総和が予め定められた同時駆動可能
なドット数以下であるか否かを判定するものであり、 前記第3の駆動手段は、 前記第2の判定手段にて同時駆動可能なドット数の半数
を超えていないと判定された場合には前記第1の判定手
段にてソートされた前記各グループ毎のドット数のうち
ドット数の2番目に小さいグループのドット数が予め定
められた同時駆動可能なドット数の半数を超えているか
どうかを判定する第4の判定手段と、 この第4の判定手段にて同時駆動可能なドット数の半数
を超えていない場合にはドット数の最も小さいグループ
とドット数の2番目に小さいグループとの組み合わせ以
外の他の組み合わせがあるかを判別する判別手段とを有
し、 この判別手段にて他の組み合わせがあると判別された場
合には前記複数のドライバにより前記判別手段にて判別
された前記発熱抵抗体の各グループを組み合わせて駆動
し、前記判別手段にて他の組み合わせがないと判別され
た場合には前記複数のドライバによりドット数の最も小
さいグループとドット数の2番目に小さいグループとを
組み合わせて駆動するものであることを特徴とする請求
項1記載のサーマルプリンタ。
2. The method according to claim 1, wherein the first determining means sorts the number of dots of each group counted by the dot counting means in ascending and descending order, and obtains the sum of the numbers of dots of all the groups. And determining whether the number is equal to or less than a predetermined number of simultaneously drivable dots, wherein the third driving means exceeds half of the number of simultaneously drivable dots by the second determination means. If it is determined that there is no dot, the number of dots in the group having the second smallest number of dots out of the number of dots in each of the groups sorted by the first determination means is a predetermined number of simultaneously operable dots. A fourth determining means for determining whether or not the number of dots exceeds half of the number of dots. If the number of dots that can be simultaneously driven by the fourth determining means does not exceed half, the group having the smallest number of dots and the number of dots Discriminating means for discriminating whether there is another combination other than the combination with the second smallest group, and when the discriminating means determines that there is another combination, the plurality of drivers perform the discrimination. Means for driving each group of the heating resistors determined by the means, and when the determination means determines that there is no other combination, the plurality of drivers determine the group having the smallest number of dots and the number of dots. 2. The thermal printer according to claim 1, wherein the thermal printer is driven in combination with the second smallest group.
JP12226089A 1989-05-16 1989-05-16 Thermal printer Expired - Lifetime JP2843051B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12226089A JP2843051B2 (en) 1989-05-16 1989-05-16 Thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12226089A JP2843051B2 (en) 1989-05-16 1989-05-16 Thermal printer

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP19647398A Division JPH10324015A (en) 1998-06-29 1998-06-29 Thermal printer

Publications (2)

Publication Number Publication Date
JPH02301454A JPH02301454A (en) 1990-12-13
JP2843051B2 true JP2843051B2 (en) 1999-01-06

Family

ID=14831550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12226089A Expired - Lifetime JP2843051B2 (en) 1989-05-16 1989-05-16 Thermal printer

Country Status (1)

Country Link
JP (1) JP2843051B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115583115B (en) * 2022-12-13 2023-03-14 飞天诚信科技股份有限公司 Method and device for realizing thermal printing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62290556A (en) * 1986-06-11 1987-12-17 Casio Comput Co Ltd Line printer

Also Published As

Publication number Publication date
JPH02301454A (en) 1990-12-13

Similar Documents

Publication Publication Date Title
US4661001A (en) Label printer with test pattern for price and bar codes
US5072237A (en) Thermal printer for a portable data terminal
JP6489431B2 (en) Thermal printer, control method and program
EP0297568A2 (en) Label printer
US4566813A (en) Dot-matrix print controller
JP2843051B2 (en) Thermal printer
JP3159223B2 (en) Recording apparatus and operating environment setting method thereof
JP2564210Y2 (en) Label printing device
JPH10324015A (en) Thermal printer
JPH0311273B2 (en)
US5115410A (en) Program processing system having standard program for processing optionally post-stored programs
JPH02301455A (en) Thermal printer
KR900005238B1 (en) Method for determining margin
JPS6360761A (en) Printer
JP2560297B2 (en) Output device
JP2586825B2 (en) Printing device with variable printing position
JPS60126730A (en) Electronic typewriter
KR100490382B1 (en) Apparatus and method for providing optimal printing according to document type
JPS6142634B2 (en)
JP2009160809A (en) Portable printer
JPH06149802A (en) Word processor
JPH05307626A (en) Bar code printer
JPS6360762A (en) Printer device
JPH0331552U (en)
JPS6250153A (en) Thermal printing apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081023

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081023

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11