JPH11198449A - Method for controlling printing of printer - Google Patents

Method for controlling printing of printer

Info

Publication number
JPH11198449A
JPH11198449A JP1492798A JP1492798A JPH11198449A JP H11198449 A JPH11198449 A JP H11198449A JP 1492798 A JP1492798 A JP 1492798A JP 1492798 A JP1492798 A JP 1492798A JP H11198449 A JPH11198449 A JP H11198449A
Authority
JP
Japan
Prior art keywords
printing
print
carrier
command
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1492798A
Other languages
Japanese (ja)
Inventor
Atsushi Murayama
淳 村山
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.)
Niigata Fuji Xerox Manufacturing Co Ltd
Original Assignee
Niigata Fuji Xerox Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Niigata Fuji Xerox Manufacturing Co Ltd filed Critical Niigata Fuji Xerox Manufacturing Co Ltd
Priority to JP1492798A priority Critical patent/JPH11198449A/en
Publication of JPH11198449A publication Critical patent/JPH11198449A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten a printing process time for the whole of a document and speed up the printing process by judging while a printing command of a first line is being executed whether or not a motor control command ordering a carrier movement in the same direction as the first line to move the carrier to a printing start position on a second line is allowed to be executed. SOLUTION: Irrespective of an operation state of each motor and a printing head, a printing operation control part 4 transmits to a printing control command reception part 5 all operation commands for control on a printing operation for printing images. A printing control process for every line is terminated at a time point when the operation commands are transmitted. Control on an execution timing of a line change immediately after the printing is finished subsequent to the completion of driving of the printing head is carried out by a motor and head operation control part 6 finished receiving the commands. Accordingly, that a first line is being printed at present and the presence/absence of reception of a motor control command so as to print a second line can be detected from information from the printing control command reception part 5.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタの印刷制
御方式に関し、特にシリアルプリンタにおいて印字ヘッ
ドを搭載するキャリアの移動制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing control method for a printer, and more particularly to a movement control method for a carrier on which a print head is mounted in a serial printer.

【0002】[0002]

【従来の技術】シリアルプリンタにおいては、印字ヘッ
ドを搭載したキャリアを往復運動させて1行ずつ印字す
る。シリアルプリンタにおいて、ホストコンピュータ等
上位装置から受信し必要に応じて内部処理した印刷デー
タから、キャリアの位置情報つまり現在行の印字実行中
に、この印字終了時におけるキャリアの完全停止位置及
び次行印字のためのキャリアの移動開始位置及び移動停
止位置が決まることを勘案して、例えば特開平5−16
9753号公報には、現在行の印字終了後の完全停止位
置から次行印字のための移動開始位置へのキャリアの速
やかな移動を可能とし、印字スループットを向上させる
ための構成として、現在行の印字終了後のキャリア完全
停止位置から次行印字のキャリア移動開始位置のうち最
も短時間でキャリアを移動できる位置へキャリアの強制
移動させて次行の印字方向を決める構成としたシリアル
プリンタが提案されている。
2. Description of the Related Art In a serial printer, a carrier on which a print head is mounted is reciprocated to print one line at a time. In the serial printer, based on print data received from a host device such as a host computer and internally processed as necessary, the position information of the carrier, that is, during the printing of the current line, the complete stop position of the carrier at the end of this printing and the printing of the next line In consideration of the fact that the carrier start position and the carrier stop position for the carrier are determined, for example, Japanese Patent Laid-Open No.
Japanese Patent No. 9753 discloses a configuration for improving the printing throughput by enabling the carrier to move quickly from the complete stop position after the printing of the current line to the movement start position for printing the next line, thereby improving the printing throughput. A serial printer has been proposed in which a carrier is forcibly moved from the carrier complete stop position after printing to the position where the carrier can be moved in the shortest time among the carrier movement start positions for the next line to determine the printing direction of the next line. ing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
シリアルプリンタにおいては、印刷ヘッドを装着したキ
ャリアが左右に往復動作して、印刷行毎に、印字行の頭
へ移動する動作制御を行う必要上、例えば、行の印刷開
始位置が各行で揃っていないような印刷パターンの場合
には、上記動作制御の実施頻度が上がり、本来の印刷動
作以外の動作が行われる為に、印刷処理スピードが低下
し、印刷時間が余計にかかる、という問題点を有してい
る。
However, in the conventional serial printer, it is necessary to perform an operation control in which the carrier on which the print head is mounted reciprocates left and right to move to the head of the print line for each print line. For example, in the case of a print pattern in which the print start positions of the lines are not aligned in each line, the frequency of performing the operation control increases, and an operation other than the original print operation is performed. However, there is a problem that extra printing time is required.

【0004】このような問題を解決するためには、現在
印刷している行を印刷しているキャリア動作中に、次の
行情報を受け取ることによって、次の行の印字開始位置
への移動距離を計算して、現在印刷しているキャリアを
次の行の印字位置で停止させる機構が必要である。
In order to solve such a problem, the next line information is received during the operation of the carrier for printing the line currently being printed, so that the moving distance to the printing start position of the next line is obtained. And a mechanism for stopping the currently printing carrier at the printing position of the next line is required.

