JP2000071540A - Serial printer and method for serial printing - Google Patents

Serial printer and method for serial printing

Info

Publication number
JP2000071540A
JP2000071540A JP24687798A JP24687798A JP2000071540A JP 2000071540 A JP2000071540 A JP 2000071540A JP 24687798 A JP24687798 A JP 24687798A JP 24687798 A JP24687798 A JP 24687798A JP 2000071540 A JP2000071540 A JP 2000071540A
Authority
JP
Japan
Prior art keywords
print
pattern
block
printing
head
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
JP24687798A
Other languages
Japanese (ja)
Inventor
Katsuhiko Ando
勝彦 安藤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP24687798A priority Critical patent/JP2000071540A/en
Publication of JP2000071540A publication Critical patent/JP2000071540A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve a print speed by shortening a movement time of a print head. SOLUTION: A head position pattern is divided to six kinds of HP1-HP6 in accordance with the present position of a print head 14 to a preceding printing block B1 to be printed in a next main scan. A block pattern is divided to five kinds of BP1-BP5 in accordance with a positional relationship of the preceding printing block B1 and a succeeding printing block B2. An arrangement pattern is constituted by relating five kinds of the block patterns BP1-BP5 for each of the head position patterns HP1-HP6, and a favorable main scan pattern is set beforehand. Since the main scan pattern is selected with taking not only the preceding printing block, but the succeeding printing block into consideration, a print time can be shortened more than by a logical seek.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、インクジ
ェットプリンタ、インパクトドットマトリクスプリン
タ、熱転写プリンタ等に用いて好適なシリアルプリンタ
及びシリアル印刷方法に関し、特に、複数行を同時印刷
可能なプリントヘッドを用いたシリアルプリンタ及びシ
リアル印刷方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial printer and a serial printing method suitable for use in, for example, ink jet printers, impact dot matrix printers, thermal transfer printers, etc., and more particularly, to a print head capable of simultaneously printing a plurality of lines. A serial printer and a serial printing method.

【0002】[0002]

【従来の技術】例えば、インクジェットプリンタ等のシ
リアルプリンタでは、プリントヘッドを例えば水平方向
に移動させながら所定位置で用紙上にドットを形成させ
ることにより主走査を行う。そして、一回の主走査を終
了すると、例えば垂直方向に用紙を所定量だけ紙送りす
ることにより副走査を行う。この主走査と副走査とを交
互に繰り返すことにより、所定の印刷が行われる。ここ
で、主走査の方法、即ち、プリントヘッドの移動方法と
しては、図18に示す通り、単方向印刷、双方向印刷及
びロジカルシークの三種類が知られている。
2. Description of the Related Art For example, in a serial printer such as an ink jet printer, main scanning is performed by forming dots on a sheet at predetermined positions while moving a print head in a horizontal direction, for example. When one main scan is completed, the sub-scan is performed, for example, by feeding the paper by a predetermined amount in the vertical direction. By repeating the main scanning and the sub-scanning alternately, predetermined printing is performed. Here, as the main scanning method, that is, the print head moving method, as shown in FIG. 18, three types of unidirectional printing, bidirectional printing, and logical seek are known.

【0003】単方向印刷とは、図18(a)に示すよう
に、プリントヘッドを常に一定の方向(図中では左から
右)に走査させるものである。即ち、図中「印刷パス」
として示すように一定方向にプリントヘッドを移動させ
て一行分の印刷を行った後、所定の副走査を行い、図中
「空走パス」として示すようにプリントヘッドを元の位
置に復帰させるものである。単方向印刷では、各主走査
毎に印刷を行わない空走パスが発生し、プリントヘッド
の移動量が大きくなるため、印刷時間が大幅に増大す
る。
In the unidirectional printing, as shown in FIG. 18A, the print head is always scanned in a fixed direction (from left to right in the figure). In other words, "print path" in the figure
After the print head is moved in a certain direction as shown in FIG. 1 and printing for one line is performed, a predetermined sub-scan is performed, and the print head is returned to the original position as shown in FIG. It is. In unidirectional printing, an idle pass in which printing is not performed for each main scan occurs, and the amount of movement of the print head increases, so that printing time significantly increases.

【0004】双方向印刷とは、図18(b)に示すよう
に、プリントヘッドを左右両方向から移動させて印刷を
行うものである。往路及び復路の双方で印刷を行うた
め、単方向印刷の場合よりも印刷時間を短縮することが
できる。
[0004] In bidirectional printing, as shown in FIG. 18B, printing is performed by moving a print head from both left and right directions. Since printing is performed on both the outward path and the return path, the printing time can be reduced as compared with the case of unidirectional printing.

【0005】ロジカルシークとは、図18(c)に示す
ように、次の主走査を行う前に、プリントヘッドの移動
量が最小化する主走査の方向を判断するものである。図
中に示すように、最初の行G1を左→右の主走査で印刷
した後、プリントヘッドは一時停止し、次行G2を最短
距離で印刷するための主走査方向を判断する。図中の黒
三角印は次パスの判断点を象徴するものである。次行G
2を印刷する場合、プリントヘッドを行G2の左端側に
引き戻して左→右の主走査を行うよりも、行G2の右端
側までプリントヘッドを移動させて右→左の主走査方を
行う方が移動量は少なくなる。従って、次行G2は、前
行G1とは逆向きの主走査によって印刷され、行G2の
印刷終了後に再び次行G3の主走査方向を判断する。行
G3を印刷する場合、プリントヘッドを行G3の左端側
に移動させて左→右に移動させるよりも、現在位置から
プリントヘッドを前行G2と同一方向に移動させる主走
査の方が移動量が少なくなる。従って、行G3は、前行
G2と同一方向の主走査で印刷される。
As shown in FIG. 18C, the logical seek determines the direction of the main scan in which the moving amount of the print head is minimized before the next main scan is performed. As shown in the figure, after printing the first row G1 in the left-to-right main scan, the print head pauses, and determines the main scan direction for printing the next row G2 at the shortest distance. The black triangles in the figure symbolize judgment points for the next pass. Next line G
When printing 2, the print head is moved to the right end side of the row G2 and the right-to-left main scan is performed rather than pulling the print head back to the left end side of the row G2 and performing the left-to-right main scan. However, the amount of movement is reduced. Therefore, the next row G2 is printed by the main scanning in the opposite direction to the previous row G1, and after the printing of the row G2, the main scanning direction of the next row G3 is determined again. When printing the row G3, the main scan that moves the print head in the same direction as the previous row G2 from the current position is more shifted than moving the print head to the left end side of the row G3 and moving it from left to right. Is reduced. Therefore, the row G3 is printed by main scanning in the same direction as the previous row G2.

【0006】[0006]

【発明が解決しようとする課題】上述した従来技術によ
るロジカルシークでは、一回の主走査を終了する毎に、
プリントヘッドの移動量が最小化する主走査方向を判断
して次行の印刷を行うため、単純に主走査方向を反転さ
せる双方向印刷よりも、印刷時間を短縮することができ
る。しかし、従来技術によるロジカルシークでは、次行
の印刷におけるプリントヘッドの移動量を最小化するよ
うに主走査方向を決定するため、高速化に限界がある。
In the above-described logical seek according to the prior art, every time one main scan is completed,
Since the next line is printed by determining the main scanning direction in which the movement amount of the print head is minimized, the printing time can be reduced as compared with the bidirectional printing in which the main scanning direction is simply reversed. However, in the logical seek according to the related art, since the main scanning direction is determined so as to minimize the moving amount of the print head in the printing of the next line, there is a limit to speeding up.

【0007】一回の主走査におけるプリントヘッドの速
度変化に着目すると、プリントヘッドは、停止位置から
走行を開始して加速し、一定速度に到達してからドット
の形成を開始する。そして、印刷すべき行を印刷した
後、プリントヘッドは減速して停止する。即ち、図18
(c)中に示すように、プリントヘッドの速度は、加速
領域、定速領域及び減速領域の3段階で変化する。ま
た、単に、プリントヘッドをある位置から他の位置へと
移動させるだけの場合でも、加速と減速とを必要とす
る。
Focusing on the speed change of the print head in one main scan, the print head starts running from a stop position, accelerates, and starts forming dots after reaching a certain speed. Then, after printing the line to be printed, the print head decelerates and stops. That is, FIG.
As shown in (c), the speed of the print head changes in three stages: an acceleration region, a constant speed region, and a deceleration region. Also, simply moving the printhead from one position to another requires acceleration and deceleration.

【0008】ここで、従来技術によるロジカルシークで
は、次行にのみ着目してヘッド移動量が最小となるよう
に主走査方向を決定しており、更に次の行の印刷を何ら
考慮していないため、更に次の行を印刷するためにプリ
ントヘッドの位置を調整しなければならない場合があ
る。例えば、最初の行G1を印刷すると、プリントヘッ
ドは、行G1の右端から所定の減速領域だけ離れた位置
で停止する。そして、この停止位置で次行G2の印刷に
好ましい主走査方向を判断し、横向きの点線矢印で示す
ように、行G2を印刷するための走行開始点まで移動す
る。この走行開始点は、行G2の右端から所定の加速領
域だけ離れた位置である。行G1の停止位置から次行G
2の走行開始位置まで移動するときも加速及び減速を伴
うから、この位置調整の分だけ時間がかかる。つまり、
次の一行にのみ着目して主走査を制御しているため、前
行の印刷終了後の停止位置は、次行の印刷に適した位置
とならない場合が多い。換言すれば、従来技術のロジカ
ルシークでは、確かにプリントヘッドの移動量を最小化
可能であるが、次の一行のみを判断対象とし、しかもプ
リントヘッドの移動量のみに着目しているため、プリン
トヘッドの位置調整が必要となる場合が多く、必ずしも
高速印刷を実現することができない。
Here, in the logical seek according to the prior art, the main scanning direction is determined so that the head movement amount is minimized by focusing only on the next row, and further printing of the next row is not considered at all. Therefore, it may be necessary to adjust the position of the print head to print the next line. For example, when printing the first row G1, the print head stops at a position separated from the right end of the row G1 by a predetermined deceleration area. Then, at this stop position, a preferred main scanning direction for printing the next row G2 is determined, and as shown by a horizontal dotted line arrow, the apparatus moves to a traveling start point for printing the row G2. The traveling start point is a position separated from the right end of the row G2 by a predetermined acceleration region. The next line G from the stop position of line G1
The movement to the second travel start position also involves acceleration and deceleration, so it takes time for this position adjustment. That is,
Since the main scanning is controlled by focusing only on the next one line, the stop position after the end of printing of the previous line is not often a position suitable for printing of the next line. In other words, the logical seek of the prior art can certainly minimize the moving amount of the print head.However, since only the next line is to be determined and only the moving amount of the print head is focused on, In many cases, head position adjustment is required, and high-speed printing cannot always be realized.

【0009】一方、従来のプリントヘッドは、通常、例
えば48個、64個等のドット形成要素を有し、1行ず
つ印刷するようになっている。しかし、近年では、より
高速な印刷を行うべく、例えば128個、144個、1
96個、256個等のより多くのドット形成要素を備え
たプリントヘッドが提案されている。このような多数の
ドット形成要素を備えたプリントヘッドは、一回の主走
査で複数行を同時に印刷可能であり、いわゆるマルチラ
イン型ヘッドとも呼ばれている。しかし、複数行の印刷
が可能なマルチライン型のプリントヘッドを備えていて
も、一行単位で主走査の方向を判断していたのでは、高
速印字を行うことができず、マルチライン型ヘッドの特
性を活かすことができない。また、一行を印刷する毎に
次行の主走査を判断してヘッド位置の調整を行ったので
は、上述の通り、ヘッド位置調整の分だけ余分な時間を
要するため、より一層の高速印刷を達成することができ
ないという問題がある。
On the other hand, a conventional print head usually has, for example, 48 or 64 dot forming elements and prints one line at a time. However, in recent years, in order to perform higher-speed printing, for example, 128, 144, 1
Printheads with more dot-forming elements, such as 96, 256, etc., have been proposed. A print head having such a large number of dot forming elements can simultaneously print a plurality of lines in one main scan, and is also called a so-called multi-line type head. However, even if a multi-line print head capable of printing multiple lines is provided, high-speed printing cannot be performed if the main scanning direction is determined on a line-by-line basis. The characteristics cannot be utilized. Further, if the main scanning of the next line is determined and the head position is adjusted each time one line is printed, as described above, extra time is required for the head position adjustment. There is a problem that cannot be achieved.

【0010】本発明は、かかる従来技術の問題に鑑みて
なされたもので、その目的は、より高速な印刷を行うこ
とができるようにしたシリアルプリンタ及びシリアル印
刷方法を提供することにある。本発明の他の目的は、プ
リントヘッドの移動量のみならず移動回数をも考慮する
ことにより高速印刷を可能としたシリアルプリンタ及び
シリアル印刷方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the problems of the related art, and has as its object to provide a serial printer and a serial printing method capable of performing higher-speed printing. It is another object of the present invention to provide a serial printer and a serial printing method capable of high-speed printing by considering not only the amount of movement of the print head but also the number of times of movement.

【0011】[0011]

【課題を解決するための手段】上記目的達成のため、本
発明に係るシリアルプリンタでは、次の主走査で印刷さ
れるべき印刷ブロックのみならず、更に次の主走査で印
刷されるべき印刷ブロックまで考慮して主走査パターン
を決定することにより、プリントヘッドを効率よく移動
させて高速印刷を実現できるようにしている。
In order to achieve the above object, in a serial printer according to the present invention, not only a print block to be printed in the next main scan but also a print block to be printed in the next main scan. By determining the main scanning pattern in consideration of the above, the print head can be moved efficiently and high-speed printing can be realized.

【0012】請求項1に係る発明では、複数行同時印刷
可能なプリントヘッドを主走査させると共に印刷記録媒
体を副走査させることにより所定の印刷を行うシリアル
プリンタにおいて、印刷データを受信する受信手段と、
前記受信した印刷データに基づいて、前記プリントヘッ
ドによって印刷される印刷ブロックの主走査方向の位置
を検出するブロック位置検出手段と、前記プリントヘッ
ドの現在位置を検出するヘッド位置検出手段と、前記プ
リントヘッドの現在位置と次の主走査で印刷されるべき
先行印刷ブロック及び更に次の主走査で印刷されるべき
少なくとも一つ以上の後行印刷ブロックの位置とに基づ
いて、前記各印刷ブロックをそれぞれ印刷するための主
走査パターンを決定する制御手段と、を備えたことを特
徴としている。
According to the first aspect of the present invention, there is provided a serial printer for performing predetermined printing by scanning a print head capable of simultaneously printing a plurality of lines in a main scan and sub-scanning a print recording medium. ,
A block position detector for detecting a position in the main scanning direction of a print block to be printed by the print head based on the received print data; a head position detector for detecting a current position of the print head; Based on the current position of the head and the positions of the preceding print block to be printed in the next main scan and the position of at least one or more subsequent print blocks to be printed in the next main scan, And control means for determining a main scanning pattern for printing.

