JPS6216156A - Apparatus for controlling printer - Google Patents

Apparatus for controlling printer

Info

Publication number
JPS6216156A
JPS6216156A JP60156221A JP15622185A JPS6216156A JP S6216156 A JPS6216156 A JP S6216156A JP 60156221 A JP60156221 A JP 60156221A JP 15622185 A JP15622185 A JP 15622185A JP S6216156 A JPS6216156 A JP S6216156A
Authority
JP
Japan
Prior art keywords
line
printing
lines
font
address
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.)
Pending
Application number
JP60156221A
Other languages
Japanese (ja)
Inventor
Munehisa Kato
統久 加藤
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP60156221A priority Critical patent/JPS6216156A/en
Publication of JPS6216156A publication Critical patent/JPS6216156A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/10Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers by matrix printers

Abstract

PURPOSE:To enable printing at every recordable region and to make it possible to perform high speed printing, by storing character data corresponding to the number of printable lines in a buffer memory and outputting the character data of each line to a serial head all together to perform printing. CONSTITUTION:When the order of (LF+CR) from a host computer 10 is received in a process for writing data in an image buffer memory 7, the received data is written in the address after the address of a second line. When only LF order is received when the value of the address counter 8 of the second line is (C1+n), the written data corresponding to the previous three lines remain between addresses C3-(C3+n) and, thereafter, regions of C3-C3+n are cleared by a DMA controller 6. Subsequently, an image is formed from the address of (C3+n+1) on the basis of the character data succeeding to the LF order and, from the address corresponding to each line of the image buffer memory 7, 15 bits of data corresponding to successive three lines in a vertical direction are simultaneously transferred to a printing control part 9 and the printing of three lines are simultaneously performed in a printing width and high speed printing can be performed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は複数のラインを一括して印字できるようにした
プリンタ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer control device that is capable of printing a plurality of lines at once.

〔背景技術〕[Background technology]

従来よりシリアルプリンタにあっては、1行単位で印字
を行ない、1行の印字が終了すると共にCR(キャリッ
ジ・リターン)命令を出してヘッドをホームポジション
に戻すと同時に、LF(ライン・フィード)命令を出し
て記録紙を1行分の幅を給紙し、引き続いて次のライン
を印字する構成がとられている。
Conventionally, serial printers print one line at a time, and when one line of printing is completed, a CR (carriage return) command is issued to return the head to the home position, and at the same time, the LF (line feed) The configuration is such that a command is issued to feed recording paper the width of one line, and then print the next line.

このような1行単位のプリンタを高速化しようとする場
合、例えば、感熱転写型にあっては加熱速度とヘッド送
り速度を高めることで対処することになるが、このよう
な対策のみでは高速化に限界がある。
If you are trying to speed up such a line-by-line printer, for example, in the case of a thermal transfer type, you will have to increase the heating speed and head feed speed, but these measures alone will not increase the speed. There are limits to

そこで、複数ラインを一括して印字することにより高速
化を図る方法が提案されている。例えば、3行分を一括
して同時に印字し、印字速度を約3倍に高速化しようと
するものである。
Therefore, a method has been proposed to increase printing speed by printing multiple lines at once. For example, three lines are printed at the same time to increase the printing speed by about three times.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、複数のラインを1捨印字しようとする場合、第
7図のような記録を行なうように際し、■ラインの印字
が終わる毎にLF命令を出し、CR命令を出さずに次の
ラインの印字を行なおうとすると、LP命令が出される
毎に記録用紙が1行分搬送されてしまうため、複数ライ
ンを印字する機能を備えていながら、実際には1行単位
の処理となり、高速性が生かせない不都合があった。
However, when trying to print multiple lines one by one, as shown in Figure 7, issue the LF command each time a line is finished printing, and then print the next line without issuing the CR command. If you try to do this, the recording paper will be transported one line each time an LP command is issued, so even though it has the ability to print multiple lines, it is actually processed one line at a time, making it difficult to take advantage of high speed. There were no inconveniences.

