JPH0740604A - Method of developing character - Google Patents

Method of developing character

Info

Publication number
JPH0740604A
JPH0740604A JP5190567A JP19056793A JPH0740604A JP H0740604 A JPH0740604 A JP H0740604A JP 5190567 A JP5190567 A JP 5190567A JP 19056793 A JP19056793 A JP 19056793A JP H0740604 A JPH0740604 A JP H0740604A
Authority
JP
Japan
Prior art keywords
print
expansion
pointer
buffer
line
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
JP5190567A
Other languages
Japanese (ja)
Inventor
Hiromichi Takikita
博通 瀧北
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.)
Star Micronics Co Ltd
Original Assignee
Star Micronics 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 Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP5190567A priority Critical patent/JPH0740604A/en
Publication of JPH0740604A publication Critical patent/JPH0740604A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To embody the improvement of a whole printing speed by minimizing a stopping time of a print carriage. CONSTITUTION:The development of print data A-R of n-th line in a print buffer 1 indicated by (b) has been finished, that of print data S-Z of n+1-th line in a print buffer 2 indicated by (c) has been finished. Printing of the print data A-I from the left and of the print buffer 1, i.e., a lower address to a print pointer indicating an intermediate address on a paper has been finished as indicated by (a). The area in which the print data A-I was developed in the print buffer 1 becomes again the area in which new data can be developed so that print data 1, 2,... of n+2-th line is developed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ワイヤドットプリン
タ、インクジェットプリンタ、感熱プリンタ、電子写真
プリンタなど、単票紙や連続用紙上に漢字、英数字、記
号などの文字を行単位でドットパターンに展開して、印
字記録を行うための文字展開方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention forms a dot pattern of characters such as Chinese characters, alphanumeric characters and symbols on a cut sheet or continuous paper such as a wire dot printer, an ink jet printer, a thermal printer and an electrophotographic printer in a line unit. The present invention relates to a character expansion method for expanding and performing print recording.

【0002】[0002]

【従来の技術】従来の典型的なプリンタは、1行分のド
ットパターンを格納するための印字バッファを2つまた
はそれ以上備えており、このようなプリンタにおける文
字展開処理は、まず1行分の印字コードを第1の印字バ
ッファに展開した後、第1の印字バッファの印字動作と
並行して、次の行の印字コードを第2の印字バッファに
展開し、次に第2の印字バッファの印字動作と並行し
て、次の行の印字コードを第1または第3の印字バッフ
ァに展開し、以下、文字展開用のバッファと印字用のバ
ッファとを交互に切換えて印字を継続するものである。
2. Description of the Related Art A typical conventional printer is equipped with two or more print buffers for storing dot patterns for one line, and character expansion processing in such a printer is performed for one line first. After the print code of No. is expanded to the first print buffer, the print code of the next line is expanded to the second print buffer in parallel with the printing operation of the first print buffer, and then the second print buffer. In parallel with the printing operation of, the print code of the next line is expanded in the first or third print buffer, and then the character expansion buffer and the printing buffer are alternately switched to continue printing. Is.

【0003】図15は、従来の文字展開方法の一例を示
すタイミングチャートである。印字バッファ1と印字バ
ッファ2の2つの印字バッファを備えたプリンタにおい
て、まず印字ヘッド等を搭載したキャリッジが前行の印
字動作を実行している期間に、印字バッファ1にドット
パターンから成る1行分の印字データを展開し、その展
開処理が終了して、その後キャリッジが停止して、キャ
リッジの再駆動に必要な所定時間を経過した時点で、印
字バッファ1に展開された印字データの印字動作を開始
する。この印字動作は、メインプログラムに対する割込
み処理で行われる。一方、メインプログラムは次行の印
字データを印字バッファ2に展開する。印字バッファ2
での展開が終了して、印字バッファ1の印字動作が終了
すると、再びキャリッジの再駆動が必要な所定時間、キ
ャリッジの駆動は停止する。このような動作を繰返すこ
とによって、2つの印字バッファによる連続印字が行わ
れる。
FIG. 15 is a timing chart showing an example of a conventional character expansion method. In a printer having two print buffers, print buffer 1 and print buffer 2, first, a line consisting of a dot pattern is printed in print buffer 1 during a period in which a carriage having a print head or the like is executing the printing operation of the preceding line. Minute print data is expanded, the expansion process is completed, the carriage is stopped after that, and when the predetermined time required for re-driving the carriage elapses, the print operation of the print data expanded in the print buffer 1 is performed. To start. This printing operation is performed by interrupt processing for the main program. On the other hand, the main program expands the print data of the next line in the print buffer 2. Print buffer 2
When the expansion of the print buffer 1 is completed and the printing operation of the print buffer 1 is completed, the driving of the carriage is stopped for a predetermined time period in which the carriage needs to be redriven again. By repeating such operations, continuous printing by the two print buffers is performed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
文字展開方法では、1つの印字バッファに1行分の展開
された印字データが対応するため、大きな記憶容量を持
つ印字バッファが必要になるという課題がある。
However, in the conventional character expansion method, since one line of print data corresponds to the expanded print data of one line, a print buffer having a large storage capacity is required. There is.

【0005】さらに、図16に示すように、多くの印字
データから成る(A)行の次に、僅かな印字データから
成る(B)行が来て、次に多くの印字データから成る
(C)行が来るという文章パターンが繰返される場合、
(B)行の印字が終了した時点からキャリッジの再駆動
所定時間を経過しても、次の(C)行の文字展開が終了
していないためにキャリッジの停止期間が長くなる現象
が発生する。
Further, as shown in FIG. 16, a line (A) consisting of a large amount of print data is followed by a line (B) consisting of a small amount of print data, and a line consisting of a large amount of print data (C). ) If the sentence pattern that a line comes is repeated,
Even if a predetermined time for re-driving the carriage elapses from the time when the printing of the line (B) is completed, the carriage stop period becomes long because the character expansion of the next line (C) is not completed. .

【0006】図17は、図16の文章パターンにおける
文字展開動作を示すタイミングチャートである。まず、
キャリッジが(A)行の印字を実行している期間に、印
字バッファ1に(B)行の印字データを展開する。この
とき(B)行のデータ量が少ないため、展開が短時間で
終了する。次に、キャリッジの再駆動所定時間を経過し
た後、印字バッファ1で展開された(B)行の印字動作
を行うとともに、印字バッファ2に(C)行の印字デー
タを展開する。このとき(B)行のデータ量が少ないた
め、印字が短時間で終了するが、次の(C)行のデータ
量は多いため、展開するのに要する時間が長くなる。し
たがって、(B)行の印字終了後のキャリッジの再駆動
所定時間が経過しても、(C)行の展開が終了していな
いと、キャリッジが必要以上に停止してしまう。
FIG. 17 is a timing chart showing a character expanding operation in the sentence pattern of FIG. First,
While the carriage is printing the (A) line, the print data of the (B) line is expanded in the print buffer 1. At this time, since the amount of data in the row (B) is small, the expansion is completed in a short time. Next, after the elapse of a predetermined time for re-driving the carriage, the printing operation of the (B) line expanded in the print buffer 1 is performed, and the print data of the (C) line is expanded in the print buffer 2. At this time, since the data amount of the (B) line is small, the printing is completed in a short time, but since the data amount of the next (C) line is large, the time required for expansion becomes long. Therefore, even if a predetermined time for re-driving the carriage after the printing of the (B) line has elapsed, if the development of the (C) line is not completed, the carriage will stop more than necessary.