【0013】ここで、「複数行同時印刷可能なプリント
ヘッド」とは、通常の一文字の高さ(例えば48ドッ
ト)の倍以上のヘッド高さを有し、一回の主走査で複数
の行を印刷可能なプリントヘッドであることを意味す
る。この場合における「行」とは、アプリケーションプ
ログラム等で作成されたドキュメントにおける行の意味
である。なお、プリントヘッドとしては、圧力発生素子
又は発熱素子等によってインク滴を吐出させるインクジ
ェット式ヘッド、微細なワイヤを伸縮させて印刷記録媒
体を打撃するインパクト式ヘッド、インクリボンを加熱
して転写させる熱転写式ヘッド等の種々のものを採用す
ることができる。「印刷ブロック」とは、プリントヘッ
ドによって印刷される印字パターンを意味する。印刷ブ
ロックの最大高さはヘッド高さによって定まり、印刷ブ
ロックの最大幅は主走査距離によって定まる。「印刷記
録媒体」とは、プリントヘッドによってドットが形成さ
れる媒体を意味し、代表的には、印刷用紙、記録紙、カ
ット紙、連続紙、ロール紙等と呼ばれる。但し、印刷記
録媒体は紙である必要はなく、樹脂やセラミックス等の
他の材料から形成されてもよい。「印刷ブロックの主走
査方向の位置」とは、印刷ブロックの主走査方向の両端
部の座標、即ち、どこからどこまで印刷するのかを示す
位置情報を意味する。「先行印刷ブロック」とは、次の
主走査で印刷される印刷ブロックを意味し、「後行印刷
ブロック」とは、更に次の主走査で印刷される印刷ブロ
ックを意味する。
Here, a "print head capable of simultaneously printing a plurality of lines" has a head height that is twice or more the normal height of one character (for example, 48 dots), and a plurality of lines are printed in one main scan. Means that the print head can print. The “line” in this case means a line in a document created by an application program or the like. The print head includes an ink jet head that ejects ink droplets by a pressure generating element or a heating element, an impact head that expands and contracts a fine wire to strike a print recording medium, and a thermal transfer that heats and transfers an ink ribbon. Various types such as a type head can be employed. “Print block” means a print pattern printed by a print head. The maximum height of the print block is determined by the head height, and the maximum width of the print block is determined by the main scanning distance. “Print recording medium” means a medium on which dots are formed by a print head, and is typically called printing paper, recording paper, cut paper, continuous paper, roll paper, or the like. However, the print recording medium does not need to be paper, and may be formed from other materials such as resin and ceramics. The “position of the printing block in the main scanning direction” means the coordinates of both ends of the printing block in the main scanning direction, that is, position information indicating from where to where to print. The “preceding print block” means a print block printed in the next main scan, and the “following print block” means a print block printed in the next main scan.

【0014】制御手段は、次の主走査を行う前に、プリ
ントヘッドの現在位置と先行印刷ブロック及び少なくと
も一つ以上の後行印刷ブロックの位置とに基づいて、各
印刷ブロックを印刷するための主走査パターンを決定す
る。「主走査パターン」とは、先行印刷ブロックの主走
査方向及び移動量と後行印刷ブロックの主走査方向及び
移動量等を制御するためのパターンである。最初の先行
印刷ブロックのみならず次の後行印刷ブロックまで考慮
して主走査を制御するため、先行印刷ブロックの印刷終
了時に後行印刷ブロックの印刷に適した位置までプリン
トヘッドを移動させることができ、ヘッド位置の調整を
不要として、印刷時間を短縮することができる。具体的
には、例えば、後行印刷ブロックの右端が先行印刷ブロ
ックの右端よりも所定距離だけ右側に位置する場合、先
行印刷ブロックの印刷終了後のヘッド位置が後行印刷ブ
ロックの右端側に位置するように、主走査を制御するこ
とができる。これにより、従来のロジカルシークのよう
に後行印刷ブロックを印刷するための位置までプリント
ヘッドを移動させる必要がなく、より高速な印刷を行う
ことができる。
The control means prints each print block based on the current position of the print head and the positions of the preceding print block and at least one or more subsequent print blocks before performing the next main scan. Determine the main scanning pattern. The “main scanning pattern” is a pattern for controlling the main scanning direction and the moving amount of the preceding print block and the main scanning direction and the moving amount of the succeeding print block. Since the main scanning is controlled by considering not only the first preceding printing block but also the next succeeding printing block, it is possible to move the print head to a position suitable for printing the succeeding printing block at the end of printing of the preceding printing block. This eliminates the need to adjust the head position and shortens the printing time. Specifically, for example, when the right end of the succeeding print block is located to the right by a predetermined distance from the right end of the preceding print block, the head position after printing of the preceding print block is located on the right end side of the subsequent print block. So that the main scanning can be controlled. As a result, it is not necessary to move the print head to a position for printing the succeeding print block unlike the conventional logical seek, and higher-speed printing can be performed.

【0015】また、請求項2に係る発明のように、前記
プリントヘッドの現在位置と前記各印刷ブロックの位置
関係とにより予め設定された複数の配置パターンと該各
配置パターン毎にそれぞれ設定された前記主走査パター
ンとを記憶するパターン記憶手段を更に設け、前記制御
手段は、前記プリントヘッドの現在位置及び前記各印刷
ブロックの位置とに基づいて前記配置パターンを検出
し、該配置パターンに対応する前記主走査パターンを前
記パターン記憶手段から読み出して決定することができ
る。
According to a second aspect of the present invention, a plurality of arrangement patterns set in advance based on a current position of the print head and a positional relationship between the print blocks, and a plurality of arrangement patterns are set for each of the arrangement patterns. Pattern storage means for storing the main scanning pattern; and the control means detects the arrangement pattern based on a current position of the print head and a position of each of the print blocks, and corresponds to the arrangement pattern. The main scanning pattern can be read out from the pattern storage means and determined.

【0016】最初の主走査の方向は、プリントヘッドの
現在位置と先行印刷ブロックの位置との関係によって定
まり、該最初の主走査の量は、後行印刷ブロックと先行
印刷ブロックとの位置関係によって定まる。従って、プ
リントヘッドの現在位置と各印刷ブロックの位置関係に
基づいて演算を行うことにより、好ましい主走査パター
ンを正確に算出することができる。しかし、2個の印刷
ブロックを印刷する度に毎回演算を行うのでは、プリン
タの演算回路にかかる負担が大きくなる。そこで、予め
プリントヘッド及び各印刷ブロックの位置関係を類型化
して配置パターンとして設定しておき、各配置パターン
毎に好ましい主走査パターンを登録しておく。これによ
り、制御手段は、配置パターンを検出するだけで主走査
パターンを決定することができ、制御を簡素化すること
ができる。なお、プリントヘッド及び各印刷ブロックの
位置関係を演算するものは、少なくとも請求項1に係る
発明に含まれる。
The direction of the first main scan is determined by the relationship between the current position of the print head and the position of the preceding print block, and the amount of the first main scan is determined by the positional relationship between the succeeding print block and the preceding print block. Is determined. Therefore, a preferable main scanning pattern can be accurately calculated by performing the calculation based on the current position of the print head and the positional relationship between the print blocks. However, if the calculation is performed every time two print blocks are printed, the load on the calculation circuit of the printer increases. Therefore, the positional relationship between the print head and each print block is classified in advance and set as an arrangement pattern, and a preferable main scanning pattern is registered for each arrangement pattern. Thus, the control unit can determine the main scanning pattern only by detecting the arrangement pattern, and can simplify the control. It should be noted that the one that calculates the positional relationship between the print head and each print block is included in at least the first aspect of the invention.

【0017】請求項3に係る発明では、前記配置パター
ンは、前記先行印刷ブロックに対する前記プリントヘッ
ドの現在位置によって定まるヘッド位置パターンと、該
ヘッド位置パターンの下に階層化され、前記各印刷ブロ
ックの位置関係によって定まるブロック位置パターンと
から構成することができる。
In the invention according to claim 3, the arrangement pattern includes a head position pattern determined by a current position of the print head with respect to the preceding print block, and a hierarchical structure below the head position pattern. And a block position pattern determined by the positional relationship.

【0018】ヘッド位置パターンとブロック位置パター
ンとの階層構造によって配置パターンを構成することに
より、制御手段は、最初にヘッド位置パターンを検出
し、次に、検出されたヘッド位置パターンに属するブロ
ック位置パターンを検出するだけで主走査パターンを決
定することができる。また、配置パターンを階層化する
ことにより、ヘッド位置パターン又はブロック位置パタ
ーンの一方を変更する場合にも容易に対応することがで
きる。
By forming the arrangement pattern according to the hierarchical structure of the head position pattern and the block position pattern, the control means first detects the head position pattern, and then detects the block position pattern belonging to the detected head position pattern. , The main scanning pattern can be determined. By layering the arrangement patterns, it is possible to easily cope with a case where one of the head position pattern and the block position pattern is changed.

【0019】請求項4に係る発明のように、前記ヘッド
位置パターンは、少なくとも、(a1)前記先行印刷ブロッ
クの端部から前記プリントヘッドの加速又は減速に要す
る加減速領域以上離間した区間に前記プリントヘッドが
位置する場合と、(a2)前記先行印刷ブロックの主走査方
向の中心と前記先行印刷ブロックの端部から前記加減速
領域だけ離間した位置との間の区間に前記プリントヘッ
ドが位置する場合と、に区分されており、前記ブロック
位置パターンは、少なくとも、(b1)先に印刷されるべき
印刷ブロックを印刷したときの前記プリントヘッドの停
止位置から前記加減速領域以上離間した区間に、次に印
刷されるべき印刷ブロックの端部が位置する場合と、(b
2)前記停止位置と当該停止位置から前記加減速領域だけ
離間した位置との間の区間に、次に印刷されるべき印刷
ブロックの端部が位置する場合と、に区分することもで
きる。
According to a fourth aspect of the present invention, the head position pattern includes at least a section (a1) separated from an end of the preceding print block by an acceleration / deceleration area required for acceleration or deceleration of the print head. When the print head is located, and (a2) the print head is located in a section between the center of the preceding print block in the main scanning direction and a position separated from the end of the preceding print block by the acceleration / deceleration area. And the block position pattern, at least, (b1) in a section separated from the stop position of the print head when printing a print block to be printed first by the acceleration or deceleration area or more, When the end of the printing block to be printed next is located, (b
2) It can be divided into a case where an end of a print block to be printed next is located in a section between the stop position and a position separated from the stop position by the acceleration / deceleration area.

【0020】このように類型化することにより、好まし
い主走査パターンを速やかに検出することができる。
By categorizing in this way, a preferable main scanning pattern can be quickly detected.

【0021】請求項5に係る発明のように、前記制御手
段は、前記各印刷ブロックを印刷可能な複数の主走査パ
ターンのうち最短時間で印刷可能な主走査パターンを選
択することもできる。
According to a fifth aspect of the present invention, the control means can select a main scanning pattern which can be printed in the shortest time among a plurality of main scanning patterns which can print each of the printing blocks.

【0022】多くの場合は、プリントヘッドの位置と各
印刷ブロックの位置関係によって好ましい主走査パター
ンを決定することが可能であるが、各印刷ブロックの位
置関係によっては、選択の可能性が広がる場合がある。
即ち、ある配置パターンに対応する主走査パターンが複
数存在する場合である。このような場合に、あり得る主
走査パターンのそれぞれについて印刷時間を求め、最短
の印刷時間を実現する主走査パターンを選択する。
In many cases, it is possible to determine a preferable main scanning pattern by the position of the print head and the position of each print block. However, depending on the position of each print block, the possibility of selection is widened. There is.
That is, this is a case where there are a plurality of main scanning patterns corresponding to a certain arrangement pattern. In such a case, the printing time is obtained for each of the possible main scanning patterns, and the main scanning pattern that realizes the shortest printing time is selected.

【0023】請求項6に係る発明では、複数行同時印刷
可能なプリントヘッドを主走査させると共に印刷記録媒
体を副走査させることにより所定の印刷を行うシリアル
印刷方法において、印刷データを受信するステップと、
前記受信した印刷データに基づいて、前記プリントヘッ
ドによって印刷される印刷ブロックの主走査方向の位置
を検出するステップと、前記プリントヘッドの現在位置
を検出するステップと、前記プリントヘッドの現在位置
と次の主走査で印刷されるべき先行印刷ブロック及び更
に次の主走査で印刷されるべき少なくとも一つ以上の後
行印刷ブロックの位置とに基づいて、前記各印刷ブロッ
クをそれぞれ印刷するための主走査パターンを決定する
ステップと、前記決定された主走査パターンに従って前
記プリントヘッドを駆動させることにより印刷を行うス
テップと、を含んでなることを特徴としている。
According to a sixth aspect of the present invention, there is provided a serial printing method for performing a predetermined printing by causing a print head capable of simultaneously printing a plurality of lines to perform main scanning and sub-scanning a print recording medium to receive print data. ,
Detecting a position in the main scanning direction of a print block to be printed by the print head based on the received print data; detecting a current position of the print head; A main scan for printing each of the print blocks based on a position of a preceding print block to be printed in the main scan and at least one or more subsequent print blocks to be printed in the next main scan Determining a pattern; and performing printing by driving the print head in accordance with the determined main scanning pattern.

【0024】これにより、前記請求項1に係る発明と同
様の作用を得ることができる。
Thus, the same operation as the first aspect of the invention can be obtained.

【0025】請求項7に係る発明のように、前記主走査
パターンを決定するステップは、前記プリントヘッドの
現在位置と前記各印刷ブロックの位置関係とにより予め
設定された複数の配置パターンのうちいずれの配置パタ
ーンに該当するかを否かを判定するステップと、該当す
るパターンに対応して予め設定された主走査パターンを
選択するステップと、を更に含めて構成することもでき
る。
According to a seventh aspect of the present invention, the step of determining the main scanning pattern is performed in any one of a plurality of arrangement patterns set in advance based on a current position of the print head and a positional relationship between the print blocks. And a step of selecting a main scanning pattern set in advance corresponding to the corresponding pattern can also be configured.

【0026】これにより、前記請求項2に係る発明と同
様の作用を得ることができる。
Thus, the same operation as that of the second aspect can be obtained.