〔問題点を解決するための手段及び作用〕本発明は上記
に鑑みてなされたものであり、記録可能領域内にあって
LF命令が出される年に記録用紙が搬送されるのを防止
するため、記録可能領域に出されるLP命令を無視して
該領域の印字を一括して行なうようにしたプリンタ制御
装置を提供するものである。
[Means and effects for solving the problem] The present invention has been made in view of the above, and is intended to prevent recording paper from being conveyed in the year when the LF command is issued within the recordable area. The present invention provides a printer control device that ignores an LP command issued to a recordable area and prints in that area all at once.

〔実施例〕〔Example〕

以下、本発明によるプリンタ制御装置を詳細に説明する
Hereinafter, a printer control device according to the present invention will be explained in detail.

第1図は本発明によるプリンタ制御装置を示し、ホスト
コンピュータ10との間で所定の情報交換(BUSY信
号等の送出他)を行なうと共にホストコンビュ・−夕よ
りデータを受信するインターフェイス1と、制御用メモ
リ3に格納されたプログラムに従って受信したデータを
解析し当該データが印字データである場合にフォントメ
モリ4から対応するイメージデータを読み出してイメー
ジバッファメモリ7に書き込むCPU2と、ROMまた
はRAMによって構成されてCPU2を動作させるため
のプログラムが格納された制御用メモリ3と、各種の文
字、記号、数字等のデータが格納されたフォントメモリ
4と、LF命令が出された際にデータをDMA転送によ
ってイメージバ・ソファメモリ7へ転送するためのアド
レスがセットされるI10ポート5と、DMA転送の制
御を行うDMAコントローラ6と、フォントメモリ4よ
り読み出された複数ライン分(例えば3行分)のデータ
が書き込まれるイメージバッファメモリ7と、フォント
メモリ4からのデータが転送されるイメージバッファメ
モリ7のアドレスがセットされると共に1バイトの書き
込み毎にカウント値を歩進するアドレスカウンタ8と、
所定の順序でイメージデータを読み出してサーマルヘッ
ド20へ転送し、印字パルスを加えて記録を行なわせる
印字制御部9より構成される。
FIG. 1 shows a printer control device according to the present invention, which includes an interface 1 that exchanges predetermined information (sending of BUSY signals, etc.) with a host computer 10, and receives data from a host computer 10, and a control device. The CPU 2 analyzes the received data according to a program stored in the font memory 3, reads the corresponding image data from the font memory 4 when the data is print data, and writes it to the image buffer memory 7, and a ROM or RAM. A control memory 3 stores programs for operating the CPU 2, a font memory 4 stores data such as various characters, symbols, numbers, etc. When an LF command is issued, data is transferred by DMA transfer. I10 port 5 where the address for transfer to image bar sofa memory 7 is set, DMA controller 6 which controls DMA transfer, and data for multiple lines (for example, 3 lines) read from font memory 4. an image buffer memory 7 to which the data is written, and an address counter 8 which sets the address of the image buffer memory 7 to which data from the font memory 4 is transferred and increments a count value every time one byte is written.
It is composed of a print control section 9 that reads image data in a predetermined order, transfers it to the thermal head 20, and applies a print pulse to perform recording.

フォントメモリ4に格納される1つのフォントは、例え
ば、第2図に示すように40ドツトX40ドツトのドツ
ト数を5バイトで処理している。即ち1文字がθ〜19
9のアドレスで表わされ、第3図に示すように1ライン
分が連続的にイメージバ、。
One font stored in the font memory 4 has, for example, 40 dots x 40 dots processed in 5 bytes, as shown in FIG. That is, one character is θ~19
9 addresses, and as shown in FIG. 3, one line is continuously image barred.

ファメモリ7に格納される。イメージバッファメモリ7
は記録紙の主走査方向の長さをカバーしうるだけの容量
を有している。
The data is stored in the file memory 7. Image buffer memory 7
has a capacity sufficient to cover the length of the recording paper in the main scanning direction.