【0005】本発明は、上述した課題に鑑みてなされた
ものであって、その目的は、印刷行毎に行われる印刷開
始位置へのキャリア移動動作を実行することをなくし、
文書全体の印刷処理時間を短縮して、印刷処理を高速化
する方式を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to eliminate the need to execute a carrier moving operation to a print start position performed for each print line.
An object of the present invention is to provide a method for shortening the print processing time of the entire document and speeding up the print processing.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するた
め、本発明のプリンタ印刷制御方式は、上位ホストコン
ピュータから送信される印刷データを印刷する印字ヘッ
ドの移動を行うキャリア制御において、1行目の印刷コ
マンが実行されている最中に、2行目の印字開始位置へ
移動する為の1行目と同方向のキャリア移動を指示する
モータ制御コマンドのコマンドの実行の可否が判断さ
れ、前記モータ制御コマンドが実行可能条件を満たさな
い場合において、該コマンドがキャリアモータのモータ
制御コマンドであり、キャリアモータの動作中であり且
つ印字ヘッドの駆動中であることを検出した場合、前記
キャリアモータのモータ制御コマンドを保留するのでは
なく、現在印刷中のキャリアの動作との置き換えを行う
ように制御する。現在処理中の第一の印刷コマンドの動
作と、これと同方向で次行目の印字開始位置へ移動する
第二のコマンドの動作を連結することにより、前記第一
のコマンドの動作に対応するキャリアモータの減速、モ
ータ整定と、前記第二のコマンドの動作に対応すモータ
整定、加速の動作による、移動時間の無駄を無くしたも
のである。
In order to achieve the above object, a printer print control method according to the present invention is directed to a carrier control for moving a print head for printing print data transmitted from an upper host computer. While the print command is executed, it is determined whether or not execution of a motor control command for instructing carrier movement in the same direction as the first line for moving to the print start position on the second line is determined. When the motor control command does not satisfy the executable condition, the command is a motor control command of the carrier motor, and when it is detected that the carrier motor is operating and the print head is being driven, Instead of suspending the motor control command, control is performed so as to replace the operation of the carrier currently being printed. The operation of the first command currently being processed and the operation of the second command for moving to the print start position of the next line in the same direction as the first print command correspond to the operation of the first command. This eliminates waste of moving time due to deceleration and motor stabilization of the carrier motor, and motor stabilization and acceleration operations corresponding to the operation of the second command.

【0007】本発明においては、現在行の印刷データを
印刷するキャリア動作中に、次の行の印刷開始位置を読
みとり、その位置へ停止するようにキャリアを制御する
ことを特徴とする。
The present invention is characterized in that during a carrier operation for printing the print data of the current line, the printing start position of the next line is read, and the carrier is controlled so as to stop at that position.

【0008】[0008]

【発明の実施の形態】本発明の実施の形態について以下
に説明する。本発明の印刷制御方式は、その好ましい実
施の形態において、現在行を印刷するキャリア動作実行
中に、現在行の印字終了位置から次の行の印字開始位置
への移動を行う為の距離を計算する手段を備える。ま
た、前記計算された距離に基づき、現在行の印刷のため
のキャリア動作を停止せずに、次の行の印字開始位置ま
で移動する。
Embodiments of the present invention will be described below. In a preferred embodiment, the printing control method of the present invention calculates a distance for moving from the printing end position of the current line to the printing start position of the next line during execution of the carrier operation for printing the current line. Means for performing Further, based on the calculated distance, the carriage moves to the printing start position of the next line without stopping the carrier operation for printing the current line.

【0009】本発明の印刷制御方式は、その好ましい実
施の形態において、現在行の印字終了位置から次の印字
開始位置までの距離によって移動するスピードを可変に
設定する手段を備える。前記現在行の印字ヘッド駆動の
終了した位置から次の印字開始位置までは、キャリアの
速度を上げて最速で移動する。
In a preferred embodiment, the printing control method of the present invention comprises means for variably setting a moving speed according to a distance from a printing end position of a current line to a next printing start position. From the position where the print head drive of the current line is completed to the next print start position, the carrier speed is increased and the carrier moves at the highest speed.

【0010】また、本発明は、その好ましい実施の形態
において、上位ホストコンピュータから送信される印刷
データを印刷する印字ヘッドの移動を行うキャリア制御
において、1行目の印刷コマンドが実行されている最中
に、2行目の印字開始位置へ移動する為の1行目と同方
向のキャリア移動を指示するモータ制御コマンドのコマ
ンドの実行の可否が判断され、前記モータ制御コマンド
が実行可能条件を満たさない場合において、該コマンド
がキャリアモータのモータ制御コマンドであり、キャリ
アモータが動作中であり且つ印字ヘッドの駆動中である
ことを検出した場合、前記キャリアモータの制御コマン
ドを保留するのではなく、現在印刷中のキャリアの動作
との置き換えを行うように制御する。その際、現在処理
中の第一の印刷コマンドの動作と、これと同方向で次行
目の印字開始位置へ移動する第二のコマンドの動作を連
結することにより(図7参照)、前記第一のコマンドの
動作に対応するキャリアモータの減速、モータ整定と、
前記第二のコマンドの動作に対応すモータ整定、加速の
動作による、移動時間の無駄を無くしたものである。
Further, according to a preferred embodiment of the present invention, in a carrier control for moving a print head for printing print data transmitted from a host computer, a print command in a first line is executed. In the meantime, it is determined whether the motor control command for instructing the carrier movement in the same direction as the first line for moving to the printing start position on the second line can be executed, and the motor control command satisfies the executable condition. In the absence of the command, if the command is a motor control command of the carrier motor, and it is detected that the carrier motor is operating and the print head is being driven, instead of suspending the control command of the carrier motor, Control is performed so as to replace the operation of the carrier currently being printed. At this time, the operation of the first print command that is currently being processed and the operation of the second command that moves to the print start position of the next line in the same direction as this are linked (see FIG. 7), thereby Carrier motor deceleration and motor settling corresponding to the operation of one command,
This eliminates waste of travel time due to the motor settling and acceleration operations corresponding to the operation of the second command.

【0011】[0011]