【0027】また、請求項8に係る発明のように、前記
主走査パターンを決定するステップは、前記プリントヘ
ッドの現在位置と前記各印刷ブロックの位置関係とによ
り予め設定された複数の配置パターンのうちいずれの配
置パターンに該当するかを否かを判定するステップと、
該当するパターンに対応して予め設定された複数の主走
査パターンを読み出すステップと、前記選択された各主
走査パターンによる印刷時間をそれぞれ算出するステッ
プと、前記各印刷時間のうち最短の印刷時間を実現する
主走査パターンを選択するステップと、を更に含んで構
成することもできる。
According to another aspect of the present invention, the step of determining the main scanning pattern includes the step of determining a plurality of arrangement patterns set in advance based on a current position of the print head and a positional relationship between the print blocks. A step of determining whether any of the arrangement patterns is applicable,
A step of reading a plurality of main scanning patterns set in advance corresponding to the corresponding pattern; a step of calculating a printing time by each of the selected main scanning patterns; and a step of calculating a shortest printing time among the printing times. And a step of selecting a main scanning pattern to be realized.

【0028】これにより、前記請求項5に係る発明と同
様の作用を得ることができる。
Thus, the same function as the invention according to claim 5 can be obtained.

【0029】請求項9に係る発明のように、前記配置パ
ターンは、前記先行印刷ブロックに対する前記プリント
ヘッドの現在位置によって定まるヘッド位置パターン
と、該ヘッド位置パターンの下に階層化され、前記各印
刷ブロックの位置関係によって定まるブロック位置パタ
ーンとから構成することもできる。
According to a ninth aspect of the present invention, the arrangement pattern includes a head position pattern determined by a current position of the print head with respect to the preceding print block, and a layered structure under the head position pattern. It can also be composed of a block position pattern determined by the positional relationship of the blocks.

【0030】これにより、前記請求項3に係る発明と同
様の作用を得ることができる。
Thus, the same function as the third aspect of the invention can be obtained.

【0031】請求項10に係る発明のように、前記ヘッ
ド位置パターンは、少なくとも、(a1)前記先行印刷ブロ
ックの端部から前記プリントヘッドの加速又は減速に要
する加減速領域以上離間した区間に前記プリントヘッド
が位置する場合と、(a2)前記先行印刷ブロックの主走査
方向の中心と前記先行印刷ブロックの端部から前記加減
速領域だけ離間した位置との間の区間に前記プリントヘ
ッドが位置する場合と、に区分されており、前記ブロッ
ク位置パターンは、少なくとも、(b1)先に印刷されるべ
き印刷ブロックを印刷したときの前記プリントヘッドの
停止位置から前記加減速領域以上離間した区間に、次に
印刷されるべき印刷ブロックの端部が位置する場合と、
(b2)前記停止位置と当該停止位置から前記加減速領域だ
け離間した位置との間の区間に、次に印刷されるべき印
刷ブロックの端部が位置する場合と、に区分することも
できる。
According to the tenth aspect of the present invention, the head position pattern includes at least a section (a1) separated from an end of the preceding print block by an acceleration / deceleration area required for acceleration or deceleration of the print head. When the print head is located, and (a2) the print head is located in a section between the center of the preceding print block in the main scanning direction and a position separated from the end of the preceding print block by the acceleration / deceleration area. And the block position pattern, at least, (b1) in a section separated from the stop position of the print head when printing a print block to be printed first by the acceleration or deceleration area or more, When the end of the print block to be printed next is located,
(b2) In the section between the stop position and the position separated from the stop position by the acceleration / deceleration area, the case where the end of the print block to be printed next is located can also be classified.

【0032】これにより、前記請求項4に係る発明と同
様の作用を得ることができる。
Thus, the same function as the fourth aspect of the invention can be obtained.

【0033】請求項11に係る発明は、複数行同時印刷
可能なプリントヘッドを主走査させると共に印刷記録媒
体を副走査させることにより所定の印刷を行うシリアル
プリンタを制御するためのコンピュータプログラムを記
録した記録媒体において、印刷データに基づいて、前記
プリントヘッドによって印刷される印刷ブロックの主走
査方向の位置を検出させる機能と、前記プリントヘッド
の現在位置を検出させる機能と、前記プリントヘッドの
現在位置と次の主走査で印刷されるべき先行印刷ブロッ
ク及び更に次の主走査で印刷されるべき少なくとも一つ
以上の後行印刷ブロックの位置とに基づいて、前記各印
刷ブロックをそれぞれ印刷するための主走査パターンを
決定する機能とを、コンピュータに実現させるためのプ
ログラムを前記コンピュータが読取り及び理解可能な形
態で記録した記録媒体である。
According to an eleventh aspect of the present invention, a computer program for controlling a serial printer that performs predetermined printing by causing a print head capable of simultaneously printing a plurality of lines to perform main scanning and sub-scanning a print recording medium is recorded. In a recording medium, based on print data, a function of detecting a position in a main scanning direction of a print block printed by the print head, a function of detecting a current position of the print head, and a current position of the print head. A main print block for printing each of the print blocks based on the position of a preceding print block to be printed in the next main scan and at least one or more subsequent print blocks to be printed in the next main scan. A program for causing a computer to implement the function of determining a scanning pattern; Computer is a recording medium recorded by the reading and understanding form.

【0034】ここで、記録媒体としては、例えば、フロ
ッピーディスク、ハードディスク、メモリ、磁気テープ
等の種々の媒体を採用することができる。また、これに
限らず、例えば、所定のプログラムを通信回線を介して
プリンタのCPUにリモートダウンロードさせることも
可能である。
Here, as the recording medium, for example, various media such as a floppy disk, a hard disk, a memory, and a magnetic tape can be adopted. The present invention is not limited to this. For example, a predetermined program can be remotely downloaded to a printer CPU via a communication line.

【0035】上記所定のプログラムをシリアルプリンタ
のコンピュータに読み込ませることにより、前記請求項
1に係る発明と同様の作用を得ることができる。
By causing the computer of the serial printer to read the predetermined program, the same operation as that of the first aspect can be obtained.

【0036】[0036]

【発明の実施の形態】1.第1の実施の形態 以下、図1〜図17に基づき本発明の実施の形態につい
て詳細に説明する。まず、図1〜図12に基づいて本実
施の第1の形態を説明する。図1は、本実施の形態に係
るシリアルプリンタを用いた印刷システムの要部を概略
的に示す機能ブロック図である。
BEST MODE FOR CARRYING OUT THE INVENTION First Embodiment Hereinafter, an embodiment of the present invention will be described in detail with reference to FIGS. First, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a functional block diagram schematically showing a main part of a printing system using a serial printer according to the present embodiment.

【0037】1−1構成 例えば、パーソナルコンピュータ、ワークステーショ
ン、ワードプロセッサ、デジタルカメラ等として実現可
能なホストコンピュータ1は、印刷データ生成部2と、
インターフェース(以下「I/F」と略記)3とを備え
ている。例えば、文書作成ソフトウエアや作図ソフトウ
エア等のアプリケーションプログラムから印刷すべきド
キュメントデータが入力されると、印刷データ生成部2
は、後述のプリンタ11が解釈可能な形式の印刷データ
を生成し、この印刷データをI/F3から通信回線を介
してプリンタ11に送信するようになっている。
1-1 Configuration For example, a host computer 1 that can be realized as a personal computer, a workstation, a word processor, a digital camera, or the like includes a print data generation unit 2,
An interface (hereinafter abbreviated as “I / F”) 3 is provided. For example, when document data to be printed is input from an application program such as document creation software or drawing software, the print data generation unit 2
Generates print data in a format that can be interpreted by the printer 11, which will be described later, and transmits the print data from the I / F 3 to the printer 11 via a communication line.

【0038】プリンタ11は、プリンタコントローラ1
2とプリントエンジン13とを備えている。プリントエ
ンジン13は、例えば、ノズル穴からインク滴を吐出さ
せるインクジェット式のプリントヘッド14と、プリン
トヘッド14を搭載して主走査方向に移動させるキャリ
ッジ機構15と、印刷記録媒体を所定量だけ副走査方向
に搬送させる紙送り機構16とを備えている。なお、プ
リントヘッド14は、インクジェット式のものに限定さ
れない。
The printer 11 includes a printer controller 1
2 and a print engine 13. The print engine 13 includes, for example, an inkjet print head 14 that ejects ink droplets from nozzle holes, a carriage mechanism 15 that mounts the print head 14 and moves in the main scanning direction, and sub-scans a print recording medium by a predetermined amount. And a paper feed mechanism 16 for transporting the paper in the direction. Note that the print head 14 is not limited to an ink jet type.

【0039】「ヘッド位置検出手段」としてのヘッド位
置検出部17は、例えば、キャリッジモータの回転量に
基づいてプリントヘッド14の現在位置を検出するよう
になっている。キャリッジモータがサーボモータ等であ
る場合は、エンコーダ等によって回転量を検出し、この
回転量をプリントヘッド14の移動量に変換することに
より、プリントヘッド14の現在位置を求めることがで
きる。また、キャリッジモータがステッピングモータ等
のように入力パルス数に応じて駆動する場合は、キャリ
ッジモータに入力するパルス数をカウントして管理する
ことにより、プリントヘッド14の現在位置を求めるこ
とができる。さらに、例えば、リニアエンコーダ等のセ
ンサを用いることにより、プリントヘッド14の現在位
置を検出することもできる。
The head position detecting section 17 as "head position detecting means" detects the current position of the print head 14 based on, for example, the rotation amount of a carriage motor. When the carriage motor is a servomotor or the like, the current position of the print head 14 can be obtained by detecting the amount of rotation by an encoder or the like and converting the amount of rotation into the amount of movement of the print head 14. When the carriage motor is driven according to the number of input pulses as in the case of a stepping motor or the like, the current position of the print head 14 can be obtained by counting and managing the number of pulses input to the carriage motor. Further, the current position of the print head 14 can be detected by using a sensor such as a linear encoder.

【0040】プリンタコントローラ12は、ホストコン
ピュータ1からの印刷データを受信するI/F21と、
受信した印刷データを格納する受信バッファ22と、受
信バッファ22に記憶された印刷データを解釈し、印刷
用イメージデータを生成する解釈部23と、生成された
印刷用イメージデータが格納される出力バッファ24と
を備えている。また、プリンタコントローラ12には、
「パターン記憶手段」としてのパターン記憶部25と、
「制御手段」としてのパス制御部26とが設けられてい
る。
The printer controller 12 includes an I / F 21 for receiving print data from the host computer 1,
A reception buffer 22 for storing the received print data, an interpretation unit 23 for interpreting the print data stored in the reception buffer 22 to generate print image data, and an output buffer for storing the generated print image data 24. Further, the printer controller 12 includes:
A pattern storage unit 25 as “pattern storage means”;
A path control unit 26 as “control means” is provided.

【0041】図2に示すように、パターン記憶部25に
は、配置パターン毎に主走査パターンが対応付けられて
記憶されている。配置パターンは、先行印刷ブロックに
対するプリントヘッド14の位置状態によって6種類に
区分されたヘッド位置パターンHP1〜HP6と、先行
印刷ブロックと後行印刷ブロックとの位置関係によって
5種類に区分されたブロック位置パターン(以下「ブロ
ックパターン」と略記)BP1〜BP5とからなる。各
ヘッド位置パターンの下に5種類のブロックパターンが
それぞれ対応付けられて階層化されている。各ブロック
パターンには、先行印刷ブロックと後行印刷ブロックと
をそれぞれ印刷するための主走査パターンMPが対応付
けられている。なお、図2中では、説明の便宜のため、
ヘッド位置パターンH3〜H6の詳細を省略して図示し
ている。
As shown in FIG. 2, the pattern storage section 25 stores a main scanning pattern in association with each arrangement pattern. The arrangement patterns are head position patterns HP1 to HP6 classified into six types according to the position state of the print head 14 with respect to the preceding print block, and block positions classified into five types according to the positional relationship between the preceding print block and the succeeding print block. Patterns (hereinafter abbreviated as “block patterns”) BP1 to BP5. Under each head position pattern, five types of block patterns are associated with each other and hierarchized. Each block pattern is associated with a main scanning pattern MP for printing a preceding print block and a succeeding print block, respectively. In FIG. 2, for convenience of explanation,
Details of the head position patterns H3 to H6 are omitted in the figure.

【0042】パス制御部26は、解釈部23からの各印
刷ブロックの位置情報とヘッド位置検出部17からのプ
リントヘッド14の現在位置とに基づいて、配置パター
ンを検出し、検出された配置パターンに応じた主走査パ
ターンをパターン記憶部25から読出し、この読み出さ
れた主走査パターンに応じてプリントヘッド14の主走
査を制御するようになっている。
The path control unit 26 detects an arrangement pattern based on the position information of each print block from the interpretation unit 23 and the current position of the print head 14 from the head position detection unit 17, and detects the detected arrangement pattern. Is read from the pattern storage unit 25, and the main scanning of the print head 14 is controlled in accordance with the read main scanning pattern.

【0043】次に、図3に基づき配置パターンを説明す
る。まず、図3(a)は、ヘッド位置パターンを示す説
明図である。ある印刷ブロックの左端をLEB、右端を
REB、主走査方向の中心をCBとすると、ヘッド位置
パターンは、以下の各区間のいずれかに位置する6パタ
ーンとなる。即ち、各区間とは、印刷ブロックの左端L
EBから加減速領域AL以上離れた区間HP1と、印刷
ブロックの左端LEBから加減速領域AL以内の区間H
P2と、印刷ブロックの左端LEBから中心CBまでの
区間HP3と、中心CBから印刷ブロックの右端REB
までの区間HP4と、印刷ブロックの右端REBから加
減速領域AL以内の区間HP5と、印刷ブロックの右端
REBから加減速領域AL以上離れた区間HP6であ
る。
Next, an arrangement pattern will be described with reference to FIG. First, FIG. 3A is an explanatory diagram showing a head position pattern. Assuming that the left end of a certain print block is LEB, the right end is REB, and the center in the main scanning direction is CB, the head position patterns are six patterns located in any of the following sections. That is, each section is the left end L of the print block.
A section HP1 that is more than the acceleration / deceleration area AL from the EB, and a section H that is within the acceleration / deceleration area AL from the left end LEB of the print block.
P2, a section HP3 from the left end LEB of the print block to the center CB, and a right end REB of the print block from the center CB.
HP4, a section HP5 within the acceleration / deceleration area AL from the right end REB of the print block, and a section HP6 separated from the right end REB of the print block by the acceleration / deceleration area AL or more.