【0007】このように、信号処理系に比べて低速なキ
ャリッジの動作を可能な限り停止させないように制御す
ることが、プリンタの印字速度向上の点から重要である
が、印字データの量によってキャリッジの停止時間が伸
縮するのは使用者に違和感を与えるとともに、全体の印
字スループットが低下するという課題がある。
As described above, it is important to control the operation of the carriage, which is slower than that of the signal processing system, so as not to stop the operation of the carriage as much as possible in order to improve the printing speed of the printer. The expansion and contraction of the stop time causes the user to feel uncomfortable, and there is a problem that the overall print throughput is reduced.

【0008】本発明の目的は、前述した課題を解決する
ため、印字キャリッジの停止時間を極力少なくして、全
体の印字速度向上を図ることができる文字展開方法を提
供することである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a character expanding method capable of improving the overall printing speed by minimizing the stop time of the print carriage in order to solve the above-mentioned problems.

【0009】[0009]

【課題を解決するための手段】本発明は、一連の印字コ
ードを格納した第1記憶手段から、印字コードを順次取
出す工程と、各印字コードに対応したドットパターンを
予め記憶した第2記憶手段から、当該印字コードに対応
するドットパターンを取出す工程と、取出された当該ド
ットパターンを、1印字行分のドットパターンを格納す
るための第3記憶手段へ格納する工程とを具備する文字
展開方法において、第3記憶手段の格納領域に未印字ド
ットパターンが残っている状態で、当該未印字ドットパ
ターンの格納領域以外の領域に、別の印字行をドットパ
ターンに展開して順次格納することを特徴とする文字展
開方法である。
According to the present invention, a step of sequentially taking out print codes from a first storage means in which a series of print codes is stored, and a second storage means in which a dot pattern corresponding to each print code is stored in advance. To extract a dot pattern corresponding to the print code, and storing the extracted dot pattern in a third storage means for storing a dot pattern for one print line. In the above, in a state where the unprinted dot pattern remains in the storage area of the third storage means, another print line is expanded into a dot pattern and sequentially stored in an area other than the storage area of the unprinted dot pattern. It is a character expansion method that is a feature.

【0010】また本発明は、前記未印字ドットパターン
が第3記憶手段の中間番地から下位番地または上位番地
に向かって順次残っている場合、別の印字行のドットパ
ターンを第3記憶手段の上位番地または下位番地から前
記中間番地に向かって順次格納することを特徴とする。
Further, according to the present invention, when the unprinted dot pattern remains in order from the middle address to the lower address or the higher address of the third storage means, the dot pattern of another printed line is stored in the upper storage of the third storage means. It is characterized in that the data is sequentially stored from the address or the lower address toward the intermediate address.

【0011】[0011]

【作用】本発明に従えば、1印字行分のドットパターン
を格納するための第3記憶手段の格納領域に未印字ドッ
トパターンが残っている状態で、当該未印字ドットパタ
ーンの格納領域以外の領域に、別の印字行をドットパタ
ーンに展開して順次格納することによって、印字キャリ
ッジが展開処理の終了を待つ停止時間を極力少なくする
ことが可能になるとともに、第3記憶手段の記憶空間の
有効利用を図ることができる。
According to the present invention, in the state where the unprinted dot pattern remains in the storage area of the third storage means for storing the dot pattern for one print line, the area other than the storage area for the unprinted dot pattern is stored. By expanding another print line into a dot pattern and sequentially storing it in the area, it is possible to minimize the stop time during which the print carriage waits for the completion of the expansion process, and at the same time, in the storage space of the third storage means. It can be effectively used.

【0012】また、未印字ドットパターンが第3記憶手
段の中間番地から上位番地へ向かって順次残っている場
合、別の印字行のドットパターンを第3記憶手段の下位
番地から当該中間番地に向かって順次格納することによ
って、印字バッファから印字データを読み出す方向と展
開方向とが同じになり、印字終了領域が増えるにつれて
展開処理を連続的に行うことが可能になる。また、未印
字ドットパターンが第3記憶手段の中間番地から下位番
地に向かって順次残っている場合、別の印字行のドット
パターンを第3記憶手段の上位番地から当該中間番地に
向かって順次格納することによって、前述と同様に、印
字バッファから印字データを読み出す方向と展開方向と
が同じになり、印字終了領域が増えるにつれて展開処理
を連続的に行うことが可能になる。したがって、文字展
開処理を円滑に実行することができる。
When unprinted dot patterns remain in sequence from the intermediate address of the third storage means to the higher address, the dot pattern of another print line is moved from the lower address of the third storage means to the intermediate address. Sequentially storing the data in the same direction as the read direction of the print data from the print buffer, and the expansion process can be continuously performed as the print end area increases. When the unprinted dot patterns remain in sequence from the middle address to the lower address of the third storage means, the dot patterns of different print lines are sequentially stored from the higher address of the third storage means toward the intermediate address. By doing so, similarly to the above, the direction in which the print data is read from the print buffer is the same as the expansion direction, and the expansion processing can be continuously performed as the print end area increases. Therefore, the character expansion process can be executed smoothly.

【0013】[0013]

【実施例】図1は、本発明に係る文字展開方法が適用可
能なプリンタの電気的構成の一例を示すブロック図であ
る。このプリンタは、所定のプログラムに従ってデータ
転送やデータ演算などのデータ処理を行うMPU(マイ
クロプロセッサユニット)3と、MPU3に対して所定
の周期で割込み信号を出力するプログラマブルタイマ4
と、MPU3の制御プログラムやデータを格納するため
のプログラムROM(Read Only Memory)5と、印字コ
ードに対応したドットパターンを記憶するための文字パ
ターンROM(Character Generator)6と、MPU3の
プログラム動作に従って発生する各種データを記憶する
ためのRAM(Random Access Memory)7と、プリント
ヘッド10aを持つ印字機構10および駆動回路9と接
続された入出力回路8と、これらの間でデータを転送す
るためのバス11と、コンピュータなどの外部のホスト
装置11から印字コマンドや印字コードを受取るための
インタフェイス12などで構成されている。
FIG. 1 is a block diagram showing an example of the electrical construction of a printer to which the character expansion method according to the present invention can be applied. This printer includes an MPU (microprocessor unit) 3 that performs data processing such as data transfer and data calculation according to a predetermined program, and a programmable timer 4 that outputs an interrupt signal to the MPU 3 at a predetermined cycle.
A program ROM (Read Only Memory) 5 for storing a control program and data for the MPU 3, a character pattern ROM (Character Generator) 6 for storing a dot pattern corresponding to a print code, and a program operation of the MPU 3 A RAM (Random Access Memory) 7 for storing various generated data, an input / output circuit 8 connected to a printing mechanism 10 having a print head 10a and a drive circuit 9, and a data transfer between them. It comprises a bus 11 and an interface 12 for receiving print commands and print codes from an external host device 11 such as a computer.