【実施例】上記した本発明の実施の形態についてさらに
詳細に説明すべく、本発明の実施例について図面を参照
して以下に説明する。図1は、本発明の一実施例の構成
を示すブロック図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention; FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention.

【0012】図1を参照すると、本実施例は、上位ホス
トコンピュータから送信される印刷データを含む制御コ
ードを受信する制御コード受信部1と、このデータを解
析して、プリンタ動作制御コマンドへ変換する制御コー
ド・デコード部2と、印刷データを伴って受信した場合
は、印刷データをプリンタが印刷できるイメージデータ
へ変換して、作成する印刷イメージ作成部3と、作成さ
れたイメージデータとプリンタ動作制御コマンドを処理
して印刷動作を作成する印刷動作制御部4と、実際にモ
ータと印字ヘッドを駆動させるためのコマンドを受け取
る印字制御コマンド受信部5と、このコマンドを受けて
各モータ、印字ヘッドを駆動させるタイミングを作り出
すモータ・ヘッド動作制御部6と、受けたコマンドを一
時的に保持するためのコマンドバッファ7と、モータ、
印字ヘッドを直接動作させる動作実行部8と、を制御モ
ジュールとして備え、印字ヘッドを印刷開始位置へ移動
させるキャリアを動作させるキャリアモータ9と、行送
りモータ10と、印字ヘッド11と、を有する。
Referring to FIG. 1, in the present embodiment, a control code receiving unit 1 for receiving a control code including print data transmitted from a host computer, analyzes the data, and converts the data into a printer operation control command. A control code / decoding unit 2 which converts the print data into image data which can be printed by a printer when receiving the print data, and a print image creation unit 3 which creates the print data. A print operation control unit 4 for processing a control command to create a print operation; a print control command receiving unit 5 for receiving a command for actually driving a motor and a print head; And a head / head operation control unit 6 for generating a timing for driving the And of the command buffer 7, motor,
An operation execution unit 8 for directly operating the print head is provided as a control module, and includes a carrier motor 9 for operating a carrier for moving the print head to a printing start position, a line feed motor 10, and a print head 11.

【0013】印刷イメージ作成部3は、少なくとも複数
行の印刷イメージを作成できるように、2行以上の印刷
イメージデータを作成できるものとする。
The print image creating section 3 is capable of creating print image data of two or more lines so as to create a print image of at least a plurality of lines.

【0014】印刷動作制御部4は、制御コード・デコー
ド部2と印刷イメージ作成部3で作成された印刷イメー
ジを、印字ヘッド11を移動するキャリアを左右に移動
させて印刷開始位置へ移動するなどのキャリアの動作を
モータ制御コマンドとして印字制御コマンド受信部5へ
送信して指令する。また、行送りも同様にして行う。ま
た、印刷を指示する印刷コマンドは、印刷開始位置へ移
動した後、印刷開始位置と印刷終了時のキャリア位置を
指示する。
The printing operation control unit 4 moves the print image created by the control code decoding unit 2 and the print image creation unit 3 to the printing start position by moving the carrier that moves the print head 11 left and right, and so on. The operation of the carrier is transmitted as a motor control command to the print control command receiving unit 5 and instructed. Line feed is performed in the same manner. The print command for instructing printing, after moving to the print start position, indicates the print start position and the carrier position at the end of printing.

【0015】モータ制御コマンドは、キャリアの停止位
置を指示する。停止位置と現在のキャリア位置から、動
作量および動作方向を決定する。
The motor control command indicates a stop position of the carrier. The operation amount and the operation direction are determined from the stop position and the current carrier position.

【0016】また、各モータ9、10には、動作可能条
件があらかじめ情報として記憶している。例えば、行送
りモータ10の動作は、印字中は動作できない、などの
条件を持ち、印字中は行送りのためのモータ制御コマン
ドはその実行が保留される。
In each of the motors 9 and 10, operable conditions are stored in advance as information. For example, the operation of the line feed motor 10 has a condition that it cannot operate during printing, and the execution of the motor control command for line feed is suspended during printing.

【0017】印刷制御コマンド受信部5は、受け付けた
モータ制御コマンド及び印刷コマンドが実際に処理でき
るか否かをモータ、ヘッド動作制御部6へ問い合わせ
る。
The print control command receiving unit 5 inquires the motor and head operation control unit 6 whether the received motor control command and print command can be actually processed.

【0018】モータ、ヘッド動作制御部6は、これを前
述したモータ、ヘッド毎に記憶している実行可能条件と
現在の各モータ、ヘッドの動作状況とを照らし合わせ
て、実行の可否を判断し、印字制御コマンド受信部5へ
コマンドのスケジューリングをさせる。
The motor / head operation control section 6 compares the executable condition stored for each motor and head described above with the current operation status of each motor and head to determine whether or not the execution is possible. Then, it causes the print control command receiving unit 5 to schedule the command.

【0019】例えば、図2に示すように、印刷データを
印刷している途中に、印字動作制御部4から行送りを指
示するモータ制御コマンドを送信された場合について説
明する。
For example, as shown in FIG. 2, a case where a motor control command instructing line feed is transmitted from the print operation control unit 4 while printing print data is described.

【0020】図3に流れ図として示すように、行送りモ
ータ10には、その動作可能条件として印刷実行中は実
行できないという条件が記憶されているので、印字制御
コマンド受信部5からの実行問い合わせに対しては、モ
ータ、ヘッド動作制御部6は、「行送り実行不可」と返
答する(図3のステップ303のYes分岐)。
As shown in the flow chart of FIG. 3, the line feed motor 10 stores, as its operable condition, a condition that it cannot be executed during printing, so that the line feed motor 10 receives an execution inquiry from the print control command receiving unit 5. In response, the motor / head operation control unit 6 replies that "line feed cannot be executed" (Yes in step 303 in FIG. 3).