【0044】ここで、図3中のRSは印刷ブロックの右
端から加減速領域ALだけ離れた位置を、LSは印刷ブ
ロックの左端から加減速領域ALだけ離れた位置をそれ
ぞれ示す。プリントヘッド14が点RS,LSに位置す
る場合、プリントヘッド14は各点RS,LSから所定
の方向に走行を開始して所定の加減速を行い、印刷ブロ
ックの端部に到達する前に定速走行状態となって、印刷
ブロックを印字することが可能である。従って、点R
S,LSは、走行開始点,走行終了点または走行基準点
として把握することができる。
Here, RS in FIG. 3 indicates a position separated from the right end of the print block by the acceleration / deceleration area AL, and LS indicates a position separated from the left end of the print block by the acceleration / deceleration area AL. When the print head 14 is located at the points RS and LS, the print head 14 starts traveling from each point RS and LS in a predetermined direction, performs a predetermined acceleration / deceleration, and determines before reaching the end of the print block. In the high-speed running state, the printing block can be printed. Therefore, the point R
S and LS can be grasped as a traveling start point, a traveling end point, or a traveling reference point.

【0045】次に、図3(b1)〜(b5)は、最初の主走
査で印刷される先行印刷ブロックと次の主走査で印刷さ
れる後行印刷ブロックとの位置関係によって定まるブロ
ックパターンを示している。図中では、左端側に主走査
方向の座標の原点をとり、右側に向かうにつれて座標デ
ータの値が増大するものとして説明する。
FIGS. 3 (b1) to 3 (b5) show block patterns determined by the positional relationship between the preceding print block printed in the first main scan and the subsequent print block printed in the next main scan. Is shown. In the drawing, the origin of the coordinates in the main scanning direction is set at the left end, and the value of the coordinate data increases toward the right.

【0046】第1のブロックパターンは、図3(b1)に
示すように、後行印刷ブロックB2の一方の端部(RE
B2)の座標値が先行印刷ブロックB1の対応する端部
(REB1)の座標値よりも小さい場合、換言すれば、
後行印刷ブロックB2の一方の端部REB2が先行印刷
ブロックのB1の対応する端部REB1よりも、他方の
端部LEB側に位置する場合である。
As shown in FIG. 3 (b1), the first block pattern has one end (RE) of the succeeding print block B2.
If the coordinate value of B2) is smaller than the coordinate value of the corresponding end (REB1) of the preceding print block B1, in other words,
This is a case where one end REB2 of the succeeding printing block B2 is located closer to the other end LEB than the corresponding end REB1 of B1 of the preceding printing block.

【0047】第2のブロックパターンは、図3(b2)に
示すように、後行印刷ブロックB2の一方の端部REB
2が、先行印刷ブロックB1の対応する端部REB1側
の走行基準点RS1から一方の端部REB側に向けて加
減速領域AL以内に位置する場合である。
As shown in FIG. 3 (b2), the second block pattern has one end REB of the succeeding print block B2.
No. 2 is located within the acceleration / deceleration area AL from the traveling reference point RS1 on the side of the corresponding end REB1 of the preceding print block B1 toward the one end REB.

【0048】第3のブロックパターンは、図3(b3)に
示すように、後行印刷ブロックB2の他方の端部LEB
2側の走行基準点LS2が、先行印刷ブロックB1の一
方の端部REB1側の走行基準点RS1よりも一方の端
部REB側に位置する場合である。
The third block pattern is, as shown in FIG. 3 (b3), the other end LEB of the succeeding print block B2.
This is the case where the traveling reference point LS2 on the second side is located on one end REB side of the traveling reference point RS1 on the one end REB1 side of the preceding print block B1.

【0049】第4のブロックパターンは、図3(b4)に
示すように、先行印刷ブロックB1の一方の端部REB
1側の走行基準点RS1が後行印刷ブロックB2の範囲
内に位置する場合において、走行基準点RS1から後行
印刷ブロックB2の一方の端部REB2までの距離ΔR
の方が、走行基準点RS1から後行印刷ブロックB2の
他方の端部LEB2までの距離ΔLよりも長い場合であ
る。
The fourth block pattern is, as shown in FIG. 3 (b4), one end REB of the preceding print block B1.
When the first reference point RS1 is located within the range of the subsequent print block B2, the distance ΔR from the reference point RS1 to one end REB2 of the subsequent print block B2.
Is longer than the distance ΔL from the traveling reference point RS1 to the other end LEB2 of the succeeding print block B2.

【0050】第5のブロックパターンは、図3(b5)示
すように、先行印刷ブロックB1の一方の端部REB1
側の走行基準点RS1が後行印刷ブロックB2の範囲内
に位置する場合において、走行基準点RS1から後行印
刷ブロックB2の一方の端部REB2までの距離ΔRの
方が、走行基準点RS1から後行印刷ブロックB2の他
方の端部LEB2までの距離ΔLよりも短い場合であ
る。
As shown in FIG. 3 (b5), the fifth block pattern includes one end REB1 of the preceding print block B1.
When the traveling reference point RS1 on the side is located within the range of the following printing block B2, the distance ΔR from the traveling reference point RS1 to one end REB2 of the following printing block B2 is greater than the traveling reference point RS1. This is a case where the distance is smaller than the distance ΔL to the other end LEB2 of the succeeding print block B2.

【0051】1−2作用 次に、図4〜図12に基づいて、本実施の形態の作用を
説明する。なお、以下の説明では、ステップを「S」と
略記する。まず、図4のフローチャートは、印刷処理を
示しており、最初に、加減速領域ALの値と(S1)、
プリントヘッド14の現在位置と(S2)、次の主走査
で印刷すべき先行印刷ブロックB1の位置、印刷範囲
(S3)とをそれぞれ検出する。
Next, the operation of the present embodiment will be described with reference to FIGS. In the following description, steps are abbreviated as “S”. First, the flowchart of FIG. 4 shows the printing process. First, the value of the acceleration / deceleration area AL and (S1)
The current position of the print head 14 (S2), the position of the preceding print block B1 to be printed in the next main scan, and the print range (S3) are detected.

【0052】そして、更に次の主走査で印刷すべき後行
印刷ブロックB2が存在するか否かを判定し(S4)、
後行印刷ブロックB2が存在する場合には、前記S3と
同様に、後行印刷ブロックB2の位置、印刷範囲を検出
する(S5)。これにより、パス制御部26は、配置パ
ターンを検出し、各印刷ブロックB1,B2を印刷する
ための主走査パターンを決定する(S6)。なお、S6
の詳細については更に後述する。
Then, it is determined whether or not there is a succeeding print block B2 to be printed in the next main scan (S4).
If the succeeding print block B2 exists, the position and print range of the succeeding print block B2 are detected in the same manner as in S3 (S5). Accordingly, the path control unit 26 detects the arrangement pattern and determines a main scanning pattern for printing each of the print blocks B1 and B2 (S6). Note that S6
Will be further described later.

【0053】次に、S6で決定された主走査パターンに
従ってプリントエンジン13を駆動することにより、各
印刷ブロックB1,B2を印刷させる(S7)。そし
て、印刷が終了したか否かを判定し(S8)、印刷が終
了していない場合は、S1に戻って処理を繰り返す。印
刷を終了したと判定された場合は、印刷記録媒体を排紙
させる(S9)。一方、前記S4で後行印刷ブロックが
存在しないと判定された場合は、先行印刷ブロックB1
のみを印刷し(S10)、S8に移る。
Next, by driving the print engine 13 in accordance with the main scanning pattern determined in S6, each print block B1, B2 is printed (S7). Then, it is determined whether or not the printing is completed (S8). If the printing is not completed, the process returns to S1 and repeats the processing. If it is determined that the printing has been completed, the print recording medium is discharged (S9). On the other hand, if it is determined in S4 that the succeeding print block does not exist, the preceding print block B1
Only (S10) is printed, and the process proceeds to S8.

【0054】次に、図5のフローチャートは、図4中の
S6として示された主走査パターン決定処理を示してい
る。
Next, the flowchart of FIG. 5 shows the main scanning pattern determination processing shown as S6 in FIG.

【0055】まず、プリントヘッド14の現在位置が図
3(a)に示すヘッド位置パターンHP1〜HP6のい
ずれに該当するかを検出する(S21)。次に、先行印
刷ブロックB1及び後行印刷ブロックB2の位置情報に
基づいて、両ブロックB1,B2の位置関係が図3(b
1)〜(b5)に示すブロックパターンBP1〜BP5の
いずれに該当するかを検出する(S22)。
First, it is detected which of the head position patterns HP1 to HP6 shown in FIG. 3A corresponds to the current position of the print head 14 (S21). Next, based on the position information of the preceding print block B1 and the succeeding print block B2, the positional relationship between the blocks B1 and B2 is shown in FIG.
It is detected which of the block patterns BP1 to BP5 shown in 1) to (b5) corresponds (S22).

【0056】そして、検出されたヘッド位置パターンH
P及びブロックパターンBPを検索キーとして図2に示
すパターン記憶部25を検索し(S23)、配置パター
ンに対応付けられた主走査パターンを読み出して選択す
る(S24)。ここで、パターン記憶部25は階層構造
をとるため、最初にヘッド位置パターンHPで検索範囲
を絞り込み、次に、検出されたヘッド位置パターンHP
に対応付けられた各ブロックパターンBP1〜BP5の
中から検出されたブロックパターンに該当するものを検
索し、これにより主走査パターンを決定する。
Then, the detected head position pattern H
The pattern storage unit 25 shown in FIG. 2 is searched using P and the block pattern BP as search keys (S23), and the main scanning pattern associated with the arrangement pattern is read and selected (S24). Here, since the pattern storage unit 25 has a hierarchical structure, the search range is first narrowed down by the head position pattern HP, and then the detected head position pattern HP
The main scanning pattern is determined by searching for a block pattern corresponding to the detected block pattern from among the block patterns BP1 to BP5 associated with.

【0057】1−3主走査パターン 次に、図6〜図11は、各配置パターン毎の主走査パタ
ーンを示している。まず、図6は、プリントヘッド14
が先行印刷ブロックの左端LEBから加減速領域AL以
上離れた領域に位置する場合、即ち、ヘッド位置パター
ンがHP1の場合における各ブロックパターン毎の主走
査パターンをそれぞれ示している。
1-3. Main Scanning Pattern Next, FIGS. 6 to 11 show main scanning patterns for each arrangement pattern. First, FIG.
Indicates a main scanning pattern for each block pattern when the head position pattern is located in an area which is more than the acceleration / deceleration area AL from the left end LEB of the preceding print block, that is, when the head position pattern is HP1.

【0058】ブロックパターンBP1の場合は、後行印
刷ブロックB2の右端REB2が先行印刷ブロックB1
の右端REB1よりも左側に位置する。従って、先行印
刷ブロックB1を左→右の主走査で印刷したときの走行
基準点(停止位置)RS1は、後行印刷ブロックB2を
印刷するときの走行基準点RS2よりも右側に位置する
ことになる。つまり、先行印刷ブロックB1の印刷停止
位置RS1から主走査方向を反転させて後行印刷ブロッ
クB2を印刷することができる。そこで、第1の主走査
P1は、図中バツ印で示すプリントヘッド14の現在位
置から先行印刷ブロックB1の右側の走行基準点RS1
まで移動しつつ先行印刷ブロックB1を印刷する。次
に、後行印刷ブロックB2の位置まで紙送りを行った
後、第2の主走査P2は、走行基準点RS1から後行印
刷ブロックB2の左側の走行基準点LS2まで移動しつ
つ後行印刷ブロックB2を印刷する。
In the case of the block pattern BP1, the right end REB2 of the succeeding printing block B2 is set to the preceding printing block B1.
Is located on the left side of the right end REB1. Therefore, the running reference point (stop position) RS1 when the preceding printing block B1 is printed in the left-to-right main scanning is located on the right side of the running reference point RS2 when printing the succeeding printing block B2. Become. That is, the succeeding print block B2 can be printed by reversing the main scanning direction from the print stop position RS1 of the preceding print block B1. Therefore, the first main scan P1 is performed from the current position of the print head 14 indicated by the cross in the figure to the traveling reference point RS1 on the right side of the preceding print block B1.
The preceding printing block B1 is printed while moving to Next, after the paper has been fed to the position of the succeeding printing block B2, the second main scan P2 performs the following printing while moving from the traveling reference point RS1 to the traveling reference point LS2 on the left side of the succeeding printing block B2. Print block B2.

【0059】ブロックパターンBP2の場合は、第1の
主走査P1で、プリントヘッド14の現在位置から後行
印刷ブロックB2の右側の走行基準点RS2まで移動し
つつ先行印刷ブロックB1を印刷する。次に、紙送りを
行ってプリントヘッド14の副走査方向の位置を後行印
刷ブロックB1の垂直位置に合わせた後、第2の主走査
P2では、プリントヘッド14を右側の走行基準点RS
2から左側の走行基準点LS2まで移動させつつ後行印
刷ブロックB2を印刷する。
In the case of the block pattern BP2, the preceding print block B1 is printed in the first main scan P1 while moving from the current position of the print head 14 to the running reference point RS2 on the right side of the succeeding print block B2. Next, after the paper is fed to adjust the position of the print head 14 in the sub-scanning direction to the vertical position of the succeeding print block B1, in the second main scan P2, the print head 14 is moved to the right traveling reference point RS.
The subsequent printing block B2 is printed while moving from 2 to the left traveling reference point LS2.

【0060】ブロックパターンBP3の場合は、第1の
主走査P1で、プリントヘッド14の現在位置から先行
印刷ブロックB1の右側の走行基準点RS1まで移動さ
せつつ先行印刷ブロックB1を印刷する。そして、紙送
りを行った後、第2の主走査P2では、走行基準点RS
1から後行印刷ブロックB2の右側の走行基準点RS2
まで移動させつつ後行印刷ブロックB2を印刷する。
In the case of the block pattern BP3, the preceding print block B1 is printed in the first main scan P1 while moving from the current position of the print head 14 to the running reference point RS1 on the right side of the preceding print block B1. Then, after the paper is fed, in the second main scan P2, the traveling reference point RS
1 to the running reference point RS2 on the right side of the succeeding printing block B2
The subsequent printing block B2 is printed while moving to the next position.