【0014】RAM7には、ホスト装置11からインタ
フェイス12を介して送られる印字制御コードや文字コ
ードなどの受信データを格納するための受信バッファ
と、印字すべき文字の実寸を示す文字ドット列数や文字
間スペースの実寸を示すスペースドット列数などの、印
字コードから後述の印字バッファ1および印字バッファ
2にドットイメージ展開するのに必要なデータを格納す
るためのコンディショナ情報格納エリアと、1印字行分
のドットパターンを格納するための印字バッファ1と、
印字バッファ1における展開処理の開始位置を示す展開
先頭アドレス、展開処理の終了位置を示す展開終了アド
レス、展開処理の方向が右向きか左向きかを示す展開ポ
インタ方向、ならびに印字バッファ1に格納されたドッ
トパターンを用紙に印字する際の印字左端位置および印
字右端位置等のデータを格納するための展開パラメータ
格納エリア1と、印字バッファ1および展開パラメータ
格納エリア1と同じ構成であって別の印字行を展開する
ための印字バッファ2および展開パラメータ格納エリア
2と、印字バッファ1または印字バッファ2における現
在の展開位置を示す展開ポインタおよび現在の印字位置
を示す印字ポインタと、印字ポインタの方向を示す読出
し方向フラグと、プリントヘッド10aの印字方向を示
す印字方向フラグと、その他の記憶エリアなどが設けら
れる。
The RAM 7 has a receiving buffer for storing received data such as a print control code and a character code sent from the host device 11 through the interface 12, and a number of character dot rows indicating the actual size of a character to be printed. And a conditioner information storage area for storing the data necessary for expanding the dot image from the print code to the print buffer 1 and print buffer 2 to be described later, such as the number of space dot rows indicating the actual size of the space between characters and 1 A print buffer 1 for storing dot patterns for print lines,
The expansion start address indicating the start position of the expansion process in the print buffer 1, the expansion end address indicating the end position of the expansion process, the expansion pointer direction indicating whether the direction of the expansion process is rightward or leftward, and the dots stored in the print buffer 1. An expansion parameter storage area 1 for storing data such as a print left end position and a print right end position when a pattern is printed on paper, and a print buffer 1 and an expansion parameter storage area 1 have the same configuration and have different print lines. The print buffer 2 and the expansion parameter storage area 2 for expansion, the expansion pointer indicating the current expansion position in the print buffer 1 or the print buffer 2 and the print pointer indicating the current print position, and the reading direction indicating the direction of the print pointer Flag and print direction flag indicating the print direction of the print head 10a , And other storage areas are provided.

【0015】図2は、本発明に係る文字展開方法が適用
可能なプリンタの機械的構成の一例を示す概略図であ
る。このプリンタは、用紙34の幅方向に沿って往復運
動を行うキャリッジ32と、複数の印字ワイアを有する
プリントヘッド10aと、印字ワイヤの衝撃によって用
紙34にインクを転写するインクリボン33と、用紙3
4を所定量ずつ搬送するプラテン35と、キャリッジ3
2の往復運動を案内するガイドステー36,37と、キ
ャリッジ32と連結した駆動ベルト38と、駆動ベルト
38を支持するプーリ39,40と、プーリ40を回転
駆動するためのキャリッジモータ41などを備えてお
り、筺体に取付けられたフォトセンサ42がキャリッジ
32に取付けられた遮光板31を検知することによっ
て、キャリッジ32のホームポジション43を検出して
いる。
FIG. 2 is a schematic view showing an example of a mechanical structure of a printer to which the character expanding method according to the present invention can be applied. This printer includes a carriage 32 that reciprocates along the width direction of the paper 34, a print head 10a having a plurality of print wires, an ink ribbon 33 that transfers ink to the paper 34 by the impact of a print wire, and the paper 3
4 and the carriage 3
The guide stays 36 and 37 for guiding the reciprocating movement of the two, the drive belt 38 connected to the carriage 32, the pulleys 39 and 40 supporting the drive belt 38, the carriage motor 41 for rotationally driving the pulley 40, and the like. The photo sensor 42 attached to the housing detects the home position 43 of the carriage 32 by detecting the light shielding plate 31 attached to the carriage 32.

【0016】図3は、本発明の一実施例である文字展開
方法の動作を示すための機能ブロック図である。印字位
置制御手段21は図1に示した受信バッファに格納され
た一連の印字コードを分析して、印字バッファに展開す
べき実データと展開対象とならないデータ、たとえば行
先頭または行後尾に位置するタブやスペース等の存在を
識別して、印字開始位置と印字終了位置を決定する。
FIG. 3 is a functional block diagram showing the operation of the character expansion method which is an embodiment of the present invention. The print position control means 21 analyzes a series of print codes stored in the receive buffer shown in FIG. 1 and locates the actual data to be expanded in the print buffer and the data not to be expanded, for example, the line head or the line tail. By identifying the presence of tabs, spaces, etc., the print start position and print end position are determined.

【0017】印字バッファ切替え手段22は、印字コー
ドをドットパターンに展開する際、2つの印字バッファ
のうちどちらの印字バッファが使用可能であるかを判断
する。なお、印字バッファ1および印字バッファ2は交
互に使用するのが原則である。
The print buffer switching means 22 determines which of the two print buffers can be used when the print code is developed into a dot pattern. In principle, the print buffer 1 and the print buffer 2 are used alternately.

【0018】印字ポインタカウンタ23は、印字バッフ
ァ1または印字バッファ2上に展開された印字データの
中で、プリントヘッド10aが印字している現在位置を
印字ポインタとして定義し、その印字ポインタの数値を
記憶する。
The print pointer counter 23 defines, as a print pointer, the current position where the print head 10a is printing in the print data expanded on the print buffer 1 or the print buffer 2, and the numerical value of the print pointer is defined. Remember.

【0019】印字ポインタ方向判断手段24は、印字位
置制御手段21によって決定された印字開始位置と印字
終了位置から、プリントヘッド10aが印字を実行する
ための最短移動方向およびその印字方向を決定し、その
とき印字ポインタが印字バッファ上を1つずつ増加する
インクリメントで移動するのか、1つずつ減少するデク
リメントで移動するのかを判断する。
The print pointer direction determining means 24 determines the shortest movement direction and the print direction for the print head 10a to perform printing from the print start position and print end position determined by the print position control means 21. At this time, it is determined whether the print pointer moves on the print buffer in increments of one increment or in decrements of one increment.

【0020】展開ポインタカウンタ25は、印字バッフ
ァ1または印字バッファ2に展開中の印字データの最後
の位置を展開ポインタとして定義し、その展開ポインタ
の数値を記憶する。
The expansion pointer counter 25 defines the last position of the print data being expanded in the print buffer 1 or the print buffer 2 as the expansion pointer, and stores the numerical value of the expansion pointer.

【0021】展開ポインタ方向判断手段26は、印字ポ
インタ方向判断手段24で決定した印字ポインタの移動
方向に基づいて、印字バッファ1または印字バッファ2
の両端のどちらから展開処理が可能であるかを判断す
る。なお、展開ポインタの移動方向と印字ポインタの移
動方向は同一となる。
The expansion pointer direction judging means 26 determines the print buffer 1 or the print buffer 2 based on the moving direction of the print pointer determined by the print pointer direction judging means 24.
It is determined from which of the two ends the expansion processing is possible. The moving direction of the expansion pointer and the moving direction of the print pointer are the same.

【0022】ポインタ比較制御手段27は、印字バッフ
ァ1または印字バッファ2に展開された印字データのう
ち、印字が終了して空いた印字バッファ領域を判断する
ために、印字ポインタカウンタ23の数値と展開ポイン
タカウンタ25の数値と比較して、印字バッファの空き
領域に新たな印字データの展開処理が可能であるかを判
断する。さらに、印字位置制御手段21で決定された印
字終了位置と印字ポインタが示す位置とを比較して、印
字終了位置に印字ポインタが追い付いた時点で印字終了
と判断し、印字バッファ切替え手段22によって印字バ
ッファ1または印字バッファ2の交互切換えを行う。
The pointer comparison control means 27 develops with the numerical value of the print pointer counter 23 in order to determine the print buffer area which is empty after printing is completed in the print data expanded in the print buffer 1 or the print buffer 2. It is compared with the numerical value of the pointer counter 25 to determine whether or not new print data can be expanded in the empty area of the print buffer. Further, the print end position determined by the print position control means 21 is compared with the position indicated by the print pointer, and when the print pointer catches up with the print end position, the print end is judged, and the print buffer switching means 22 prints. The buffer 1 or the print buffer 2 is alternately switched.

【0023】印字データ展開手段28は、図1の受信バ
ッファ中の印字コードに基づいてポインタ比較制御手段
27により示される展開可能な領域にドットパターンか
ら成る印字データを展開する。
The print data expansion means 28 expands the print data consisting of dot patterns in the expandable area indicated by the pointer comparison control means 27 based on the print code in the reception buffer of FIG.