以上の構成において、記録可能領域(ヘッド20による
記録ライン数)が6ライン/インチで2インチ幅の性能
を有し、3ラインの同時印字が可能である場合を例にし
て、以下説明する。ここでアドレスカウンタ8には、第
4図に示す各ラインの先頭アドレスCI、Cz 、C3
の各々に初期値が固定されている。ホストコンピュータ
10から1ライン目のデータとして、例えば、A、B、
C・・・・・・・・・の如きアルファベットが送られて
来たとすると、CPUはインターフェイス1より取り込
んだデータに対応するイメージデータをフォントメモリ
4から読み出して順次イメージバッファメモリ7のアド
レスカウンタ8によって指定されるアドレスへ書き込ん
でいく。このとき1バイトを書き込む毎にカウント値を
+1ずつ加算する。このようにイメージバッファメモリ
7へデータを書き込む過程でホストコンピュータ10か
らの(LF+CR)の命令を受信したとすると、以後に
受信したデータはイメージバッファメモリ7の2ライン
目のアドレス(先頭アドレスC2)以後へ書き込んで行
く。以後同様に2回目の(LF+CR)命令が出た際に
は、以後に受信するデータを先頭アドレスC3から書き
込んでいく。
In the above configuration, an example will be described in which the recordable area (the number of lines recorded by the head 20) has a performance of 6 lines/inch and a width of 2 inches, and simultaneous printing of 3 lines is possible. Here, the address counter 8 contains the starting addresses CI, Cz, C3 of each line shown in FIG.
The initial value is fixed for each. As the first line data from the host computer 10, for example, A, B,
If an alphabet such as C........ is sent, the CPU reads image data corresponding to the data imported from the interface 1 from the font memory 4 and sequentially stores it in the address counter 8 of the image buffer memory 7. Write to the address specified by. At this time, the count value is incremented by +1 each time one byte is written. If the command (LF+CR) is received from the host computer 10 in the process of writing data to the image buffer memory 7 in this way, the data received thereafter will be written to the address of the second line of the image buffer memory 7 (starting address C2). I'll write it down later. Thereafter, when the second (LF+CR) command is issued in the same way, data to be received thereafter is written starting from the first address C3.

ここで、データの書き込み過程、例えば、2行目のアド
レスカウンタ8のイ直が(ct +n)のときにLF命
令のみを受信したとする。この場合、3行目の書き込み
処理は(C3+n+1)のアドレスから行なうことにな
る(第7図より明らかなように、行が変わるのみで水平
方向の1行完成は連続するため)。ところが、C1〜(
C,I+n)アドレス間には今回は書き込まないものの
、前回の3ライン分の書き込みの際のデータが残された
ままになっているためにクリアする必要がある。
Here, it is assumed that only the LF command is received during the data writing process, for example, when the value of the address counter 8 in the second row is (ct+n). In this case, the writing process for the third row will be performed from the address (C3+n+1) (as is clear from FIG. 7, one row in the horizontal direction is completed consecutively by only changing rows). However, C1~(
C, I+n) address is not written this time, but the data from the previous three lines of writing remains and needs to be cleared.

そこで、CPU2はメモリ3内のプログラムに従って、
アドレスカウンタ8の内容を読んでクリアすべきアドレ
ス範囲を算出し、DMAコントローラ6にスタートアド
レス及び転送バイト数をセントする。また、I10ボー
ト5に対しては0をセット(このセットはC3〜C,+
nまでの領域を白で埋めるか黒で埋めるかを指定するた
めのものであって、0=白、1=黒となる)とする。こ
のうちCPUはDMAをenableにし、DMAコン
トローラ6によってイメージバッファメモリ7のC3〜
C,+nの領域をクリアする。ついで、LF命令に引き
続く文字データから(C++n+l)のアドレスよりイ
メージを作成してゆき、(CR+LF)命令を受信した
ときに、イメージバッファメモリ7の各々のラインに相
当するアドレスから、順次第5図に示すように3ライン
分の縦方向のデータ15バ、イトを同時に印字制御部9
へ第5図のように転送して順次印字を行なうことにより
、第6図に示すように、印字幅β内に3行の印字が同時
になされ、高速印字を行なうことができる。
Therefore, the CPU 2 follows the program in the memory 3.
The content of the address counter 8 is read to calculate the address range to be cleared, and the start address and number of transferred bytes are sent to the DMA controller 6. Also, set 0 for I10 boat 5 (this set is C3 to C, +
This is used to specify whether to fill the area up to n with white or black, where 0=white and 1=black). Among these, the CPU enables the DMA and uses the DMA controller 6 to transfer data from C3 to C3 of the image buffer memory 7.
Clear the area C, +n. Next, an image is created from the address (C++n+l) from the character data following the LF command, and when the (CR+LF) command is received, the image is created sequentially from the address corresponding to each line of the image buffer memory 7 as shown in FIG. As shown in the figure, 15 bytes and bytes of vertical data for 3 lines are simultaneously printed by the print control unit 9.
As shown in FIG. 5, three lines are simultaneously printed within the printing width β, as shown in FIG. 6, and high-speed printing is possible.