【0061】ブロックパターンBP4の場合は、第1の
主走査P1で、プリントヘッド14の現在位置から先行
印刷ブロックB1の右側の走行基準点RS1まで移動さ
せつつ先行印刷ブロックB1を印刷し、所定の紙送りを
行う。次に、第2の主走査P2では、走行基準点RS1
から後行印刷ブロックB2の左側の走行基準点LS2ま
で移動させる。そして、第3の主走査P3では、プリン
トヘッド14を左側の走行基準点LS2から右側の走行
基準点RS2まで移動させつつ後行印刷ブロックB2を
印刷する。即ち、ブロックパターンBP4では、図3
(b4)と共に上述した通り、先行印刷ブロックB1を印
刷したときの停止位置RS1から後行印刷ブロックB2
の左側走行基準点LS2までの距離の方が、停止位置R
S1から後行印刷ブロックB2の右側走行基準点RS2
までの距離よりも短い。従って、第2の主走査P2で
は、プリントヘッド14を左側の走行基準点LS2まで
引き戻し、第3の主走査P3に備えるようになってい
る。
In the case of the block pattern BP4, the preceding print block B1 is printed in the first main scan P1 while moving from the current position of the print head 14 to the running reference point RS1 on the right side of the preceding print block B1. Feed the paper. Next, in the second main scan P2, the traveling reference point RS1
To the running reference point LS2 on the left side of the succeeding printing block B2. Then, in the third main scan P3, the succeeding print block B2 is printed while moving the print head 14 from the left traveling reference point LS2 to the right traveling reference point RS2. That is, in the block pattern BP4, FIG.
As described above with (b4), from the stop position RS1 when printing the preceding print block B1 to the succeeding print block B2.
The distance to the left traveling reference point LS2 is the stop position R
From S1, the right traveling reference point RS2 of the succeeding print block B2
Shorter than the distance to. Therefore, in the second main scan P2, the print head 14 is pulled back to the left traveling reference point LS2, and is prepared for the third main scan P3.

【0062】ブロックパターンBP5の場合は、第1の
主走査P1で、プリントヘッド14の現在位置から後行
印刷ブロックB2の右側の走行基準点RS2まで移動さ
せつつ先行印刷ブロックB1を印刷する。次に、所定の
紙送りを行い、第2の主走査P2では、右側の走行基準
点RS2から左側の走行基準点LS2までプリントヘッ
ド14を移動させつつ後行印刷ブロックB2を印刷す
る。
In the case of the block pattern BP5, the preceding print block B1 is printed in the first main scan P1 while moving from the current position of the print head 14 to the running reference point RS2 on the right side of the succeeding print block B2. Next, a predetermined paper feed is performed, and in the second main scan P2, the succeeding print block B2 is printed while moving the print head 14 from the right traveling reference point RS2 to the left traveling reference point LS2.

【0063】次に、図7は、プリントヘッド14が先行
印刷ブロックB1の左端LEB1から加減速領域AL以
内の領域にある場合、即ち、ヘッド位置パターンHP2
における各ブロックパターン毎の主走査パターンを示し
ている。
Next, FIG. 7 shows a case where the print head 14 is located in the area within the acceleration / deceleration area AL from the left end LEB1 of the preceding print block B1, that is, the head position pattern HP2.
2 shows a main scanning pattern for each block pattern.

【0064】ヘッド位置パターンHP2の場合は、先行
印刷ブロックの端部LEB1から加減速領域AL以内に
位置するため、現在位置から走行を開始しても所定の定
速状態に達する前に先行印刷ブロックB1内に進入して
しまう。従って、プリントヘッド14の現在位置がヘッ
ド位置パターンHP2に属する場合は、プリントヘッド
14の位置を調整する必要がある。そこで、第1の主走
査P1では、バツ印で示す現在位置から加減速領域AL
だけプリントヘッド14を左側に移動させ、少なくとも
先行印刷ブロックB1の左側の走行基準点LS1以上離
れた場所に位置させる。このヘッド位置調整に用いる主
走査P1の後、図6と共に上述した通りの主走査を行
う。つまり、図6中に示す各主走査の符号を1ずつ繰り
下げ、ヘッド位置調整用の主走査をP1としたものが、
ヘッド位置パターンHP2における主走査パターンとな
る。
In the case of the head position pattern HP2, since the head position pattern HP2 is located within the acceleration / deceleration area AL from the end LEB1 of the preceding print block, even if the vehicle starts traveling from the current position, it does not reach the predetermined constant speed state before reaching the predetermined constant speed state. It enters into B1. Therefore, when the current position of the print head 14 belongs to the head position pattern HP2, it is necessary to adjust the position of the print head 14. Therefore, in the first main scan P1, the acceleration / deceleration area AL is shifted from the current position indicated by the cross.
Then, the print head 14 is moved to the left by at least the left side of the preceding print block B1, and is located at a position apart from the running reference point LS1. After the main scanning P1 used for head position adjustment, the main scanning as described above with reference to FIG. 6 is performed. That is, the code of each main scan shown in FIG. 6 is moved down by one, and the main scan for head position adjustment is set to P1.
This is the main scanning pattern in the head position pattern HP2.

【0065】図8に示すヘッド位置パターンHP3の場
合は、プリントヘッド14が先行印刷ブロックB1の中
心から左端LEB1までの領域内に位置する場合であ
る。この場合も、HP2の場合と同様に、プリントヘッ
ド14の現在位置から走行を開始しても先行印刷ブロッ
クB1を印刷することはできないため、最初にヘッド位
置の調整を行う必要がある。そこで、第1の主走査P1
では、プリントヘッド14を現在位置から先行印刷ブロ
ックB1の左側の走行基準点LS1まで移動させる。従
って、HP2の場合と同様に、ヘッド位置調整用の第1
の主走査P1を行った後、図6中に示す各主走査を行
う。
In the case of the head position pattern HP3 shown in FIG. 8, the print head 14 is located in the area from the center of the preceding print block B1 to the left end LEB1. Also in this case, as in the case of HP2, even if the print head 14 starts running from the current position, the preceding print block B1 cannot be printed, so that the head position needs to be adjusted first. Therefore, the first main scan P1
Then, the print head 14 is moved from the current position to the traveling reference point LS1 on the left side of the preceding print block B1. Therefore, as in the case of HP2, the first for head position adjustment is performed.
After performing the main scan P1, each main scan shown in FIG. 6 is performed.

【0066】図9に示すヘッド位置パターンHP4の場
合は、プリントヘッド14が先行印刷ブロックB1の中
心から右端REB1までの領域内に位置する場合であ
り、HP3の状態を反転させた場合に等しい。従って、
HP4の場合は、第1の主走査P1で、プリントヘッド
14を現在位置から先行印刷ブロックB1の右側の走行
基準点RS1まで移動させて位置調整を行う。次に、ブ
ロックパターンBP1の場合は、、第2の主走査P2で
走行基準点RS1から左側の走行基準点LS1まで移動
させつつ先行印刷ブロックB1を印刷する。そして、所
定の紙送りを行った後、第3の主走査P3では、走行基
準点LS1から後行印刷ブロックB2の右側の走行基準
点RS2まで移動させつつ後行印刷ブロックB2を印刷
する。
In the case of the head position pattern HP4 shown in FIG. 9, the print head 14 is located in the region from the center of the preceding print block B1 to the right end REB1, which is equivalent to the case where the state of HP3 is reversed. Therefore,
In the case of HP4, the position is adjusted by moving the print head 14 from the current position to the running reference point RS1 on the right side of the preceding print block B1 in the first main scan P1. Next, in the case of the block pattern BP1, the preceding print block B1 is printed while moving from the traveling reference point RS1 to the left traveling reference point LS1 in the second main scan P2. Then, after performing the predetermined paper feed, in the third main scan P3, the succeeding print block B2 is printed while moving from the travel reference point LS1 to the travel reference point RS2 on the right side of the subsequent print block B2.

【0067】なお、以下に述べる各ヘッド位置パターン
HP4,HP5,HP6は、HP3,HP2,HP1の
状態をそれぞれ裏返した場合に等しいので、図9〜図1
0中に示すRS1とLS1、RS2とLS2の符号を交
換すれば、図6〜図8と共に上述した説明を引用するこ
とができる。従って、HP4〜HP6における各ブロッ
クパターンBP1〜BP5毎の主走査パターンの詳細は
割愛する。
The head position patterns HP4, HP5, and HP6 described below are equivalent to the case where the states of HP3, HP2, and HP1 are turned over, respectively.
If the symbols of RS1 and LS1 and RS2 and LS2 shown in 0 are exchanged, the above description can be cited together with FIGS. 6 to 8. Therefore, the details of the main scanning pattern for each of the block patterns BP1 to BP5 in HP4 to HP6 are omitted.

【0068】図10に示すヘッド位置パターンHP5の
場合は、プリントヘッド14が先行印刷ブロックREB
1から加減速領域AL以内に位置する場合であり、HP
2の状態を反転させたものに等しい。従って、HP5の
場合は、第1の主走査P1でプリントヘッド14を現在
位置から右方に加減速領域ALだけ移動させ、第2の主
走査P2で先行印刷ブロックB1を印刷する。
In the case of the head position pattern HP5 shown in FIG. 10, the print head 14
1 is within the acceleration / deceleration area AL.
It is equivalent to the inverted state of 2. Therefore, in the case of HP5, the print head 14 is moved rightward from the current position by the acceleration / deceleration area AL in the first main scan P1, and the preceding print block B1 is printed in the second main scan P2.

【0069】図11に示すヘッド位置パターンHP6の
場合は、プリントヘッド14が先行印刷ブロックB1の
右端REB1から加減速領域AL以上離れた場合であ
り、HP1の状態を反転させたものに等しい。
In the case of the head position pattern HP6 shown in FIG. 11, the print head 14 is separated from the right end REB1 of the preceding print block B1 by the acceleration / deceleration area AL or more, which is equivalent to the state where the state of HP1 is inverted.

【0070】次に、図12は、図5に示すパターン決定
処理の一つの具体例を示すフローチャートである。ま
ず、最初に検出されたヘッド位置パターンがHP1であ
るか否かを判定し(S31)、ヘッド位置パターンがH
P1の場合は、検出されたブロックパターンがBP1で
あるか否かを判定する(S32)。ブロックパターンが
BP1である場合は、上述した通り、第1の主走査P1
でプリントヘッド14を現在位置から先行印刷ブロック
B1の右側の走行基準点RS1まで移動させつつ先行印
刷ブロックB1を印刷し、所定の紙送りを行った後、第
2の主走査パターンP2で走行基準点RS1から後行印
刷ブロックB2の左側の走行基準点LS2まで移動させ
つつ後行印刷ブロックB2を印刷する主走査パターンを
選択する(S33)。一方、ブロックパターンがBP1
でない場合は、ブロックパターンがBP2であるか否か
を判定し(S34)、ブロックパターンがBP2の場合
は、該パターンに応じて設定された主走査パターンを選
択する(S35)。以下同様にして、ブロックパターン
がBP3であるか否か(S36)、BP4であるか否か
(S38)をそれぞれ判定し、各パターンに応じた主走
査パターンをそれぞれ選択する(S37,S39)。検
出されたブロックパターンがBP4でないと判定された
ときは、ブロックパターンがBP5の場合であるから、
ブロックパターンBP5に応じて設定された主走査パタ
ーンを選択する(S40)。なお、ヘッド位置パターン
がHP1ではない場合は、図12に示す処理と同様の処
理を行うことにより、各ヘッド位置パターンHP2〜H
P6における各ブロックパターン毎の主走査パターンを
選択する。
FIG. 12 is a flowchart showing one specific example of the pattern determination processing shown in FIG. First, it is determined whether or not the head position pattern detected first is HP1 (S31).
In the case of P1, it is determined whether or not the detected block pattern is BP1 (S32). When the block pattern is BP1, as described above, the first main scan P1
To print the preceding print block B1 while moving the print head 14 from the current position to the travel reference point RS1 on the right side of the preceding print block B1, perform a predetermined paper feed, and then use the travel reference in the second main scanning pattern P2. A main scanning pattern for printing the succeeding printing block B2 is selected while moving from the point RS1 to the traveling reference point LS2 on the left side of the succeeding printing block B2 (S33). On the other hand, the block pattern is BP1
If not, it is determined whether or not the block pattern is BP2 (S34). If the block pattern is BP2, a main scanning pattern set according to the pattern is selected (S35). Similarly, it is determined whether or not the block pattern is BP3 (S36) and BP4 (S38), and a main scanning pattern corresponding to each pattern is selected (S37, S39). When it is determined that the detected block pattern is not BP4, it means that the block pattern is BP5.
The main scanning pattern set according to the block pattern BP5 is selected (S40). When the head position pattern is not HP1, the same processing as that shown in FIG.
The main scanning pattern for each block pattern in P6 is selected.

【0071】このように、まずヘッド位置パターンを判
定した後、各ブロックパターンのいずれに該当するかを
判定することにより、最適な主走査パターンを読み出し
て選択することができる。
As described above, after the head position pattern is determined first, it is possible to read out and select the optimal main scanning pattern by determining which of the block patterns corresponds.

【0072】このように構成される本実施の形態によれ
ば以下の効果を奏する。
According to the present embodiment configured as described above, the following effects can be obtained.

【0073】第1に、先行印刷ブロックB1のみならず
次の後行印刷ブロックB2まで考慮して主走査を制御す
るため、先行印刷ブロックB1の印刷終了時に後行印刷
ブロックB2の印刷に適した位置までプリントヘッド1
4を移動させることができ、印刷時間を短縮することが
できる。即ち、本実施の形態では、後行印刷ブロックB
2の配置関係まで考慮して主走査パターンを決定するた
め、プリントヘッド14の移動量のみならず移動回数を
も低減することができ、加減速時間を短縮して印刷速度
を向上することができる。
First, since the main scanning is controlled in consideration of not only the preceding printing block B1 but also the next succeeding printing block B2, it is suitable for printing the succeeding printing block B2 at the end of printing of the preceding printing block B1. Print head 1 to position
4 can be moved, and the printing time can be reduced. That is, in the present embodiment, the subsequent printing block B
Since the main scanning pattern is determined in consideration of the arrangement relationship of No. 2, not only the amount of movement of the print head 14 but also the number of times of movement can be reduced, the acceleration / deceleration time can be reduced, and the printing speed can be improved. .

【0074】特に、複数行を同時印刷可能なプリントヘ
ッド14の移動を効率化するため、マルチライン型プリ
ントヘッドによる高速印刷効果と本実施の形態によるプ
リントヘッド移動回数の低減による高速印刷効果との相
乗効果によって、より一層の高速印刷を実現することが
できる。
In particular, in order to increase the efficiency of the movement of the print head 14 capable of simultaneously printing a plurality of lines, the high-speed printing effect by the multi-line type print head and the high-speed printing effect by the reduction of the number of print head movements according to the present embodiment. Due to the synergistic effect, higher-speed printing can be realized.

【0075】第2に、予め配置パターン毎に好ましい主
走査パターンを設定してパターン記憶部25に登録して
いるため、検出された配置パターンに基づいてパターン
記憶部25を検索するだけで主走査パターンを選択する
ことができる。従って、好ましい主走査パターンを毎回
演算して求める必要がなく、コンピュータの負荷を増大
させずに速やかに主走査パターンを決定することができ
る。
Second, since a preferable main scanning pattern is set in advance for each arrangement pattern and registered in the pattern storage unit 25, the main scanning is performed only by searching the pattern storage unit 25 based on the detected arrangement pattern. You can select a pattern. Therefore, there is no need to calculate and find a preferable main scanning pattern every time, and the main scanning pattern can be quickly determined without increasing the load on the computer.