【0024】図4は、印字バッファ1および印字バッフ
ァ2における印字動作および展開処理を説明する概念図
である。図4(b)に示す印字バッファ1の格納領域
に、n行目の印字データ「A〜R」が展開を終えてお
り、図4(c)に示す印字バッファ2の格納領域にn+
1行目の印字データ「S〜Z」が展開を終えており、さ
らに、印字バッファ1の下位番地である左端から中間番
地を示す印字ポインタまでの印字データ「A〜I」は、
図4(a)に示すように、用紙上の印字が終了してお
り、引き続きプリントヘッドが図中右方の印字方向に移
動しながら、印字ポインタから右端の上位番地に向かっ
て残っている印字データ「J〜R」を印字しようとして
いる。このn行目の印字は、印字位置制御手段21によ
って決定された印字開始位置と印字終了位置に基づいて
プリントヘッドの印字方向が判断され、そしてその印字
方向に基づいて印字ポインタ方向判断手段24が印字ポ
インタの方向を判断し、印字ポインタカウンタ23をイ
ンクリメントするかデクリメントするかを決定する。こ
の印字ポインタの方向に基づいて、展開ポインタ方向判
断手段26が印字データの展開をどちらの方向へ行うか
を判断する。
FIG. 4 is a conceptual diagram for explaining the printing operation and the expansion processing in the print buffer 1 and the print buffer 2. The print data “A to R” on the n-th line has been developed in the storage area of the print buffer 1 shown in FIG. 4B, and n + is stored in the storage area of the print buffer 2 shown in FIG. 4C.
The print data “S to Z” on the first line has been expanded, and the print data “A to I” from the left end which is the lower address of the print buffer 1 to the print pointer indicating the intermediate address is
As shown in FIG. 4 (a), the printing on the paper is completed, and the print head continues to move in the printing direction to the right in the figure, while the printing remaining from the print pointer toward the upper right address is printed. Attempting to print data "JR". In the printing of the n-th line, the print direction of the print head is determined based on the print start position and the print end position determined by the print position control means 21, and the print pointer direction determination means 24 based on the print direction. The direction of the print pointer is judged to determine whether the print pointer counter 23 should be incremented or decremented. Based on the direction of the print pointer, the expansion pointer direction determination means 26 determines in which direction the print data is expanded.

【0025】図4に示すように、印字バッファ1で展開
された印字データ「A〜I」は印字を既に終えており、
その空いた領域が展開可能領域となって、n+2行目の
印字データ「12…」を展開することになる。したがっ
て印字ポインタの移動方向と展開ポインタの移動方向は
同一になる。
As shown in FIG. 4, the print data "A to I" expanded in the print buffer 1 has already been printed,
The empty area becomes the expandable area, and the print data “12 ...” On the (n + 2) th line is expanded. Therefore, the moving direction of the print pointer and the moving direction of the expansion pointer are the same.

【0026】このようにして展開方向を決定し、n+2
行目の展開を開始する一方、ポインタ比較制御手段27
が常に印字ポインタカウンタ23の値と展開ポインタカ
ウンタ25の値とを比較し、両者の移動方向がインクリ
メントとなる場合は(印字ポインタカウンタ)>(展開
ポインタカウンタ)が成立するように制御し、両者の移
動方向がデクリメントとなる場合は(印字ポインタカウ
ンタ)<(展開ポインタカウンタ)が成立するように制
御する。もし、ポインタ比較制御手段が、展開ポインタ
が印字ポインタカウンタに追い付いたと判断した場合、
すなわち両者の値が等しい場合、印字動作が進行して印
字ポインタが先へ進むまでは印字データ展開手段28は
展開処理を中断する。こうして印字ポインタが図中右方
へ移動してn行目の印字が終了し、かつ展開ポインタが
図中右方へ移動して空き領域にn+2行目の展開処理が
終了した時点で、印字バッファ切替え手段22が次の印
字動作または展開処理を行う印字バッファ2に切換え
る。
In this way, the expansion direction is determined, and n + 2
While starting the expansion of the line, the pointer comparison control means 27
Always compares the value of the print pointer counter 23 with the value of the expansion pointer counter 25, and if the moving directions of both are incremented, control is performed so that (print pointer counter)> (expansion pointer counter) is satisfied. When the moving direction of is decremented, control is performed so that (print pointer counter) <(expansion pointer counter) holds. If the pointer comparison control means determines that the expansion pointer has caught up with the print pointer counter,
That is, when the two values are equal, the print data expansion means 28 suspends the expansion process until the print operation proceeds and the print pointer advances. In this way, when the print pointer moves to the right in the figure and the printing of the nth line ends, and the expansion pointer moves to the right in the figure and the expansion processing of the n + 2th line ends in the empty area, the print buffer The switching means 22 switches to the print buffer 2 for the next print operation or expansion process.

【0027】図5は、印字ポインタおよび展開ポインタ
の移動方向が図4と逆である場合の動作を説明する概念
図である。図5(b)に示す印字バッファ1の格納領域
において、印字ポインタがデクリメントで移動し、図中
左方が印字方向となる場合は、展開ポインタもデクリメ
ントで移動し、印字バッファ1の上位番地である右端か
ら左方へ向かって、ドットパターンから成る印字データ
の展開が行われる。このようにデクリメントで展開する
処理を行う場合、図5(b)に示すように、ドットパタ
ーンが鏡像反転するように展開される。この様子を詳説
すると、図6(a)に示すように、文字「A」に対応す
るドットパターンが「abc」というビットデータであ
って、文字「B」に対応するドットパターンが「de
f」というビットデータであると仮定すると、図6
(b)に示すように、文字「AB」を印字バッファの格
納領域に左から右へインクリメント方向に展開する場合
は「abcdef」というドットパターンが作られ、一
方、図6(c)に示すように、文字「AB」を印字バッ
ファの格納領域に右から左へデクリメント方向に展開す
る場合、「fedcba」というドットパターンが作ら
れる。次に図6(d)に示すように、用紙の左端から文
字「AB」を印字する場合、図6(b)では印字ポイン
タが左から右へ移動することになり、図6(c)では印
字ポインタが右から左へ移動することになる。したがっ
て、このような文字展開方法を採用することによって、
印字バッファの空き領域が右側であっても左側であって
も、連続的なドットパターンを作成することができる。
FIG. 5 is a conceptual diagram for explaining the operation when the movement directions of the print pointer and the expansion pointer are opposite to those in FIG. In the storage area of the print buffer 1 shown in FIG. 5B, when the print pointer is decremented and the left side of the figure is the print direction, the expansion pointer is also decremented and the upper address of the print buffer 1 is moved. The print data consisting of dot patterns is expanded from a certain right end to the left. When the decrementing process is performed in this way, the dot pattern is developed so as to be mirror-inverted, as shown in FIG. To explain this in detail, as shown in FIG. 6A, the dot pattern corresponding to the character “A” is bit data “abc”, and the dot pattern corresponding to the character “B” is “de”.
Assuming that the bit data is “f”, FIG.
As shown in (b), when the character "AB" is expanded in the storage area of the print buffer in the increment direction from left to right, a dot pattern "abcdef" is created, while as shown in FIG. 6 (c). Further, when the character "AB" is expanded in the decrement direction from right to left in the storage area of the print buffer, a dot pattern "fedcba" is created. Next, as shown in FIG. 6D, when the character “AB” is printed from the left end of the paper, the print pointer moves from left to right in FIG. 6B, and in FIG. 6C. The print pointer will move from right to left. Therefore, by adopting such a character expansion method,
It is possible to create continuous dot patterns regardless of whether the free area of the print buffer is on the right side or the left side.