【0021】逆に、印刷が終了している状態、あるいは
印刷中でなければ、「行送り実行可」と返答される(図
3のステップ303のNo分岐)。
On the other hand, if printing is not completed or printing is not being performed, a reply "line feed execution is possible" is returned (No branch of step 303 in FIG. 3).

【0022】行送り実行不可能な場合には、行送りモー
タ制御コマンドは一時的に、コマンドバッファ7へ送ら
れる(図3のステップ304)。
If the line feed cannot be executed, the line feed motor control command is temporarily sent to the command buffer 7 (step 304 in FIG. 3).

【0023】逆に、行送り実行可能と判断される場合に
は、モータ、ヘッド動作制御部6は、コマンドを動作実
行部8へ送って(図3のステップ305)、モータ、ヘ
ッドを直接駆動させる。
Conversely, if it is determined that line feed can be executed, the motor / head operation control unit 6 sends a command to the operation execution unit 8 (step 305 in FIG. 3) to directly drive the motor / head. Let it.

【0024】このように、モータ、ヘッド動作制御部6
は、現在のプリンタのモータ、ヘッドの駆動状況を常に
知っていなければならないため、一定周期にて、キャリ
アモータ、行送りモータ、印字ヘッドの状況を監視し、
情報の更新を行う。
As described above, the motor and head operation control unit 6
Monitors the status of the carrier motor, line feed motor and print head at regular intervals because it is necessary to always know the current printer and head drive status.
Update information.

【0025】また、図2に示すように、行送りコマンド
の実行可能条件が一致したタイミング、すなわち印刷が
終了して印字ヘッドの駆動が終了した直後に、行送りを
実行できるように、実行タイミングを制御する。
As shown in FIG. 2, the execution timing is set so that the line feed command can be executed immediately after the execution condition of the line feed command matches, that is, immediately after the printing is completed and the driving of the print head is completed. Control.

【0026】図4は、本実施例における、モータ、ヘッ
ド動作制御部6の動作フローを示す流れ図である。前述
した印字制御コマンド受信部5がコマンドバッファ7へ
送ったコマンドを実行するために、モータ、ヘッド動作
制御部6は、コマンドバッファ7内のコマンドの有無を
チェックする(図4のステップ402)。
FIG. 4 is a flowchart showing the operation flow of the motor and head operation control unit 6 in this embodiment. In order to execute the command sent by the print control command receiving unit 5 to the command buffer 7, the motor / head operation control unit 6 checks whether there is a command in the command buffer 7 (step 402 in FIG. 4).

【0027】コマンドバッファ7にコマンドがある場合
には(図4のステップ402の「有り」)、該コマンド
を取り出して(図4のステップ403)、現在のモー
タ、ヘッド駆動状況を参照して該コマンドの実行可否を
判断する(図4のステップ404)。
If there is a command in the command buffer 7 ("YES" in step 402 in FIG. 4), the command is taken out (step 403 in FIG. 4), and the current motor and head driving conditions are referred to. It is determined whether the command can be executed (step 404 in FIG. 4).

【0028】行送りモータが動作中である場合には、行
送りのためのモータ制御コマンドは実行不可能であり、
同様に、キャリアモータが動作中であれば、キャリアモ
ータのモータ制御コマンドも実行不可能である。
When the line feed motor is operating, a motor control command for line feed cannot be executed,
Similarly, if the carrier motor is operating, the motor control command of the carrier motor cannot be executed.

【0029】このように、コマンドが実行可能条件に満
たさない場合には、該コマンドの実行は保留され(図4
のステップ406)、実行が保留されているコマンドが
ある旨が情報として残される。
As described above, when the command does not satisfy the executable condition, the execution of the command is suspended (FIG. 4).
Step 406), information indicating that there is a command whose execution is suspended is left as information.

【0030】ステップ404の判定で、実行可能条件が
満たされる場合には、コマンドは即座に動作実行部8で
実行処理される(図4のステップ405)。
If it is determined in step 404 that the executable condition is satisfied, the command is immediately executed by the operation executing section 8 (step 405 in FIG. 4).

【0031】従って、モータ、ヘッド動作制御部6は、
コマンドバッファ7内のコマンドの有無をチェックする
前に、実行が保留されているコマンドの有無をチェック
する(図4のステップ401、図3のステップ30
1)。
Therefore, the motor / head operation control unit 6
Before checking the presence or absence of a command in the command buffer 7, the presence or absence of a command whose execution is suspended is checked (step 401 in FIG. 4, step 30 in FIG. 3).
1).

【0032】実行を保留されているコマンドがある限
り、コマンドバッファ7に蓄積されたコマンドの実行は
行われない。
As long as there is a command whose execution is suspended, the command stored in the command buffer 7 is not executed.

【0033】本発明の一実施例の動作について説明す
る。
The operation of the embodiment of the present invention will be described.

【0034】図5に示すような印字パターンがある場
合、1行目の印刷イメージを作成した印刷イメージ作成
部3は、印字動作制御部4へ印字開始位置となるイメー
ジの右端位置、左端位置とその印刷イメージ情報を渡
す。
When there is a print pattern as shown in FIG. 5, the print image creating section 3 which has created the print image of the first line sends the print operation control section 4 the right end position and the left end position of the image to be the print start position. Pass the print image information.

