JPH0514619B2 - - Google Patents

Info

Publication number
JPH0514619B2
JPH0514619B2 JP17820083A JP17820083A JPH0514619B2 JP H0514619 B2 JPH0514619 B2 JP H0514619B2 JP 17820083 A JP17820083 A JP 17820083A JP 17820083 A JP17820083 A JP 17820083A JP H0514619 B2 JPH0514619 B2 JP H0514619B2
Authority
JP
Japan
Prior art keywords
character
data
input
printing
recording elements
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
JP17820083A
Other languages
Japanese (ja)
Other versions
JPS6071277A (en
Inventor
Hiroyoshi Zama
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP58178200A priority Critical patent/JPS6071277A/en
Publication of JPS6071277A publication Critical patent/JPS6071277A/en
Publication of JPH0514619B2 publication Critical patent/JPH0514619B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/315Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
    • B41J2/32Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
    • B41J2/35Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads providing current or voltage to the thermal head
    • B41J2/355Control circuits for heating-element selection

Landscapes

  • Electronic Switches (AREA)
  • Record Information Processing For Printing (AREA)
  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 発明の技術分野 本発明は、ラインタイプのサーマルプリンタの
印字を高速化することができるサーマルプリンタ
の印字制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a printing control system for a thermal printer that can speed up printing in a line-type thermal printer.

従来技術と問題点 ラインタイプのサーマルプリンタは、従来第1
図に示す構成により制御されるものであつた。即
ち、インタフエース回路1を介してマイクロプロ
セツサ2がホストプロセツサ等からのデータを受
信し、印字命令であるか否を判別する。印字命令
でない場合は、受信したデータ(キヤラクタコー
ド)をデータバツフア3に一時格納する。印字命
令であれば、データバツフア3に格納されている
データ(キヤラクタコード)を読出し、その読出
データに従つたキヤラクタデータをキヤラクタジ
エネレータ4から発生させる。キヤラクタジエネ
レータ4はROM(リードオンリメモリ)により
構成されているのが一般的であり、キヤラクタコ
ードをアドレス信号としてアクセスし、キヤラク
タデータは並列に出力される。この並列に出力さ
れたキヤラクタデータを直列に変換し、変換され
たシリアルデータaをドライバ51に加える。
Conventional technology and problems Line-type thermal printers are the first
It was controlled by the configuration shown in the figure. That is, the microprocessor 2 receives data from a host processor or the like via the interface circuit 1, and determines whether it is a print command or not. If it is not a print command, the received data (character code) is temporarily stored in the data buffer 3. If it is a print command, the data (character code) stored in the data buffer 3 is read out, and the character generator 4 generates character data according to the read data. The character generator 4 is generally constituted by a ROM (read only memory), accesses the character code as an address signal, and outputs the character data in parallel. The character data output in parallel is converted into serial data, and the converted serial data a is applied to the driver 51.

マイクロプロセツサ2は、シリアルデータaの
出力に伴つて、シフトクロツクパルスb、ラツチ
パルスc、イネーブルパルスd1〜d8を出力す
るものであり、シフトクロツクパルスbによりシ
リアルデータaは順次ドライバ52〜58にシフ
トされる。各ドライバ51〜58は例えば32ビツ
トのシフトレジスタを備えており、1ラインを
256ビツト構成とし、1ライン分のシフト終了に
よりラツチパルスcが加えられ、このラツチパル
スcにより各ドライバ51〜58には32ビツトの
データをラツチされる。次に各ドライバ51〜5
8に対してイネーブルパルスd1〜d8が出力さ
れ、イネーブルパルスを加えられたドライバは、
ラツチされたデータに従つた駆動信号をサーマル
ヘツド6に出力するもので、総てのドライバ51
〜58が動作を終了すると、1ライン分の印字が
終了することになる。このような動作がキヤラク
タを構成するライン数分繰り返し行われて、1行
分のキヤラクタの印字が終了する。
The microprocessor 2 outputs a shift clock pulse b, a latch pulse c, and enable pulses d1 to d8 in conjunction with the output of the serial data a. 58. Each driver 51 to 58 is equipped with a 32-bit shift register, for example, and controls one line.
It has a 256-bit configuration, and a latch pulse c is applied at the end of one line shift, and 32-bit data is latched in each driver 51 to 58 by this latch pulse c. Next, each driver 51 to 5
Enable pulses d1 to d8 are output for 8, and the driver to which the enable pulse is applied is
It outputs a drive signal according to the latched data to the thermal head 6, and all drivers 51
When the operations of .about.58 are completed, printing for one line is completed. This operation is repeated for the number of lines forming the character, and printing of one line of the character is completed.

第2図は、前述の印字制御についてのフローチ
ヤートであり、データ受取りを行つた後、印字命
令であるか否かを判別する。印字命令でなければ
そのデータを格納し、印字命令であれば1行分の
印字が行われる。1行中のキヤラクタ数に関係な
く、総てのドライバ51〜58にイネーブルパル
スd1〜d8を順次加えてサーマルヘツド6によ
る印字を行わせるものであるから、1行中のキヤ
ラクタ数が少ない場合でも、キヤラクタ数が多い
場合と同じ速度であつた。
FIG. 2 is a flowchart for the above-mentioned printing control, and after data is received, it is determined whether or not it is a printing command. If it is not a print command, the data is stored, and if it is a print command, one line is printed. Regardless of the number of characters in one line, the enable pulses d1 to d8 are sequentially applied to all drivers 51 to 58 to cause the thermal head 6 to print, so even if the number of characters in one line is small, , the speed was the same as when there were many characters.

発明の目的 本発明は、キヤラクタ数に対応してドライバを
動作させ、全体としての印字速度を向上させるこ
とを目的とするものである。
OBJECT OF THE INVENTION The present invention aims to improve the overall printing speed by operating a driver in accordance with the number of characters.

発明の構成 本発明は、1行分の記録素子を備えたサーマル
ヘツドと、このサーマルヘツドの記録素子を複数
のグループに分割してそれぞれのグループの記録
素子を駆動するシフトレジスタ機能を有する複数
のドライバと、入力されたデータが印字命令であ
るかキヤラクタコードであるかを判断するマイク
ロプロセツサと、前記入力されたキヤラクタコー
ドを格納するデータバツフアと、前記印字命令が
入力されるまでの間に入力される前記キヤラクタ
コードの数を計数する計数手段と、前記入力され
た印字命令に基づいて前記データバツフアに格納
されたキヤラクタコードを読出してキヤラクタデ
ータを発生させるキヤラクタジエネレータとを備
えたサーマルプリンタに於いて、前記印字命令が
入力されたとき、前記計数手段の計数内容に基づ
いて、駆動される前記記録素子のグループ数を計
算し、このグループ数に対応する前記ドライバの
みを駆動させて印字させるものであり、1行中の
キヤラクタ数に対応してドライバを動作させ、1
行中のキヤラクタ数が少ない場合には、全体とし
て印字速度を向上することができる。以下実施例
について詳細に説明する。
Structure of the Invention The present invention includes a thermal head equipped with recording elements for one row, and a plurality of thermal heads having a shift register function for dividing the recording elements of this thermal head into a plurality of groups and driving the recording elements of each group. A driver, a microprocessor that determines whether the input data is a print command or a character code, a data buffer that stores the input character code, and a period until the print command is input. a counting means for counting the number of said character codes inputted to said character generator; and a character generator for reading said character codes stored in said data buffer to generate character data based on said inputted printing command. In the thermal printer equipped with the above-mentioned thermal printer, when the printing command is input, the number of groups of the recording elements to be driven is calculated based on the count contents of the counting means, and only the driver corresponding to this number of groups is activated. It prints by driving the driver, which operates the driver according to the number of characters in one line.
When the number of characters in a line is small, the overall printing speed can be improved. Examples will be described in detail below.

発明の実施例 第3図は本発明の実施例のブロツク図であり、
第1図と同一符号は同一部分を示し、サーマルヘ
ツド6は、1行分の記録素子を備えたラインタイ
プのものであり、所定数、例えば、32個の記録素
子を1グループとするように複数のグループに分
割して、グループ対応にドライバ51〜58が設
けられている。又計数手段としてのキヤラクタカ
ウンタ7は、受信したデータが印字命令でない場
合、キヤラクタコードを示すから+1し、印字命
令が加えられるまでに受信したキヤラクタ数を計
数するものである。この印字命令は1行分のデー
タを受信することにより受信されるから、キヤラ
クタカウンタ7のカウント内容は、1行中のキヤ
ラクタ数を示すものとなる。このキヤラクタカウ
ンタ7をクリアした後、インタフエース回路1を
介してデータを受信すると、マイクロプロセツサ
2は前述のように印字命令か否かを判別し、印字
命令でなければそのデータ(キヤラクタコード)
をデータバツフア3に一時格納し、且つキヤラク
タカウンタ7を+1する。印字命令であれば、キ
ヤラクタカウンタ7の内容を読取り、印字すべき
グループ数を計算し、且つキヤラクタカウンタ7
をクリアし、次に加えられるキヤラクタ数のカウ
ントアツプの準備を行う。
Embodiment of the invention FIG. 3 is a block diagram of an embodiment of the invention.
The same reference numerals as in FIG. 1 indicate the same parts, and the thermal head 6 is a line type having recording elements for one row, and a predetermined number of recording elements, for example, 32 recording elements, are arranged in one group. It is divided into a plurality of groups, and drivers 51 to 58 are provided corresponding to each group. Further, the character counter 7 as a counting means increments the received data by 1 since it indicates a character code when the received data is not a print command, and counts the number of characters received until the print command is added. Since this print command is received by receiving one line of data, the count content of the character counter 7 indicates the number of characters in one line. After clearing this character counter 7, when data is received via the interface circuit 1, the microprocessor 2 determines whether or not it is a print command as described above, and if it is not a print command, the data (character code)
is temporarily stored in the data buffer 3, and the character counter 7 is incremented by 1. If it is a print command, the content of the character counter 7 is read, the number of groups to be printed is calculated, and the character counter 7 is read.
, and prepare to count up the number of characters to be added next.

例えば1キヤラクタを5×7ビツト構成とし、
キヤラクタ間を2×7ビツトとすると、キヤラク
タカウンタ7のカウント内容が10であつた場
合、1ライン中のビツト数は70ビツトとなり、1
ドライバ当り32ビツトであるから、3個のドライ
バを駆動すれば良いことになる。即ちシフトパル
スbによりシリアルデータaをドライバ51〜5
8にシフトし、ラツチパルスcによりシフトされ
たシリアルデータaをラツチし、イネーブルパル
スd6,d7,d8のみを出力して、ドライバ5
6,57,58によりサーマルヘツド6を駆動し
て印字させるものである。従つて1行中のキヤラ
クタ数が少ない程印字速度を速くすることができ
る。
For example, if one character is composed of 5 x 7 bits,
Assuming that there are 2 x 7 bits between characters, if the count content of character counter 7 is 10, the number of bits in one line is 70 bits, and 1
Since there are 32 bits per driver, it is sufficient to drive three drivers. That is, serial data a is transferred to drivers 51 to 5 by shift pulse b.
8, latches the shifted serial data a by latch pulse c, outputs only enable pulses d6, d7, and d8, and then
6, 57, and 58 drive the thermal head 6 to print. Therefore, the fewer the number of characters in one line, the faster the printing speed can be.

第4図は、本発明の実施例のフローチヤートで
あり、カウンタクリアの後に、データ受取りを行
い、印字命令か否かを判別する。印字命令でない
場合は、データ(キヤラクタコード)を格納し、
且つカウンタを+1する。印字命令であると、カ
ウンタのカウント内容により印字グループ数を計
算し、その計算結果に基づいてドライバにイネー
ブルパルスを加えることにより、印字を行うもの
である。
FIG. 4 is a flowchart of an embodiment of the present invention, in which after the counter is cleared, data is received and it is determined whether it is a print command or not. If it is not a print command, store the data (character code),
And increment the counter by 1. In the printing command, the number of printing groups is calculated based on the count contents of the counter, and printing is performed by applying an enable pulse to the driver based on the calculation result.

前述の実施例は、1ドライバ当り32ビツトのシ
フトレジスタを備えて、8個のドライバにより
256ビツトのシフトレジスタを構成し、サーマル
ヘツド6により、1ライン256ドツトの印字を行
わせる場合について示すものであるが、各ドライ
バのシフトレジスタのビツト数及びドライバ数等
は任意に選定することができるものであり、又最
終段までシリアルデータaをシフトするようにシ
フトパルスbを加える場合だけでなく、1行中の
キヤラクタ数が少ない場合等に於いて、途中段ま
でシリアルデータaをシフトする場合についても
適用することができるものである。又キヤラクタ
カウンタ7は、メモリの領域の一部を利用して構
成することも可能である。
The embodiment described above has a 32-bit shift register per driver and uses eight drivers.
This example shows a case where a 256-bit shift register is configured and the thermal head 6 prints 256 dots per line, but the number of bits in the shift register and the number of drivers for each driver can be selected arbitrarily. Not only when applying shift pulse b to shift serial data a to the final stage, but also when the number of characters in one line is small, serial data a can be shifted to the middle stage. This can also be applied to other cases. Furthermore, the character counter 7 can also be constructed using a part of the memory area.

発明の効果 以上説明したように、本発明は、ラインタイプ
のサーマルプリンタに於いて、印字命令でないデ
ータをキヤラクタカウンタ7等の計数手段により
計数し、印字命令が加えられた時に、その計数手
段の計数内容に基づいて印字グループ数を計算
し、その印字グループ数に対応したドライバを動
作させるものであるから、1行中のキヤラクタ数
が少ない程、動作させるべきドライバ数が少なく
なり、次の行の印字に直ちに移行することがで
き、従つて全体としての印字速度を向上すること
ができることになる。又キヤラクタカンウタ7等
の計数手段は、各部を制御するマイクロプロセツ
サ2のソフトにより実現することも可能であり、
特に構成が複雑となることはない。
Effects of the Invention As explained above, in a line type thermal printer, data that is not a print command is counted by a counting means such as the character counter 7, and when a print command is added, the counting means The number of printing groups is calculated based on the counted contents of , and the driver corresponding to the number of printing groups is operated, so the fewer the number of characters in one line, the fewer the number of drivers that need to be operated, and the next It is possible to immediately shift to line printing, and therefore the overall printing speed can be improved. Further, the counting means such as the character counter 7 can be realized by the software of the microprocessor 2 that controls each part.
The configuration is not particularly complicated.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来のラインタイプのサーマルプリン
タの要部ブロツク図、第2図は従来の印字動作の
フローチヤート、第3図は本発明の実施例の要部
ブロツク図、第4図は本発明の実施例のフローチ
ヤートである。 1はインタフエース回路、2はマイクロプロセ
ツサ、3はデータバツフア、4はキヤラクタジエ
ネレータ、51〜58はドライバ、6はサーマル
ヘツド、aはシリアルデータ、bはシフトパル
ス、cはラツチパルス、d1〜d8はイネーブル
パルスである。
Fig. 1 is a block diagram of main parts of a conventional line type thermal printer, Fig. 2 is a flowchart of a conventional printing operation, Fig. 3 is a block diagram of main parts of an embodiment of the present invention, and Fig. 4 is a block diagram of main parts of an embodiment of the present invention. 1 is a flowchart of an example. 1 is an interface circuit, 2 is a microprocessor, 3 is a data buffer, 4 is a character generator, 51 to 58 are drivers, 6 is a thermal head, a is serial data, b is a shift pulse, c is a latch pulse, d1 to d8 is an enable pulse.

Claims (1)

【特許請求の範囲】[Claims] 1 1行分の記録素子を備えたサーマルヘツド
と、該サーマルヘツドの記録素子を複数のグルー
プに分割してそれぞれのグループの記録素子を駆
動するシフトレジスタ機能を有する複数のドライ
バと、入力されたデータが印字命令であるかキヤ
ラクタコードであるかを判断するマイクロプロセ
ツサと、前記入力されたキヤラクタコードを格納
するデータバツフアと、前記印字命令が入力され
るまでの間に入力される前記キヤラクタコードの
数を計数する計数手段と、前記入力された印字命
令に基づいて前記データバツフアに格納されたキ
ヤラクタコードを読出してキヤラクタデータを発
生させるキヤラクタジエネレータとを備えたサー
マルプリンタに於いて、前記印字命令が入力され
たとき、前記計数手段の計数内容に基づいて、駆
動される前記記録素子のグループ数を計算し、該
グループ数に対応する前記ドライバのみを駆動さ
せて印字させることを特徴とするサーマルプリン
タの印字制御方式。
1 A thermal head equipped with recording elements for one row, a plurality of drivers having a shift register function that divides the recording elements of the thermal head into a plurality of groups and drives the recording elements of each group, and A microprocessor that determines whether data is a print command or a character code, a data buffer that stores the input character code, and a data buffer that stores the character code that is input before the print command is input. The thermal printer is equipped with a counting means for counting the number of character codes, and a character generator for reading character codes stored in the data buffer and generating character data based on the input printing command. and when the printing command is input, the number of groups of the recording elements to be driven is calculated based on the count contents of the counting means, and only the driver corresponding to the number of groups is driven to print. A printing control method for thermal printers featuring:
JP58178200A 1983-09-28 1983-09-28 Printing-controlling system for thermal printer Granted JPS6071277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58178200A JPS6071277A (en) 1983-09-28 1983-09-28 Printing-controlling system for thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58178200A JPS6071277A (en) 1983-09-28 1983-09-28 Printing-controlling system for thermal printer

Publications (2)

Publication Number Publication Date
JPS6071277A JPS6071277A (en) 1985-04-23
JPH0514619B2 true JPH0514619B2 (en) 1993-02-25

Family

ID=16044328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58178200A Granted JPS6071277A (en) 1983-09-28 1983-09-28 Printing-controlling system for thermal printer

Country Status (1)

Country Link
JP (1) JPS6071277A (en)

Also Published As

Publication number Publication date
JPS6071277A (en) 1985-04-23

Similar Documents

Publication Publication Date Title
US4400791A (en) Dot matrix printer with compressed character data storage
US3289576A (en) High speed printer with variable cycle control
US3899968A (en) Print media identification code
US4248147A (en) Control system for dot matrix line printer using one print element per character
JPH0514619B2 (en)
JPS5876282A (en) Bold-faced character print system for dot printer
JPS6319155Y2 (en)
JPH0481518B2 (en)
JPS6330155B2 (en)
US3390630A (en) High speed printing device employing bar printer and double width hammers
JP2645170B2 (en) Line printer printing method
JP2564513B2 (en) Printer control device
JPS599064A (en) Dot matrix printer
JPH0425145B2 (en)
KR910003595Y1 (en) Driving circuit for printer head
JPS5822440A (en) Printer for high-speed input data
JP2537394B2 (en) Print control method of serial dot printer
JPH0197661A (en) Control circuit for multi-head dot matrix printer
JPH0647301B2 (en) Charactor pattern generator
JPH0426311B2 (en)
JPS6134994B2 (en)
JPH07102715B2 (en) Printer
JPH0588675B2 (en)
JP2003291429A (en) Thermal head driver circuit
JPH0379371A (en) Printing control circuit