【0028】図7〜図12は、本発明の一実施例である
文字展開方法の動作を示すフローチャートである。図7
において、ステップa1から開始して、ステップa2に
おいて、図1のMPU3がホスト装置11から送られる
一連の印字コードをインタフェイス12を介して受信す
ると、ステップa3において、受信した印字コードを受
信バッファへ書込む。次に、受信バッファに格納された
印字コードを1文字単位でコンディショナ情報へ変換し
て中間コード化し、RAM7のコンディショナ情報格納
エリアに格納する。次にステップa5において、CR
(キャリッジリターン)またはLF(ラインフィード)
のコードを受信したかを調べることによって、1行分の
コンディショナ情報が生成できたか否かを判断して、1
行分が生成できていなければステップa2に戻って上述
のステップa2〜ステップa4を繰返す。1行分のコン
ディショナ情報が生成できれば、ステップa6へ移行し
て、イメージ展開処理を実行した後、ステップa2へ戻
る。
7 to 12 are flowcharts showing the operation of the character expansion method which is an embodiment of the present invention. Figure 7
In step a2, the MPU 3 of FIG. 1 receives a series of print codes sent from the host device 11 through the interface 12 in step a2. Then, in step a3, the received print codes are sent to the reception buffer. Write. Next, the print code stored in the reception buffer is converted into conditioner information on a character-by-character basis to form an intermediate code, which is stored in the conditioner information storage area of the RAM 7. Next, in step a5, CR
(Carriage return) or LF (Line feed)
It is judged whether the conditioner information for one line has been generated by checking whether the code of
If the line has not been generated, the process returns to step a2 and the above steps a2 to a4 are repeated. If the conditioner information for one line can be generated, the process proceeds to step a6 to execute the image development process, and then returns to step a2.

【0029】図8は、図7のステップa6におけるイメ
ージ展開処理の動作を示すフローチャートである。まず
ステップb1において、印字バッファ1または印字バッ
ファ2のうち使用可能な印字バッファを選択した後、ス
テップb2おいてこれから展開処理を行う印字バッファ
に、既に展開された印字データが存在するか否かを判断
して、存在しなければステップb3に移行して、展開ポ
インタの移動方向をインクリメント方向に設定して、選
択された印字バッファにおいて1行分の印字データを展
開処理した後、ステップb13へ移る。一方、ステップ
b2において、展開済みの印字データが存在する場合
は、ステップb4へ移行して、既に展開されている印字
データが現在印字中であるか否かを判断して、現在印字
中でなければデータ受信を続行するために、ステップb
5へ移行してインタフェイス12から印字コードを受信
した後、ステップb6において受信した印字コードを受
信バッファへ書込み、再びステップb4へ戻る。
FIG. 8 is a flow chart showing the operation of the image development processing in step a6 of FIG. First, in step b1, a usable print buffer is selected from the print buffer 1 and the print buffer 2, and then in step b2, it is checked whether or not the print data which has been expanded is present in the print buffer to be expanded. If it does not exist, the process proceeds to step b3, the moving direction of the expansion pointer is set to the increment direction, the print data for one line is expanded in the selected print buffer, and then the process moves to step b13. . On the other hand, if there is print data that has been developed in step b2, the process proceeds to step b4 to determine whether the print data that has already been developed is currently being printed, and the print data must be currently printed. Step b to continue data reception
After shifting to step 5 and receiving the print code from the interface 12, the print code received in step b6 is written in the reception buffer, and the process returns to step b4 again.

【0030】一方、ステップb4において現在印字中と
判断されれば、ステップb7へ移行して、RAM7中の
印字方向フラグを参照することによって印字ポインタの
移動方向がインクリメント方向かデクリメント方向かを
読込んだ後、次にステップb8において、印字ポインタ
の移動方向に基づいて展開ポインタの移動方向を同一に
なるように設定し、両者のポインタの移動方向がインク
リメント方向であれば、ステップb9に移行して、展開
ポインタのインクリメント方向へ1行分の展開処理を行
う。
On the other hand, if it is determined in step b4 that printing is currently in progress, the process proceeds to step b7, and the print direction flag in the RAM 7 is referenced to read whether the moving direction of the print pointer is the increment direction or the decrement direction. Then, in step b8, the moving directions of the expansion pointers are set to be the same based on the moving directions of the print pointers. If the moving directions of both pointers are increment directions, the process proceeds to step b9. , The expansion processing for one line is performed in the increment direction of the expansion pointer.

【0031】図9は、図8のステップb9におけるイン
クリメント方向の展開処理の動作を示すフローチャート
である。まずステップc1において、印字ポインタと展
開ポインタの大小を比較して、印字ポインタの方が大き
ければステップc2に移行して展開ポインタのインクリ
メント方向へ向かってコンディショナ情報に基づいて印
字データを展開した後、ステップc3において展開ポイ
ンタの値に1を加算してリターンする。ステップc1に
おいて印字ポインタが展開ポインタと等しいまたは小さ
い場合、データ受信を続行するためにステップc4に移
行してインタフェイス12から印字コードを受信した
後、ステップc5において受信した印字コードを受信バ
ッファへ書込みを行ってリターンする。
FIG. 9 is a flow chart showing the operation of the expansion processing in the increment direction in step b9 of FIG. First, in step c1, the size of the print pointer is compared with that of the expansion pointer. If the print pointer is larger, the process proceeds to step c2 and the print data is expanded in the increment direction of the expansion pointer based on the conditioner information. , In step c3, 1 is added to the value of the expansion pointer and the process returns. If the print pointer is equal to or smaller than the expansion pointer in step c1, the process proceeds to step c4 to continue data reception, the print code is received from the interface 12, and then the print code received in step c5 is written in the reception buffer. And then return.

【0032】図8に戻って、ステップb10において1
行分の展開処理が終了したか否かを判断して、終了して
いなければステップb9の展開処理を繰返す。1行分の
展開処理が終了していればステップb13へ移る。
Returning to FIG. 8, in step b10, 1
It is determined whether or not the line expansion processing has been completed. If not completed, the expansion processing of step b9 is repeated. If the expansion processing for one line is completed, the process proceeds to step b13.

【0033】一方、ステップb8において、印字ポイン
タおよび展開ポインタの移動方向がデクリメント方向で
あれば、ステップb11に移行して、展開ポインタのデ
クリメント方向へ1行分の展開処理を行う。
On the other hand, in step b8, if the moving directions of the print pointer and the expansion pointer are the decrement direction, the process proceeds to step b11, and the expansion processing for one line is performed in the decrement direction of the expansion pointer.

【0034】図10は、図8のステップb11における
デクリメント方向の展開処理の動作を示すフローチャー
トである。まずステップd1において、印字ポインタと
展開ポインタの大小を比較して、印字ポインタの方が小
さければステップd2に移行して展開ポインタのデクリ
メント方向へ向かってコンディショナ情報に基づいて印
字データを展開した後、ステップd3において展開ポイ
ンタの値に1を減算してリターンする。ステップd1に
おいて、印字ポインタが展開ポインタと等しいまたは大
きい場合、データ受信を続行するために、ステップd4
に移行してインタフェイス12から印字コードを受信し
た後、ステップd5において受信した印字コードを受信
バッファへ書込みを行ってリターンする。
FIG. 10 is a flow chart showing the operation of the decrement direction expansion processing in step b11 of FIG. First, in step d1, the size of the print pointer is compared with that of the expansion pointer. If the print pointer is smaller, the process proceeds to step d2, and the print data is expanded in the decrement direction of the expansion pointer based on the conditioner information. , In step d3, 1 is subtracted from the value of the expansion pointer and the process returns. If the print pointer is equal to or larger than the expansion pointer in step d1, step d4 is executed to continue data reception.
After receiving the print code from the interface 12 by shifting to step 1, the print code received in step d5 is written in the reception buffer and the process returns.