【0035】印字動作制御部4は、キャリアが図5の印
字イメージの最左端の位置に近い場合に、そこへ移動
したとすると、1行目は右方向へキャリアを動作させな
がら印刷する。この動作は、印字動作制御部4が印字制
御コマンド受信部5に対して、1行目の印刷開始位置で
あるの位置へキャリアを移動するための方向、移動量
等の情報を付加した、キャリア動作を指示するキャリア
モータのモータ制御コマンドを送信し、続いて1行目の
印刷コマンドを送信する処理を行い、印刷イメージ作成
部3が指示した1行目印刷のための手続きを終了する。
The printing operation control section 4 prints the first line while operating the carrier to the right, if the carrier is moved to the leftmost position of the print image in FIG. In this operation, the printing operation control unit 4 adds information such as a direction and a moving amount for moving the carrier to the position of the first line printing start position with respect to the printing control command receiving unit 5. A process for transmitting the motor control command of the carrier motor for instructing the operation and then transmitting the print command for the first line are performed, and the procedure for printing the first line instructed by the print image creating unit 3 is completed.

【0036】この結果、印字動作制御部4が、これらの
コマンドを印字制御コマンド受信部5に送信した時点で
は、2行目は、制御コード受信部1によってデータ受信
中であるか、制御コード・デコード部2によって処理中
であるため、2行目の印字開始位置である最右端の位
置はわからない。
As a result, when the print operation control unit 4 transmits these commands to the print control command receiving unit 5, the second line indicates whether data is being received by the control code receiving unit 1 or whether the control code Since processing is being performed by the decoding unit 2, the rightmost position, which is the printing start position of the second line, is unknown.

【0037】しかし、2行目の印刷イメージが印刷イメ
ージ作成部3によって作成されると、1行目と同様に2
行目の右端、左端位置と印刷イメージ情報が印字動作制
御部4へ渡される。但し、2行目に伴う改行制御コマン
ドがある場合は、この情報も渡される。
However, when the print image on the second line is created by the print image creating unit 3, the print image on the second line is
The right and left ends of the line and the print image information are passed to the print operation control unit 4. However, if there is a line feed control command accompanying the second line, this information is also passed.

【0038】印字動作制御部4は、2行目の処理とし
て、改行のための行送りモータ制御コマンドを送り、次
に、図5のの位置へキャリアを移動するモータ制御コ
マンドと、そして2行目の印刷コマンドを送信する。
The printing operation control section 4 sends a line feed motor control command for line feed as the processing of the second line, then a motor control command for moving the carrier to the position shown in FIG. Send an eye print command.

【0039】図6は、この制御動作を詳細に示したもの
であり、キャリアを駆動するキャリアモータの動作状態
(加速、制定、減速)及び行送りモータの動作状態を示
している。図6において矢印はキャリアの移動方向を示
している。
FIG. 6 shows this control operation in detail, and shows the operation state (acceleration, establishment, deceleration) of the carrier motor for driving the carrier and the operation state of the line feed motor. In FIG. 6, the arrows indicate the moving direction of the carrier.

【0040】上述したように、印字動作制御部4は、各
モータ、印字ヘッドの動作状況にかかわらず、印刷イメ
ージの印字動作制御のためのすべての動作指示を印字制
御コマンド受信部5に対して送信しておくことができる
ので、基本的には、これらの動作指示を、コマンド送信
した時点で、1行毎における印字制御処理を終了する。
As described above, the printing operation control unit 4 sends all the operation instructions for controlling the printing operation of the print image to the printing control command receiving unit 5 irrespective of the operation status of each motor and print head. Basically, the print control process for each line is terminated when these operation instructions are transmitted as a command.

【0041】印刷が終了した直後(ここで、「印刷の終
了」とは、印字ヘッドの駆動終了を意味する)の行送り
実行等の実行タイミングの制御は、コマンドを受信し終
えたモータ、ヘッド動作制御部6が行うので、現在1行
目を印刷実行中であることと、2行目の印字動作のため
のモータ制御コマンドの受信の有無は、印字制御コマン
ド受信部5からの情報によって同時に知ることができ
る。
Immediately after the printing is completed (here, “end of printing” means the end of driving of the print head), the control of the execution timing such as the line feed execution is performed by the motor and the head which have finished receiving the command. Since the operation control unit 6 performs the printing, the printing of the first line is currently being executed and the presence or absence of the motor control command for the printing operation of the second line is simultaneously determined by the information from the printing control command receiving unit 5. You can know.

【0042】図6を参照して説明すると、1行目の印刷
コマンド―2が動作実行部8によって実行されている
最中に、2行目の印字開始位置へ移動するための1行目
と同方向のキャリア移動を指示するモータ制御コマンド
―1が印字動作制御部4によって送信され、このコマ
ンドの実行の可否が判断される。
Referring to FIG. 6, while the print command-2 on the first line is being executed by the operation execution unit 8, the first line for moving to the print start position on the second line is displayed. A motor control command -1 for instructing carrier movement in the same direction is transmitted by the printing operation control unit 4, and it is determined whether the command can be executed.

【0043】前述したように、各モータには動作実行条
件を有し、現在実行中のモータの制御コマンドの実行は
保留される。
As described above, each motor has an operation execution condition, and the execution of the control command of the currently executed motor is suspended.

【0044】しかし、本実施例では、この印刷コマンド
―2と、これと同方向で2行目の印字開始位置へ移動
するコマンド―2の動作を、図7に示すように連結し
て、―2の減速、モータ整定と、―2のモータ整
定、加速の動作による移動時間の無駄を無くすようにす
る。
However, in this embodiment, the operation of this print command-2 and the command-2 for moving to the print start position of the second line in the same direction are connected as shown in FIG. It is intended to eliminate waste of moving time due to deceleration and motor stabilization of No. 2 and motor stabilization and acceleration of −2.