【0076】第3に、配置パターンは、ヘッド位置パタ
ーンHP1〜HP6とブロックパターンBP1〜BP5
とから階層構造として構成しているため、最初にヘッド
位置パターンを検出するだけで検索範囲を絞り込むこと
ができ、検索時間を短縮して速やかに好ましい主走査パ
ターンを選択することができる。
Third, the arrangement patterns are head position patterns HP1 to HP6 and block patterns BP1 to BP5.
Therefore, the search range can be narrowed only by first detecting the head position pattern, and the search time can be shortened to quickly select a preferable main scanning pattern.

【0077】2.第2の実施の形態 次に、図13に基づいて、本発明の第3の実施の形態を
説明する。本実施の形態の特徴は、プリントヘッド14
の速度を複数段階で調整できる場合に、各ヘッド速度毎
に加減速領域を定める点にある。なお、以下の各実施の
形態では、上述した第1の実施の形態と同一の構成要素
に同一の符号を付し、その説明を省略するものとする。
2. Second Embodiment Next, a third embodiment of the present invention will be described with reference to FIG. The feature of this embodiment is that the print head 14
When the speed can be adjusted in a plurality of stages, the acceleration / deceleration area is determined for each head speed. In the following embodiments, the same components as those in the above-described first embodiment are denoted by the same reference numerals, and description thereof will be omitted.

【0078】図13は、本実施の形態による印刷処理を
示すフローチャートであり、本処理は、図4中に示すS
2〜S10の各ステップを全て備えている。これに加え
て、本処理では、まず最初に、ヘッド速度Vを検出し
(S51)、検出されたヘッド速度Vに応じた加減速領
域ALを加減速領域テーブル31から読み出して設定す
る(S52)。
FIG. 13 is a flowchart showing a printing process according to the present embodiment.
Steps 2 to 10 are all provided. In addition, in this process, first, the head speed V is detected (S51), and the acceleration / deceleration area AL corresponding to the detected head speed V is read from the acceleration / deceleration area table 31 and set (S52). .

【0079】例えば、印刷モード等の各種条件によって
プリントヘッド14の移動速度を切換可能としたプリン
タの場合には、ヘッド速度に応じて、加速領域ALa及
び減速領域ALbの距離が相違する可能性がある。各印
刷ブロックB1,B2の位置関係に変化がなくても、加
減速領域ALの値が変化すれば、該当するブロックパタ
ーンが変化する可能性がある。例えば、先行印刷ブロッ
クB1の印刷時におけるヘッド速度が大きく、減速領域
の距離が通常速度の場合よりも長くなるとすれば、図3
(b3)中に示す印刷停止位置RS1は、増大した減速距
離の分だけ先行印刷ブロックB1の右端REB1から離
れ、後行印刷ブロックB2の印刷範囲内に進入する可能
性がある。印刷停止位置RS1が後行印刷ブロックB2
に進入した場合は、見かけ上はBP3のパターンに該当
しても、実質的にBP4やBP5に相当することにな
る。
For example, in the case of a printer in which the moving speed of the print head 14 can be switched according to various conditions such as the print mode, the distance between the acceleration area ALa and the deceleration area ALb may differ depending on the head speed. is there. Even if the positional relationship between the printing blocks B1 and B2 does not change, if the value of the acceleration / deceleration area AL changes, the corresponding block pattern may change. For example, if the head speed at the time of printing the preceding print block B1 is high and the distance of the deceleration area is longer than that at the normal speed, FIG.
The print stop position RS1 shown in (b3) may be apart from the right end REB1 of the preceding print block B1 by the increased deceleration distance and enter the print range of the succeeding print block B2. The print stop position RS1 is in the succeeding print block B2
In the case of entering, even if it apparently corresponds to the pattern of BP3, it substantially corresponds to BP4 or BP5.

【0080】そこで、加減速領域テーブル31に、各ヘ
ッド速度V1〜V3毎のそれぞれの加速領域ALa及び
減速領域ALbを予め登録しておき、ヘッド速度に応じ
た加減速領域ALを求める。これにより、より正確な配
置パターンに基づいて主走査パターンを選択することが
できる。
Therefore, the acceleration region ALa and the deceleration region ALb for each of the head speeds V1 to V3 are registered in advance in the acceleration / deceleration region table 31, and the acceleration / deceleration region AL corresponding to the head speed is obtained. This makes it possible to select a main scanning pattern based on a more accurate arrangement pattern.

【0081】このように構成される本実施の形態でも上
述した第1の実施の形態と同様の効果を得ることができ
る。これに加えて、本実施の形態では、ヘッド速度に応
じて加減速領域ALの値を設定するため、印刷中にヘッ
ド速度が変更される場合でも正確に配置パターンを検出
して好ましい主走査パターンを選択できる。
In the present embodiment configured as described above, the same effect as in the first embodiment can be obtained. In addition to this, in the present embodiment, since the value of the acceleration / deceleration area AL is set according to the head speed, even when the head speed is changed during printing, the arrangement pattern is accurately detected and the preferred main scanning pattern is set. Can be selected.

【0082】なお、図13中では、ヘッド速度をV1〜
V3の3段階で示しているが、これに限らず、2段階又
は4段階以上でヘッド速度を切り換え可能な場合にも適
用できる。また、加減速領域テーブル31では、加速領
域と減速領域とを分けて設定しているが、例えば、両者
の値を実質的に同一として扱っても構わない場合等に
は、両者を区別する必要はない。さらに、印刷中にヘッ
ド速度を切り換える可能性がある場合には、最大ヘッド
速度における加減速領域を用いて配置パターンの検出を
行うこともできる。
In FIG. 13, the head speeds are V1 to V1.
Although shown in three stages of V3, the present invention is not limited to this, and can be applied to a case where the head speed can be switched in two stages or four or more stages. In the acceleration / deceleration area table 31, the acceleration area and the deceleration area are set separately. For example, when both values may be treated as substantially the same, it is necessary to distinguish between the two. There is no. Further, when there is a possibility of switching the head speed during printing, the arrangement pattern can be detected using the acceleration / deceleration area at the maximum head speed.

【0083】3.第3の実施の形態 次に、図14,図15に基づいて本発明の第3の実施の
形態を説明する。本実施の形態の特徴は、各配置パター
ン毎に複数の主走査パターンを登録しておき、各主走査
パターンのうち最短の印刷時間を実現する主走査パター
ンを選択するようにした点にある。
3. Third Embodiment Next, a third embodiment of the present invention will be described with reference to FIGS. A feature of the present embodiment is that a plurality of main scanning patterns are registered for each arrangement pattern, and a main scanning pattern that realizes the shortest printing time is selected from the main scanning patterns.

【0084】図14は、本実施の形態による主走査パタ
ーン決定処理を示すフローチャートであり、本処理は、
図5中に示すS21〜S23を備えている。これに加え
て、本実施の形態では、各配置パターン毎に複数の主走
査パターンがそれぞれ登録されているため、検出された
配置パターンに該当する主走査パターンが複数検出され
る。そこで、検出された複数の主走査パターンのそれぞ
れについて印刷時間を予測し(S61)、各主走査パタ
ーンの中から最短の印刷時間を実現する主走査パターン
を選択する(S62)。
FIG. 14 is a flowchart showing the main scanning pattern determination processing according to the present embodiment.
S21 to S23 shown in FIG. 5 are provided. In addition, in this embodiment, since a plurality of main scanning patterns are registered for each arrangement pattern, a plurality of main scanning patterns corresponding to the detected arrangement pattern are detected. Therefore, the printing time is predicted for each of the plurality of detected main scanning patterns (S61), and the main scanning pattern that realizes the shortest printing time is selected from the main scanning patterns (S62).

【0085】例えば、ヘッド位置パターンHP3,ブロ
ックパターンBP1の場合における通常の主走査パター
ンは、図15(a)に示すように、プリントヘッド14
を加減速領域ALだけ引き戻して(P1)、走行基準点
LS1からRS1まで移動させて先行印刷ブロックB1
を印刷し(P2)、次に主走査方向を反転させて走行基
準点RS1からLS2まで移動させて後行印刷ブロック
B2を印刷するものである。しかし、例えば、図15
(b)に示すように、プリントヘッド14を引き戻すの
ではなく、走行基準点RS1までプリントヘッド14を
進め(P1)、RS1からLS2まで移動させて先行印
刷ブロックB1を印刷し(P2)、LS2からRS2ま
で移動させて後行印刷ブロックB2を印刷する(P3)
パターンも考えられる。同様に、図15(c)に示すH
P1,BP4の場合の通常の主走査パターンに対して
も、図15(d)に示すような変形パターンを想定する
ことができる。通常の印刷の場合は、通常の主走査パタ
ーンの印刷時間が最も短くなると考えられるが、例え
ば、各ブロックB1,B2の長さ、位置関係、ヘッド位
置、ヘッド速度、印刷解像度等の条件によっては、変形
パターンの印刷時間の方が短くなる可能性もあり得る。
For example, the normal main scanning pattern in the case of the head position pattern HP3 and the block pattern BP1 is, as shown in FIG.
Is moved back by the acceleration / deceleration area AL (P1), and is moved from the traveling reference point LS1 to RS1 so that the preceding print block B1 is moved.
Is printed (P2), and then the main scanning direction is reversed and moved from the traveling reference point RS1 to LS2 to print the succeeding print block B2. However, for example, FIG.
As shown in (b), instead of pulling back the print head 14, the print head 14 is advanced to the traveling reference point RS1 (P1), moved from RS1 to LS2, and the preceding print block B1 is printed (P2), LS2 And prints the succeeding print block B2 by moving the printer to RS2 (P3).
Patterns are also conceivable. Similarly, H shown in FIG.
A deformation pattern as shown in FIG. 15D can also be assumed for the normal main scanning pattern in the case of P1 and BP4. In the case of normal printing, it is considered that the printing time of the normal main scanning pattern is the shortest. The printing time of the deformation pattern may be shorter.

【0086】従って、パターン記憶部25には、各配置
パターン毎に通常の主走査パターンと変形パターンとを
それぞれ記憶しておき、各主走査パターン毎の印刷時間
を求めて最短時間をとる主走査パターンを求めるのであ
る。
Therefore, the pattern storage unit 25 stores a normal main scanning pattern and a deformed pattern for each arrangement pattern, and obtains the printing time for each main scanning pattern to take the shortest time. Find the pattern.

【0087】このように構成される本実施の形態でも第
1の実施の形態と同様の効果を得ることができる。これ
に加えて、本実施の形態では、複数の主走査パターンの
中から最短時間を実現する主走査パターンを選択するた
め、常に最短の印刷時間を得ることができる。
In the present embodiment configured as described above, the same effect as in the first embodiment can be obtained. In addition, in this embodiment, since the main scanning pattern that realizes the shortest time is selected from the plurality of main scanning patterns, the shortest printing time can always be obtained.