【0035】図8に戻って、次に印字バッファにおける
1行分の展開処理が終了すると、ステップb13におい
て、選択された印字バッファに関する展開パラメータす
なわち、図1に示す展開先頭アドレス、展開終了アドレ
ス、展開ポインタ方向、印字左端位置および印字右端位
置を選択された方の展開パラメータ格納エリアに設定し
て、次にステップb14において、印字ポインタ準備処
理を実行する。
Returning to FIG. 8, when the expansion processing for one line in the print buffer is completed next, in step b13, the expansion parameters for the selected print buffer, that is, the expansion start address and the expansion end address shown in FIG. The expansion pointer direction, the print left end position, and the print right end position are set in the selected expansion parameter storage area, and in step b14, the print pointer preparation process is executed.

【0036】図11は、図8のステップb14おける印
字ポインタ準備処理の動作を示すフローチャートであ
る。まずステップe1において印字すべき印字バッファ
の展開パラメータを上述の展開パラメータ格納エリアか
ら読込んだ後、ステップe2において展開パラメータの
印字左端位置および印字右端位置に基づいてプリントヘ
ッドの印字方向を正方向または逆方向のどちらかに決定
し、かつ印字方向フラグに設定する。次にステップe3
において、展開パラメータの展開ポインタ方向がどちら
かであるかを判断して、インクリメント方向であればス
テップe4へ移行して、さらにプリントヘッドの印字方
向を判定して正方向であればステップe5へ移行して、
印字ポインタの方向を展開パラメータの展開先頭アドレ
スからインクリメント方向に決定し、かつ読出し方向フ
ラグに設定し、次のステップe6において印字ポインタ
の数値を展開先頭アドレスに設定した後、リターンす
る。
FIG. 11 is a flow chart showing the operation of the print pointer preparation process in step b14 of FIG. First, in step e1, the expansion parameter of the print buffer to be printed is read from the above-mentioned expansion parameter storage area, and then in step e2, the print direction of the print head is set to the forward direction or to the forward direction based on the print left end position and print right end position of the expansion parameter. Either the reverse direction is determined and the print direction flag is set. Then step e3
In step S4, it is determined whether the expansion pointer direction of the expansion parameter is either, and if it is the increment direction, the process proceeds to step e4. If the print direction of the print head is further determined and if it is the forward direction, the process proceeds to step e5. do it,
The direction of the print pointer is determined to be the increment direction from the expansion start address of the expansion parameter, the read direction flag is set, the numerical value of the print pointer is set to the expansion start address in the next step e6, and then the process returns.

【0037】ステップe4において、プリントヘッドの
印字方向が逆方向であればステップe7へ移行して、印
字ポインタの方向を展開パラメータの展開終了アドレス
からデクリメント方向に決定し、かつ読出方向フラグに
設定し、次のステップe8において、印字ポインタの数
値を展開終了アドレスに設定した後、リターンする。
In step e4, if the print direction of the print head is the reverse direction, the process proceeds to step e7, the direction of the print pointer is determined from the expansion end address of the expansion parameter to the decrement direction, and the read direction flag is set. In the next step e8, the value of the print pointer is set to the expansion end address, and then the process returns.

【0038】一方、ステップe3において、展開パラメ
ータの展開ポインタ方向がデクリメント方向であれば、
ステップe9に移行して、さらにプリントヘッドの印字
方向を判定して、正方向であればステップe10へ移行
して、印字ポインタの方向を展開パラメータの展開先頭
アドレスからデクリメント方向に決定し、かつ読出し方
向フラグに設定し、次のステップe11において、印字
ポインタの数値を展開先頭アドレスに設定した後、リタ
ーンする。
On the other hand, in step e3, if the expansion pointer direction of the expansion parameter is the decrement direction,
In step e9, the print direction of the print head is further determined, and if the print direction is forward, the process moves to step e10 to determine the direction of the print pointer from the expansion start address of the expansion parameter to the decrement direction and read it. The direction flag is set, and in the next step e11, the numerical value of the print pointer is set to the development start address, and then the process returns.

【0039】ステップe9において、プリントヘッドの
印字方向が逆方向であれば、ステップe12に移行して
印字ポインタの方向を展開パラメータの展開終了アドレ
スからインクリメント方向に決定し、かつ読出方向フラ
グに設定し、次のステップe13において、印字ポイン
タの数値を展開終了アドレスに設定した後、リターンす
る。
If the print direction of the print head is the reverse direction in step e9, the process proceeds to step e12, in which the direction of the print pointer is determined from the expansion end address of the expansion parameter to the increment direction and the reading direction flag is set. In the next step e13, the value of the print pointer is set to the expansion end address, and then the process returns.

【0040】図8に戻って、ステップb15において印
字割込み処理をイネーブル(許可)する。この印字割込
み処理は、予め図1のプログラマブルタイマ4に印字周
期と印字列数をタイマパラメータとして設定しておい
て、プログラマブルタイマ4がMPU3に割込み信号を
発生して1行のみ印字するルーチンであり、モータの動
きに合わせて周期的に繰返し実行される。
Returning to FIG. 8, the print interrupt process is enabled (permitted) in step b15. The print interrupt process is a routine in which the print period and the number of print columns are set as timer parameters in the programmable timer 4 of FIG. 1 in advance, and the programmable timer 4 issues an interrupt signal to the MPU 3 to print only one line. , Is periodically repeated according to the movement of the motor.

【0041】図12は、図8のステップb15における
印字割込みイネーブルによって周期的に実行される印字
割り込み処理の動作を示すフローチャートである。まず
ステップf1において、印字ポインタの示す印字バッフ
ァ上の印字データを1列読込み、次のステップf2にお
いて1列分の印字処理を行い、次にステップf3におい
て印字ポインタの移動方向がインクリメント方向であれ
ば印字ポインタの数値に1を加算し、一方印字ポインタ
方向がデクリメント方向であれば印字ポインタの数値か
ら1を減算する。次のステップf4において、1行分の
印字処理が終了したかどうかを判断し、終了していなけ
ればステップf1に戻り、終了していればリターンす
る。こうして一連の印字データが印字されることにな
る。
FIG. 12 is a flow chart showing the operation of the print interrupt process which is periodically executed by the print interrupt enable in step b15 of FIG. First, in step f1, the print data in the print buffer indicated by the print pointer is read in one column, the print processing for one column is performed in the next step f2, and then in step f3, if the movement direction of the print pointer is the increment direction. 1 is added to the value of the print pointer, while 1 is subtracted from the value of the print pointer if the print pointer direction is the decrement direction. In the next step f4, it is determined whether or not the printing process for one line is completed. If not completed, the process returns to step f1 and if completed, the process returns. In this way, a series of print data is printed.

【0042】図13は、本発明に係る文字展開方法の動
作例および印字例を説明する概念図である。図13
(a)に示すような文章を用紙に印字する場合、まず図
13(b)に示す印字バッファ1に第1行の印字データ
「123456789」が展開された後、印字バッファ
2に第2行の印字データ「ABCDEFGH」が展開さ
れる。そして、印字バッファ2の文字展開の実行中に、
図13(c)に示すように、印字バッファ1の左端から
順番に第1行の印字動作が行われ、印字ポインタがイン
クリメント方向に移動するとともに、印字が終了した領
域において第3行の印字データ「イロハニホヘト」が順
番に展開され、展開ポインタが印字ポインタを追いかけ
るようにインクリメント方向に移動する。
FIG. 13 is a conceptual diagram for explaining an operation example and a printing example of the character expanding method according to the present invention. FIG.
When the text shown in FIG. 13A is printed on the paper, first, the print data “123456789” of the first line is expanded in the print buffer 1 shown in FIG. The print data “ABCDEFGH” is expanded. Then, during the character expansion of the print buffer 2,
As shown in FIG. 13C, the print operation of the first line is performed in order from the left end of the print buffer 1, the print pointer moves in the increment direction, and the print data of the third line is printed in the area where printing is completed. “Irohanihohet” is developed in order, and the development pointer moves in the increment direction so as to follow the print pointer.