【0045】本実施例の動作について、図8の流れ図を
参照して説明する。
The operation of this embodiment will be described with reference to the flowchart of FIG.

【0046】コマンドバッファ7からコマンドを取り出
したとき、あるいは印字制御コマンド受信部5がコマン
ドを受け付けたときに、そのコマンドの実行条件を満足
できない場合には(図8のステップ804の「不
可」)、コマンドの実行が保留される(図8のステップ
810)。しかし、このときのコマンドがキャリアモー
タのモータ制御コマンドである場合には(図8のステッ
プ806のYES)、そのときの実行できない条件とし
て、キャリアモータが動作中であり(図8のステップ8
07のYES)、かつ印刷動作中(印字ヘッドの駆動
中)が検出されたことによるものである場合(図8のス
テップ808のYES)、キャリアモータのモータ制御
コマンドを保留するのではなく、現在印刷中のキャリア
の動作との置き換え(接続)処理を行う(図8のステッ
プ809)。
When the command is fetched from the command buffer 7 or when the print control command receiving unit 5 receives the command, if the execution condition of the command cannot be satisfied ("No" in step 804 in FIG. 8). , The execution of the command is suspended (step 810 in FIG. 8). However, if the command at this time is a motor control command for the carrier motor (YES in step 806 in FIG. 8), the condition that cannot be executed at that time is that the carrier motor is operating (step 8 in FIG. 8).
07 (YES in step 07), and when the printing operation (print head driving) is detected (YES in step 808 in FIG. 8), the motor control command of the carrier motor is not held but Replacement (connection) processing with the operation of the carrier during printing is performed (step 809 in FIG. 8).

【0047】本発明の一実施例における置き換え処理に
ついて、図6、図9、及び図10を用いて説明する。
The replacement process according to one embodiment of the present invention will be described with reference to FIGS. 6, 9, and 10.

【0048】図9は、印刷動作のキャリアモータの動作
について模式的に示す説明図である。印刷の動作は、加
速動作量aと、印刷前の定速動作量bと、印刷動作量c
と、印刷後の定速動作量dと、減速動作量eと、から構
成される。
FIG. 9 is an explanatory diagram schematically showing the operation of the carrier motor in the printing operation. The printing operation includes an acceleration operation amount a, a constant speed operation amount b before printing, and a printing operation amount c.
And a constant speed operation amount d after printing and a deceleration operation amount e.

【0049】また、図6(b)における印刷コマンド
―2の停止位置ア(図9参照)は、印刷コマンドの付加
情報であり、2行目の印字開始位置へ移動するキャリア
のモータ制御コマンド―2の停止位置イ(図9参照)
は、キャリアのモータ制御コマンドへの付加情報であ
る。
The stop position A (see FIG. 9) of the print command-2 in FIG. 6B is additional information of the print command, and is a motor control command of the carrier moving to the print start position on the second line. Stop position 2 (see Fig. 9)
Is additional information to the motor control command of the carrier.

【0050】図6及び図9のキャリアの制御について、
図10の流れ図を用いて説明する。受け付けたキャリア
動作であるモータ制御コマンド―2の動作情報とし
て、動作後のキャリア停止位置が印刷動作―2の停止
位置よりも先であることを確認する(図10のステップ
1001)。そして、その差分動作量を、印刷後の定速
動作量dに加算する(図10のステップ1002)。こ
の処理を行うことによって、図6における2行目の印刷
開始位置へ移動するキャリアモータ制御コマンド―2
は、現在実行中の印刷コマンド―2の動作に置き換え
られる。
Regarding the carrier control shown in FIGS. 6 and 9,
This will be described with reference to the flowchart of FIG. As the operation information of the motor control command-2 as the accepted carrier operation, it is confirmed that the carrier stop position after the operation is earlier than the stop position of the printing operation-2 (step 1001 in FIG. 10). Then, the difference operation amount is added to the constant speed operation amount d after printing (step 1002 in FIG. 10). By performing this processing, the carrier motor control command-2 that moves to the printing start position on the second line in FIG.
Is replaced by the operation of the currently executed print command-2.

【0051】次に、本発明の他の実施例について説明す
る。上記した実施例では、説明を簡潔にするために、現
在行の印刷動作スピードと、次の印刷行へ移動するキャ
リア動作スピードは同等であることを前提として説明し
た。
Next, another embodiment of the present invention will be described. In the above-described embodiment, for simplicity of description, the description has been made on the assumption that the printing operation speed of the current line is equal to the carrier operation speed of moving to the next printing line.

【0052】本発明の第二の実施例では、印刷開始位置
へ移動する時は、距離に応じてキャリアの動作スピード
を選択し、印刷時のキャリア動作スピードよりも速いス
ピードまで加速を行って、できる限り早く次の印刷行の
印刷開始位置へ移動する、ようにしたものである。
In the second embodiment of the present invention, when moving to the printing start position, the operation speed of the carrier is selected according to the distance, and acceleration is performed to a speed higher than the carrier operation speed at the time of printing. This is to move to the print start position of the next print line as soon as possible.

【0053】図11、及び図12を参照して、本発明の
第二の実施例について説明する。図11に示すように、
印刷時のキャリア動作スピードLによって印刷動作を行
い、印刷後の定速動作量dを動作後、スピードLからス
ピードHへ加速する。そして、定速動作後、スピードH
の減速を行って、目的位置へ停止する。
A second embodiment of the present invention will be described with reference to FIGS. As shown in FIG.
The printing operation is performed at the carrier operation speed L at the time of printing, and after the constant speed operation amount d after printing is operated, the speed is increased from the speed L to the speed H. After the constant speed operation, the speed H
Decelerates and stops at the target position.