尚、以上実施例においては、I10ポート5、DMAコ
ントローラ6及びアドレスカウンタ8の各々をハードウ
ェアによって構成する例を示したが、これらの一部また
は全部をソフトウェアによって実現することも可能であ
る。また、ヘッドとしてサーマルヘッドを例にしたが、
シリアルに印字する他の形式の印字ヘッドにも適用でき
ることは勿論である。
In the above embodiment, an example was shown in which each of the I10 port 5, DMA controller 6, and address counter 8 was configured by hardware, but it is also possible to implement some or all of these by software. Also, although a thermal head was used as an example of the head,
Of course, the present invention can also be applied to other types of print heads that print serially.

〔発明の効果〕〔Effect of the invention〕

以上より明らかなように本考案のプリンタ制御装置によ
れば、バッフオメモリに印字可能な行数分の文字データ
を記憶させたのち、その各行の文字データを一斉にシリ
アルにヘッドへ出力し印字を行なうようにしたため、記
録可能領域ごとの印字が可能となり、高速印字を行なう
ことができる。
As is clear from the above, according to the printer control device of the present invention, character data for the number of lines that can be printed is stored in the buffer memory, and then the character data for each line is serially output to the head for printing. As a result, printing can be performed for each recordable area, and high-speed printing can be performed.

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

第1図は本発明の一実施例を示すブロック図、第2図は
フォント構成の一例を示す説明図、第3図は本発明に係
るイメージバッファメモリの概略構成図、第4図はイメ
ージバッファメモリの格納状況を示す構成図、第5図は
イメージバッファメモリからの印字データ読み出し説明
図、第6図は印字の一例を示す説明図、第7図は複数ラ
インの一括印字の説明図。 符号の説明 1 −・・−・−インターフェイス、 2−・−・CPU、    3−・−制御用メモリ、4
 ・−・・・フォントメモリ、5−・・−・・I10ポ
ート、6 −−−−−−− D M Aコントローラ、
7−・−・−・イメージバッファメモリ、8 −−−−
−一・−アドレスカウンタ、9−・・−・・印字制御部
、 10−−−−−一・ホストコンピュータ。 特許出願人  富士ゼロックス株式会社代理人 弁理士
   松 原 伸 2 同 同  村木清司 同 同  平田忠雄 同 同  上島淳− 第1図 第2図 第、3図 第4図 第5図 第6図 第7図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of a font configuration, FIG. 3 is a schematic configuration diagram of an image buffer memory according to the present invention, and FIG. 4 is an image buffer memory. FIG. 5 is an explanatory diagram of reading print data from the image buffer memory; FIG. 6 is an explanatory diagram of an example of printing; and FIG. 7 is an explanatory diagram of batch printing of multiple lines. Explanation of symbols 1 -...-Interface, 2--CPU, 3--Control memory, 4
---Font memory, 5---I10 port, 6 ------ DMA controller,
7−・−・−・Image buffer memory, 8 −−−−
-1.Address counter, 9-..print control unit, 10.1.Host computer. Patent applicant Fuji Xerox Co., Ltd. Agent Patent attorney Shin Matsubara 2 Seiji Muraki Tadao Hirata Jun Ueshima - Figure 1 Figure 2, Figure 3 Figure 4 Figure 5 Figure 6 Figure 7

Claims (3)