【0043】次に、印字バッファ1に展開された第1行
の印字データ「1〜9」の印字が終了すると、図13
(d)に示すように、印字バッファ2に展開された第2
行の印字データ「A〜H」の印字動作が印字バッファ2
の右から左へ向かって行われ、印字バッファ2の印字ポ
インタが右端からデクリメント方向に移動する。このと
き、印字が終了した領域において、第4行の印字データ
「アイウエオカキ」が鏡像反転しながら順番に展開さ
れ、展開ポインタが印字ポインタを追いかけるようにデ
クリメント方向に移動する。そして、印字バッファ2の
文字展開の実行中に、図13(e)に示すように、印字
バッファ1に展開された第3行の印字データ「イ〜ト」
が印字され、印字ポインタがデクリメント方向に移動す
るとともに、印字が終了した領域において第5行の印字
データ「abcdefghijklmnopq」が順番
に展開され、展開ポインタが印字ポインタを追いかける
ようにデクリメント方向に移動する。
Next, when the printing of the print data "1 to 9" of the first line expanded in the print buffer 1 is completed, FIG.
As shown in (d), the second data expanded in the print buffer 2
The print operation of the print data “A to H” of the line is the print buffer 2
Is performed from right to left, the print pointer of the print buffer 2 moves from the right end in the decrement direction. At this time, in the area where the printing is completed, the print data "Ai Ueoki" in the fourth row is sequentially developed while mirror-inverting, and the development pointer moves in the decrement direction so as to follow the print pointer. Then, while the character expansion of the print buffer 2 is being executed, as shown in FIG. 13E, the print data of the third line expanded in the print buffer 1
Is printed, the print pointer moves in the decrement direction, the print data “abcdefghijkklmnopq” on the fifth line is sequentially developed in the area where the printing is completed, and the expansion pointer moves in the decrement direction so as to follow the print pointer.

【0044】次に、図13(f)に示すように、印字バ
ッファ2に展開された第4行の印字データ「ア〜キ」の
印字動作が印字バッファ2の左から右へ向かって行わ
れ、印字ポインタが左端からインクリメント方向に移動
する。このとき印字が終了した領域において、第6行の
印字データ「123456789」が順番に展開され、
展開ポインタが印字ポインタを追いかけるようにインク
リメント方向へ移動する。そして、印字バッファ2の文
字展開の実行中に、図13(g)に示すように、印字バ
ッファ1に展開された第5行の印字データ「a〜q」が
印字され、印字ポインタがデクリメント方向に移動する
とともに、印字が終了した領域において第7行の印字デ
ータ「ABCDEFGHIJ」が順番に展開され、展開
ポインタが印字ポインタを追いかけるようにデクリメン
ト方向へ移動する。
Next, as shown in FIG. 13 (f), the printing operation of the print data “A to K” of the fourth line expanded in the print buffer 2 is performed from the left to the right of the print buffer 2. , The print pointer moves from the left end in the increment direction. At this time, in the area where printing is completed, the print data “123456789” of the sixth line is sequentially expanded,
Move in the increment direction so that the expansion pointer follows the print pointer. Then, during the character expansion of the print buffer 2, the print data “a to q” of the fifth line expanded in the print buffer 1 is printed as shown in FIG. 13 (g), and the print pointer is decremented. The print data "ABCDEFGHIJ" on the seventh line is sequentially expanded in the area where the printing is completed, and the expansion pointer moves in the decrement direction so as to follow the print pointer.

【0045】次に、図13(h)に示すように、印字バ
ッファ2に展開された第6行の印字データ「1〜9」の
印字動作が印字バッファ2の右から左へ向かって行わ
れ、印字ポインタが右端からデクリメント方向へ移動す
る。このとき印字が終了した領域において、第8行の印
字データ「イロハニホヘト」が順番に展開され、展開ポ
インタが印字ポインタを追いかけるようにデクリメント
方向へ移動する。
Next, as shown in FIG. 13H, the printing operation of the print data “1 to 9” of the sixth line expanded in the print buffer 2 is performed from right to left of the print buffer 2. , The print pointer moves from the right end in the decrement direction. At this time, in the area where printing is completed, the print data "Irohanihohet" on the eighth line is sequentially expanded, and the expansion pointer moves in the decrement direction so as to follow the print pointer.

【0046】以上のような動作を繰返すことによって、
図13(a)に示すような印字を得ることができる。
By repeating the above operation,
A print as shown in FIG. 13A can be obtained.

【0047】図14は、本発明に係る文字展開方法の動
作を示すタイミングチャートである。まず、キャリッジ
が印字バッファ2に展開されていたn−1行目の印字動
作を実行している期間に、印字バッファ1にn行目の印
字データを展開する。このときn行目の展開が終了する
と、印字バッファ2において印字が終了している領域
に、n+1行目のデータ展開を続行する。ここで、n−
1行目の印字が終了すると、キャリッジが次の印字動作
に必要な再駆動所定時間だけ待機した後、印字バッファ
1に展開されたn行目の印字データの印字動作を開始す
る。印字動作が続いて印字バッファ1の空いた領域にn
+2行目の印字データが展開される。このように1行分
の印字データの量が変動しても、印字バッファの空き領
域において後続する印字行の文字展開を行うことができ
るため、キャリッジが文字展開の終了を待つ時間が解消
され、全体の印字速度が向上する。
FIG. 14 is a timing chart showing the operation of the character expansion method according to the present invention. First, the print data for the nth line is expanded in the print buffer 1 while the carriage is executing the print operation for the (n-1) th line which has been expanded in the print buffer 2. At this time, when the expansion of the nth line is completed, the data expansion of the (n + 1) th line is continued in the area where the printing is completed in the print buffer 2. Where n-
When the printing of the first line is completed, the carriage waits for a predetermined re-driving time required for the next printing operation, and then the printing operation of the print data of the nth line expanded in the print buffer 1 is started. The printing operation continues and n is displayed in the empty area of the print buffer 1.
The print data of the + 2nd line is expanded. In this way, even if the amount of print data for one line fluctuates, character expansion of the subsequent print line can be performed in the empty area of the print buffer, eliminating the time for the carriage to wait for the end of character expansion. The overall printing speed is improved.

【0048】なお、以上の実施例において、2つの印字
バッファを切換えて展開処理および印字動作を行う例を
説明したが、本発明は3つ以上の印字バッファを順番に
切換える方法でも同様に適用できる。また、印字バッフ
ァ1だけを用いた構成でも、本発明を適用することによ
って、2つの印字バッファを用いたのと同様な印字スル
ープットを得ることができる。
In the above embodiment, an example in which two print buffers are switched to perform the expansion processing and the print operation has been described, but the present invention can be similarly applied to a method of sequentially switching three or more print buffers. . Further, even with a configuration using only the print buffer 1, by applying the present invention, it is possible to obtain a print throughput similar to that using two print buffers.

【0049】[0049]

【発明の効果】以上詳述したように本発明によれば、1
行分の印字データの量が多くなったり少なくなって変動
した場合でも、印字キャリッジが文字展開処理の終了を
待つ停止時間を極力減らすことができるため、全体の印
字速度を向上するとともに、記憶空間の有効利用を図る
ことができる。
As described above in detail, according to the present invention, 1
Even if the amount of print data for a line increases or decreases and fluctuates, the stop time for the print carriage to wait for the end of character expansion processing can be reduced as much as possible, improving the overall print speed and reducing the storage space. Can be effectively used.

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