【0054】このようにキャリアを動作させるには、印
刷後の定速動作量dを実行後の位置から、次の印字開始
位置までの目的位置までの距離Xが、スピードLからス
ピードHへ到達する為に必要な加速動作量gと目的位置
へ停止するスピードHからの減速動作量iの和以上でな
ければならない。
In order to operate the carrier in this way, the distance X from the position after the execution of the constant speed operation amount d after printing to the target position to the next printing start position reaches the speed L from the speed L. It must be equal to or greater than the sum of the acceleration operation amount g required to perform the operation and the deceleration operation amount i from the speed H for stopping at the target position.

【0055】本発明の第2の実施例において、図12に
流れ図として示すように、スピードHを使って目的位置
へ加速できるか否かを判断し(図12のステップ120
1)、スピードHを使える場合は、スピードHへの加速
動作g後に動作する定速動作量hを、距離Xからスピー
ドHへの加速量gとスピードHの減速量iの和を差し引
いて求め(図12のステップ1202)、スピードHま
での加速動作量をgにセットする(図12のステップ1
203)。一方、Hが使えない場合は、印刷後の定速動
作量dにgとiの動作量の和を加算し、スピードLの定
速動作で、目的位置へ移動するようにする。
In the second embodiment of the present invention, as shown in the flow chart of FIG. 12, it is determined whether or not it is possible to accelerate to the target position using the speed H (step 120 in FIG. 12).
1) When the speed H can be used, the constant speed operation amount h that operates after the acceleration operation g to the speed H is obtained by subtracting the sum of the acceleration amount g from the distance X to the speed H and the deceleration amount i of the speed H. (Step 1202 in FIG. 12), the acceleration operation amount up to the speed H is set to g (Step 1 in FIG. 12).
203). On the other hand, when H cannot be used, the sum of the operation amounts of g and i is added to the constant speed operation amount d after printing, and the target position is moved by the constant speed operation of speed L.

【0056】[0056]

【発明の効果】以上説明したように、本発明によれば、
印刷行毎に行われる印刷開始位置へのキャリア移動動作
が実行されなくなるので、文書全体の印刷処理時間を短
縮して、印刷終了時間を速めるという効果を奏する。
As described above, according to the present invention,
Since the operation of moving the carrier to the print start position performed for each print line is not performed, it is possible to shorten the print processing time of the entire document and shorten the print end time.

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

【図1】本発明の一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.

【図2】本発明の一実施例を説明するための図である。FIG. 2 is a diagram for explaining an embodiment of the present invention.

【図3】本発明の一実施例の処理フローを説明するため
の流れ図である。
FIG. 3 is a flowchart illustrating a processing flow according to an embodiment of the present invention.

【図4】本発明の一実施例の処理フローを説明するため
の流れ図である。
FIG. 4 is a flowchart illustrating a processing flow according to an embodiment of the present invention.

【図5】本発明の一実施例を説明するための図である。FIG. 5 is a diagram for explaining one embodiment of the present invention.

【図6】本発明の一実施例を説明するための図である。FIG. 6 is a diagram for explaining one embodiment of the present invention.

【図7】本発明の一実施例を説明するための図である。FIG. 7 is a diagram for explaining an embodiment of the present invention.

【図8】本発明の一実施例の処理フローを説明するため
の流れ図である。
FIG. 8 is a flowchart illustrating a processing flow according to an embodiment of the present invention.

【図9】本発明の一実施例を説明するための図である。FIG. 9 is a diagram for explaining one embodiment of the present invention.

【図10】本発明の一実施例の処理フローを説明するた
めの流れ図である。
FIG. 10 is a flowchart illustrating a processing flow according to an embodiment of the present invention.

【図11】本発明の一実施例を説明するための図であ
る。
FIG. 11 is a diagram for explaining one embodiment of the present invention.

【図12】本発明の一実施例の処理フローを説明するた
めの流れ図である。
FIG. 12 is a flowchart illustrating a processing flow according to an embodiment of the present invention.

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