【0088】なお、印刷時間の予測方法には、少なくと
も以下の2種類がある。第1の方法は、ヘッド速度、ヘ
ッド位置、各ブロックの長さ、位置関係等の各パラメー
タの値を所定の演算式に入力することにより、各主走査
パターン毎の印刷時間を求める方法である。所定の演算
式は、比較的精密に立ててもよいし、近似式等で概算時
間を求めるようにしてもよい。第2の方法は、各パラメ
ータ毎に得点を設定し、得点の集計値によって印刷時間
の相対的関係を求める方法である。例えば、移動回数が
1回増加する毎にペナルティポイントを与え(例えば、
100ポイント/移動回数)、移動距離が増加する毎に
ペナルティポイントを与え(例えば、1ポイント/1パ
ルス分の移動)、最終得点の最も低い主走査パターンを
選択することができる。
There are at least the following two methods for estimating the printing time. The first method is a method of obtaining the printing time for each main scanning pattern by inputting values of parameters such as a head speed, a head position, a length of each block, and a positional relationship into a predetermined arithmetic expression. . The predetermined arithmetic expression may be set relatively accurately, or the approximate time may be obtained by an approximate expression or the like. The second method is a method in which a score is set for each parameter, and a relative relationship between printing times is obtained based on the total value of the scores. For example, a penalty point is given each time the number of times of movement increases (for example,
A penalty point is given each time the movement distance increases (for example, movement for one point / one pulse), and the main scan pattern with the lowest final score can be selected.

【0089】また、全ての配置パターンについて、該各
配置パターンに対応付けられた全ての主走査パターンを
考慮する必要はない。通常の主走査パターンと変形パタ
ーンとの間で印刷時間の逆転を生じうる場合にのみ印刷
時間に基づいて主走査パターンを決定することができ
る。なお、各主走査パターンの印刷時間の算出によって
全体の印刷時間が増大することのないように、主走査の
決定を速やかに行うのが好ましい。
Further, it is not necessary to consider all the main scanning patterns associated with each of the arrangement patterns. The main scanning pattern can be determined based on the printing time only when the printing time can be reversed between the normal main scanning pattern and the deformation pattern. Note that it is preferable to determine the main scan promptly so that the calculation of the print time of each main scan pattern does not increase the overall print time.

【0090】4.第4の実施の形態 次に、図16に基づいて本発明の第4の実施の形態を説
明する。本実施の形態の特徴は、ヘッド位置パターンを
4種類に簡素化した点にある。
4. Fourth Embodiment Next, a fourth embodiment of the present invention will be described with reference to FIG. This embodiment is characterized in that the head position patterns are simplified to four types.

【0091】図16は、本実施の形態によるヘッド位置
パターン等の状態を示す説明図であって、本実施の形態
では、ヘッド位置パターンをHP11〜HP14の4種
類として簡素化している。
FIG. 16 is an explanatory diagram showing the state of the head position pattern and the like according to the present embodiment. In this embodiment, the head position patterns are simplified as four types of HP11 to HP14.

【0092】HP11は、印刷ブロックの左端LEBか
ら加減速領域AL以上離れた領域にプリントヘッド14
が位置する場合であり、HP12は、印刷ブロックの左
端LEBから加減速領域ALだけ離れた走行基準点点L
Sと主走査方向の中心CBとの領域にプリントヘッド1
4が位置する場合であり、HP13は、中心CBから印
刷ブロックの右側の走行基準点RSまでの領域にプリン
トヘッド14が位置する場合であり、HP14は、プリ
ントヘッド14が印刷ブロックの右端REBから加減速
領域AL以上離れた領域に位置する場合である。HP1
2は、第1の実施の形態におけるHP2とHP3とを結
合したものであり、HP13は、HP4とHP5とを結
合させたものである。
The HP 11 is located in an area more than the acceleration / deceleration area AL from the left end LEB of the print block.
Is located, and the HP12 is a traveling reference point L which is separated from the left end LEB of the print block by the acceleration / deceleration area AL.
S and the print head 1 in the area between the center CB in the main scanning direction.
4 is located, HP13 is a case where the print head 14 is located in a region from the center CB to the running reference point RS on the right side of the print block, and HP14 is a case where the print head 14 is located from the right end REB of the print block. This is a case where it is located in an area that is more than the acceleration / deceleration area AL. HP1
2 is a combination of HP2 and HP3 in the first embodiment, and HP13 is a combination of HP4 and HP5.

【0093】図16(b)〜(e)には、各ヘッド位置
パターンHP11〜HP14におけるブロックパターン
BP1のときの主走査パターンを示している。ここで、
HP12及びHP13の場合、プリントヘッド14は、
第1の主走査P1によって、先行印刷ブロックB1の両
端側の走行基準点LS,RSのうち最も近い走行基準点
まで戻ってから、先行印刷ブロックB1を印刷するよう
になっている。
FIGS. 16B to 16E show main scanning patterns in the case of the block pattern BP1 in each of the head position patterns HP11 to HP14. here,
In the case of HP12 and HP13, the print head 14
The first main scan P1 prints the preceding print block B1 after returning to the closest travel reference point among the travel reference points LS and RS at both ends of the preceding print block B1.

【0094】このように構成される本実施の形態でも第
1の実施の形態と同様の効果を得ることができる。これ
に加えて、本実施の形態では、ヘッド位置パターンの種
類を簡素化しているため、より速やかにパターン判定を
行うことができ、コンピュータの負荷を低減することが
できる。
In the present embodiment configured as described above, the same effect as in the first embodiment can be obtained. In addition, in this embodiment, since the types of head position patterns are simplified, pattern determination can be performed more quickly, and the load on the computer can be reduced.

【0095】5.第5の実施の形態 次に、図17は、本発明の第5の実施の形態による主走
査パターンの一例を示している。本実施の形態の特徴
は、先行印刷ブロックB1を印刷するときに、原則とし
て後行印刷ブロックB2の左右いずれかの走行基準点L
S2,RS2まで移動してから停止する点にある。
5. Fifth Embodiment Next, FIG. 17 shows an example of a main scanning pattern according to a fifth embodiment of the present invention. The feature of the present embodiment is that, when printing the preceding printing block B1, in principle, the traveling reference point L on either the left or right of the succeeding printing block B2.
The point is that it stops after moving to S2 and RS2.

【0096】例えば、図17(c)に示すHP1,BP
3の場合は、第1の主走査P1は、先行印刷ブロックB
1の右側の走行基準点RS1で停止せず、後行印刷ブロ
ックB2の左側の走行基準点LS2まで移動して停止す
る。このように、本実施の形態では、原則として後行印
刷ブロックB2の走行基準点まで移動してから停止する
ように第1の主走査P1を設定するため、図17
(d),(e)に示すように、BP4とBP5との主走
査パターンは、移動量を除いて同一となる。従って、本
実施の形態では、BP4とBP5を区別する必要はな
い。なお、図17(a)に示すように、先行印刷ブロッ
クB1を印刷したときの停止位置RS1が後行印刷ブロ
ックB2の右側の走行基準点RS2よりも更に右側に位
置する場合があるので、「原則として」後行印刷ブロッ
クB2の走行基準点まで移動してから停止するものと表
現している。従って、より正確には、「先行印刷ブロッ
クB1を印刷したときの停止位置RS1が、後行印刷ブ
ロックB2の左右いずれかの走行基準点RS2,LS2
のうち先行印刷ブロックB1印刷時の進行方向(第1の
主走査方向)側に位置する走行基準点RS2よりも手前
にある場合は、当該走行基準点RS2まで移動してから
停止するように、先行印刷ブロックB1の主走査を制御
する」と表現することもできる。
For example, HP1, BP shown in FIG.
3, the first main scan P1 corresponds to the preceding print block B
1 does not stop at the running reference point RS1 on the right side, but moves to and stops at the running reference point LS2 on the left side of the succeeding print block B2. As described above, in the present embodiment, the first main scan P1 is set such that the first main scan P1 is stopped after moving to the traveling reference point of the succeeding print block B2 in principle.
As shown in (d) and (e), the main scanning patterns of BP4 and BP5 are the same except for the amount of movement. Therefore, in the present embodiment, it is not necessary to distinguish between BP4 and BP5. Note that, as shown in FIG. 17A, the stop position RS1 when the preceding print block B1 is printed may be located further to the right than the traveling reference point RS2 on the right side of the succeeding print block B2. In principle, "stops after moving to the travel reference point of the succeeding print block B2." Therefore, more precisely, "the stop position RS1 at the time of printing the preceding printing block B1 is the running reference point RS2, LS2
Among them, if it is before the traveling reference point RS2 located on the side of the traveling direction (first main scanning direction) at the time of printing the preceding printing block B1, it moves to the traveling reference point RS2 and then stops. The main scanning of the preceding print block B1 is controlled. "

【0097】このように構成される本実施の形態でも上
述した第1の実施の形態と同様の効果を得ることができ
る。これに加えて、本実施の形態では、先行印刷ブロッ
クB1を印刷する主走査の終点が、後行印刷ブロックB
2の左右いずれかの走行基準点LS2,RS2のうち最
も近い走行基準点と一致するように設定しているため、
制御を簡素化することができる。即ち、次の主走査の終
点が更に次の主走査の起点になるように制御を行うので
ある。
The present embodiment configured as described above can provide the same effects as those of the above-described first embodiment. In addition, in the present embodiment, the end point of the main scan for printing the preceding print block B1 is
2 is set so as to coincide with the closest traveling reference point of the left and right traveling reference points LS2 and RS2.
Control can be simplified. That is, control is performed so that the end point of the next main scan is the start point of the next main scan.

【0098】なお、当業者であれば、前記実施の形態に
記載された本発明の要旨の範囲内で種々の追加、変更、
各実施の形態の結合等が可能である。例えば、図1中に
示す記録媒体MMに所定のプログラム等を格納し、この
プログラム等をプリンタコントローラ12に読み込ませ
ることにより、本発明を実現することもできる。
It should be noted that those skilled in the art can make various additions, changes, and modifications within the scope of the present invention described in the above embodiments.
It is possible to combine the embodiments. For example, the present invention can be realized by storing a predetermined program or the like in the recording medium MM shown in FIG. 1 and causing the printer controller 12 to read the program or the like.

【0099】また、前記各実施の形態では、先行印刷ブ
ロックと一つの後行印刷ブロックとを考慮して主走査パ
ターンを決定する場合を述べたが、本発明はこれに限ら
ず、例えば、2個以上の後行印刷ブロックを考慮して主
走査パターンを決定することも可能である。
Further, in each of the above embodiments, the case where the main scanning pattern is determined in consideration of the preceding print block and one succeeding print block has been described. However, the present invention is not limited to this. It is also possible to determine the main scanning pattern in consideration of more than one subsequent printing block.

【0100】さらに、前記各実施の形態では、6種類ま
たは4種類のヘッド位置パターンと5種類のブロックパ
ターンとを例示したが、これに限定されない。例えば、
中心CBで分かれる左右2種類のヘッド位置パターンを
採用してもよいし、逆に、より細かくパターンを分ける
ことも可能である。
Further, in each of the above embodiments, six or four types of head position patterns and five types of block patterns have been exemplified, but the present invention is not limited to this. For example,
Two types of left and right head position patterns separated by the center CB may be adopted, and conversely, the patterns can be separated more finely.

【0101】[0101]

【発明の効果】以上説明した通り、本発明に係るシリア
ルプリンタ及びシリアル印刷方法によれば、先行印刷ブ
ロックのみならず後行印刷ブロックまで考慮して主走査
パターンを決定するため、プリントヘッドの移動回数を
低減して印刷時間を短縮することができる。
As described above, according to the serial printer and the serial printing method according to the present invention, the main scanning pattern is determined in consideration of not only the preceding printing block but also the succeeding printing block. By reducing the number of times, the printing time can be shortened.

【0102】また、プリントヘッドの現在位置及び各印
刷ブロックの位置関係に基づく配置パターン毎に予め好
ましい主走査パターンを設定しているため、配置パター
ンを検出するだけで好ましい主走査パターンを速やかに
選択することができる。
Further, since a preferable main scanning pattern is set in advance for each arrangement pattern based on the current position of the print head and the positional relationship of each print block, a preferable main scanning pattern is quickly selected only by detecting the arrangement pattern. can do.

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

【図1】本発明の第1実施の形態に係るシリアルプリン
タを用いた印刷システムの全体を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating an entire printing system using a serial printer according to a first embodiment of the present invention.

【図2】パターン記憶部の構成を示す説明図である。FIG. 2 is an explanatory diagram illustrating a configuration of a pattern storage unit.

【図3】ヘッド位置パターン及びブロックパターンを示
す説明図である。
FIG. 3 is an explanatory diagram showing a head position pattern and a block pattern.

【図4】印刷処理を示すフローチャートである。FIG. 4 is a flowchart illustrating a printing process.

【図5】主走査パターン決定処理を示すフローチャート
である。
FIG. 5 is a flowchart illustrating main scanning pattern determination processing.

【図6】ヘッド位置パターンHP1の場合の主走査パタ
ーンを示す説明図である。
FIG. 6 is an explanatory diagram showing a main scanning pattern in the case of a head position pattern HP1.

【図7】ヘッド位置パターンHP2の場合の主走査パタ
ーンを示す説明図である。
FIG. 7 is an explanatory diagram showing a main scanning pattern in the case of a head position pattern HP2.

【図8】ヘッド位置パターンHP3の場合の主走査パタ
ーンを示す説明図である。
FIG. 8 is an explanatory diagram showing a main scanning pattern in the case of a head position pattern HP3.

【図9】ヘッド位置パターンHP4の場合の主走査パタ
ーンを示す説明図である。
FIG. 9 is an explanatory diagram showing a main scanning pattern in the case of a head position pattern HP4.

【図10】ヘッド位置パターンHP5の場合の主走査パ
ターンを示す説明図である。
FIG. 10 is an explanatory diagram showing a main scanning pattern in the case of a head position pattern HP5.

【図11】ヘッド位置パターンHP6の場合の主走査パ
ターンを示す説明図である。
FIG. 11 is an explanatory diagram showing a main scanning pattern in the case of a head position pattern HP6.

【図12】主走査パターン決定処理の具体例の一部を示
すフローチャートである。
FIG. 12 is a flowchart illustrating a part of a specific example of main scanning pattern determination processing.

【図13】本発明の第2の実施の形態に係る印刷処理を
示すフローチャートである。
FIG. 13 is a flowchart illustrating a printing process according to the second embodiment of the present invention.

【図14】本発明の第3の実施の形態に係る主走査パタ
ーン決定処理を示すフローチャートである。
FIG. 14 is a flowchart illustrating main scanning pattern determination processing according to a third embodiment of the present invention.

【図15】通常の主走査パターンと変形パターンとの具
体的一例を部分的に示す説明図である。
FIG. 15 is an explanatory view partially showing a specific example of a normal main scanning pattern and a deformation pattern.

【図16】本発明の第4の実施の形態に用いられるヘッ
ド位置パターン等を示す説明図である。
FIG. 16 is an explanatory diagram showing a head position pattern and the like used in a fourth embodiment of the present invention.

【図17】本発明の第5の実施の形態による主走査パタ
ーンの具体的一例を部分的に示す説明図である。
FIG. 17 is an explanatory diagram partially showing a specific example of a main scanning pattern according to the fifth embodiment of the present invention.

【図18】従来技術による主走査制御の方法を示し、図
18(a)は単方向印刷、図18(b)は双方向印刷、
図18(c)はロジカルシークの場合をそれぞれ示す。
18 (a) and 18 (b) show a main scanning control method according to the prior art, where FIG. 18 (a) is a unidirectional printing, FIG.
FIG. 18C shows the case of logical seek.

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

1 ホストコンピュータ 11 プリンタ 12 プリンタコントローラ 13 プリントエンジン 14 プリントヘッド 17 ヘッド位置検出部 25 パターン記憶部 26 パス制御部 HP ヘッド位置パターン BP ブロック位置パターン LS 一方の走行基準点 RS 他方の走行基準点 AL 加減速領域 CB 主走査方向の中心点 REFERENCE SIGNS LIST 1 host computer 11 printer 12 printer controller 13 print engine 14 print head 17 head position detection unit 25 pattern storage unit 26 path control unit HP head position pattern BP block position pattern LS one traveling reference point RS the other traveling reference point AL acceleration / deceleration Area CB Center point in main scanning direction

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 複数行同時印刷可能なプリントヘッドを
主走査させると共に印刷記録媒体を副走査させることに
より所定の印刷を行うシリアルプリンタにおいて、 印刷データを受信する受信手段と、 前記受信した印刷データに基づいて、前記プリントヘッ
ドによって印刷される印刷ブロックの主走査方向の位置
を検出するブロック位置検出手段と、 前記プリントヘッドの現在位置を検出するヘッド位置検
出手段と、 前記プリントヘッドの現在位置と次の主走査で印刷され
るべき先行印刷ブロック及び更に次の主走査で印刷され
るべき少なくとも一つ以上の後行印刷ブロックの位置と
に基づいて、前記各印刷ブロックをそれぞれ印刷するた
めの主走査パターンを決定する制御手段と、を備えたこ
とを特徴とするシリアルプリンタ。
1. A serial printer that performs predetermined printing by scanning a print head capable of simultaneously printing a plurality of lines in a main scan and sub-scanning a print recording medium, comprising: a receiving unit that receives print data; A block position detecting means for detecting a position of a print block printed by the print head in the main scanning direction, a head position detecting means for detecting a current position of the print head, and a current position of the print head. A main print block for printing each of the print blocks based on the position of a preceding print block to be printed in the next main scan and at least one or more subsequent print blocks to be printed in the next main scan. A serial printer comprising: a control unit that determines a scanning pattern.
【請求項2】 前記プリントヘッドの現在位置と前記各
印刷ブロックの位置関係とにより予め設定された複数の
配置パターンと該各配置パターン毎にそれぞれ設定され
た前記主走査パターンとを記憶するパターン記憶手段を
更に設け、 前記制御手段は、前記プリントヘッドの現在位置及び前
記各印刷ブロックの位置とに基づいて前記配置パターン
を検出し、該配置パターンに対応する前記主走査パター
ンを前記パターン記憶手段から読み出して決定する請求
項1に記載のシリアルプリンタ。
2. A pattern storage for storing a plurality of arrangement patterns set in advance based on a current position of the print head and a positional relationship between the print blocks and the main scanning pattern set for each of the arrangement patterns. Means for detecting the arrangement pattern based on the current position of the print head and the position of each print block, and storing the main scanning pattern corresponding to the arrangement pattern from the pattern storage means. The serial printer according to claim 1, wherein the serial printer is read and determined.
【請求項3】 前記配置パターンは、前記先行印刷ブロ
ックに対する前記プリントヘッドの現在位置によって定
まるヘッド位置パターンと、該ヘッド位置パターンの下
に階層化され、前記各印刷ブロックの位置関係によって
定まるブロック位置パターンとから構成される請求項2
に記載のシリアルプリンタ。
3. The arrangement pattern includes a head position pattern determined by a current position of the print head with respect to the preceding print block, and a block position determined by a positional relationship between the print blocks, hierarchized under the head position pattern. And a pattern.
Serial printer as described in.
【請求項4】 前記ヘッド位置パターンは、少なくと
も、(a1)前記先行印刷ブロックの端部から前記プリント
ヘッドの加速又は減速に要する加減速領域以上離間した
区間に前記プリントヘッドが位置する場合と、(a2)前記
先行印刷ブロックの主走査方向の中心と前記先行印刷ブ
ロックの端部から前記加減速領域だけ離間した位置との
間の区間に前記プリントヘッドが位置する場合と、に区
分されており、 前記ブロック位置パターンは、少なくとも、(b1)先に印
刷されるべき印刷ブロックを印刷したときの前記プリン
トヘッドの停止位置から前記加減速領域以上離間した区
間に、次に印刷されるべき印刷ブロックの端部が位置す
る場合と、(b2)前記停止位置と当該停止位置から前記加
減速領域だけ離間した位置との間の区間に、次に印刷さ
れるべき印刷ブロックの端部が位置する場合と、に区分
されている請求項3に記載のシリアルプリンタ。
4. The head position pattern includes, at least, (a1) a case where the print head is located in a section separated from an end of the preceding print block by an acceleration / deceleration area required for acceleration or deceleration of the print head, (a2) the print head is located in a section between the center of the preceding print block in the main scanning direction and a position separated from the end of the preceding print block by the acceleration / deceleration area. The block position pattern, at least, (b1) in the section separated from the stop position of the print head when printing the print block to be printed first or more than the acceleration / deceleration area, the print block to be printed next (B2) a mark to be printed next in a section between the stop position and a position separated from the stop position by the acceleration / deceleration area. Serial printer according to claim 3 which is divided into a case where the end portion of the block is located.
【請求項5】 前記制御手段は、前記各印刷ブロックを
印刷可能な複数の主走査パターンのうち最短時間で印刷
可能な主走査パターンを選択する請求項1〜請求項4の
いずれかに記載のシリアルプリンタ。
5. The control unit according to claim 1, wherein the control unit selects a main scan pattern that can be printed in the shortest time among a plurality of main scan patterns that can print each of the print blocks. Serial printer.
【請求項6】 複数行同時印刷可能なプリントヘッドを
主走査させると共に印刷記録媒体を副走査させることに
より所定の印刷を行うシリアル印刷方法において、 印刷データを受信するステップと、 前記受信した印刷データに基づいて、前記プリントヘッ
ドによって印刷される印刷ブロックの主走査方向の位置
を検出するステップと、 前記プリントヘッドの現在位置を検出するステップと、 前記プリントヘッドの現在位置と次の主走査で印刷され
るべき先行印刷ブロック及び更に次の主走査で印刷され
るべき少なくとも一つ以上の後行印刷ブロックの位置と
に基づいて、前記各印刷ブロックをそれぞれ印刷するた
めの主走査パターンを決定するステップと、 前記決定された主走査パターンに従って前記プリントヘ
ッドを駆動させることにより印刷を行うステップと、を
含んでなることを特徴とするシリアル印刷方法。
6. A serial printing method for performing predetermined printing by main-scanning a print head capable of simultaneously printing a plurality of lines and sub-scanning a print recording medium, comprising: receiving print data; Detecting the position of the print block printed by the print head in the main scanning direction, based on the following: detecting the current position of the print head; and printing the current position of the print head and the next main scan. Determining a main scan pattern for printing each of the print blocks based on a preceding print block to be performed and a position of at least one or more subsequent print blocks to be printed in the next main scan. Driving the print head according to the determined main scanning pattern. Serial printing method characterized by comprising a step of performing printing, the.
【請求項7】 前記主走査パターンを決定するステップ
は、 前記プリントヘッドの現在位置と前記各印刷ブロックの
位置関係とにより予め設定された複数の配置パターンの
うちいずれの配置パターンに該当するかを否かを判定す
るステップと、 該当するパターンに対応して予め設定された主走査パタ
ーンを選択するステップと、を更に含んでなる請求項6
に記載のシリアル印刷方法。
7. The step of determining the main scanning pattern includes determining which one of a plurality of arrangement patterns set in advance based on a current position of the print head and a positional relationship between the print blocks. 7. The method according to claim 6, further comprising a step of determining whether or not the pattern is a main scanning pattern, and a step of selecting a main scanning pattern set in advance corresponding to the pattern.
Serial printing method described in.
【請求項8】 前記主走査パターンを決定するステップ
は、 前記プリントヘッドの現在位置と前記各印刷ブロックの
位置関係とにより予め設定された複数の配置パターンの
うちいずれの配置パターンに該当するかを否かを判定す
るステップと、 該当するパターンに対応して予め設定された複数の主走
査パターンを読み出すステップと、 前記選択された各主走査パターンによる印刷時間をそれ
ぞれ算出するステップと、 前記各印刷時間のうち最短の印刷時間を実現する主走査
パターンを選択するステップと、を更に含んでなる請求
項6に記載のシリアル印刷方法。
8. The step of determining the main scanning pattern includes determining which one of a plurality of arrangement patterns set in advance based on a current position of the print head and a positional relationship between the print blocks. Judging whether or not, reading a plurality of main scanning patterns set in advance corresponding to the corresponding pattern, calculating printing times by the selected main scanning patterns, respectively, 7. The serial printing method according to claim 6, further comprising: selecting a main scanning pattern that realizes the shortest printing time among the times.
【請求項9】 前記配置パターンは、前記先行印刷ブロ
ックに対する前記プリントヘッドの現在位置によって定
まるヘッド位置パターンと、該ヘッド位置パターンの下
に階層化され、前記各印刷ブロックの位置関係によって
定まるブロック位置パターンとから構成される請求項7
又は請求項8のいずれかに記載のシリアル印刷方法。
9. The arrangement pattern includes a head position pattern determined by a current position of the print head with respect to the preceding print block, and a block position determined by a hierarchical relationship under the head position pattern and determined by a positional relationship between the print blocks. 8. A pattern comprising a pattern
Or the serial printing method according to claim 8.
【請求項10】 前記ヘッド位置パターンは、少なくと
も、(a1)前記先行印刷ブロックの端部から前記プリント
ヘッドの加速又は減速に要する加減速領域以上離間した
区間に前記プリントヘッドが位置する場合と、(a2)前記
先行印刷ブロックの主走査方向の中心と前記先行印刷ブ
ロックの端部から前記加減速領域だけ離間した位置との
間の区間に前記プリントヘッドが位置する場合と、に区
分されており、 前記ブロック位置パターンは、少なくとも、(b1)先に印
刷されるべき印刷ブロックを印刷したときの前記プリン
トヘッドの停止位置から前記加減速領域以上離間した区
間に、次に印刷されるべき印刷ブロックの端部が位置す
る場合と、(b2)前記停止位置と当該停止位置から前記加
減速領域だけ離間した位置との間の区間に、次に印刷さ
れるべき印刷ブロックの端部が位置する場合と、に区分
されている請求項9に記載のシリアル印刷方法。
10. The head position pattern includes: (a2) the print head is located in a section between the center of the preceding print block in the main scanning direction and a position separated from the end of the preceding print block by the acceleration / deceleration area. The block position pattern is, at least, (b1) in a section separated from the stop position of the print head when printing a print block to be printed earlier by the acceleration / deceleration area, the print block to be printed next (B2) is to be printed next in a section between the stop position and a position separated from the stop position by the acceleration / deceleration area. Serial printing method according to claim 9, which is divided in the case, the end portion of the printing block is located.
【請求項11】 複数行同時印刷可能なプリントヘッド
を主走査させると共に印刷記録媒体を副走査させること
により所定の印刷を行うシリアルプリンタを制御するた
めのコンピュータプログラムを記録した記録媒体におい
て、 印刷データに基づいて、前記プリントヘッドによって印
刷される印刷ブロックの主走査方向の位置を検出させる
機能と、 前記プリントヘッドの現在位置を検出させる機能と、 前記プリントヘッドの現在位置と次の主走査で印刷され
るべき先行印刷ブロック及び更に次の主走査で印刷され
るべき少なくとも一つ以上の後行印刷ブロックの位置と
に基づいて、前記各印刷ブロックをそれぞれ印刷するた
めの主走査パターンを決定する機能とを、コンピュータ
に実現させるためのプログラムを前記コンピュータが読
取り及び理解可能な形態で記録した記録媒体。
11. A recording medium on which a computer program for controlling a serial printer for performing predetermined printing by main-scanning a print head capable of simultaneously printing a plurality of lines and sub-scanning a print recording medium is provided. A function of detecting a position of a print block printed by the print head in the main scanning direction, a function of detecting a current position of the print head, and printing with a current position of the print head and a next main scan. A function of determining a main scan pattern for printing each of the print blocks based on a preceding print block to be performed and a position of at least one or more subsequent print blocks to be printed in the next main scan. The computer reads and executes a program for realizing the Recording medium recorded in an understandable and understandable form.
JP24687798A 1998-09-01 1998-09-01 Serial printer and method for serial printing Pending JP2000071540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24687798A JP2000071540A (en) 1998-09-01 1998-09-01 Serial printer and method for serial printing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24687798A JP2000071540A (en) 1998-09-01 1998-09-01 Serial printer and method for serial printing

Publications (1)

Publication Number Publication Date
JP2000071540A true JP2000071540A (en) 2000-03-07

Family

ID=17155076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24687798A Pending JP2000071540A (en) 1998-09-01 1998-09-01 Serial printer and method for serial printing

Country Status (1)

Country Link
JP (1) JP2000071540A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7835025B2 (en) 2005-01-21 2010-11-16 Samsung Electronics Co., Ltd. Processing system and method of processing pattern bitmap data for printer
JP2011156718A (en) * 2010-01-29 2011-08-18 Seiko Epson Corp Liquid ejecting apparatus and liquid ejecting method
JP2011156715A (en) * 2010-01-29 2011-08-18 Seiko Epson Corp Liquid ejecting apparatus and liquid ejecting method
JP2014054855A (en) * 2013-12-25 2014-03-27 Seiko Epson Corp Liquid ejecting apparatus and liquid ejecting method
JP2020157700A (en) * 2019-03-28 2020-10-01 ブラザー工業株式会社 Controller and computer program

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7835025B2 (en) 2005-01-21 2010-11-16 Samsung Electronics Co., Ltd. Processing system and method of processing pattern bitmap data for printer
CN103358723B (en) * 2010-01-29 2016-03-16 精工爱普生株式会社 Liquid injection apparatus
JP2011156715A (en) * 2010-01-29 2011-08-18 Seiko Epson Corp Liquid ejecting apparatus and liquid ejecting method
CN102189841A (en) * 2010-01-29 2011-09-21 精工爱普生株式会社 Liquid ejecting apparatus and liquid ejecting method
CN103358723A (en) * 2010-01-29 2013-10-23 精工爱普生株式会社 Liquid ejecting apparatus
US8672437B2 (en) 2010-01-29 2014-03-18 Seiko Epson Corporation Liquid ejecting apparatus and liquid ejecting method
US8801135B2 (en) 2010-01-29 2014-08-12 Seiko Epson Corporation Liquid ejecting apparatus and liquid ejecting method
CN102189841B (en) * 2010-01-29 2015-05-13 精工爱普生株式会社 Liquid ejecting apparatus and liquid ejecting method
JP2011156718A (en) * 2010-01-29 2011-08-18 Seiko Epson Corp Liquid ejecting apparatus and liquid ejecting method
US9469131B2 (en) 2010-01-29 2016-10-18 Seiko Epson Corporation Liquid ejecting apparatus and liquid ejecting method
JP2014054855A (en) * 2013-12-25 2014-03-27 Seiko Epson Corp Liquid ejecting apparatus and liquid ejecting method
JP2020157700A (en) * 2019-03-28 2020-10-01 ブラザー工業株式会社 Controller and computer program
US11090958B2 (en) 2019-03-28 2021-08-17 Brother Kogyo Kabushiki Kaisha Control device, computer-readable medium, and method for evacuating print head as needed
JP7339597B2 (en) 2019-03-28 2023-09-06 ブラザー工業株式会社 controller and computer program

Similar Documents

Publication Publication Date Title
KR19990077615A (en) Serial printer which provides acceleration control of carrier
JP2000071540A (en) Serial printer and method for serial printing
EP0950945B1 (en) Image forming apparatus and system, information processing apparatus, and their control method
JP2008080669A (en) Control method of printer, control program of printer and printer
US6712440B2 (en) Ink-jet printing apparatus and print timing setting method for the apparatus
JP2007219813A (en) Printing system and printing process
JP2000158712A (en) Printer and printing method
JP2007331274A (en) Recording device, controlling method for recording device, program, and storage medium
JP4720041B2 (en) Printer, printing control method, and information recording medium
JP2004338215A (en) Printer
JP2001138590A (en) Serial printer, printing system and method of driving carriage therein
JP2009078449A (en) Printing method of bar code and printer apparatus
JPH10315541A (en) Serial printer, printing method and printing system
JP2010000705A (en) Inkjet recording device and temperature control method of recording head
JP2005022115A (en) Printing device, printing head carriage speed control method, and program for carrying out the method
JP4337398B2 (en) Printing apparatus, printing method, and printing system
JP2774354B2 (en) INK JET RECORDING APPARATUS AND CONTROL METHOD THEREOF
JP2817985B2 (en) Printing apparatus and print head driving method
JP3861940B2 (en) Serial printer and printing control method
JPH08267733A (en) Ink jet printer
JP2002178587A (en) Ink jet recorder
JP2005169777A (en) Print for varying conversion amount of resolution depending on print region
JP3612999B2 (en) Image forming method, image forming apparatus, and image forming control apparatus
JP3557892B2 (en) Printer print control method and print control device
JP2012016862A (en) Inkjet recording apparatus

Legal Events

Date Code Title Description
A02 Decision of refusal

Effective date: 20040512

Free format text: JAPANESE INTERMEDIATE CODE: A02