【図1】本発明に係る文字展開方法が適用可能なプリン
タの電気的構成の一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of an electrical configuration of a printer to which a character expansion method according to the present invention can be applied.

【図2】本発明に係る文字展開方法が適用可能なプリン
タの機械的構成の一例を示す概略図である。
FIG. 2 is a schematic diagram showing an example of a mechanical configuration of a printer to which the character expansion method according to the present invention can be applied.

【図3】本発明の一実施例である文字展開方法の動作を
示すための機能ブロック図である。
FIG. 3 is a functional block diagram showing an operation of a character expansion method which is an embodiment of the present invention.

【図4】印字バッファ1および印字バッファ2における
印字動作および展開処理を説明する概念図である。
FIG. 4 is a conceptual diagram illustrating a printing operation and a developing process in the print buffer 1 and the print buffer 2.

【図5】印字ポインタおよび展開ポインタの移動方向が
図4と逆である場合の動作を説明する概念図である。
FIG. 5 is a conceptual diagram illustrating an operation in the case where the moving directions of the print pointer and the expansion pointer are opposite to those in FIG.

【図6】印字ポインタおよび展開ポインタの移動方向が
図4と逆である場合の動作を説明する概念図である。
FIG. 6 is a conceptual diagram illustrating an operation in the case where the moving directions of the print pointer and the expansion pointer are opposite to those in FIG.

【図7】本発明の一実施例である文字展開方法の動作を
示すフローチャートである。
FIG. 7 is a flowchart showing an operation of the character expansion method according to the embodiment of the present invention.

【図8】図7のステップa6におけるイメージ展開処理
の動作を示すフローチャートである。
8 is a flowchart showing the operation of image expansion processing in step a6 of FIG.

【図9】図8のステップb9におけるインクリメント方
向の展開処理の動作を示すフローチャートである。
FIG. 9 is a flowchart showing an operation of expansion processing in the increment direction in step b9 of FIG.

【図10】図8のステップb11におけるデクリメント
方向の展開処理の動作を示すフローチャートである。
10 is a flowchart showing an operation of a decrement direction expansion process in step b11 of FIG.

【図11】図8のステップb14における印字ポインタ
準備処理の動作を示すフローチャートである。
11 is a flowchart showing an operation of print pointer preparation processing in step b14 of FIG.

【図12】図8のステップb15における印字割込み処
理の動作を示すフローチャートである。
FIG. 12 is a flowchart showing the operation of print interrupt processing in step b15 of FIG.

【図13】本発明に係る文字展開方法の動作例および印
字例を説明する概念図である。
FIG. 13 is a conceptual diagram illustrating an operation example and a printing example of the character expansion method according to the present invention.

【図14】本発明に係る文字展開方法の動作を示すタイ
ミングチャートである。
FIG. 14 is a timing chart showing the operation of the character expansion method according to the present invention.

【図15】従来の文字展開方法の一例を示すタイミング
チャートである。
FIG. 15 is a timing chart showing an example of a conventional character expansion method.

【図16】複数行から成る文章パターンを示す概念図で
ある。
FIG. 16 is a conceptual diagram showing a sentence pattern composed of a plurality of lines.

【図17】図16の文章パターンにおける文字展開動作
を示すタイミングチャートである。
17 is a timing chart showing a character expanding operation in the sentence pattern of FIG.

【符号の説明】[Explanation of symbols]

3 MPU(マイクロプロセッサユニット) 4 プログラマブルタイマ 5 プログラムROM 6 文字パターンROM 7 RAM 8 入出力回路 9 駆動回路 10 印字機構 11 ホスト装置 12 インタフェイス 3 MPU (microprocessor unit) 4 Programmable timer 5 Program ROM 6 Character pattern ROM 7 RAM 8 Input / output circuit 9 Drive circuit 10 Printing mechanism 11 Host device 12 Interface

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 一連の印字コードを格納した第1記憶手
段から、印字コードを順次取出す工程と、 各印字コードに対応したドットパターンを予め記憶した
第2記憶手段から、当該印字コードに対応するドットパ
ターンを取出す工程と、 取出された当該ドットパターンを、1印字行分のドット
パターンを格納するための第3記憶手段へ格納する工程
とを具備する文字展開方法において、 第3記憶手段の格納領域に未印字ドットパターンが残っ
ている状態で、当該未印字ドットパターンの格納領域以
外の領域に、別の印字行をドットパターンに展開して順
次格納することを特徴とする文字展開方法。
1. A step of sequentially taking out print codes from a first storage means that stores a series of print codes, and a second storage means that stores a dot pattern corresponding to each print code in advance corresponding to the print code. A method for expanding a character, comprising: a step of extracting a dot pattern; and a step of storing the extracted dot pattern in a third storage means for storing a dot pattern for one print line, in the third storage means. A character expanding method, wherein while another unprinted dot pattern remains in the area, another print line is expanded into a dot pattern and sequentially stored in an area other than the storage area of the unprinted dot pattern.
【請求項2】 前記未印字ドットパターンが第3記憶手
段の中間番地から下位番地または上位番地に向かって順
次残っている場合、別の印字行のドットパターンを第3
記憶手段の上位番地または下位番地から前記中間番地に
向かって順次格納することを特徴とする請求項1に記載
の文字展開方法。
2. When the unprinted dot pattern remains in order from the middle address to the lower address or the higher address of the third storage means, the dot pattern of another printed line is set to the third pattern.
2. The character expansion method according to claim 1, wherein the characters are sequentially stored from a higher address or a lower address of the storage means toward the intermediate address.
JP5190567A 1993-07-30 1993-07-30 Method of developing character Pending JPH0740604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5190567A JPH0740604A (en) 1993-07-30 1993-07-30 Method of developing character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5190567A JPH0740604A (en) 1993-07-30 1993-07-30 Method of developing character

Publications (1)

Publication Number Publication Date
JPH0740604A true JPH0740604A (en) 1995-02-10

Family

ID=16260215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5190567A Pending JPH0740604A (en) 1993-07-30 1993-07-30 Method of developing character

Country Status (1)

Country Link
JP (1) JPH0740604A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8764148B2 (en) 2005-02-08 2014-07-01 Durst Phototechnik—A.G. Inkjet printing device and method for printing multi-colored images

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8764148B2 (en) 2005-02-08 2014-07-01 Durst Phototechnik—A.G. Inkjet printing device and method for printing multi-colored images

Similar Documents

Publication Publication Date Title
US5822499A (en) Method and apparatus for printing data in accordance with a previously set parameter regardless of currently specified parameters
EP0453221B1 (en) Character outputting apparatus and method
JPH0263763A (en) Printing apparatus
EP0621538B1 (en) Output method and apparatus
JPH01235680A (en) Electronic typewriter
JPH0740604A (en) Method of developing character
KR0130960B1 (en) Character processing method and its method
JPH04363268A (en) Page printer
JP3016515B2 (en) Character processing apparatus and method
JPS63302083A (en) Printer
US5684930A (en) Output apparatus and method with font control in plural output modes
JPS63159061A (en) Printer
JP3245270B2 (en) Character processing apparatus and method
KR900005767B1 (en) Method for optional control of line spacing in electronic typewriter
EP0327780B1 (en) Bounded word replace function for an electronic typewriter
JPH0725106A (en) Printer
KR970011235B1 (en) Dot-printer graphic data printing velocity improving method
JP3397514B2 (en) Output device and output method
EP0795839B1 (en) Printer and method of controlling it
JP3714941B2 (en) Character input device
JPH08132703A (en) Method and device for outputting character
JP2855798B2 (en) Document processing device
JPH079700A (en) Serial printer
JPH06183104A (en) Printing apparatus
JPS62105667A (en) Printing processing system for dot matrix printer