【特許請求の範囲】[Claims] (1)入力した文字コードに対応したフォントをフォン
トメモリから読み出して印字するシリアルプリンタにお
いて、 複数行の印字文字に対応した複数の印字ドットを有する
印字ヘッドと、 前記複数行の印字文字に対応したフォントを各行毎に記
憶する記憶領域を有したバッファメモリと、 前記記憶領域に前記各行毎のフォントを記憶させるとき
、予め定めた次ライン移行信号に基づいて前記各行毎の
フォントを行順位に従って対応する記憶領域に記憶させ
、前記複数行にわたるフォント記憶操作が終了した後前
記複数の印字ドットの印字操作を同時に制御する制御部
を設けたことを特徴とするプリンタ制御装置。
(1) In a serial printer that reads a font corresponding to the input character code from the font memory and prints it, there is a print head that has multiple print dots that correspond to multiple lines of print characters, and a print head that has multiple print dots that correspond to the multiple lines of print characters. a buffer memory having a storage area for storing fonts for each line; and when storing the font for each line in the storage area, the font for each line is handled according to the line order based on a predetermined next line transition signal; 1. A printer control device, comprising: a control unit that stores the font in a storage area and simultaneously controls printing operations for the plurality of print dots after the font storage operation for the plurality of lines is completed.
(2)前記制御部が、前記次ライン移行信号としてキャ
リッジをホームポジションに戻すCR信号および記録紙
を1行分送るLF信号に基づいて制御操作を行なう特許
請求の範囲第1項記載のプリンタ制御装置。
(2) The printer control according to claim 1, wherein the control unit performs control operations based on a CR signal that returns the carriage to the home position and an LF signal that advances the recording paper by one line as the next line transition signal. Device.
(3)前記制御部が、LF信号だけを受けたとき次の行
の先頭アドレスと書き込み開始アドレス間の記憶内容を
クリアする制御操作を行なう特許請求の範囲第1項記載
のプリンタ制御装置。
(3) The printer control device according to claim 1, wherein the control section performs a control operation to clear the stored contents between the start address of the next line and the write start address when receiving only the LF signal.
JP60156221A 1985-07-16 1985-07-16 Apparatus for controlling printer Pending JPS6216156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60156221A JPS6216156A (en) 1985-07-16 1985-07-16 Apparatus for controlling printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60156221A JPS6216156A (en) 1985-07-16 1985-07-16 Apparatus for controlling printer

Publications (1)

Publication Number Publication Date
JPS6216156A true JPS6216156A (en) 1987-01-24

Family

ID=15623001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60156221A Pending JPS6216156A (en) 1985-07-16 1985-07-16 Apparatus for controlling printer

Country Status (1)

Country Link
JP (1) JPS6216156A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6487266A (en) * 1987-09-29 1989-03-31 Sharp Kk High-speed printing system
JPH01210354A (en) * 1988-02-18 1989-08-23 Canon Inc Serial recording
JPH04101866A (en) * 1990-08-22 1992-04-03 Oki Electric Ind Co Ltd Serial printer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6487266A (en) * 1987-09-29 1989-03-31 Sharp Kk High-speed printing system
JPH01210354A (en) * 1988-02-18 1989-08-23 Canon Inc Serial recording
JPH04101866A (en) * 1990-08-22 1992-04-03 Oki Electric Ind Co Ltd Serial printer

Similar Documents

Publication Publication Date Title
US4824266A (en) Apparatus and method for storing regular and irregular characters
JPS5938629B2 (en) line spacing controller
JPS6216156A (en) Apparatus for controlling printer
US5570464A (en) Controller for a recording apparatus
US4623978A (en) Print control apparatus having line buffer
JPS6312291B2 (en)
JPH08202510A (en) Method for transmitting recording data to recorder
JPH0616764Y2 (en) Dot matrix printer
KR900002230B1 (en) Printer controller
JP3098435B2 (en) Control system for multiple thermal heads
JP4038639B2 (en) Printer and its image data transfer method
US20020140979A1 (en) Record control apparatus and recording apparatus
JPS6055313B2 (en) character printing device
JP3809280B2 (en) Recording method and apparatus
JPH0825313B2 (en) Print control device
JPH0357484Y2 (en)
JPS5931752B2 (en) printing device
JP4765590B2 (en) Printing apparatus and control method thereof
JP2836026B2 (en) Printing control device
JPS62240553A (en) Recorder
JPS6137441A (en) High-speed printing processing system of dot printer
JPS61274955A (en) Apparatus for outputting document
JPS61106262A (en) Printer
JPS62290546A (en) Recorder
JPH0525673B2 (en)