1 制御コード受信部 2 制御コード・デコード部 3 印刷イメージ作成部 4 印刷動作制御部 5 印字制御コマンド受信部 6 モータ、ヘッド動作制御部 7 コマンドバッファ 8 動作実行部 9 キャリアモータ 10 行送りモータ 11 印字ヘッド DESCRIPTION OF SYMBOLS 1 Control code receiving part 2 Control code decoding part 3 Print image creation part 4 Printing operation control part 5 Print control command receiving part 6 Motor and head operation control part 7 Command buffer 8 Operation execution part 9 Carrier motor 10 Line feed motor 11 Printing head

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】上位ホストコンピュータからシリアルプリ
ンタ送信される印刷データを印刷するために、印字ヘッ
ドを搭載したキャリアの移動を制御する方式において、 1行目の印刷コマンが実行されている最中に、2行目の
印字開始位置へ移動するための1行目と同方向のキャリ
ア移動を指示するモータ制御コマンドのコマンドの実行
の可否が判断され、 前記モータ制御コマンドが実行可能条件を満たさない場
合において、該コマンドがキャリアモータのモータ制御
コマンドであって、キャリアモータが動作中であり且つ
印字ヘッドの駆動中であることを検出した場合、前記キ
ャリアモータのモータ制御コマンドを保留することな
く、現在印刷中のキャリアの動作との置き換えを行うよ
うに制御する、ことを特徴とする印刷制御方式。
1. A method for controlling the movement of a carrier having a print head for printing print data transmitted from a higher-level host computer through a serial printer, wherein a print command on a first line is being executed. It is determined whether a motor control command for instructing carrier movement in the same direction as the first line to move to the printing start position on the second line can be executed, and the motor control command does not satisfy an executable condition. In this case, if the command is a motor control command of a carrier motor, and it is detected that the carrier motor is operating and the print head is being driven, the motor control command of the carrier motor is not suspended, A print control method for performing control so as to replace the operation of a carrier during printing.
【請求項2】現在処理中の第一の印刷コマンドの動作
と、これと同方向で次行目の印字開始位置へ移動する第
二のコマンドの動作を連結することにより、前記第一の
印刷コマンドの動作に対応するキャリアモータの減速、
モータ整定と、前記第二のコマンドの動作に対応するモ
ータ整定、加速の動作による、移動時間の無駄を無くす
ようにしたことを特徴とする請求項1記載の印刷制御方
式。
2. An operation of a first print command currently being processed and an operation of a second command for moving to a print start position of the next line in the same direction as the first print command are linked, so that the first print command is operated. Deceleration of carrier motor corresponding to command operation,
2. The print control method according to claim 1, wherein a waste of moving time due to a motor setting and a motor setting and acceleration operation corresponding to the operation of the second command is eliminated.
【請求項3】上位ホストコンピュータからシリアルプリ
ンタ送信される印刷データを印刷するために、印字ヘッ
ドを搭載したキャリアの移動を制御する方式において、 現在行の印刷データを印刷するキャリアの動作中に、次
の行の印刷開始位置を読み取りその位置へ停止するよう
にキャリア制御を行うことを特徴とする印刷制御方式。
3. A method for controlling the movement of a carrier having a print head for printing print data transmitted from a higher-level host computer through a serial printer, comprising the steps of: A print control method wherein a print start position of the next line is read and carrier control is performed so as to stop at the position.
【請求項4】現在行を印刷するキャリア動作実行中に、
現在行の印字終了位置から次の行の印字開始位置への移
動を行う為の距離を計算する手段と、 現在行の印刷のためのキャリア動作を停止せずに、次の
行の印字開始位置まで移動する手段と、を備えたことを
特徴とする印刷制御方式。
4. During execution of a carrier operation for printing a current line,
Means for calculating the distance to move from the print end position of the current line to the print start position of the next line, and the print start position of the next line without stopping the carrier operation for printing the current line And a means for moving to a printing control method.
【請求項5】前記現在行の印字終了位置から次の印字開
始位置までの距離によって移動するスピードを可変に設
定する手段を備えたことを特徴とする請求項4記載の印
刷制御方式。
5. The printing control method according to claim 4, further comprising means for variably setting a moving speed according to a distance from a printing end position of the current line to a next printing start position.
【請求項6】前記現在行の印字ヘッド駆動の終了した位
置から次の印字開始位置までは、キャリアの速度を上げ
て最速で移動することを特徴とする請求項5記載の印刷
制御方式。
6. The printing control method according to claim 5, wherein the speed of the carrier is increased at the highest speed from the position where the printing head drive of the current line is completed to the next printing start position.
JP1492798A 1998-01-09 1998-01-09 Method for controlling printing of printer Pending JPH11198449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1492798A JPH11198449A (en) 1998-01-09 1998-01-09 Method for controlling printing of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1492798A JPH11198449A (en) 1998-01-09 1998-01-09 Method for controlling printing of printer

Publications (1)

Publication Number Publication Date
JPH11198449A true JPH11198449A (en) 1999-07-27

Family

ID=11874610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1492798A Pending JPH11198449A (en) 1998-01-09 1998-01-09 Method for controlling printing of printer

Country Status (1)

Country Link
JP (1) JPH11198449A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7347636B2 (en) 2003-12-11 2008-03-25 Samsung Electronics Co., Ltd. Printing control system and method for an inkjet printer
CN102806782A (en) * 2011-05-31 2012-12-05 精工爱普生株式会社 Tape cutting apparatus, tape printing apparatus having the same, and method of controlling stepping motor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7347636B2 (en) 2003-12-11 2008-03-25 Samsung Electronics Co., Ltd. Printing control system and method for an inkjet printer
CN102806782A (en) * 2011-05-31 2012-12-05 精工爱普生株式会社 Tape cutting apparatus, tape printing apparatus having the same, and method of controlling stepping motor

Similar Documents

Publication Publication Date Title
JP4455459B2 (en) Printing system, printing apparatus, and printing method
JP2000163225A (en) Information processor, printing controller, printing system, their controlling method, and printer and storage medium
JPH11198449A (en) Method for controlling printing of printer
US6397265B1 (en) Print control apparatus for communicating with a selected external apparatus to control a printer
JP3679491B2 (en) Printing apparatus and control method thereof
JP3458718B2 (en) Serial printer and operating method of serial printer
JP2001138590A (en) Serial printer, printing system and method of driving carriage therein
JP4496989B2 (en) Serial printer
JP3202841B2 (en) Printing apparatus, printing system, and printing control method
US7580141B2 (en) Image forming apparatus
JP2006338257A (en) Printer driver
JPH08267828A (en) Printer
JPH082071A (en) Printer with command error or printer status message output function
JP3222675B2 (en) Printing apparatus and display control method for printing apparatus
JPH01141772A (en) Printing controlling system in one direction of serial printer
JPH10109452A (en) Serial printer
JPH08183226A (en) Printer control apparatus and method
JPH0675673A (en) Interface device and printing device equipped with the same
JP2002283669A (en) Printing device
JPH0280276A (en) Printing carriage control system of serial printer
JPS615972A (en) Printing-controlling system
JPH079707A (en) Printer
JPH10340168A (en) Information processor, its system and controlling method of them
JPH07152515A (en) Output method
JPH07295766A (en) Device and method for processing information

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990810