JP4529819B2 - Printing apparatus, stick-slip handling method, program, and printing system - Google Patents

Printing apparatus, stick-slip handling method, program, and printing system Download PDF

Info

Publication number
JP4529819B2
JP4529819B2 JP2005191932A JP2005191932A JP4529819B2 JP 4529819 B2 JP4529819 B2 JP 4529819B2 JP 2005191932 A JP2005191932 A JP 2005191932A JP 2005191932 A JP2005191932 A JP 2005191932A JP 4529819 B2 JP4529819 B2 JP 4529819B2
Authority
JP
Japan
Prior art keywords
print head
speed
carriage
stick
motor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005191932A
Other languages
Japanese (ja)
Other versions
JP2007008012A (en
Inventor
人志 五十嵐
薫 小山
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 JP2005191932A priority Critical patent/JP4529819B2/en
Publication of JP2007008012A publication Critical patent/JP2007008012A/en
Application granted granted Critical
Publication of JP4529819B2 publication Critical patent/JP4529819B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

本発明は、ガイド部に沿って印刷ヘッドが移動する印刷装置、スティックスリップ対応方法、プログラム、および印刷システムに関する。   The present invention relates to a printing apparatus in which a print head moves along a guide unit, a stick-slip handling method, a program, and a printing system.

紙やフィルム等の媒体に対して印刷を施す印刷装置として、例えば、インクジェットプリンタが知られている。このインクジェットプリンタは、媒体に対してインクを吐出する印刷ヘッドを備え、この印刷ヘッドが媒体に対して相対的に移動しながらインクを吐出して媒体に印刷を施すようになっている。   For example, an inkjet printer is known as a printing apparatus that performs printing on a medium such as paper or film. This ink jet printer includes a print head that ejects ink onto a medium, and the print head ejects ink while moving relative to the medium to perform printing on the medium.

印刷ヘッドは、プリンタ内部のガイド部によって所定の方向に沿って案内されて移動する。印刷ヘッドの移動は、モータにより行われる。印刷ヘッドは、モータの制御部によって所定の速度まで加速されて、例えばPID制御等により所定の速度にて定速移動しながら目標位置まで移動する(特許文献1、2、3参照)。
特開2001−103778号公報 特開2001−158144号公報 特開2001−169584号公報
The print head moves while being guided along a predetermined direction by a guide portion inside the printer. The print head is moved by a motor. The print head is accelerated to a predetermined speed by a controller of the motor, and moves to a target position while moving at a constant speed at a predetermined speed by, for example, PID control (see Patent Documents 1, 2, and 3).
JP 2001-103778 A JP 2001-158144 A JP 2001-169484 A

このようなインクジェットプリンタにあっては、次のような問題が発生することがあった。すなわち、例えば、インクジェットプリンタが長期間にわたり使用されなかったりした場合に、印刷ヘッドがガイド部に沿ってうまく滑らなくなり、印刷ヘッドが動いたり停まったりする動作を繰り返す、いわゆるスティックスリップ動作(しゃくとり動作ともいう)を行ってしまうことがあった。このようなスティックスリップ動作は、印刷ヘッドとガイド部との間の摺動部のグリスが固化してしまったことなどが原因となり発生するものである。特に、印刷ヘッドが低速で移動しようとした場合に、このようなスティックスリップ動作が発生する。   In such an ink jet printer, the following problems may occur. That is, for example, when the ink jet printer is not used for a long period of time, the print head does not slide well along the guide portion, and the print head moves or stops repeatedly. (Also called). Such a stick-slip operation is caused by the fact that the grease at the sliding portion between the print head and the guide portion has solidified. In particular, such a stick-slip operation occurs when the print head tries to move at a low speed.

このようなスティックスリップ動作が発生した場合、印刷ヘッドを目標位置にて停止させることができなくなり、印刷ヘッドが目標位置周辺にて行ったり来たりしたりするなどの不具合が生じることがあった。また、このようなスティックスリップ動作が発生した場合、ユーザーが故障ではないかと不安に思うなどの問題が発生する場合があった。このようなことから、印刷ヘッドがスティックスリップ動作を行ったときには、これを速やかに検知して対応する必要がある。   When such a stick-slip operation occurs, the print head cannot be stopped at the target position, and a problem such as the print head moving back and forth around the target position may occur. In addition, when such a stick-slip operation occurs, there may be a problem that the user is anxious about the failure. For this reason, when the print head performs a stick-slip operation, it is necessary to quickly detect and respond to this.

本発明は、このような事情に鑑みてなされたものであって、その目的は、印刷ヘッドがスティックスリップ動作を行ったときに、これに速やかに対応することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to promptly cope with the case where the print head performs a stick-slip operation.

前記目的を達成するための主たる発明は、
(A)媒体に対して印刷を施す印刷ヘッドと、
(B)前記印刷ヘッドを移動させるためのモータと、
(C)前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
(D)前記印刷ヘッドの移動速度を検出する速度検出部と、
(E)前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定する判定部と、
(F)前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、
前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
(G)を備えたことを特徴とする印刷装置である。
The main invention for achieving the object is as follows:
(A) a print head for printing on a medium;
(B) a motor for moving the print head;
(C) a guide portion for guiding the print head along a predetermined direction;
(D) a speed detector that detects the moving speed of the print head;
(E) a determination unit that determines whether the print head is performing a stick-slip operation;
(F) a motor controller that controls the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detector;
When controlling the motor to move the print head at a constant speed below the predetermined speed along the guide portion,
If the determination unit does not determine that the print head is performing a stick-slip operation, the control signal is generated based on the predetermined upper limit value when the amount of change exceeds a predetermined upper limit value. ,
When the determination unit determines that the print head is performing a stick-slip operation, the change amount exceeds the predetermined upper limit value and is based on the change amount regardless of the predetermined upper limit value. A motor control unit for generating the control signal;
The printing apparatus includes (G).

本発明の他の特徴は、本明細書及び添付図面の記載により明らかにする。   Other features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

===開示の概要===
本明細書及び添付図面の記載により、少なくとも以下の事項が明らかとなる。
=== Summary of disclosure ===
At least the following matters will become apparent from the description of the present specification and the accompanying drawings.

(A)媒体に対して印刷を施す印刷ヘッドと、
(B)前記印刷ヘッドを移動させるためのモータと、
(C)前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
(D)前記印刷ヘッドの移動速度を検出する速度検出部と、
(E)前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定する判定部と、
(F)前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、
前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
(G)を備えたことを特徴とする印刷装置。
(A) a print head for printing on a medium;
(B) a motor for moving the print head;
(C) a guide portion for guiding the print head along a predetermined direction;
(D) a speed detector that detects the moving speed of the print head;
(E) a determination unit that determines whether the print head is performing a stick-slip operation;
(F) a motor controller that controls the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detector;
When controlling the motor to move the print head at a constant speed below the predetermined speed along the guide portion,
If the determination unit does not determine that the print head is performing a stick-slip operation, the control signal is generated based on the predetermined upper limit value when the amount of change exceeds a predetermined upper limit value. ,
When the determination unit determines that the print head is performing a stick-slip operation, the change amount exceeds the predetermined upper limit value and is based on the change amount regardless of the predetermined upper limit value. A motor control unit for generating the control signal;
A printing apparatus comprising (G).

このような印刷装置にあっては、印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、印刷ヘッドの移動速度の単位時間当たりの変化量が所定の上限値を超えたときに当該所定の上限値に基づき制御信号を生成することで、安定した状態にて印刷ヘッドを移動させることができる。一方、印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、所定の上限値とは関係なく、印刷ヘッドの移動速度の単位時間当たりの変化量に基づき制御信号を生成してモータを制御することで、印刷ヘッドがスティックスリップ動作を行うのを抑制することができる。   In such a printing apparatus, when it is not determined that the print head is performing the stick-slip operation, the amount of change per unit time of the moving speed of the print head exceeds a predetermined upper limit value. By generating the control signal based on the predetermined upper limit value, the print head can be moved in a stable state. On the other hand, when it is determined that the print head is performing a stick-slip operation, a control signal is generated based on the amount of change in the moving speed of the print head per unit time regardless of the predetermined upper limit value. By controlling this, it is possible to suppress the print head from performing a stick-slip operation.

かかる印刷装置にあっては、前記モータ制御部には、前記速度検出部により検出された前記移動速度に基づき前記変化量を算出する演算部が設けられていても良い。このような演算部が設けられれば、前記速度検出部により検出された前記移動速度に基づき前記変化量を簡単に算出することができる。   In such a printing apparatus, the motor control unit may be provided with a calculation unit that calculates the amount of change based on the movement speed detected by the speed detection unit. If such a calculation unit is provided, the amount of change can be easily calculated based on the moving speed detected by the speed detection unit.

また、かかる印刷装置にあっては、前記モータ制御部には、前記変化量が前記所定の上限値を超えたときに前記変化量として前記所定の上限値を出力するリミッターが設けられていても良い。このようなリミッターが設けられれば、前記変化量が所定の上限値を超えたときに前記変化量として所定の上限値を簡単に出力することができる。   In the printing apparatus, the motor control unit may be provided with a limiter that outputs the predetermined upper limit value as the change amount when the change amount exceeds the predetermined upper limit value. good. If such a limiter is provided, a predetermined upper limit value can be easily output as the change amount when the change amount exceeds a predetermined upper limit value.

また、かかる印刷装置にあっては、前記モータ制御部は、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された後、前記速度検出部により検出された前記移動速度が所定時間以上、所定の許容範囲内にある場合には、前記変化量が前記所定の上限値を超えたときに前記所定の上限値に基づき前記制御信号を生成しても良い。このようにスティックスリップ動作を行っていると判定された後、印刷ヘッドの移動速度が所定時間以上、所定の許容範囲内にある場合には、変化量が所定の上限値を超えたときに所定の上限値に基づき制御信号を生成することで、印刷ヘッドの移動速度が正常に復帰したときに、スティックスリップ動作を行う前の元の制御と同様の制御に切り換えることができる。これにより、モータを安定した状態にて制御することができる。   In this printing apparatus, the motor control unit determines that the moving speed detected by the speed detection unit is predetermined after the determination unit determines that the print head is performing a stick-slip operation. If the change amount exceeds the predetermined upper limit value when the time is within a predetermined allowable range for a time or more, the control signal may be generated based on the predetermined upper limit value. After determining that the stick-slip operation is performed in this manner, if the moving speed of the print head is within a predetermined allowable range for a predetermined time or more, the predetermined amount is detected when the change amount exceeds a predetermined upper limit value. By generating the control signal based on the upper limit value, when the moving speed of the print head returns to normal, it is possible to switch to the same control as the original control before performing the stick-slip operation. As a result, the motor can be controlled in a stable state.

また、かかる印刷装置にあっては、前記判定部は、前記速度検出部により検出された前記移動速度に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定しても良い。このような判定を行えば、印刷ヘッドがスティックスリップ動作を行っているか否かを簡単に判定することができる。   In the printing apparatus, the determination unit may determine whether or not the print head is performing a stick-slip operation based on the moving speed detected by the speed detection unit. By making such a determination, it can be easily determined whether or not the print head is performing a stick-slip operation.

また、かかる印刷装置にあっては、前記判定部は、前記制御信号に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定しても良い。このような判定を行えば、印刷ヘッドがスティックスリップ動作を行っているか否かを簡単に判定することができる。   In the printing apparatus, the determination unit may determine whether the print head is performing a stick-slip operation based on the control signal. By making such a determination, it can be easily determined whether or not the print head is performing a stick-slip operation.

また、かかる印刷装置にあっては、前記印刷ヘッドの加速度を検出する加速度検出部を備え、前記判定部は、前記加速度検出部により検出された前記加速度に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定しても良い。このような判定を行えば、印刷ヘッドがスティックスリップ動作を行っているか否かを簡単に判定することができる。   The printing apparatus may further include an acceleration detection unit that detects an acceleration of the print head, and the determination unit may perform a stick-slip operation based on the acceleration detected by the acceleration detection unit. It may be determined whether or not this is done. By making such a determination, it can be easily determined whether or not the print head is performing a stick-slip operation.

また、かかる印刷装置にあっては、前記印刷ヘッドの移動開始から移動終了までの間に、前記印刷ヘッドの移動速度が所定の許容下限値以下になった時間を計測するタイマーを備え、前記判定部は、前記タイマーの計測時間に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定しても良い。このような判定を行えば、印刷ヘッドがスティックスリップ動作を行っているか否かを簡単に判定することができる。   In addition, the printing apparatus includes a timer that measures a time during which the moving speed of the print head is equal to or lower than a predetermined allowable lower limit between the start of movement of the print head and the end of movement, The unit may determine whether or not the print head is performing a stick-slip operation based on the measurement time of the timer. By making such a determination, it can be easily determined whether or not the print head is performing a stick-slip operation.

また、かかる印刷装置にあっては、前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドを当該印刷ヘッドに設けられた開口部を閉塞するキャッピング装置まで移動させる際であっても良い。これにより、印刷ヘッドが印刷ヘッドに設けられた開口部を閉塞するキャッピング装置まで移動するときに、印刷ヘッドがスティックスリップ動作を行ってもこれに対応することができる。   In the printing apparatus, when the motor control unit controls the motor to move the print head at a constant speed or less along the guide unit at a predetermined speed or less, the print head is It may be when moving to a capping device that closes an opening provided in the print head. Accordingly, even when the print head performs a stick-slip operation when the print head moves to the capping device that closes the opening provided in the print head, this can be handled.

また、かかる印刷装置にあっては、前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに設けられた光学センサにより、印刷しようとする媒体の幅を検出するために前記印刷ヘッドを前記ガイド部に沿って移動させる際であっても良い。これにより、印刷ヘッドに設けられた光学センサにより、印刷しようとする媒体の幅を検出するために印刷ヘッドがガイド部に沿って移動するときに、印刷ヘッドがスティックスリップ動作を行ってもこれに対応することができる。   In this printing apparatus, when the motor control unit controls the motor to move the print head at a constant speed or less along the guide unit at a predetermined speed or less, it is provided in the print head. The print head may be moved along the guide portion in order to detect the width of the medium to be printed by the optical sensor. Accordingly, even if the print head performs a stick-slip operation when the print head moves along the guide portion in order to detect the width of the medium to be printed by the optical sensor provided in the print head. Can respond.

また、かかる印刷装置にあっては、前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに搭載されたカートリッジを交換するために前記印刷ヘッドを所定位置まで移動させる際であっても良い。これにより、印刷ヘッドに搭載されたカートリッジを交換するために前記印刷ヘッドが所定位置まで移動するときに、印刷ヘッドがスティックスリップ動作を行ってもこれに対応することができる。   In this printing apparatus, when the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, it is mounted on the print head. It may be when the print head is moved to a predetermined position in order to replace the formed cartridge. Accordingly, even when the print head performs a stick-slip operation when the print head moves to a predetermined position in order to replace the cartridge mounted on the print head, it is possible to cope with this.

また、かかる印刷装置にあっては、前記印刷ヘッドは、前記媒体に対して印刷を施すために前記媒体に向けてインクを吐出するノズルを備えていても良い。このようなノズルが設けられた印刷ヘッドを有する印刷装置にて、印刷ヘッドがスティックスリップ動作を行ってもこれに対応することができる。   In this printing apparatus, the print head may include a nozzle that ejects ink toward the medium in order to perform printing on the medium. Even if the print head performs a stick-slip operation in a printing apparatus having a print head provided with such nozzles, this can be accommodated.

(A)媒体に対して印刷を施す印刷ヘッドと、
(B)前記印刷ヘッドを移動させるためのモータと、
(C)前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
(D)前記印刷ヘッドの移動速度を検出する速度検出部と、
(E)前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定する判定部と、
(F)前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、
前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
(G)を備え、
(H)前記モータ制御部には、前記速度検出部により検出された前記移動速度に基づき前記変化量を算出する演算部が設けられ、
(I)前記モータ制御部には、前記変化量が前記所定の上限値を超えたときに前記変化量として当該所定の上限値を前記制御信号を生成するために出力するリミッターが設けられ、
(J)前記モータ制御部は、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された後、前記速度検出部により検出された前記移動速度が所定時間以上、所定の許容範囲内に保持されていた場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、
(K)前記判定部は、前記速度検出部により検出された前記移動速度に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定し、
(L)前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドを当該印刷ヘッドに設けられた開口部を閉塞するキャッピング装置まで移動させる際であり、
(M)前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに設けられた光学センサにより、印刷しようとする媒体の幅を検出するために前記印刷ヘッドを前記ガイド部に沿って移動させる際であり、
(N)前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに搭載されたカートリッジを交換するために前記印刷ヘッドを所定位置まで移動させる際であり、
(O)前記印刷ヘッドは、前記媒体に対して印刷を施すために前記媒体に向けてインクを吐出するノズルを備えていることを特徴とする印刷装置。
(A) a print head for printing on a medium;
(B) a motor for moving the print head;
(C) a guide portion for guiding the print head along a predetermined direction;
(D) a speed detector that detects the moving speed of the print head;
(E) a determination unit that determines whether the print head is performing a stick-slip operation;
(F) a motor controller that controls the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detector;
When controlling the motor to move the print head at a constant speed below the predetermined speed along the guide portion,
If the determination unit does not determine that the print head is performing a stick-slip operation, the control signal is generated based on the predetermined upper limit value when the amount of change exceeds a predetermined upper limit value. ,
When the determination unit determines that the print head is performing a stick-slip operation, the change amount exceeds the predetermined upper limit value and is based on the change amount regardless of the predetermined upper limit value. A motor control unit for generating the control signal;
(G)
(H) The motor control unit is provided with a calculation unit that calculates the amount of change based on the moving speed detected by the speed detection unit,
(I) The motor control unit is provided with a limiter that outputs the predetermined upper limit value as the change amount to generate the control signal when the change amount exceeds the predetermined upper limit value.
(J) After the motor control unit determines that the print head is performing a stick-slip operation by the determination unit, the movement speed detected by the speed detection unit is greater than or equal to a predetermined time and a predetermined allowable range. If the change amount exceeds a predetermined upper limit value, the control signal is generated based on the predetermined upper limit value,
(K) The determination unit determines whether the print head is performing a stick-slip operation based on the moving speed detected by the speed detection unit,
(L) When the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, an opening provided in the print head. It is when moving to a capping device that closes the part,
(M) When the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, printing is performed by an optical sensor provided in the print head. When moving the print head along the guide to detect the width of the medium to be attempted,
(N) When the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, the cartridge mounted on the print head is replaced. When the print head is moved to a predetermined position.
(O) The printing apparatus, wherein the print head includes a nozzle that ejects ink toward the medium in order to perform printing on the medium.

媒体に対して印刷を施す印刷ヘッドを当該印刷ヘッドを所定の方向に沿って案内するガイド部に沿って所定の速度以下にて定速移動させるべく制御信号を生成してモータを制御するステップと、
前記モータにより移動する前記印刷ヘッドの移動速度を検出するステップと、
前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定するステップと、
検出された前記移動速度の単位時間当たりの変化量に基づき前記制御信号を生成するステップであって、前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するステップと、
を有することを特徴とするスティックスリップ対応方法。
Generating a control signal to control a motor so as to move a print head that performs printing on a medium at a constant speed below a predetermined speed along a guide portion that guides the print head along a predetermined direction; and ,
Detecting a moving speed of the print head moved by the motor;
Determining whether the print head is performing a stick-slip operation;
The step of generating the control signal based on the detected change amount of the moving speed per unit time, and when the print head is not determined to perform a stick-slip operation, the change amount is When the predetermined upper limit value is exceeded, the control signal is generated based on the predetermined upper limit value, and when it is determined that the print head is performing a stick-slip operation, the amount of change is the predetermined upper limit value. Generating the control signal based on the amount of change regardless of the predetermined upper limit value even if exceeding a value;
A method for handling stick-slip, comprising:

媒体に対して印刷を施す印刷ヘッドを当該印刷ヘッドを所定の方向に沿って案内するガイド部に沿って所定の速度以下にて定速移動させるべく制御信号を生成してモータを制御するステップと、
前記モータにより移動する前記印刷ヘッドの移動速度を検出するステップと、
前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定するステップと、
検出された前記移動速度の単位時間当たりの変化量に基づき前記制御信号を生成するステップであって、前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するステップと、
を実行することを特徴とするプログラム。
Generating a control signal to control a motor so as to move a print head that performs printing on a medium at a constant speed below a predetermined speed along a guide portion that guides the print head along a predetermined direction; and ,
Detecting a moving speed of the print head moved by the motor;
Determining whether the print head is performing a stick-slip operation;
The step of generating the control signal based on the detected change amount of the moving speed per unit time, and when the print head is not determined to perform a stick-slip operation, the change amount is When the predetermined upper limit value is exceeded, the control signal is generated based on the predetermined upper limit value, and when it is determined that the print head is performing a stick-slip operation, the amount of change is the predetermined upper limit value. Generating the control signal based on the amount of change regardless of the predetermined upper limit value even if exceeding a value;
A program characterized by executing

コンピュータと、このコンピュータに接続可能な印刷装置とを具備した印刷システムであって、
前記印刷装置は、媒体に対して印刷を施す印刷ヘッドと、
前記印刷ヘッドを移動させるためのモータと、
前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
前記印刷ヘッドの移動速度を検出する速度検出部と、
前記印刷ヘッドがスティックスリップ動作を行ったか否かを判定する判定部と、
前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
を備えていることを特徴とする印刷システム。
A printing system comprising a computer and a printing device connectable to the computer,
The printing apparatus includes: a print head that performs printing on a medium;
A motor for moving the print head;
A guide portion for guiding the print head along a predetermined direction;
A speed detecting unit for detecting a moving speed of the print head;
A determination unit that determines whether or not the print head has performed a stick-slip operation;
A motor control unit for controlling the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detection unit, wherein the print head is moved along a predetermined direction along the guide unit; When the motor is controlled to move at a constant speed below the speed, if the determination unit does not determine that the print head is performing a stick-slip operation, the amount of change exceeds a predetermined upper limit. When the control signal is generated based on the predetermined upper limit value and the determination unit determines that the print head is performing a stick-slip operation, the amount of change is the predetermined upper limit value. A motor control unit that generates the control signal based on the amount of change regardless of the predetermined upper limit value,
A printing system comprising:

===印刷装置の概要===
本発明に係る印刷装置の実施の形態について、インクジェットプリンタ1を例にして説明する。図1〜図4は、そのインクジェットプリンタ1を示したものである。図1は、そのインクジェットプリンタ1の外観を示す。図2は、そのインクジェットプリンタ1の内部構成を示す。図3は、そのインクジェットプリンタ1の搬送部の構成を示す。図4は、そのインクジェットプリンタ1のシステム構成を示す。
=== Overview of Printing Apparatus ===
An embodiment of a printing apparatus according to the present invention will be described using an inkjet printer 1 as an example. 1 to 4 show the ink jet printer 1. FIG. 1 shows the appearance of the inkjet printer 1. FIG. 2 shows the internal configuration of the inkjet printer 1. FIG. 3 shows the configuration of the transport section of the inkjet printer 1. FIG. 4 shows the system configuration of the inkjet printer 1.

このインクジェットプリンタ1は、図1に示すように、背面から供給された印刷用紙等の媒体を前面から排出する構造を備えており、その前面部には、操作パネル2および排紙部3が設けられ、その背面部には、給紙部4が設けられている。操作パネル2には、各種操作ボタン5および表示ランプ6が設けられている。また、排紙部3には、不使用時に排紙口を塞ぐ排紙トレイ7が設けられている。給紙部4には、カット紙などの媒体を保持するための給紙トレイ8が設けられている。   As shown in FIG. 1, the ink jet printer 1 has a structure for discharging a medium such as printing paper supplied from the back surface from the front surface, and an operation panel 2 and a paper discharge portion 3 are provided on the front surface portion. The paper feeding unit 4 is provided on the back side. Various operation buttons 5 and display lamps 6 are provided on the operation panel 2. The paper discharge unit 3 is provided with a paper discharge tray 7 that closes the paper discharge port when not in use. The paper feed unit 4 is provided with a paper feed tray 8 for holding a medium such as cut paper.

このインクジェットプリンタ1の内部には、図2に示すように、キャリッジ41が設けられている。このキャリッジ41は、左右方向に沿って相対的に移動可能に設けられている。キャリッジ41の周辺には、キャリッジモータ42と、プーリ44と、タイミングベルト45と、ガイドレール46とが設けられている。キャリッジモータ42は、DCモータなどにより構成され、キャリッジ41を左右方向(以下、キャリッジ移動方向ともいう)に沿って相対的に移動させるための駆動源である。タイミングベルト45は、プーリ44を介してキャリッジモータ42に接続されるとともに、その一部がキャリッジ41に接続され、キャリッジモータ42の回転駆動によってキャリッジ41をキャリッジ移動方向(左右方向)に沿って相対的に移動させる。ガイドレール46は、キャリッジ41をキャリッジ移動方向(左右方向)に沿って案内する。   Inside the ink jet printer 1, a carriage 41 is provided as shown in FIG. The carriage 41 is provided to be relatively movable along the left-right direction. Around the carriage 41, a carriage motor 42, a pulley 44, a timing belt 45, and a guide rail 46 are provided. The carriage motor 42 is constituted by a DC motor or the like, and is a drive source for relatively moving the carriage 41 in the left-right direction (hereinafter also referred to as the carriage movement direction). The timing belt 45 is connected to the carriage motor 42 via the pulley 44, and a part of the timing belt 45 is connected to the carriage 41. The carriage 41 is moved relative to the carriage 41 in the carriage movement direction (left-right direction) by the rotation of the carriage motor 42. Move. The guide rail 46 guides the carriage 41 along the carriage movement direction (left-right direction).

この他に、キャリッジ41の周辺には、キャリッジ41の位置を検出するリニア式エンコーダ51と、媒体Sをキャリッジ41の移動方向と交差する方向(図中、前後方向。以下、搬送方向ともいう)に沿って搬送するための搬送ローラ17Aと、この搬送ローラ17Aを回転駆動させる搬送モータ15とが設けられている。   In addition, in the periphery of the carriage 41, a linear encoder 51 that detects the position of the carriage 41 and a direction in which the medium S intersects the moving direction of the carriage 41 (the front-rear direction in the figure, hereinafter also referred to as the transport direction). A transport roller 17A for transporting along the transport path 17 and a transport motor 15 for rotationally driving the transport roller 17A are provided.

一方、キャリッジ41には、各種インクを収容したインクカートリッジ48と、媒体Sに対して印刷を行うヘッド21とが設けられている。インクカートリッジ48は、例えば、イエロ(Y)やマゼンダ(M)、シアン(C)、ブラック(K)などの各色のインクを収容しており、キャリッジ41に設けられたカートリッジ装着部49に着脱可能に装着されている。また、ヘッド21は、本実施形態では、媒体Sに対してインクを吐出して印刷を施す。このために、ヘッド21には、インクを吐出するための多数のノズルが設けられている。   On the other hand, the carriage 41 is provided with an ink cartridge 48 that stores various inks, and a head 21 that performs printing on the medium S. The ink cartridge 48 contains, for example, each color ink such as yellow (Y), magenta (M), cyan (C), black (K), and is detachable from a cartridge mounting portion 49 provided on the carriage 41. It is attached to. In the present embodiment, the head 21 performs printing by ejecting ink onto the medium S. For this purpose, the head 21 is provided with a number of nozzles for ejecting ink.

なお、ヘッド21は、媒体Sに対して印刷を施す「印刷ヘッド」に相当する。また、本実施形態では、このヘッド21がキャリッジ41に設けられていることから、キャリッジ41も「印刷ヘッド」に相当する。また、ガイドレール46は、キャリッジ41(ヘッド21)を所定の方向に沿って案内することから、「ガイド部」に相当する。また、キャリッジモータ42は、キャリッジ41(ヘッド21)を移動させるためのモータであることから、「モータ」に相当する。   The head 21 corresponds to a “print head” that performs printing on the medium S. In the present embodiment, since the head 21 is provided on the carriage 41, the carriage 41 also corresponds to a “print head”. The guide rail 46 corresponds to a “guide portion” because it guides the carriage 41 (head 21) along a predetermined direction. The carriage motor 42 is a motor for moving the carriage 41 (head 21), and therefore corresponds to a “motor”.

この他に、このインクジェットプリンタ1の内部には、ヘッド21のノズルの目詰まりを解消するためにノズルからインクを吸い出すポンプ装置31や、ヘッド21のノズルの目詰まりを防止するために、印刷を行わないとき(待機時など)にヘッド21のノズルを封止するキャッピング装置35などが設けられている。   In addition to this, in the inkjet printer 1, printing is performed in order to prevent clogging of the nozzles of the head 21 and the pump device 31 that sucks out ink from the nozzles in order to eliminate clogging of the nozzles of the head 21. A capping device 35 that seals the nozzles of the head 21 when not in use (such as during standby) is provided.

次にこのインクジェットプリンタ1の搬送部について説明する。この搬送部には、図3に示すように、給紙ローラ13と、紙検知センサ53と、搬送ローラ17Aと、排紙ローラ17Bと、プラテン14と、フリーローラ18A、18Bとが設けられている。   Next, the conveyance unit of the inkjet printer 1 will be described. As shown in FIG. 3, the transport unit includes a paper feed roller 13, a paper detection sensor 53, a transport roller 17A, a paper discharge roller 17B, a platen 14, and free rollers 18A and 18B. Yes.

印刷される媒体Sは、給紙トレイ8にセットされる。給紙トレイ8にセットされた媒体Sは、断面略D形状に成形された給紙ローラ13により、図中矢印A方向に沿って搬送されて、インクジェットプリンタ1の内部へと送られる。インクジェットプリンタ1の内部に送られてきた媒体Sは、紙検知センサ53と接触する。この紙検知センサ53は、給紙ローラ13と、搬送ローラ17Aとの間に設置されたもので、給紙ローラ13により給紙された媒体Sを検知する。   The medium S to be printed is set in the paper feed tray 8. The medium S set in the paper feed tray 8 is conveyed along the direction of arrow A in the drawing by the paper feed roller 13 having a substantially D-shaped cross section, and is sent into the ink jet printer 1. The medium S sent to the inside of the ink jet printer 1 comes into contact with the paper detection sensor 53. The paper detection sensor 53 is installed between the paper feed roller 13 and the transport roller 17A, and detects the medium S fed by the paper feed roller 13.

紙検知センサ53により検知された媒体Sは、搬送ローラ17Aによって、印刷が実施されるプラテン14へと順次搬送される。搬送ローラ17Aの対向位置には、フリーローラ18Aが設けられている。このフリーローラ18Aと搬送ローラ17Aとの間に、媒体Sを挟み込むことによって、媒体Sをスムーズに搬送する。   The medium S detected by the paper detection sensor 53 is sequentially transported to the platen 14 on which printing is performed by the transport roller 17A. A free roller 18A is provided at a position facing the conveying roller 17A. The medium S is smoothly transported by sandwiching the medium S between the free roller 18A and the transport roller 17A.

プラテン14へと送り込まれた媒体Sは、ヘッド21から吐出されたインクによって順次印刷される。プラテン14は、ヘッド21と対向して設けられ、印刷される媒体Sを下側から支持する。   The medium S sent to the platen 14 is sequentially printed by the ink ejected from the head 21. The platen 14 is provided to face the head 21 and supports the medium S to be printed from below.

印刷が施された媒体Sは、排紙ローラ17Bにより順次、プリンタ外部へと排出される。排紙ローラ17Bは、搬送モータ15と同期に駆動されていて、当該排紙ローラ17Bに対向して設けられたフリーローラ18Bとの間に媒体Sを挟み込んで、媒体Sをプリンタ外部へと排出する。   The medium S on which printing has been performed is sequentially discharged out of the printer by the paper discharge roller 17B. The paper discharge roller 17B is driven in synchronism with the transport motor 15, and sandwiches the medium S with the free roller 18B provided facing the paper discharge roller 17B, and discharges the medium S to the outside of the printer. To do.

<システム構成>
次にこのインクジェットプリンタ1のシステム構成について説明する。このインクジェットプリンタ1は、図4に示すように、バッファメモリ122と、イメージバッファ124と、コントローラ126と、メインメモリ127と、通信インターフェース129と、キャリッジモータ制御部128と、搬送制御部130と、ヘッド駆動部132とを備えている。
<System configuration>
Next, the system configuration of the inkjet printer 1 will be described. As shown in FIG. 4, the inkjet printer 1 includes a buffer memory 122, an image buffer 124, a controller 126, a main memory 127, a communication interface 129, a carriage motor control unit 128, a transport control unit 130, A head driving unit 132.

通信インターフェース129は、当該インクジェットプリンタ1が、例えばパーソナルコンピュータ等の外部のコンピュータ140とデータのやりとりを行うためのものである。通信インターフェース129は、外部のコンピュータ140と有線または無線等により通信可能に接続され、コンピュータ140から送信された印刷データ等の各種データを受信する。   The communication interface 129 is for the inkjet printer 1 to exchange data with an external computer 140 such as a personal computer. The communication interface 129 is communicably connected to the external computer 140 by wire or wireless, and receives various data such as print data transmitted from the computer 140.

バッファメモリ122には、通信インターフェース129により受信された印刷データ等の各種データが一時的に記憶される。また、イメージバッファ124には、バッファメモリ122に記憶された印刷データが順次記憶される。イメージバッファ124に記憶された印刷データは、順次、ヘッド駆動部132へと送られる。また、メインメモリ127は、ROMやRAM、EEPROMなどにより構成される。メインメモリ127には、当該インクジェットプリンタ1を制御するための各種プログラムや各種設定データなどが記憶される。   Various data such as print data received by the communication interface 129 are temporarily stored in the buffer memory 122. The image buffer 124 sequentially stores print data stored in the buffer memory 122. The print data stored in the image buffer 124 is sequentially sent to the head driving unit 132. The main memory 127 is composed of ROM, RAM, EEPROM, and the like. The main memory 127 stores various programs for controlling the inkjet printer 1 and various setting data.

コントローラ126は、メインメモリ127から制御用プログラムや各設定データなどを読み出して、当該制御用プログラムや各種設定データに従ってインクジェットプリンタ1全体の制御を行う。また、コントローラ126には、ロータリ式エンコーダ134やリニア式エンコーダ51、紙検知センサ53などの各種センサからの検出信号が入力される。   The controller 126 reads a control program, each setting data, and the like from the main memory 127, and controls the entire inkjet printer 1 according to the control program and various setting data. The controller 126 receives detection signals from various sensors such as the rotary encoder 134, the linear encoder 51, and the paper detection sensor 53.

コントローラ126は、外部のコンピュータ140から送られてきた印刷データ等の各種データが通信インターフェース129により受信されてバッファメモリ122に格納されると、その格納されたデータの中から必要な情報をバッファメモリ122から読み出す。コントローラ126は、その読み出した情報に基づき、リニア式エンコーダ51やロータリ式エンコーダ134からの出力を参照しながら、制御用プログラムに従って、キャリッジモータ制御部128や搬送制御部130、ヘッド駆動部132などを各々制御する。   When various data such as print data sent from the external computer 140 is received by the communication interface 129 and stored in the buffer memory 122, the controller 126 stores necessary information from the stored data in the buffer memory. Read from 122. Based on the read information, the controller 126 refers to the output from the linear encoder 51 and the rotary encoder 134 and controls the carriage motor control unit 128, the conveyance control unit 130, the head drive unit 132, and the like according to the control program. Control each one.

キャリッジモータ制御部128は、コントローラ126からの命令に従って、キャリッジモータ42の回転方向や回転数、トルクなどを駆動制御する。搬送制御部130は、コントローラ126からの命令に従って、搬送ローラ17Aを回転駆動する搬送モータ15などを制御する。   The carriage motor control unit 128 drives and controls the rotation direction, number of rotations, torque, and the like of the carriage motor 42 in accordance with a command from the controller 126. The conveyance control unit 130 controls the conveyance motor 15 that rotationally drives the conveyance roller 17 </ b> A according to a command from the controller 126.

ヘッド駆動部132は、コントローラ126からの命令に従って、イメージバッファ124に格納された印刷データに基づき、ヘッド21に設けられた各色のノズルを駆動制御する。   The head drive unit 132 drives and controls the nozzles of each color provided in the head 21 based on the print data stored in the image buffer 124 in accordance with a command from the controller 126.

なお、キャリッジモータ制御部128は、本実施形態では、キャリッジ41(ヘッド21)を移動させるためのキャリッジモータ42を制御することから、「モータ制御部」に相当する。   In this embodiment, the carriage motor control unit 128 controls the carriage motor 42 for moving the carriage 41 (head 21), and thus corresponds to a “motor control unit”.

<ヘッド>
図5は、ヘッド21の下面部に設けられたインクのノズルの配列を示した図である。ヘッド21の下面部には、同図に示すように、イエロ(Y)、マゼンタ(M)、シアン(C)、ブラック(K)の各色ごとにそれぞれ複数のノズル♯1〜♯180からなるノズル列、即ちシアンノズル列211C、マゼンダノズル列211M、イエロノズル列211Y、およびブラックノズル列211Kが設けられている。
<Head>
FIG. 5 is a diagram showing the arrangement of the ink nozzles provided on the lower surface of the head 21. On the lower surface of the head 21, as shown in the figure, nozzles comprising a plurality of nozzles # 1 to # 180 for each color of yellow (Y), magenta (M), cyan (C), and black (K). A cyan nozzle row 211C, a magenta nozzle row 211M, a yellow nozzle row 211Y, and a black nozzle row 211K are provided.

各ノズル列211C、211M、211Y、211Kの各ノズル♯1〜♯180は、所定の方向(ここでは、媒体Sの搬送方向)に沿って相互に間隔をあけて直線状に1列に配列されている。各ノズル列211C、211M、211Y、211Kは、ヘッド21の移動方向(走査方向)に沿って相互に所定の間隔をあけて平行に配置されている。各ノズル♯1〜♯180には、インク滴を吐出するための駆動素子としてピエゾ素子(図示外)が設けられている。   The nozzles # 1 to # 180 of the nozzle rows 211C, 211M, 211Y, and 211K are arranged in a line in a straight line at intervals from each other along a predetermined direction (here, the transport direction of the medium S). ing. The nozzle rows 211C, 211M, 211Y, and 211K are arranged in parallel at predetermined intervals along the moving direction (scanning direction) of the head 21. Each nozzle # 1 to # 180 is provided with a piezo element (not shown) as a drive element for ejecting ink droplets.

===リニア式エンコーダ===
<エンコーダの構成>
図6は、リニア式エンコーダ51の構成を概略的に示したものである。リニア式エンコーダ51は、リニア式エンコーダ符号板464と、検出部466とを備えている。リニア式エンコーダ符号板464は、図2に示すように、インクジェットプリンタ1内部のフレーム側に取り付けられている。一方、検出部466は、キャリッジ41側に取り付けられている。キャリッジ41がガイドレール46に沿って移動すると、検出部466がリニア式エンコーダ符号板464に沿って相対的に移動する。これによって、検出部466は、キャリッジ41の移動量を検出する。
=== Linear encoder ===
<Configuration of encoder>
FIG. 6 schematically shows the configuration of the linear encoder 51. The linear encoder 51 includes a linear encoder code plate 464 and a detection unit 466. As shown in FIG. 2, the linear encoder code plate 464 is attached to the frame side inside the inkjet printer 1. On the other hand, the detection unit 466 is attached to the carriage 41 side. When the carriage 41 moves along the guide rail 46, the detection unit 466 moves relatively along the linear encoder code plate 464. Accordingly, the detection unit 466 detects the movement amount of the carriage 41.

<検出部の構成>
図7は、この検出部466の構成を模式的に示したものである。この検出部466は、発光ダイオード452と、コリメータレンズ454と、検出処理部456とを備えている。検出処理部456は、複数(例えば4個)のフォトダイオード458と、信号処理回路460と、例えば2個のコンパレータ462A、462Bとを有している。
<Configuration of detection unit>
FIG. 7 schematically shows the configuration of the detection unit 466. The detection unit 466 includes a light emitting diode 452, a collimator lens 454, and a detection processing unit 456. The detection processing unit 456 includes a plurality of (for example, four) photodiodes 458, a signal processing circuit 460, and, for example, two comparators 462A and 462B.

発光ダイオード452の両端に抵抗を介して電圧Vccが印加されると、発光ダイオード452から光が発せられる。この光はコリメータレンズ454により平行光に集光されてリニア式エンコーダ符号板464を通過する。リニア式エンコーダ符号板464には、所定の間隔(例えば、1/180インチ(1インチ=2.54cm))毎にスリットが設けられている。   When the voltage Vcc is applied to both ends of the light emitting diode 452 via a resistor, light is emitted from the light emitting diode 452. This light is condensed into parallel light by the collimator lens 454 and passes through the linear encoder code plate 464. The linear encoder code plate 464 is provided with slits at predetermined intervals (for example, 1/180 inch (1 inch = 2.54 cm)).

リニア式エンコーダ符号板464を通過した平行光は、図示しない固定スリットを通って各フォトダイオード458に入射し、電気信号に変換される。4個のフォトダイオード458から出力される電気信号は信号処理回路460において信号処理され、信号処理回路460から出力される信号はコンパレータ462A、462Bにおいて比較され、比較結果がパルスとして出力される。コンパレータ462A、462Bから出力されるパルスENC−A、ENC−Bがリニア式エンコーダ51の出力となる。   The parallel light that has passed through the linear encoder code plate 464 enters each photodiode 458 through a fixed slit (not shown) and is converted into an electrical signal. The electric signals output from the four photodiodes 458 are subjected to signal processing in the signal processing circuit 460, the signals output from the signal processing circuit 460 are compared in the comparators 462A and 462B, and the comparison result is output as a pulse. Pulses ENC-A and ENC-B output from the comparators 462A and 462B are output from the linear encoder 51.

<出力信号>
図8A及び図8Bは、キャリッジモータ42の正転時及び逆転時における検出部466の2つの出力信号の波形を示したタイミングチャートである。図8A及び図8Bに示すように、キャリッジモータ42の正転時及び逆転時のいずれの場合も、パルスENC−AとパルスENC−Bとは位相が90度だけ異なっている。キャリッジモータ42が正転しているとき、即ち、キャリッジ41がガイドレール46に沿って移動しているときは、図8Aに示すように、パルスENC−AはパルスENC−Bよりも90度だけ位相が進み、キャリッジモータ42が逆転しているときは、図8Bに示すように、パルスENC−AはパルスENC−Bよりも90度だけ位相が遅れる。そして、パルスENC−A及びパルスENC−Bの1周期Tは、キャリッジ41がリニア式エンコーダ符号板464のスリット間隔を移動する時間に等しい。
<Output signal>
8A and 8B are timing charts showing waveforms of two output signals of the detection unit 466 when the carriage motor 42 is rotating forward and when the carriage motor 42 is rotating forward. As shown in FIGS. 8A and 8B, the phase of the pulse ENC-A and the pulse ENC-B are different from each other by 90 degrees in both cases of forward rotation and reverse rotation of the carriage motor 42. When the carriage motor 42 is rotating forward, that is, when the carriage 41 is moving along the guide rail 46, the pulse ENC-A is 90 degrees more than the pulse ENC-B, as shown in FIG. 8A. When the phase advances and the carriage motor 42 reverses, the phase of the pulse ENC-A is delayed by 90 degrees from the pulse ENC-B, as shown in FIG. 8B. One cycle T of the pulse ENC-A and the pulse ENC-B is equal to the time during which the carriage 41 moves through the slit interval of the linear encoder code plate 464.

そして、リニア式エンコーダ51の出力パルスENC−A、ENC−Bの各々の立ち上がりエッジが検出され、検出されたエッジの個数が計数され、この計数値に基づいてキャリッジモータ42の回転位置が演算される。この計数はキャリッジモータ42が正転しているときは1個のエッジが検出されると「+1」を加算し、逆転しているときは、1個のエッジが検出されると「−1」を加算する。パルスENC−A及びENC−Bの各々の周期は、リニア式エンコーダ符号板464の、あるスリットが検出部466を通過してから次のスリットが検出部466を通過するまでの時間に等しく、かつ、パルスENC−AとパルスENC−Bとは位相が90度だけ異なっている。このため、上記計数のカウント値「1」はリニア式エンコーダ符号板464のスリット間隔の1/4に対応する。これにより上記計数値にスリット間隔の1/4を乗算すれば、その乗算値に基づいて、計数値が「0」に対応する回転位置からのキャリッジモータ42の移動量を求めることができる。このとき、リニア式エンコーダ51の解像度はリニア式エンコーダ符号板464のスリットの間隔の1/4となる。   Then, rising edges of the output pulses ENC-A and ENC-B of the linear encoder 51 are detected, the number of detected edges is counted, and the rotational position of the carriage motor 42 is calculated based on the counted value. The This count is incremented by "+1" when one edge is detected when the carriage motor 42 is rotating forward, and is "-1" when one edge is detected when rotating reversely. Is added. The period of each of the pulses ENC-A and ENC-B is equal to the time from when one slit passes through the detection unit 466 until the next slit passes through the detection unit 466 of the linear encoder code plate 464, and The pulse ENC-A and the pulse ENC-B are different in phase by 90 degrees. For this reason, the count value “1” of the count corresponds to ¼ of the slit interval of the linear encoder code plate 464. Thus, if the count value is multiplied by ¼ of the slit interval, the amount of movement of the carriage motor 42 from the rotational position corresponding to the count value “0” can be obtained based on the multiplication value. At this time, the resolution of the linear encoder 51 is ¼ of the slit interval of the linear encoder code plate 464.

===キャリッジモータ制御部===
キャリッジモータ制御部128の構成について詳しく説明する。図9は、キャリッジモータ制御部128の回路構成の一例を示したブロック構成図である。キャリッジモータ制御部128は、同図に示すように、位置演算部331と、減算器332と、ゲイン333と、速度演算部334と、減算器335と、比例要素336Aと、積分要素336Bと、微分要素336Cと、加算器337と、リミッター342と、PWM回路338と、加速制御部339Aと、タイマ339Bとを有する。
=== Carriage motor control unit ===
The configuration of the carriage motor control unit 128 will be described in detail. FIG. 9 is a block configuration diagram illustrating an example of a circuit configuration of the carriage motor control unit 128. As shown in the figure, the carriage motor control unit 128 includes a position calculation unit 331, a subtracter 332, a gain 333, a speed calculation unit 334, a subtractor 335, a proportional element 336A, an integration element 336B, A differential element 336C, an adder 337, a limiter 342, a PWM circuit 338, an acceleration control unit 339A, and a timer 339B are included.

位置演算部331は、リニア式エンコーダ51の出力パルスのエッジを検出し、その個数をカウントし、このカウント値に基づきキャリッジモータ42の回転位置を演算する。位置演算部331は、リニア式エンコーダ51からの2つのパルス信号の比較処理からキャリッジモータ42の正転・逆転を認知し、1個のエッジが検出された時に正転・逆転に応じてインクリメント・デクリメントするように計数処理する。
減算器332は、コントローラ126から送られてくる目標位置と、位置演算部331により検出された検出位置との位置偏差を演算する。ゲイン333は、減算器332から出力される位置偏差にゲインKpを乗算し、目標速度Vtを出力する。ゲインKpは、位置偏差に応じて決定される。
速度演算部334は、リニア式エンコーダ51の出力パルスのパルス周期を計測し、このパルス周期に基づいてキャリッジモータ42の回転速度Vcを演算する。なお、この速度演算部334は、ヘッド21(印刷ヘッド)の移動速度を検出する「速度検出部」に相当する。
減算器335は、ゲイン333から出力される目標速度Vtと、速度演算部334により検出された検出速度Vcとの速度偏差ΔVを演算する。
The position calculation unit 331 detects the edge of the output pulse of the linear encoder 51, counts the number thereof, and calculates the rotational position of the carriage motor 42 based on the count value. The position calculation unit 331 recognizes normal rotation / reverse rotation of the carriage motor 42 from the comparison processing of the two pulse signals from the linear encoder 51, and increments according to normal rotation / reverse rotation when one edge is detected. Counting process to decrement.
The subtractor 332 calculates a position deviation between the target position sent from the controller 126 and the detected position detected by the position calculation unit 331. The gain 333 multiplies the position deviation output from the subtracter 332 by the gain Kp, and outputs the target speed Vt. The gain Kp is determined according to the position deviation.
The speed calculation unit 334 measures the pulse period of the output pulse of the linear encoder 51 and calculates the rotation speed Vc of the carriage motor 42 based on this pulse period. The speed calculation unit 334 corresponds to a “speed detection unit” that detects the moving speed of the head 21 (printing head).
The subtractor 335 calculates a speed deviation ΔV between the target speed Vt output from the gain 333 and the detected speed Vc detected by the speed calculator 334.

比例要素336Aは、速度偏差ΔVに定数Gpを乗算し、比例成分QPを出力する。積分要素336Bは、速度偏差ΔVに定数Giを乗算したものを1つ前の演算結果QI(j−1)に積算し、積分成分QIを出力する。微分要素336Cは、現在の速度偏差ΔV(j)(ここで、jは時刻を示す)と、1つ前の速度偏差ΔV(j−1)との差に定数Gdを乗算し、微分成分QDを出力する。なお、ここで、現在の速度偏差ΔV(j)(ここで、jは時刻を示す)と、1つ前の速度偏差ΔV(j−1)との差は、キャリッジの移動速度の単位時間当たりの変化量に相当する。したがって、この微分要素336Cは、キャリッジの移動速度に基づき、その単位時間当たりの変化量を算出する「演算部」に相当する。比例要素336A、積分要素336B及び微分要素336Cの演算は、リニア式エンコーダ51の出力パルスの1周期毎に行われる。   The proportional element 336A multiplies the speed deviation ΔV by a constant Gp and outputs a proportional component QP. The integration element 336B integrates the speed deviation ΔV multiplied by the constant Gi to the previous calculation result QI (j−1), and outputs an integration component QI. The differential element 336C multiplies the difference between the current speed deviation ΔV (j) (where j is the time) and the previous speed deviation ΔV (j−1) by a constant Gd to obtain a differential component QD Is output. Here, the difference between the current speed deviation ΔV (j) (where j indicates the time) and the previous speed deviation ΔV (j−1) is the unit of the moving speed of the carriage per unit time. It corresponds to the amount of change. Therefore, the differential element 336C corresponds to an “arithmetic unit” that calculates the amount of change per unit time based on the carriage moving speed. The calculation of the proportional element 336A, the integral element 336B, and the differential element 336C is performed for each cycle of the output pulse of the linear encoder 51.

ここで、各演算要素336A、336B、336Cの演算出力、即ち比例成分QP、積分成分QIおよび微分成分QDは、例えば、次の式(1)〜(3)により与えることができる。
QP(j)=ΔV(j)×Gp ……(1)
QI(j)=QI(j−1)+ΔV(j)×Gi ……(2)
QD(j)={ΔV(j)−ΔV(j−1)}×Gd ……(3)
Here, the calculation outputs of the calculation elements 336A, 336B, and 336C, that is, the proportional component QP, the integral component QI, and the differential component QD can be given by the following equations (1) to (3), for example.
QP (j) = ΔV (j) × Gp (1)
QI (j) = QI (j−1) + ΔV (j) × Gi (2)
QD (j) = {ΔV (j) −ΔV (j−1)} × Gd (3)

リミッター342は、微分要素336Cの演算出力、即ち、微分成分QDが所定の上限値を超えて加算器337に入力されないようにするために設けられている。つまり、微分成分QDが所定の上限値を超えたときには、当該所定の上限値が微分要素336Cの演算出力として加算器337に入力される。   The limiter 342 is provided to prevent the operation output of the differentiation element 336C, that is, the differentiation component QD from being input to the adder 337 beyond a predetermined upper limit value. That is, when the differential component QD exceeds the predetermined upper limit value, the predetermined upper limit value is input to the adder 337 as the calculation output of the differential element 336C.

このように微分要素336Cの演算出力(微分成分QD)を制限するのは、次の理由からである。つまり、何らかの要因によってキャリッジ41の移動速度に大きく変動が生じて微分要素336Cの演算出力の値が大きくなっても、キャリッジモータ42の制御にあたってあまり大きな影響を受けないようにするためである。加算器337に入力される微分成分QDが所定の上限値を超えないように制限することで、キャリッジ41を安定した状態にて移動させることができる。   The reason why the calculation output (differential component QD) of the differential element 336C is limited in this way is as follows. In other words, even if the movement speed of the carriage 41 greatly fluctuates due to some factor and the value of the calculation output of the differential element 336C increases, the carriage motor 42 is not greatly affected by the control. By limiting so that the differential component QD input to the adder 337 does not exceed a predetermined upper limit value, the carriage 41 can be moved in a stable state.

加算器337は、比例要素336Aの比例成分QPと、積分要素336Bの積分成分QIと、微分要素336Cの微分成分QDとを加算する。これら3つの成分、即ち比例成分QP、積分成分QIおよび微分成分QDの加算結果ΣQは、デューティ信号として、PWM回路338に出力される。   The adder 337 adds the proportional component QP of the proportional element 336A, the integral component QI of the integral element 336B, and the differential component QD of the differential element 336C. The addition result ΣQ of these three components, that is, the proportional component QP, the integral component QI, and the differential component QD is output to the PWM circuit 338 as a duty signal.

リミッター342により微分要素336Cの演算出力が制限されていない場合、加算結果ΣQは、次の式(4)により得ることができる。
ΣQ(j)=QP(j)+QI(j)+QD(j)………(4)
When the calculation output of the differentiation element 336C is not limited by the limiter 342, the addition result ΣQ can be obtained by the following equation (4).
ΣQ (j) = QP (j) + QI (j) + QD (j) (4)

PWM回路338は、加算器337の加算結果ΣQに応じた制御信号を生成する。ドライバ340は、この制御信号に基づいてキャリッジモータ42を駆動する。ドライバ340は、例えば複数個のトランジスタを備えており、PWM回路338からの制御信号に基づいて、トランジスタをオン・オフさせることで、キャリッジモータ42に電圧を印加する。   The PWM circuit 338 generates a control signal corresponding to the addition result ΣQ of the adder 337. The driver 340 drives the carriage motor 42 based on this control signal. The driver 340 includes a plurality of transistors, for example, and applies a voltage to the carriage motor 42 by turning on and off the transistors based on a control signal from the PWM circuit 338.

また、加速制御部339A及びタイマ339Bは、キャリッジモータ42の加速制御時に用いられる。タイマ339Bは、コントローラ126から送られてくるクロック信号に基づいて、所定時間毎にタイマ割込信号を発生する。加速制御部339Aは、タイマ割込信号を受ける毎に所定のデューティDXPを積算し、積算結果としてデューティ信号を生成して、このデューティ信号をPWM回路338に出力する。   The acceleration control unit 339A and the timer 339B are used during acceleration control of the carriage motor 42. The timer 339B generates a timer interrupt signal every predetermined time based on the clock signal sent from the controller 126. The acceleration control unit 339A integrates a predetermined duty DXP every time a timer interrupt signal is received, generates a duty signal as an integration result, and outputs the duty signal to the PWM circuit 338.

キャリッジモータ42を加速駆動するときには、PWM回路338は、加速制御部339Aから出力されるデューティ信号に基づいて制御信号を生成してキャリッジモータ42を制御する。また、キャリッジモータ42を定速駆動するとき、および、キャリッジモータ42を減速するときには、PWM回路338は、3つの成分、即ち、比例要素336Aの比例成分QP、積分要素336Bの積分成分QI、および微分要素336Cの微分成分QDの加算結果ΣQとして加算器337から出力されたデューティ信号に基づき生成された制御信号をキャリッジモータ42に出力し、キャリッジモータ42を制御する。   When the carriage motor 42 is driven to accelerate, the PWM circuit 338 generates a control signal based on the duty signal output from the acceleration control unit 339A to control the carriage motor 42. When the carriage motor 42 is driven at a constant speed and when the carriage motor 42 is decelerated, the PWM circuit 338 has three components, that is, a proportional component QP of the proportional element 336A, an integral component QI of the integral element 336B, and A control signal generated based on the duty signal output from the adder 337 as the addition result ΣQ of the differential component QD of the differential element 336C is output to the carriage motor 42 to control the carriage motor 42.

===キャリッジモータの駆動方法===
図10Aは、PWM回路338に入力されるデューティ信号の時間変化のグラフである。図10Bは、キャリッジモータ42の速度変化のグラフである。以下、これらの図を用いて、キャリッジモータ42の駆動について説明する。
=== Driving method of carriage motor ===
FIG. 10A is a graph of the time change of the duty signal input to the PWM circuit 338. FIG. 10B is a graph of the speed change of the carriage motor 42. Hereinafter, the driving of the carriage motor 42 will be described with reference to these drawings.

キャリッジモータ42が停止している時に、キャリッジモータ42を起動させる起動指令信号がコントローラ126からキャリッジモータ制御部128へ送られると、信号値がDX0である起動初期デューティ信号が加速制御部339AからPWM回路338へ送られる。この起動初期ディユーティ信号は、起動指令信号とともにコントローラ126から加速制御部339Aへ送られてくる。そして、この起動初期ディユーティ信号は、PWM回路338によって、信号値DX0に応じた制御信号に変換されて、キャリッジモータ42の起動が開始される。   When a start command signal for starting the carriage motor 42 is sent from the controller 126 to the carriage motor control unit 128 while the carriage motor 42 is stopped, a start initial duty signal whose signal value is DX0 is sent from the acceleration control unit 339A to the PWM. Sent to circuit 338. This startup initial duty signal is sent from the controller 126 to the acceleration control unit 339A together with the startup command signal. The start initial duty signal is converted into a control signal corresponding to the signal value DX0 by the PWM circuit 338, and the start of the carriage motor 42 is started.

キャリッジモータ制御部128が起動指令信号を受信した後、所定の時間ごとにタイマ339Bからタイマ割込信号が発生される。加速制御部339Aは、タイマ割込信号を受信する毎に、起動初期デューティ信号の信号値DX0に所定のデューティDXPを積算し、積算されたデューティを信号値とするデューティ信号をPWM回路338に送る。このデューティ信号は、PWM回路338によって、その信号値に応じた制御信号に変換されて、キャリッジモータ42の回転速度は上昇する。このため加速制御部339AからPWM回路338に送られるデューティ信号の値は、階段状に上がっていく。   After the carriage motor control unit 128 receives the start command signal, a timer interrupt signal is generated from the timer 339B every predetermined time. Every time the acceleration control unit 339A receives a timer interrupt signal, the acceleration control unit 339A accumulates a predetermined duty DXP on the signal value DX0 of the startup initial duty signal, and sends a duty signal having the accumulated duty as a signal value to the PWM circuit 338. . The duty signal is converted into a control signal corresponding to the signal value by the PWM circuit 338, and the rotation speed of the carriage motor 42 increases. For this reason, the value of the duty signal sent from the acceleration control unit 339A to the PWM circuit 338 increases stepwise.

加速制御部339Aにおけるデューティの積算処理は、積算されたデューティが所定のデューティDXSになるまで行われる。時刻t1において積算されたデューティが所定値DXSとなると、加速制御部339Aは積算処理を停止し、以後PWM回路338に一定のデューティDXSを信号値とするデューティ信号を送る。   The duty integration process in the acceleration control unit 339A is performed until the integrated duty reaches a predetermined duty DXS. When the duty integrated at time t1 reaches a predetermined value DXS, the acceleration control unit 339A stops the integration process, and thereafter sends a duty signal having a constant duty DXS as a signal value to the PWM circuit 338.

そして、キャリッジモータ42が所定の回転速度になると(時間t2参照)、加速制御部339Aは、PWM回路338へ出力するデューティ信号を減少させて、キャリッジモータ42に印加される電圧のデューティパーセントを減少させるよう制御する。このとき、キャリッジモータ42の回転速度は更に上昇する。そして、時間t3になると、PWM回路338は加算器337の出力を選択し、PID制御が行われる。PID制御が開始される時点(t3)において、積分要素336Bの積分値が適当な値に設定されており、積分要素336Bの出力値が所定の値になる。   When the carriage motor 42 reaches a predetermined rotation speed (see time t2), the acceleration control unit 339A decreases the duty signal output to the PWM circuit 338 and decreases the duty percentage of the voltage applied to the carriage motor 42. To control. At this time, the rotational speed of the carriage motor 42 further increases. At time t3, the PWM circuit 338 selects the output of the adder 337, and PID control is performed. At the time (t3) when the PID control is started, the integral value of the integral element 336B is set to an appropriate value, and the output value of the integral element 336B becomes a predetermined value.

PID制御が開始されると、キャリッジモータ制御部128は、目標回転位置と、リニア式エンコーダ51の出力から得られる実際の回転位置との位置偏差にゲインKpを乗算して目標速度Vtを算出する。そして、キャリッジモータ制御部128は、この目標速度Vtと、リニア式エンコーダ51の出力から得られる実際の回転速度Vcとの速度偏差ΔVに基づいて、比例要素336A、積分要素336B及び微分要素336Cを用いて比例成分QP、積分成分QI及び微分成分QDの演算を行い、これらの演算結果の和ΣQに基づいて、キャリッジモータ42の制御を行う。尚、上記比例演算、積分演算及び微分演算は、例えば、リニア式エンコーダ51の出力パルスENC−Aの立ち上がりエッジに同期して行われる。これにより、キャリッジモータ42の回転速度は、時刻t4において、所望の回転速度となるように制御される。   When the PID control is started, the carriage motor control unit 128 calculates the target speed Vt by multiplying the position deviation between the target rotational position and the actual rotational position obtained from the output of the linear encoder 51 by the gain Kp. . Then, the carriage motor control unit 128 sets the proportional element 336A, the integral element 336B, and the differential element 336C based on the speed deviation ΔV between the target speed Vt and the actual rotational speed Vc obtained from the output of the linear encoder 51. The proportional component QP, the integral component QI, and the differential component QD are calculated using this, and the carriage motor 42 is controlled based on the sum ΣQ of these calculation results. The proportional calculation, integral calculation, and differential calculation are performed in synchronization with the rising edge of the output pulse ENC-A of the linear encoder 51, for example. Thereby, the rotation speed of the carriage motor 42 is controlled to be a desired rotation speed at time t4.

キャリッジモータ42が目標回転位置に近づくと(時刻t5)、位置偏差が小さくなるから目標回転速度も小さくなる。このため、速度偏差、即ち減算器335の出力が負になり、キャリッジモータ42は減速し、時刻t6に停止する。   When the carriage motor 42 approaches the target rotation position (time t5), the position deviation decreases, so the target rotation speed also decreases. Therefore, the speed deviation, that is, the output of the subtractor 335 becomes negative, the carriage motor 42 decelerates, and stops at time t6.

===印刷動作===
次に前述したインクジェットプリンタ1の印刷動作について説明する。ここでは、「双方向印刷」を例にして説明する。図11は、インクジェットプリンタ1の印刷動作の処理手順の一例を示したフローチャートである。以下で説明される各処理は、コントローラ126が、メインメモリ127からプログラムを読み出して、当該プログラムに従って、キャリッジモータ制御部128や搬送制御部130、ヘッド駆動部132などを各々制御することにより実行される。
=== Printing operation ===
Next, the printing operation of the above-described ink jet printer 1 will be described. Here, “bidirectional printing” will be described as an example. FIG. 11 is a flowchart showing an example of the processing procedure of the printing operation of the inkjet printer 1. Each process described below is executed by the controller 126 reading a program from the main memory 127 and controlling the carriage motor control unit 128, the conveyance control unit 130, the head drive unit 132, and the like according to the program. The

コントローラ126は、コンピュータ140から印刷データを受信すると、その印刷データに基づき印刷を実行すべく、まず、給紙処理を行う(S102)。給紙処理は、印刷しようとする媒体Sをインクジェットプリンタ1内に供給し、印刷開始位置(頭出し位置とも言う)まで搬送する処理である。コントローラ126は、給紙ローラ13を回転させて、印刷しようとする媒体Sを搬送ローラ17Aまで送る。コントローラ126は、搬送ローラ17Aを回転させて、給紙ローラ13から送られてきた媒体Sを印刷開始位置(プラテン14の上方付近)に位置決めする。   Upon receiving print data from the computer 140, the controller 126 first performs a paper feed process to execute printing based on the print data (S102). The paper feed process is a process of supplying the medium S to be printed into the ink jet printer 1 and transporting it to a print start position (also referred to as a cue position). The controller 126 rotates the paper feed roller 13 to send the medium S to be printed to the transport roller 17A. The controller 126 rotates the transport roller 17A to position the medium S sent from the paper feed roller 13 at the print start position (near the upper side of the platen 14).

次に、コントローラ126は、キャリッジモータ制御部128を通じてキャリッジモータ42を駆動して、キャリッジ41を媒体Sに対して相対的に移動させて媒体Sに対して印刷を施す印刷処理を実行する。ここでは、まず、キャリッジ41をガイドレール46に沿って一の方向に向かって移動させながら、ヘッド21からインクを吐出する往路印刷を実行する(S104)。コントローラ126は、キャリッジモータ42を駆動してキャリッジ41を移動させるとともに、印刷データに基づきヘッド21を駆動してインクを吐出する。ヘッド21から吐出されたインクは、媒体Sに到達してドットとして形成される。   Next, the controller 126 drives the carriage motor 42 through the carriage motor control unit 128 and moves the carriage 41 relative to the medium S to execute a printing process for printing on the medium S. Here, first, forward printing is performed to eject ink from the head 21 while moving the carriage 41 in one direction along the guide rail 46 (S104). The controller 126 drives the carriage motor 42 to move the carriage 41 and drives the head 21 based on the print data to eject ink. The ink ejected from the head 21 reaches the medium S and is formed as dots.

このようにして印刷を行った後、次に、コントローラ126は、媒体Sを所定量だけ搬送する搬送処理を実行する(S106)。ここでは、コントローラ126は、搬送制御部130を通じて搬送モータ15を駆動して搬送ローラ17Aを回転させて、媒体Sをヘッド21に対して相対的に搬送方向に所定量だけ搬送する。この搬送処理により、ヘッド21は、先ほどの印刷した領域とは異なる領域に印刷をすることが可能になる。   After printing in this way, the controller 126 next executes a transport process for transporting the medium S by a predetermined amount (S106). Here, the controller 126 drives the conveyance motor 15 through the conveyance control unit 130 to rotate the conveyance roller 17A, and conveys the medium S by a predetermined amount relative to the head 21 in the conveyance direction. By this carrying process, the head 21 can print in an area different from the previously printed area.

このようにして搬送処理を行った後、コントローラ126は、排紙すべきか否か排紙判断を実行する(S108)。ここで、コントローラ126は、印刷中の媒体Sに印刷すべき他のデータがなければ、排紙処理を実行する(S116)。一方、コントローラ126は、印刷中の媒体Sに印刷すべき他のデータがあれば、排紙処理は行わずに、復路印刷を実行する(S110)。この復路印刷は、キャリッジ41をガイドレール46に沿って先ほどの往路印刷とは反対の方向に移動させて印刷を行う。ここでも、コントローラ126は、キャリッジモータ制御部128を通じてキャリッジモータ42を先ほどとは逆に回転駆動させてキャリッジ41を移動させるとともに、印刷データに基づきヘッド21を駆動してインクを吐出して、印刷を施す。   After performing the carrying process in this manner, the controller 126 determines whether or not to discharge paper (S108). Here, if there is no other data to be printed on the medium S being printed, the controller 126 executes a paper discharge process (S116). On the other hand, if there is other data to be printed on the medium S being printed, the controller 126 performs the backward printing without performing the paper discharge process (S110). In this backward printing, printing is performed by moving the carriage 41 along the guide rail 46 in the direction opposite to the previous forward printing. Again, the controller 126 rotates the carriage motor 42 through the carriage motor control unit 128 to move the carriage 41 in the reverse direction, and also drives the head 21 based on the print data to eject ink and print. Apply.

復路印刷を実行した後、搬送処理を実行し(S112)、その後、排紙判断を行う(S114)。ここで、印刷中の媒体Sに印刷すべき他のデータがあれば、排紙処理は行わずに、ステップS104に戻って、再度往路印刷を実行する(S104)。一方、印刷中の媒体Sに印刷すべき他のデータがなければ、排紙処理を実行する(S116)。   After performing the return pass printing, a carrying process is executed (S112), and then a paper discharge determination is made (S114). Here, if there is other data to be printed on the medium S being printed, the paper discharge process is not performed, the process returns to step S104, and the forward printing is executed again (S104). On the other hand, if there is no other data to be printed on the medium S being printed, a paper discharge process is executed (S116).

排紙処理を行った後、次に、印刷終了か否かを判断する印刷終了判断を実行する(S118)。ここでは、コンピュータ140からの印刷データに基づき、次に印刷すべき媒体Sがないかどうかチェックする。ここで、次に印刷すべき媒体Sがある場合には、ステップS102に戻り、再び給紙処理を実行して、印刷を開始する。一方、次に印刷すべき媒体Sがない場合には、印刷処理を終了する。   After the paper discharge process is performed, next, a print end determination is performed to determine whether or not to end printing (S118). Here, based on the print data from the computer 140, it is checked whether there is a medium S to be printed next. If there is a medium S to be printed next, the process returns to step S102, the paper feed process is executed again, and printing is started. On the other hand, if there is no medium S to be printed next, the printing process is terminated.

===スティックスリップ動作===
このようなインクジェットプリンタ1にあっては、長期間にわたり使用されなかったりした場合などに、キャリッジ41(印刷ヘッド)がガイドレール46に沿ってうまく滑らなくなり、キャリッジ41の移動速度が周期的に速くなったり遅くなったり、またキャリッジ41が動いたり停まったりする動作を繰り返す、いわゆるスティックスリップ動作(しゃくとり動作ともいう)を行ってしまうことがあった。
=== Stick-slip operation ===
In such an ink jet printer 1, the carriage 41 (printing head) does not slide well along the guide rail 46 when it is not used for a long period of time, and the moving speed of the carriage 41 is periodically increased. There is a case where a so-called stick-slip operation (also referred to as a sucking operation) is performed in which the operation of moving or stopping the carriage 41 is repeated.

このスティックスリップ動作にあっては、速度が周期的に速くなったり遅くなったりする動作である。極端な場合には、キャリッジ41が動いたり停まったりする動作を繰り返す、ぎくしゃくとした滑り運動となる。このスティックスリップ動作は、固着すべりともいう。このようなスティックスリップ動作が発生する主な原因としては、キャリッジ41とこれを案内するガイドレール46との間の摺動部の静止摩擦係数と動摩擦係数との差などが原因と考えられる。つまり、キャリッジ41とガイドレール46との間の摺動部の静止摩擦係数が、その動摩擦係数に比べて非常に大きいために、キャリッジモータ42のトルクが上昇してもキャリッジ41がなかなか動かず、キャリッジモータ42のトルクがある程度の大きさになると、キャリッジ41が動き出す。キャリッジ41が動き出すと、動摩擦係数は低いことから、キャリッジ41の移動速度が急激に上昇してしまう。このようにキャリッジ41の移動速度が急激に上昇してしまうと、キャリッジモータ制御部128は、キャリッジ41の移動速度を抑えるべくキャリッジモータ42に急激な制動を加える。このため、キャリッジ41が失速してしまうのである。   In this stick-slip operation, the speed is periodically increased or decreased. In an extreme case, it becomes a jerky sliding motion in which the carriage 41 is repeatedly moved and stopped. This stick-slip operation is also called fixed slip. The main cause of such stick-slip operation is considered to be the difference between the coefficient of static friction and the coefficient of dynamic friction of the sliding portion between the carriage 41 and the guide rail 46 that guides it. That is, since the static friction coefficient of the sliding portion between the carriage 41 and the guide rail 46 is very large compared to the dynamic friction coefficient, the carriage 41 does not move easily even if the torque of the carriage motor 42 increases. When the torque of the carriage motor 42 reaches a certain level, the carriage 41 starts to move. When the carriage 41 starts to move, the moving friction coefficient rapidly decreases because the coefficient of dynamic friction is low. When the moving speed of the carriage 41 is rapidly increased in this way, the carriage motor control unit 128 applies rapid braking to the carriage motor 42 in order to suppress the moving speed of the carriage 41. For this reason, the carriage 41 is stalled.

図12は、キャリッジ41がスティックスリップ動作を行ったときのキャリッジ41の移動速度の変化の一例について示したものである。キャリッジ41は、同図に示すように、キャリッジモータ42のトルクがある程度大きくならない限り、動き始めない。キャリッジ41の移動速度は、速度演算部334により検出されている(図9参照)。キャリッジモータ制御部128は、この速度演算部334を通じてキャリッジ41の移動速度を監視している。キャリッジ41の移動速度が上昇しない場合には、キャリッジモータ制御部128は、キャリッジ41を移動させるべく、キャリッジモータ42のトルクを上昇させる制御を行う。これにより、キャリッジモータ42のトルクがある程度大きくなると、キャリッジ41が動き出し、キャリッジ41の移動速度は急激に上昇する。キャリッジ41の移動速度が上昇し、所定のレベルにまで達すると、キャリッジモータ制御部128は、キャリッジ41の移動速度を抑えるべく、キャリッジモータ42に制動を加える。これにより、キャリッジ41の移動速度が低下し、キャリッジ41が失速して再び停止してしまう。そして、キャリッジモータ制御部128は、キャリッジ41を移動させるべく、再びキャリッジモータ42のトルクを上昇させる制御を行う。これにより、キャリッジ41が再び動き出して、急激に移動速度が上昇すると、再びキャリッジ41が失速して停止してしまう。このような移動動作と停止動作とが交互に繰り返される。   FIG. 12 shows an example of a change in the moving speed of the carriage 41 when the carriage 41 performs a stick-slip operation. As shown in the figure, the carriage 41 does not start to move unless the torque of the carriage motor 42 increases to some extent. The moving speed of the carriage 41 is detected by the speed calculation unit 334 (see FIG. 9). The carriage motor control unit 128 monitors the moving speed of the carriage 41 through the speed calculation unit 334. When the moving speed of the carriage 41 does not increase, the carriage motor control unit 128 performs control to increase the torque of the carriage motor 42 in order to move the carriage 41. As a result, when the torque of the carriage motor 42 increases to some extent, the carriage 41 starts to move, and the moving speed of the carriage 41 rapidly increases. When the moving speed of the carriage 41 increases and reaches a predetermined level, the carriage motor control unit 128 applies braking to the carriage motor 42 in order to suppress the moving speed of the carriage 41. As a result, the moving speed of the carriage 41 decreases, and the carriage 41 stalls and stops again. Then, the carriage motor control unit 128 performs control to increase the torque of the carriage motor 42 again in order to move the carriage 41. As a result, when the carriage 41 starts to move again and the moving speed rapidly increases, the carriage 41 stalls again and stops. Such a movement operation and a stop operation are alternately repeated.

===スティックスリップ動作が発生する場合===
このようなスティックスリップ動作をキャリッジ41が行うのは、キャリッジモータ制御部128がキャリッジモータ42を介してキャリッジ41を所定の速度以下にて定速移動させようとした場合である。つまり、キャリッジ41が所定の速度を上回る速度にて定速移動する場合、即ち例えば、キャリッジ41が、印刷実行時等において非常に高速で移動する場合には、スティックスリップ動作はほとんど発生しない。ここでいう所定の速度とは、キャリッジ41がスティックスリップ動作を行う可能性のある上限の速度のことをいう。
キャリッジ41がスティックスリップ動作を行うような所定の速度以下で定速移動する場合としては、例えば、次の(1)〜(4)の場合がある。
=== When stick-slip motion occurs ===
The carriage 41 performs such a stick-slip operation when the carriage motor control unit 128 attempts to move the carriage 41 at a constant speed below a predetermined speed via the carriage motor 42. That is, when the carriage 41 moves at a constant speed exceeding a predetermined speed, that is, for example, when the carriage 41 moves at a very high speed during execution of printing, the stick-slip operation hardly occurs. Here, the predetermined speed refers to an upper limit speed at which the carriage 41 may perform a stick-slip operation.
Examples of cases where the carriage 41 moves at a constant speed below a predetermined speed at which a stick-slip operation is performed include the following cases (1) to (4).

(1)インクカートリッジ交換時
キャリッジ41に搭載されたインクカートリッジ48(図2参照)がユーザー等により交換される場合である。インクカートリッジ48がユーザー等により交換される場合には、インクカートリッジ48がユーザー等により交換し易いように所定の位置までキャリッジ41を移動させる必要がある。この場合に、ユーザー等が不用意にキャリッジ41と接触しないようにするために、キャリッジ41を所定の速度以下にてゆっくりと低速移動させる必要がある。
(1) Ink cartridge replacement In this case, the ink cartridge 48 (see FIG. 2) mounted on the carriage 41 is replaced by a user or the like. When the ink cartridge 48 is replaced by a user or the like, it is necessary to move the carriage 41 to a predetermined position so that the ink cartridge 48 can be easily replaced by the user or the like. In this case, it is necessary to move the carriage 41 slowly at a low speed below a predetermined speed so that the user or the like does not carelessly come into contact with the carriage 41.

(2)キャッピング時
キャリッジ41がキャッピング装置35(図2参照)が設けられた位置まで移動する場合である。印刷を行わないとき(待機時など)などには、ヘッド21のノズル♯1〜♯180の目詰まりを防止するために、キャリッジ41がキャッピング装置35の設置位置まで移動してヘッド21のノズル♯1〜♯180を封止する動作が行われる。このような場合に、キャリッジ41を所定の速度以下にてゆっくりと低速移動させる。
(2) During capping When the carriage 41 moves to a position where the capping device 35 (see FIG. 2) is provided. When printing is not performed (such as during standby), the carriage 41 moves to the installation position of the capping device 35 to prevent the nozzles # 1 to # 180 of the head 21 from being clogged. An operation of sealing 1 to # 180 is performed. In such a case, the carriage 41 is slowly moved at a low speed below a predetermined speed.

(3)電源投入時
電源が投入されたときに、キャリッジ41がキャッピング装置35から離れて、印刷処理の実行準備、例えば、ヘッド21のノズル♯1〜♯180のクリーニング等を行うために、イニシャル動作を開始する。このような場合に、キャリッジ41を所定の速度以下にてゆっくりと低速移動させる。
(3) When the power is turned on When the power is turned on, the carriage 41 moves away from the capping device 35 to prepare for execution of the printing process, for example, to clean the nozzles # 1 to # 180 of the head 21, etc. Start operation. In such a case, the carriage 41 is slowly moved at a low speed below a predetermined speed.

(4)紙幅検出時
キャリッジ41に設けられた光学センサ(図示外)により、インクジェットプリンタ1がこれから印刷しようとする媒体Sの幅を検出するために、キャリッジ41がガイドレール46に沿って移動する。このとき、媒体Sの幅を精度良く調べるために、キャリッジ41が所定の速度以下にてゆっくりと低速移動する。
(4) During paper width detection The carriage 41 moves along the guide rail 46 in order for the ink jet printer 1 to detect the width of the medium S to be printed by an optical sensor (not shown) provided on the carriage 41. . At this time, in order to accurately check the width of the medium S, the carriage 41 slowly moves at a low speed below a predetermined speed.

なお、キャリッジ41がスティックスリップ動作を行うような所定の速度以下で定速移動する場合にあっては、これら(1)〜(4)以外の他の場合であっても良い。   In the case where the carriage 41 moves at a constant speed below a predetermined speed at which a stick-slip operation is performed, other cases than those described in (1) to (4) may be used.

===スティックスリップ動作の判定方法===
このようなスティックスリップ動作をキャリッジ41が行った場合、キャリッジ41を目標位置にて停止させることができず、目標位置周辺にてキャリッジ41を行ったり来たりしたりするなどの不具合が生じることがあった。また、このようなスティックスリップ動作が発生した場合、ユーザーが故障ではないかと不安に思うなどの問題が発生する場合があった。このようなことから、キャリッジ41がスティックスリップ動作を行ったときには、これを速やかに検知して対応する必要がある。
=== Judgment method of stick-slip motion ===
When the carriage 41 performs such a stick-slip operation, the carriage 41 cannot be stopped at the target position, and problems such as moving the carriage 41 around the target position may occur. there were. In addition, when such a stick-slip operation occurs, there may be a problem that the user is anxious about the failure. For this reason, when the carriage 41 performs a stick-slip operation, it is necessary to quickly detect and respond to this.

そこで、本実施形態に係るインクジェットプリンタ1では、キャリッジ41がこのようなスティックスリップ動作を行った場合に、スムーズに対応することができるようにするために、キャリッジ41がスティックスリップ動作を行ったか否かを判定することができる。なお、ここでは、キャリッジ41がスティックスリップ動作を行ったか否かの判定は、コントローラ126により行う。スティックスリップ動作の判定方法としては、例えば、次の(1)〜(4)の方法がある。   Therefore, in the inkjet printer 1 according to the present embodiment, whether or not the carriage 41 has performed the stick-slip operation in order to be able to respond smoothly when the carriage 41 performs such a stick-slip operation. Can be determined. Here, the controller 126 determines whether or not the carriage 41 has performed a stick-slip operation. As a determination method of the stick-slip operation, for example, there are the following methods (1) to (4).

(1)移動速度に基く判定
キャリッジ41の移動速度に基づき、キャリッジ41がスティックスティック動作を行ったか否か判定する。この判定方法の1つとして、キャリッジ41の移動速度が所定のしきい値V0を超えたときに、キャリッジ41がスティックスリップ動作を行っていると判定する方法がある。キャリッジ41がスティックスリップ動作を行った場合には、図13Aに説明するように、キャリッジ41の移動速度は、キャリッジ41が動き出すと、急激に上昇する。このときのキャリッジ41の移動速度は、本来のキャリッジ41の移動速度よりもずっと速い速度にまで達する。このことから、適当な所定のしきい値V0を設定して、キャリッジ41の移動速度が、この所定のしきい値V0を超えたか否かを調べることで、キャリッジ41がスティックスリップ動作を行ったか否か簡単にチェックすることができる。
(1) Determination Based on Moving Speed Based on the moving speed of the carriage 41, it is determined whether the carriage 41 has performed a stick-stick operation. As one of the determination methods, there is a method of determining that the carriage 41 is performing a stick-slip operation when the moving speed of the carriage 41 exceeds a predetermined threshold value V0. When the carriage 41 performs a stick-slip operation, as described in FIG. 13A, the moving speed of the carriage 41 increases rapidly when the carriage 41 starts to move. At this time, the moving speed of the carriage 41 reaches a speed much faster than the original moving speed of the carriage 41. From this, an appropriate predetermined threshold value V0 is set, and whether or not the carriage 41 has performed a stick-slip operation by checking whether or not the moving speed of the carriage 41 exceeds the predetermined threshold value V0. You can easily check whether or not.

この他に、キャリッジ41の移動速度に基づき、キャリッジ41がスティックスリップ動作を行ったか否かを判定する方法としては、図13Bにて説明するように、キャリッジ41の移動速度が所定の上限許容値V1を超え、かつその後、所定の下限許容値V2を下回ったときに、キャリッジ41がスティックスリップ動作を行っていると判定する方法がある。キャリッジ41がスティックスリップ動作を行った場合には、同図に示すように、キャリッジ41の移動速度が、キャリッジ41が動き出すと急激に上昇し、そして急激に減少する。最終的には、キャリッジ41は失速して停止状態に近くなる場合がある。キャリッジ41の移動速度は、本来想定されるキャリッジ41の移動速度の上限許容値V1よりもずっと速い速度に達し、かつその後、急激に低下して本来想定されるキャリッジ41の移動速度の下限許容値V2よりも低い速度(停止状態も含む)に達する。このことから、キャリッジ41がスティックスリップ動作を行ったか否か簡単に判定することができる。   In addition to this, as a method for determining whether or not the carriage 41 has performed the stick-slip operation based on the moving speed of the carriage 41, as described in FIG. 13B, the moving speed of the carriage 41 is a predetermined upper limit allowable value. There is a method of determining that the carriage 41 is performing a stick-slip operation when V1 is exceeded and then falls below a predetermined lower limit allowable value V2. When the carriage 41 performs a stick-slip operation, as shown in the figure, the moving speed of the carriage 41 increases rapidly when the carriage 41 starts to move, and then decreases rapidly. Eventually, the carriage 41 may stall and become close to a stopped state. The moving speed of the carriage 41 reaches a speed much faster than the originally assumed upper limit allowable value V1 of the carriage 41, and then rapidly decreases to the lower limit allowable value of the expected moving speed of the carriage 41. A speed lower than V2 (including the stop state) is reached. From this, it can be easily determined whether or not the carriage 41 has performed a stick-slip operation.

なお、ここで、キャリッジ41がスティックスリップ動作を行ったか否かの判定にあっては、キャリッジ41の移動速度が所定のしきい値V0を超えた回数を計数して、その回数が所定の回数(例えば、2回等)を超えたとき、キャリッジ41がスティックスリップ動作を行っていると判定しても良い。また、キャリッジ41の移動速度が所定の上限許容値V1を超え、かつその後、所定の下限許容値V2を下回った回数を計数して、その回数が所定の回数(例えば、2回等)を超えたときに、キャリッジ41がスティックスリップ動作を行っていると判定しても良い。   Here, in determining whether or not the carriage 41 has performed the stick-slip operation, the number of times that the moving speed of the carriage 41 has exceeded a predetermined threshold value V0 is counted, and the number of times is the predetermined number of times. When (for example, twice) is exceeded, it may be determined that the carriage 41 is performing a stick-slip operation. Further, the number of times that the moving speed of the carriage 41 exceeds the predetermined upper limit allowable value V1 and then falls below the predetermined lower limit allowable value V2 is counted, and the number of times exceeds a predetermined number (for example, twice). It may be determined that the carriage 41 is performing a stick-slip operation.

(2)制御信号に基づく判定
キャリッジモータ制御部128がキャリッジモータ42を制御するために生成する制御信号に基づき、キャリッジ41がスティックスリップ動作を行ったか否かを判定する。ここで、制御信号としては、例えば、キャリッジモータ制御部128のPWM回路338(図9参照)に入力されるデューティ信号に基づき判定をする。
(2) Determination Based on Control Signal Based on the control signal generated for the carriage motor control unit 128 to control the carriage motor 42, it is determined whether or not the carriage 41 has performed a stick-slip operation. Here, the control signal is determined based on, for example, a duty signal input to the PWM circuit 338 (see FIG. 9) of the carriage motor control unit 128.

図14Aは、キャリッジ41がスティックスリップ動作を行ったときのキャリッジ41の移動速度と、PWM回路338に入力されるデューディ信号の信号値との関係について説明したものである。キャリッジ41がスティックスリップ動作を行ったときには、キャリッジ41の移動速度は、同図の上段に示すように、急激に上昇して、その後、急激に低下する。そして、キャリッジ41は、このような移動動作と、停止動作とを交互に繰り返す。   FIG. 14A illustrates the relationship between the movement speed of the carriage 41 when the carriage 41 performs a stick-slip operation and the signal value of the duty signal input to the PWM circuit 338. When the carriage 41 performs a stick-slip operation, the moving speed of the carriage 41 increases rapidly and then decreases rapidly as shown in the upper part of FIG. The carriage 41 repeats such a movement operation and a stop operation alternately.

一方、キャリッジモータ制御部128のPWM回路338に入力されるデューティ信号の信号値は、同図の下段に示すように、キャリッジ41が移動を開始するまでの間、徐々に上昇する。そして、キャリッジ41が移動を開始して、キャリッジ41の移動速度が急激に上昇すると、キャリッジモータ制御部128は、キャリッジ41の移動速度を抑制させるべく、キャリッジモータ42の駆動力を急速に低下させる。これにより、PWM回路338に入力されるデューディ信号の信号値が急激に減少する。その後、キャリッジ41が停止すると、キャリッジモータ制御部128は、キャリッジ41の移動速度を上昇させて移動を開始させるべく、PWM回路338に入力されるデューディ信号の信号値を徐々に上昇させる。そして、そのデューディ信号の信号値が所定のレベルに達すると、キャリッジ41が移動を開始する。キャリッジ41の移動が開始すると、再びキャリッジモータ制御部128がキャリッジ41の移動速度を抑制させるために、キャリッジモータ42の駆動力を急速に低下させる。これによって、PWM回路338に入力されるデューディ信号の信号値が再び急激に減少する。PWM回路338に入力されるデューディ信号の信号値は、このようにキャリッジ41の移動速度に応じて増減変動を繰り返す。   On the other hand, the signal value of the duty signal input to the PWM circuit 338 of the carriage motor control unit 128 gradually increases until the carriage 41 starts to move, as shown in the lower part of FIG. Then, when the carriage 41 starts moving and the moving speed of the carriage 41 rapidly increases, the carriage motor control unit 128 rapidly decreases the driving force of the carriage motor 42 in order to suppress the moving speed of the carriage 41. . As a result, the signal value of the due signal input to the PWM circuit 338 decreases rapidly. Thereafter, when the carriage 41 stops, the carriage motor control unit 128 gradually increases the signal value of the duty signal input to the PWM circuit 338 so as to increase the moving speed of the carriage 41 and start the movement. When the signal value of the due signal reaches a predetermined level, the carriage 41 starts to move. When the movement of the carriage 41 starts, the carriage motor control unit 128 rapidly reduces the driving force of the carriage motor 42 in order to suppress the moving speed of the carriage 41 again. As a result, the signal value of the due signal input to the PWM circuit 338 rapidly decreases again. The signal value of the due signal input to the PWM circuit 338 is repeatedly increased and decreased according to the moving speed of the carriage 41 in this way.

実際に、キャリッジ41がスティックスリップ動作を行ったか否か判定する方法としては、ここでは、PWM回路338に入力されるデューディ信号の信号値の極大値Vmaxと極小値Vminとを調べ、その極大値Vmaxと極小値Vminとの差ΔVに基づき、キャリッジ41がスティックスリップ動作を行ったか否か判定する。つまり、デューディ信号の信号値の極大値Vmaxと極小値Vminとの差ΔVが、所定のしきい値V0を超えたか否かチェックし、その差ΔVが所定のしきい値V0を超えていたときには、キャリッジ41がスティックスリップ動作を行っていると判定する。一方、デューディ信号の信号値の極大値Vmaxと極小値Vminとの差ΔVが、所定のしきい値V0を超えなかった場合には、キャリッジ41がスティックスリップ動作を行わなかったと判定する。   In practice, as a method for determining whether or not the carriage 41 has performed the stick-slip operation, here, the maximum value Vmax and the minimum value Vmin of the signal value of the duty signal input to the PWM circuit 338 are examined, and the maximum value is obtained. Based on the difference ΔV between Vmax and the minimum value Vmin, it is determined whether or not the carriage 41 has performed a stick-slip operation. That is, it is checked whether or not the difference ΔV between the maximum value Vmax and the minimum value Vmin of the signal value of the due signal exceeds a predetermined threshold value V0, and when the difference ΔV exceeds the predetermined threshold value V0. Then, it is determined that the carriage 41 is performing a stick-slip operation. On the other hand, if the difference ΔV between the maximum value Vmax and the minimum value Vmin of the signal value of the due signal does not exceed the predetermined threshold value V0, it is determined that the carriage 41 has not performed the stick-slip operation.

図14Bは、その判定方法の一例について詳しく説明したものである。まず、デューディ信号の信号値の極大値Vmaxと極小値Vminとを取得する。その取得した極大値Vmaxおよび極小値Vminから差ΔVを求める。キャリッジ41がスティックスリップ動作を行った場合には、同図に示すように、デューディ信号の信号値の極大値Vmaxと極小値Vminとの間に差ΔVが大きな値になる。この差ΔVを予め定めておいた所定のしきい値V0と比較することで、キャリッジ41がスティックスリップ動作を行ったか否か簡単に判定することができる。   FIG. 14B explains in detail an example of the determination method. First, the maximum value Vmax and the minimum value Vmin of the signal value of the due signal are acquired. A difference ΔV is obtained from the acquired maximum value Vmax and minimum value Vmin. When the carriage 41 performs a stick-slip operation, as shown in the figure, the difference ΔV is large between the maximum value Vmax and the minimum value Vmin of the signal value of the duty signal. By comparing this difference ΔV with a predetermined threshold value V0, it can be easily determined whether or not the carriage 41 has performed a stick-slip operation.

なお、ここで、キャリッジ41がスティックスリップ動作を行ったか否かの判定にあっては、PWM回路338に入力されるデューディ信号の信号値の極大値Vmaxと極小値Vminとの差ΔVが所定のしきい値V0を超えることが所定回数以上(例えば、2回以上等)発生した場合に、キャリッジ41がスティックスリップ動作を行っていると判定しても良い。   Here, in determining whether or not the carriage 41 has performed the stick-slip operation, the difference ΔV between the maximum value Vmax and the minimum value Vmin of the signal value of the duty signal input to the PWM circuit 338 is a predetermined value. When the threshold value V0 is exceeded a predetermined number of times (for example, twice or more), it may be determined that the carriage 41 is performing a stick-slip operation.

また、制御信号に基づきキャリッジ41がスティックスリップ動作を行ったか否かを判定する方法としては、デューディ信号の信号値の極大値Vmaxと極小値Vminとの差ΔVに基づき判定する以外に、他の方法により判定しても良い。   Further, as a method for determining whether or not the carriage 41 has performed the stick-slip operation based on the control signal, other than the determination based on the difference ΔV between the maximum value Vmax and the minimum value Vmin of the signal value of the due signal, there are other methods. It may be determined by a method.

(3)加速度に基づく判定
ここでは、キャリッジ41の加速度に基づき、キャリッジ41がスティックスリップ動作を行ったか否かを判定する。ここで、加速度は、キャリッジモータ制御部128の速度演算部334(図9参照)により取得する。つまり、速度演算部334は、リニア式エンコーダ51からの出力に基づき検出したキャリッジ41の移動速度を所定の時間間隔にて周期的に出力する。コントローラ126は、速度演算部334から周期的に送られてきたキャリッジ41の移動速度の差分からキャリッジ41の加速度を取得し、この差分に基づき、キャリッジ41がスティックスリップ動作を行ったか否かを判定する。
(3) Determination Based on Acceleration Here, it is determined based on the acceleration of the carriage 41 whether or not the carriage 41 has performed a stick-slip operation. Here, the acceleration is acquired by the speed calculation unit 334 (see FIG. 9) of the carriage motor control unit 128. That is, the speed calculation unit 334 periodically outputs the moving speed of the carriage 41 detected based on the output from the linear encoder 51 at predetermined time intervals. The controller 126 acquires the acceleration of the carriage 41 from the difference in the moving speed of the carriage 41 periodically sent from the speed calculation unit 334, and determines whether or not the carriage 41 has performed a stick-slip operation based on this difference. To do.

図15は、キャリッジ41の加速度に基づきスティックスリップ動作を行ったか否かを判定する方法の一例を説明したものである。キャリッジ41がスティックスリップ動作を行った場合、キャリッジ41の移動速度は、同図に示すように、急激に上昇して、その後、急激に低下する。このようにして、キャリッジ41の加速度が非常に大きくなることから、この加速度に着目すれば、キャリッジ41がスティックスリップ動作を行ったか否か判定することができる。   FIG. 15 illustrates an example of a method for determining whether or not a stick-slip operation has been performed based on the acceleration of the carriage 41. When the carriage 41 performs a stick-slip operation, the moving speed of the carriage 41 increases rapidly and then decreases rapidly as shown in FIG. Since the acceleration of the carriage 41 becomes very large in this way, it is possible to determine whether or not the carriage 41 has performed a stick-slip operation by paying attention to this acceleration.

コントローラ126は、キャリッジモータ制御部128の速度演算部334から所定の時間間隔T0にて周期的にキャリッジ41の移動速度V1〜V6を取得する。そして、コントローラ126は、取得したキャリッジ41の移動速度V1〜V6から差分を加速度として逐次算出する。つまり、コントローラ126は、移動速度V1と移動速度V2とから「V2−V1」により差分ΔV21を、また、移動速度V2と移動速度V3とから「V3−V2」により差分ΔV32を、移動速度V3と移動速度V4とから「V4−V3」により差分ΔV43を、移動速度V4と移動速度V5とから「V5−V4」により差分ΔV54を、移動速度V5と移動速度V6とから「V6−V5」により差分ΔV65をそれぞれ算出する。   The controller 126 periodically acquires the movement speeds V1 to V6 of the carriage 41 from the speed calculation unit 334 of the carriage motor control unit 128 at a predetermined time interval T0. Then, the controller 126 sequentially calculates the difference as an acceleration from the acquired movement speeds V1 to V6 of the carriage 41. That is, the controller 126 calculates the difference ΔV21 from the moving speed V1 and the moving speed V2 by “V2−V1”, and the difference ΔV32 from the moving speed V2 and the moving speed V3 by “V3−V2”, and the moving speed V3. The difference ΔV43 from the moving speed V4 by “V4−V3”, the difference ΔV54 by “V5−V4” from the moving speed V4 and the moving speed V5, and the difference by “V6−V5” from the moving speed V5 and the moving speed V6. ΔV65 is calculated respectively.

そして、コントローラ126は、求めた差分ΔV21、ΔV32、ΔV43、ΔV54、ΔV65を所定のしきい値V0と比較して、その差分ΔV21、ΔV32、ΔV43、ΔV54、ΔV65が所定のしきい値V0を上回ったか否かをチェックする。その差分ΔV21、ΔV32、ΔV43、ΔV54、ΔV65が所定のしきい値V0を上回っていた場合には、コントローラ126は、キャリッジ41がスティックスリップ動作を行っていると判定する。一方、その差分ΔV21、ΔV32、ΔV43、ΔV54、ΔV65が所定のしきい値V0を上回っていなかった場合には、コントローラ126は、キャリッジ41がスティックスリップ動作を行っていないと判定する。なお、ここでは、キャリッジ41の加速時に着目してキャリッジ41がスティックスリップ動作を行ったか否かを判定していたが、この他に、キャリッジ41の減速時、即ちマイナス(−)の加速度(減速度)に着目して、キャリッジ41がスティックスリップ動作を行ったか否かを判定しても良い。   The controller 126 compares the obtained differences ΔV21, ΔV32, ΔV43, ΔV54, and ΔV65 with a predetermined threshold value V0, and the differences ΔV21, ΔV32, ΔV43, ΔV54, and ΔV65 exceed the predetermined threshold value V0. Check whether or not. When the differences ΔV21, ΔV32, ΔV43, ΔV54, and ΔV65 exceed a predetermined threshold value V0, the controller 126 determines that the carriage 41 is performing a stick-slip operation. On the other hand, when the differences ΔV21, ΔV32, ΔV43, ΔV54, and ΔV65 do not exceed the predetermined threshold value V0, the controller 126 determines that the carriage 41 is not performing the stick-slip operation. Here, it is determined whether or not the carriage 41 has performed a stick-slip operation while paying attention to the acceleration of the carriage 41, but in addition to this, when the carriage 41 is decelerated, that is, minus (−) acceleration (decrease). It may be determined whether or not the carriage 41 has performed a stick-slip operation by paying attention to (speed).

また、キャリッジ41がスティックスリップ動作を行ったか否かの判定にあっては、求めた差分が所定のしきい値V0を上回った回数が所定回数以上(例えば、2回以上等)発生した場合に、キャリッジ41がスティックスリップ動作を行っていると判定しても良い。   In determining whether or not the carriage 41 has performed a stick-slip operation, the number of times that the obtained difference exceeds a predetermined threshold value V0 occurs a predetermined number of times or more (for example, two times or more). It may be determined that the carriage 41 is performing a stick-slip operation.

(4)所定の許容速度以下の時間に基づく判定
ここでは、キャリッジ41の移動開始から移動終了までの間に、キャリッジ41の移動速度が所定の許容下限値以下になった時間を計測するタイマーの計測時間に基づき、キャリッジ41がスティックスリップ動作を行ったか否かを判定する。
(4) Determination Based on Time Less Than Predetermined Allowable Speed Here, a timer that measures the time during which the movement speed of the carriage 41 becomes less than a predetermined allowable lower limit between the start of movement of the carriage 41 and the end of movement Based on the measurement time, it is determined whether or not the carriage 41 has performed a stick-slip operation.

図16Aは、キャリッジモータ制御部128に設けられたタイマー60について説明したものである。タイマー60には、同図に示すように、リニア式エンコーダ51から速度演算部334や位置演算部331へと出力される出力信号が入力される。タイマー60は、リニア式エンコーダ51の出力信号を監視し、キャリッジ41の移動速度が所定の許容下限値以下になったとき、時間計測を開始する。ここでは、タイマー60は、リニア式エンコーダ51からの出力信号のパルスの周期が所定の周期よりも長くなったときに、時間計測を開始する。キャリッジ41の移動速度が所定の許容下限値以下ではなくなった場合には、タイマー60は時間計測を中止する。これにより、タイマー60は、キャリッジ41の移動速度が所定の許容下限値以下になった時間を計測する。タイマー60の計測時間に関する情報は、コントローラ126に伝達される。コントローラ126は、タイマー60から取得した計測時間に関する情報に基づき、キャリッジ41がスティックスリップ動作を行ったか否かを判定する。   FIG. 16A illustrates the timer 60 provided in the carriage motor control unit 128. As shown in the figure, the timer 60 receives an output signal output from the linear encoder 51 to the speed calculation unit 334 or the position calculation unit 331. The timer 60 monitors the output signal of the linear encoder 51, and starts time measurement when the moving speed of the carriage 41 falls below a predetermined allowable lower limit value. Here, the timer 60 starts time measurement when the cycle of the pulse of the output signal from the linear encoder 51 becomes longer than a predetermined cycle. When the moving speed of the carriage 41 is not less than the predetermined allowable lower limit value, the timer 60 stops time measurement. Thereby, the timer 60 measures the time when the moving speed of the carriage 41 becomes equal to or less than a predetermined allowable lower limit value. Information regarding the measurement time of the timer 60 is transmitted to the controller 126. The controller 126 determines whether or not the carriage 41 has performed the stick-slip operation based on the information regarding the measurement time acquired from the timer 60.

図16Bは、キャリッジ41がスティックスリップ動作を行ったか否かを判定する方法の一例を説明したものである。キャリッジ41がスティックスリップ動作を行った場合には、同図に示すように、キャリッジ41の移動速度が、急激に上昇して、急激に低下する。そして、キャリッジ41は、しばらく時間が経過してから再び移動を開始する。キャリッジ41は、移動開始から移動終了までの間に、このような移動動作と停止動作とを交互に繰り返す。   FIG. 16B illustrates an example of a method for determining whether or not the carriage 41 has performed a stick-slip operation. When the carriage 41 performs a stick-slip operation, as shown in the figure, the moving speed of the carriage 41 increases rapidly and decreases rapidly. The carriage 41 starts to move again after a while. The carriage 41 repeats such a movement operation and a stop operation alternately between the start of movement and the end of movement.

一方、キャリッジ41がスティックスリップ動作を行わない場合には、通常、このような移動動作と停止動作とを交互に繰り返すことはない。つまり、キャリッジ41は、移動を開始してから移動を終了するまでの間に、所定時間以上、移動速度が所定の許容下限値以下になることはないのである。このことから、キャリッジ41が移動を開始した後、キャリッジ41の移動速度が所定の許容下限値VLを下回った時間Tを計測することで、キャリッジ41がスティックスリップ動作を行ったか否かを調べることができる。なお、ここで、所定の許容下限値VLは、キャリッジ41がスティックスリップ動作を行わずに移動した場合に、キャリッジ41の移動速度としては想定することができない十分に低い速度に設定される。この所定の許容下限値VLは、例えば、キャリッジ41が停止したときに時間計測を行うために、『0(ゼロ)』に近い値に設定されても良い。   On the other hand, when the carriage 41 does not perform the stick-slip operation, normally, such a moving operation and a stopping operation are not repeated alternately. That is, the carriage 41 does not move below the predetermined allowable lower limit for a predetermined time or more after the movement is started until the movement is completed. From this, after the carriage 41 starts moving, it is checked whether or not the carriage 41 has performed a stick-slip operation by measuring a time T when the moving speed of the carriage 41 has fallen below a predetermined allowable lower limit value VL. Can do. Here, the predetermined allowable lower limit value VL is set to a sufficiently low speed that cannot be assumed as the moving speed of the carriage 41 when the carriage 41 moves without performing the stick-slip operation. This predetermined allowable lower limit value VL may be set to a value close to “0 (zero)” in order to measure time when the carriage 41 stops, for example.

タイマー60は、リニア式エンコーダ51の出力信号を監視し、リニア式エンコーダ51からの出力信号のパルスの周期が所定の周期よりも長くなると、キャリッジ41の移動速度が所定の許容下限値VL以下であると判断して、時間計測を開始する。タイマー60による時間計測は、キャリッジ41の移動速度が所定の許容下限値VLを超えたと判断されるまで行われる。これにより、タイマー60は、キャリッジ41の移動速度が所定の許容下限値VLを下回った時間Tを計測する。タイマー60の計測結果は、タイマー60からコントローラ126へと伝達される。ここで、タイマー60からコントローラ126へは、タイマー60の計測時間Tがリアルタイムで伝達されてもよく、また、タイマー60による時間計測が終了した後、タイマー60の計測時間Tが伝達されても良い。   The timer 60 monitors the output signal of the linear encoder 51, and when the pulse period of the output signal from the linear encoder 51 becomes longer than a predetermined period, the moving speed of the carriage 41 is below a predetermined allowable lower limit value VL. It is determined that there is, and time measurement is started. The time measurement by the timer 60 is performed until it is determined that the moving speed of the carriage 41 has exceeded a predetermined allowable lower limit value VL. Thereby, the timer 60 measures the time T when the moving speed of the carriage 41 falls below the predetermined allowable lower limit value VL. The measurement result of the timer 60 is transmitted from the timer 60 to the controller 126. Here, the measurement time T of the timer 60 may be transmitted from the timer 60 to the controller 126 in real time, or after the time measurement by the timer 60 is completed, the measurement time T of the timer 60 may be transmitted. .

コントローラ126は、タイマー60から伝達された計測時間Tと、所定のしきい値T0とを比較して、計測時間Tが所定のしきい値T0に達していた場合には、キャリッジ41がスティックスリップ動作を行っていると判定する。一方、タイマー60の計測時間Tが所定のしきい値T0に達していなかった場合には、コントローラ126は、キャリッジ41がスティックスリップ動作を行っていないと判定する。   The controller 126 compares the measurement time T transmitted from the timer 60 with a predetermined threshold value T0, and if the measurement time T has reached the predetermined threshold value T0, the carriage 41 performs stick-slip. It is determined that the operation is being performed. On the other hand, if the measurement time T of the timer 60 has not reached the predetermined threshold value T0, the controller 126 determines that the carriage 41 is not performing a stick-slip operation.

なお、ここで、キャリッジ41がスティックスリップ動作を行ったか否かの判定にあっては、計測時間Tが所定のしきい値T0に達した回数を計数して、その回数が所定回数以上(例えば、2回以上等)発生した場合に、キャリッジ41がスティックスリップ動作を行っていると判定しても良い。   Here, in determining whether or not the carriage 41 has performed a stick-slip operation, the number of times that the measurement time T has reached a predetermined threshold value T0 is counted, and the number of times is equal to or greater than a predetermined number (for example, If it occurs, it may be determined that the carriage 41 is performing a stick-slip operation.

また、キャリッジ41がスティックスリップ動作を行ったか否かを判定する方法としては、これら(1)〜(4)以外の他の方法により実施しても良い。   Further, as a method for determining whether or not the carriage 41 has performed a stick-slip operation, a method other than these methods (1) to (4) may be used.

===スティックスリップ動作に対する対応===
本実施形態にかかるインクジェットプリンタ1では、このようにしてキャリッジ41がスティックスリップ動作を行っていると判定された場合に、キャリッジ41のスティックスリップ動作を抑制するために、次のような対応策を実行する。
=== Corresponding to stick-slip operation ===
In the inkjet printer 1 according to the present embodiment, when it is determined that the carriage 41 is performing the stick-slip operation in this way, the following countermeasures are taken to suppress the stick-slip operation of the carriage 41. Execute.

ここでは、キャリッジ41がスティックスリップ動作を行っていると判定された場合に、キャリッジモータ制御部128の微分要素336Cから出力される演算結果、つまり、微分成分QDが所定の上限値を超えて加算器337に入力されないようにするために設けられたリミッター342の制限機能をオフにする。つまり、キャリッジモータ制御部128の微分要素336Cから演算結果として所定の上限値以上の微分成分QDが出力された場合であっても、これに対して制限が加えられずにそのまま加算器337に入力されるようにする。なお、本実施形態では、キャリッジ41がスティックスリップ動作を行っていると判定された場合に、コントローラ126により、リミッター342の制限機能をオフにする処理が実行される。   Here, when it is determined that the carriage 41 is performing the stick-slip operation, the calculation result output from the differential element 336C of the carriage motor control unit 128, that is, the differential component QD exceeds the predetermined upper limit value is added. The limiting function of the limiter 342 provided so as not to be input to the device 337 is turned off. That is, even when a differential component QD of a predetermined upper limit value or more is output as a calculation result from the differential element 336C of the carriage motor control unit 128, this is input to the adder 337 without any limitation. To be. In the present embodiment, when it is determined that the carriage 41 is performing a stick-slip operation, the controller 126 executes a process for turning off the limiting function of the limiter 342.

図17は、リミッター342の制限機能がオンされているときに、キャリッジ41がスティックスリップ動作を行った場合のキャリッジ41の移動速度と、リミッター342の出力とについて説明したものである。   FIG. 17 illustrates the moving speed of the carriage 41 and the output of the limiter 342 when the carriage 41 performs a stick-slip operation when the limiter 342 restriction function is on.

キャリッジ41がスティックスリップ動作を行った場合には、キャリッジ41の移動速度は、同図の上段に示すように、しばらくの間、停止状態が続いた後、急激に上昇してピークを迎え、その後、急激に低下する。そして、キャリッジ41は、しばらくの間、停止をした後、再び移動を開始する。キャリッジ41は、このような移動動作と、停止動作とを交互に繰り返す。   When the carriage 41 performs the stick-slip operation, the moving speed of the carriage 41 rises sharply after reaching a peak after a stop state for a while, as shown in the upper part of FIG. , Falls rapidly. The carriage 41 stops moving for a while and then starts moving again. The carriage 41 repeats such a movement operation and a stop operation alternately.

他方、キャリッジモータ制御部128の微分要素336Cの演算結果である微分成分QDは、同図の下段に破線にて示すように、キャリッジ41の加速時および減速時においてそれぞれ、プラス(+)側およびマイナス(−)側にて大きく変化する。しかしながら、当該微分成分QDには、リミッター342により制限が加えられる。このため、加算器337に入力される微分成分QDは、同図の下段に実線にて示すように、その変化量が所定の上限値を超えないように制限される。つまり、キャリッジ41の加速時に、リミッターの出力がマイナス(−)側に変動したときには、所定の下限値L2を下回らないように制限される。また、キャリッジ41の減速時に、リミッターの出力がプラス(+)側に変動したときには、所定の上限値L1を上回らないように制限される。   On the other hand, the differential component QD, which is the calculation result of the differential element 336C of the carriage motor control unit 128, is the plus (+) side when the carriage 41 is accelerated and decelerated, respectively, as shown by the broken line in the lower part of FIG. It changes greatly on the minus (-) side. However, the limiter 342 limits the differential component QD. For this reason, the differential component QD input to the adder 337 is limited so that the amount of change does not exceed a predetermined upper limit value, as indicated by the solid line in the lower part of FIG. In other words, when the output of the limiter fluctuates to the minus (−) side during acceleration of the carriage 41, it is limited so as not to fall below the predetermined lower limit value L2. Further, when the output of the limiter fluctuates to the plus (+) side when the carriage 41 is decelerated, it is restricted so as not to exceed a predetermined upper limit value L1.

一方、リミッター342の制限機能をオフにした場合には、リミッター342により制限が加えられることはない。このため、微分要素336Cの演算結果として所定の上限値L1を上回るような出力や所定の下限値L2を下回るような出力が微分成分QDとして出力された場合であっても、そのまま加算器337に入力される。つまり、キャリッジ41がスティックスリップ動作を行い、図17の上段に示すようにキャリッジ41の移動速度が変化した場合には、微分成分QDは、同図の下段の破線にて示すように、リミッター342により制限されずに加算器337に入力される。   On the other hand, when the limiting function of the limiter 342 is turned off, the limiter 342 does not limit the function. For this reason, even when an output that exceeds the predetermined upper limit value L1 or an output that is lower than the predetermined lower limit value L2 is output as the differential component QD as the calculation result of the differential element 336C, Entered. In other words, when the carriage 41 performs a stick-slip operation and the moving speed of the carriage 41 changes as shown in the upper part of FIG. 17, the differential component QD becomes the limiter 342 as shown by the broken line in the lower part of the figure. Is input to the adder 337 without restriction.

このことから、キャリッジ41がスティックスリップが動作を行った場合には、それに対応する微分成分QDを加算器337に入力することができる。つまり、キャリッジ41の移動速度が急激に上昇した場合には、当該キャリッジ41の移動速度の急激な上昇を抑制するために、微分要素336Cの演算結果として大きなマイナス(−)の出力が微分成分QDとして加算器337に入力される。これにより、キャリッジ41の移動速度の安定化を図ることができる。また、キャリッジ41の移動速度が急激に減少した場合には、当該キャリッジ41の移動速度の急激な減少を抑制するために、微分要素336Cの演算結果として大きなプラス(+)の出力が微分成分QDとして加算器337に入力される。これにより、キャリッジ41の移動速度の安定化を図ることができる。このようにして、キャリッジ41のスティックスリップ動作を抑制することができる。   From this, when the carriage 41 performs the stick-slip operation, the differential component QD corresponding to the operation can be input to the adder 337. That is, when the moving speed of the carriage 41 increases rapidly, a large minus (−) output is obtained as the differential component QD as the calculation result of the differential element 336C in order to suppress a rapid increase in the moving speed of the carriage 41. Is input to the adder 337. Thereby, the movement speed of the carriage 41 can be stabilized. In addition, when the moving speed of the carriage 41 rapidly decreases, a large plus (+) output is obtained as a differential component QD as a calculation result of the differential element 336C in order to suppress a rapid decrease in the moving speed of the carriage 41. Is input to the adder 337. Thereby, the movement speed of the carriage 41 can be stabilized. In this way, the stick-slip operation of the carriage 41 can be suppressed.

図18は、キャリッジ41がスティックスリップ動作を行ったときに、リミッター342の制限機能をオフにして対応した場合のキャリッジ41の移動速度の変化の一例について示したものである。ここで、キャリッジ41の移動速度は、しばらくの間、停止状態が続いた後、急激に上昇し、その後、ピークを迎えた後、急激に減少すると、コントローラ126によりキャリッジ41がスティックスリップ動作を行っていると判定される。このようにコントローラ126によりキャリッジ41がスティックスリップ動作を行っていると判定された場合には、リミッター342の制限機能がオフにされる。リミッター342の制限機能がオフにさると、キャリッジ41の移動速度が急激に上昇したり、また急激に減少したりした場合に、キャリッジ41の移動速度の急激な変化を抑制することができる。つまり、キャリッジ41の移動速度が急激に上昇した場合には、微分要素336Cの演算結果として大きなマイナス(−)の出力が微分成分QDとして加算器337に入力されて、これにより、キャリッジ41の移動速度を速やかに抑制することができる。一方、キャリッジ41の移動速度が急激に減少した場合には、微分要素336Cの演算結果として大きなプラス(+)の出力が微分成分QDとして加算器337に入力されて、これにより、キャリッジ41の移動速度を速やかに上昇させることができる。このため、キャリッジ41の移動速度を同図に示すように安定した状態に保持することができる。   FIG. 18 shows an example of a change in the moving speed of the carriage 41 when the limit function of the limiter 342 is turned off when the carriage 41 performs a stick-slip operation. Here, the moving speed of the carriage 41 increases rapidly after being stopped for a while, and then reaches a peak and then decreases rapidly. Then, the controller 41 performs a stick-slip operation by the controller 126. It is determined that As described above, when the controller 126 determines that the carriage 41 is performing the stick-slip operation, the limiting function of the limiter 342 is turned off. When the limiting function of the limiter 342 is turned off, a sudden change in the moving speed of the carriage 41 can be suppressed when the moving speed of the carriage 41 rapidly increases or decreases rapidly. That is, when the moving speed of the carriage 41 increases rapidly, a large minus (−) output is input as the differential component QD to the adder 337 as the calculation result of the differential element 336C. The speed can be quickly suppressed. On the other hand, when the moving speed of the carriage 41 rapidly decreases, a large plus (+) output is input to the adder 337 as the differential component QD as the calculation result of the differential element 336C. The speed can be increased quickly. For this reason, the moving speed of the carriage 41 can be maintained in a stable state as shown in FIG.

図19は、コントローラ126の対応処理の一例を説明したフローチャートである。コントローラ126は、キャリッジモータ制御部128がキャリッジ41を所定の速度以下にて定速移動させようとした際に、まず、キャリッジ41がスティックスリップ動作を行っていると判定されたか否かをチェックする(S202)。ここで、キャリッジ41がスティックスリップ動作を行っていると判定されていない場合には、コントローラ126は、次にステップS204へと進み、キャリッジ41の移動が終了したか否かをチェックする(S204)。   FIG. 19 is a flowchart illustrating an example of the handling process of the controller 126. When the carriage motor control unit 128 attempts to move the carriage 41 at a constant speed below a predetermined speed, the controller 126 first checks whether or not it is determined that the carriage 41 is performing a stick-slip operation. (S202). If it is not determined that the carriage 41 is performing the stick-slip operation, the controller 126 proceeds to step S204 and checks whether the movement of the carriage 41 is completed (S204). .

キャリッジ41の移動が終了していない場合には、コントローラ126は、ステップS202へと戻り、再び、キャリッジ41がスティックスリップ動作を行っていると判定されたか否かチェックする(S202)。キャリッジ41がスティックスリップ動作を行っていると判定されたか否かのチェックは、キャリッジ41の移動が終了するまでの間、コントローラ126により実施される。キャリッジ41の移動が終了した場合には、コントローラ126は、処理を速やかに終了する。   If the movement of the carriage 41 is not completed, the controller 126 returns to step S202, and checks again whether or not it is determined that the carriage 41 is performing a stick-slip operation (S202). The controller 126 checks whether or not it is determined that the carriage 41 is performing the stick-slip operation until the movement of the carriage 41 is completed. When the movement of the carriage 41 is finished, the controller 126 finishes the processing promptly.

一方、ステップS202において、キャリッジ41がスティックスリップ動作を行っていると判定された場合には、コントローラ126は、次にステップS206へと進み、リミッターの制限機能をオフにする(S206)。その後、コントローラ126は、処理を速やかに終了する。   On the other hand, if it is determined in step S202 that the carriage 41 is performing a stick-slip operation, the controller 126 then proceeds to step S206 and turns off the limiter limiting function (S206). Thereafter, the controller 126 ends the processing promptly.

《速度安定後の対応》
このようにしてキャリッジ41がスティックスリップ動作を行っていると判定されたことにより、キャリッジモータ制御部128のリミッター342の制限機能をオフして対応した後、キャリッジ41の移動速度Vcが安定した場合には、リミッター342の制限機能を再びオンにしても良い。つまり、キャリッジ41の移動速度Vcが安定した場合には、キャリッジ41がスティックスリップ動作を行う虞が低下したと判断し、キャリッジ41がスティックスリップ動作を行っていると判定される前の元の制御方式に戻す。
<Response after speed stabilization>
When it is determined that the carriage 41 is performing the stick-slip operation in this manner, the movement speed Vc of the carriage 41 is stabilized after the limit function of the limiter 342 of the carriage motor control unit 128 is turned off to cope with it. Alternatively, the limiting function of the limiter 342 may be turned on again. That is, when the moving speed Vc of the carriage 41 is stabilized, it is determined that the possibility that the carriage 41 performs the stick-slip operation is reduced, and the original control before it is determined that the carriage 41 is performing the stick-slip operation. Return to method.

キャリッジ41の移動速度Vcが安定したか否かを判定する方法としては、次のような方法がある。図20は、キャリッジ41の移動速度Vcが安定したか否かを判定する方法の一例について説明したものである。ここでは、キャリッジ41の移動速度Vcが所定の許容範囲内、即ち所定の許容上限値Vk1以下、所定の許容下限値Vk2以上にある時間が所定時間に達した場合に、リミッター342の制限機能を再びオンにする。なお、リミッター342の制限機能を再びオンにするのは、コントローラ126により行う。   As a method for determining whether or not the moving speed Vc of the carriage 41 is stable, there are the following methods. FIG. 20 illustrates an example of a method for determining whether or not the moving speed Vc of the carriage 41 is stable. In this case, when the movement speed Vc of the carriage 41 reaches a predetermined time within a predetermined allowable range, that is, a predetermined allowable upper limit value Vk1 or lower and a predetermined allowable lower limit value Vk2 or higher, the limiter 342 has a limiting function. Turn it on again. The controller 126 turns on the limiter 342 again.

コントローラ126は、キャリッジ41の移動速度Vcに関する情報をキャリッジモータ制御部128の速度演算部334から逐次取得する。そして、キャリッジ41の移動速度Vcが所定の許容範囲内、即ちVk1≦Vc≦Vk2になったときに、コントローラ126は、時間計測を開始する。そして、コントローラ126は、キャリッジ41の移動速度が所定の許容範囲に入ってから経過時間Tを計測する。この経過時間Tが所定時間T0に達した場合には、コントローラ126は、キャリッジ41の移動速度Vcが十分に安定したと判断して、リミッター342の制限機能を再びオンにする。一方、経過時間Tが所定時間T0に達する前に、再びキャリッジ41の移動速度Vcが所定の許容範囲(Vk1≦Vc≦Vk2)から外れた場合には、コントローラ126は、キャリッジ41の移動速度Vcがまだ十分に安定してないと判断して、時間計測を終了する。そして、再びキャリッジ41の移動速度Vcが所定の許容範囲(Vk1≦Vc≦Vk2)に入った場合には、コントローラ126は、再度時間計測を開始する。   The controller 126 sequentially acquires information regarding the moving speed Vc of the carriage 41 from the speed calculation unit 334 of the carriage motor control unit 128. When the moving speed Vc of the carriage 41 is within a predetermined allowable range, that is, when Vk1 ≦ Vc ≦ Vk2, the controller 126 starts measuring time. Then, the controller 126 measures an elapsed time T after the moving speed of the carriage 41 enters a predetermined allowable range. When the elapsed time T reaches the predetermined time T0, the controller 126 determines that the moving speed Vc of the carriage 41 is sufficiently stable, and turns on the limiting function of the limiter 342 again. On the other hand, if the moving speed Vc of the carriage 41 deviates from a predetermined allowable range (Vk1 ≦ Vc ≦ Vk2) again before the elapsed time T reaches the predetermined time T0, the controller 126 moves the moving speed Vc of the carriage 41. Is not yet stable enough, the time measurement is terminated. When the moving speed Vc of the carriage 41 again falls within a predetermined allowable range (Vk1 ≦ Vc ≦ Vk2), the controller 126 starts time measurement again.

このようにして、キャリッジ41の移動速度Vcが安定した場合には、リミッター342の制限機能を再びオンにすることで、キャリッジ41を再び安定した状態にて移動させることができる。   Thus, when the moving speed Vc of the carriage 41 is stabilized, the carriage 41 can be moved in a stable state again by turning on the limiting function of the limiter 342 again.

===まとめ===
以上本実施形態のインクジェットプリンタ1にあっては、キャリッジ41がスティックスリップ動作を行っていると判定された場合には、キャリッジモータ制御部128の微分要素336Cから出力される微分成分QDが所定の上限値を超えて加算器337に入力されないようにするためのリミッター342の制限機能をオフにする。これによって、キャリッジ41がスティックスリップ動作を行うのを抑制することができる。したがって、キャリッジ41がスティックスリップ動作を行っても、これにスムーズに対応することができる。
=== Summary ===
As described above, in the inkjet printer 1 of the present embodiment, when it is determined that the carriage 41 is performing the stick-slip operation, the differential component QD output from the differential element 336C of the carriage motor control unit 128 is a predetermined value. The limiting function of the limiter 342 for preventing the input from exceeding the upper limit value to the adder 337 is turned off. Thereby, it is possible to suppress the carriage 41 from performing a stick-slip operation. Therefore, even if the carriage 41 performs a stick-slip operation, this can be handled smoothly.

また、このようにしてキャリッジモータ制御部128のリミッター342の制限機能をオフして対応した後、キャリッジ41の移動速度Vcが所定時間以上、所定の許容範囲内にある場合には、キャリッジ41の移動速度Vcが十分に安定したと判断して、リミッター342の制限機能を再びオンにする。これによって、キャリッジ41を所定の速度以下にて定速移動させる場合に、キャリッジ41を再び安定した状態にて移動させることができる。   In addition, after the limit function of the limiter 342 of the carriage motor control unit 128 is turned off in this way, and the moving speed Vc of the carriage 41 is within a predetermined allowable range for a predetermined time or more, the carriage 41 It is determined that the moving speed Vc is sufficiently stable, and the limit function of the limiter 342 is turned on again. Thus, when the carriage 41 is moved at a constant speed below a predetermined speed, the carriage 41 can be moved again in a stable state.

===リミッターの他の設置例===
図21は、リミッター344が他の位置に配置された場合の一例について説明したものである。ここでは、リミッター344は、微分要素336Cの入力側に設置されている。そして、リミッター344は、速度演算部334から出力される回転速度Vc(キャリッジ41の移動速度)が所定の上限値を超えて入力されないように制限をするようになっている。リミッター344からの出力は、減算器346に入力される。この減算器346は、微分要素336Cに入力される速度偏差ΔVを計算するためのものである。この減算器346により、ゲイン333から出力される目標速度Vtから、リミッター344からの出力、即ち速度演算部334により検出された検出速度Vcが減算されて速度偏差ΔVが算出される。このようにして算出された速度偏差ΔVは、微分要素336Cに入力される。なお、比例要素および積分要素に入力される速度偏差ΔVは、別の減算器により演算され、速度演算部334から出力される回転速度Vc(キャリッジ41の移動速度)がリミッター344により制限されていない。
=== Other installation examples of limiters ===
FIG. 21 illustrates an example in which the limiter 344 is arranged at another position. Here, the limiter 344 is installed on the input side of the differential element 336C. The limiter 344 limits the rotational speed Vc (moving speed of the carriage 41) output from the speed calculation unit 334 so that it does not exceed a predetermined upper limit value. The output from the limiter 344 is input to the subtracter 346. The subtracter 346 is for calculating the speed deviation ΔV input to the differentiation element 336C. The subtracter 346 subtracts the output from the limiter 344, that is, the detected speed Vc detected by the speed calculator 334, from the target speed Vt output from the gain 333, thereby calculating the speed deviation ΔV. The speed deviation ΔV calculated in this way is input to the differential element 336C. The speed deviation ΔV input to the proportional element and the integral element is calculated by another subtractor, and the rotation speed Vc (the moving speed of the carriage 41) output from the speed calculation unit 334 is not limited by the limiter 344. .

このようにして微分要素336Cの入力側にリミッター344が設置されている場合についても、何らかの要因によってキャリッジ41の移動速度に大きく変動が生じて微分要素336Cの演算出力の値が大きくなっても、キャリッジモータ42の制御にあたってあまり大きな影響を受けないようにすることができる。したがって、キャリッジ41がスティックスリップ動作を行っていると判定された場合に、このリミッター344の制限機能をオフにすることで、キャリッジ41のスティックスリップ動作を抑制することができる。   In this way, even when the limiter 344 is installed on the input side of the differential element 336C, even if the movement speed of the carriage 41 greatly fluctuates due to some factor and the value of the calculation output of the differential element 336C increases, It is possible to prevent the carriage motor 42 from being greatly affected by the control. Therefore, when it is determined that the carriage 41 is performing the stick-slip operation, the stick-slip operation of the carriage 41 can be suppressed by turning off the limiting function of the limiter 344.

===他のキャリッジモータ制御部の構成例===
図22は、キャリッジモータ制御部350の他の構成例について説明したものである。このキャリッジモータ制御部350は、図22に示すように、通常速度制御部352と、低速制御部354と、制御選択部356と、PWM回路338とを備えている。ここで、通常速度制御部352は、キャリッジ41を通常速度で移動させるための制御部である。また、低速制御部354は、キャリッジ41を先に説明したように所定の速度以下にて低速移動させるための制御部である。これら通常速度制御部352および低速制御部354については、後で詳しく説明する。
=== Configuration Example of Other Carriage Motor Control Unit ===
FIG. 22 illustrates another configuration example of the carriage motor control unit 350. As shown in FIG. 22, the carriage motor control unit 350 includes a normal speed control unit 352, a low speed control unit 354, a control selection unit 356, and a PWM circuit 338. Here, the normal speed control unit 352 is a control unit for moving the carriage 41 at a normal speed. The low speed control unit 354 is a control unit for moving the carriage 41 at a low speed below a predetermined speed as described above. The normal speed control unit 352 and the low speed control unit 354 will be described in detail later.

制御選択部356は、コントローラ126からの命令によって、これら通常速度制御部352および低速制御部354のうちのいずれか一方を選択する。そして、制御選択部356により選択された2つの制御部、即ち通常速度制御部352および低速制御部354のうちのいずれか一方からの出力がPWM回路338に入力される。PWM回路338は、通常速度制御部352または低速制御部354からの出力に基づいて、キャリッジモータ42を制御するための制御信号を生成する。   The control selection unit 356 selects one of the normal speed control unit 352 and the low speed control unit 354 according to a command from the controller 126. Then, an output from one of the two control units selected by the control selection unit 356, that is, the normal speed control unit 352 and the low speed control unit 354 is input to the PWM circuit 338. The PWM circuit 338 generates a control signal for controlling the carriage motor 42 based on the output from the normal speed control unit 352 or the low speed control unit 354.

《通常速度制御部》
ここで、通常速度制御部352は、例えば、図9にて説明したような、PID制御にてキャリッジモータ42の制御を行うような制御部により構成される。具体的には、例えば、図9に用いて説明したように、リニア式エンコーダ51の出力パルスに基づきキャリッジモータ42の回転位置を演算する位置演算部331と、コントローラ126から送られてくる目標位置と、位置演算部331により検出された検出位置との位置偏差を演算する減算器332と、減算器332から出力される位置偏差にゲインKpを乗算して目標速度Vtを出力するゲイン333と、リニア式エンコーダ51の出力パルスに基づきキャリッジモータ42の回転速度Vcを演算する速度演算部334と、ゲイン333から出力される目標速度Vtと、速度演算部334により検出された検出速度Vcとの速度偏差ΔVを演算する減算器335と、速度偏差ΔVに定数Gpを乗算し、比例成分QPを出力する比例要素336Aと、速度偏差に定数Giを乗算したものを積算し、積分成分QIを出力する積分要素336Bと、現在の速度偏差ΔV(j)(ここで、jは時刻を示す)と、1つ前の速度偏差ΔV(j−1)との差に定数Gdを乗算し、微分成分QDを出力する微分要素336Cと、これら各演算要素336A、336B、336Cの演算出力QP、QIおよびQDを加算する加算器337とを備えている。そして、この加算器337の加算結果が、図22に示すように、通常速度制御部352から出力されてPWM回路338に入力される。
《Normal speed control unit》
Here, the normal speed control unit 352 is configured by a control unit that controls the carriage motor 42 by PID control, for example, as described in FIG. Specifically, for example, as described with reference to FIG. 9, the position calculation unit 331 that calculates the rotational position of the carriage motor 42 based on the output pulse of the linear encoder 51, and the target position sent from the controller 126. A subtractor 332 that calculates a position deviation from the detected position detected by the position calculation unit 331, a gain 333 that multiplies the position deviation output from the subtracter 332 by a gain Kp, and outputs a target speed Vt, A speed calculator 334 that calculates the rotational speed Vc of the carriage motor 42 based on the output pulse of the linear encoder 51, a target speed Vt output from the gain 333, and a detected speed Vc detected by the speed calculator 334 A subtractor 335 for calculating the deviation ΔV, and a proportional element 33 for multiplying the speed deviation ΔV by a constant Gp and outputting a proportional component QP. 6A and the speed deviation multiplied by a constant Gi are integrated, and an integration element 336B that outputs an integral component QI, the current speed deviation ΔV (j) (where j indicates time), and the previous one Is multiplied by a constant Gd, and a differential element 336C that outputs a differential component QD, and the operation outputs QP, QI, and QD of these operation elements 336A, 336B, and 336C are added. And an adder 337. Then, the addition result of the adder 337 is output from the normal speed control unit 352 and input to the PWM circuit 338 as shown in FIG.

なお、通常速度制御部352にあっては、キャリッジモータ42を加速制御するために、図9にて説明したような、コントローラ126から送られてくるクロック信号に基づいて、所定時間毎にタイマ割込信号を発生するタイマ339Bと、タイマ割込信号を受ける毎に所定のデューティDXPを積算し、その積算結果としてデューティ信号を生成して出力する加速制御部339Aとを備えても良い。このようなタイマ339Bと加速制御部339Aとを備えれば、キャリッジモータ42をスムーズに加速制御することができる。   In the normal speed control unit 352, in order to control the acceleration of the carriage motor 42, a timer allocation is performed at predetermined intervals based on the clock signal sent from the controller 126 as described in FIG. A timer 339B that generates an interrupt signal and an acceleration control unit 339A that integrates a predetermined duty DXP every time a timer interrupt signal is received and generates and outputs a duty signal as the integration result may be provided. If the timer 339B and the acceleration control unit 339A are provided, the carriage motor 42 can be smoothly controlled for acceleration.

一方、低速制御部354は、キャリッジ41を低速にて移動させるための制御部である。例えば、この低速制御部354は、前述したようなキャリッジ41を所定の速度以下にて定速移動させる場合などに利用される。以下にこの低速制御部354の具体的な構成例について説明する。   On the other hand, the low speed control unit 354 is a control unit for moving the carriage 41 at a low speed. For example, the low speed control unit 354 is used when the carriage 41 as described above is moved at a constant speed below a predetermined speed. Hereinafter, a specific configuration example of the low speed control unit 354 will be described.

《低速制御部》
図23は、低速制御部354の一例について説明したものである。この低速制御部354は、同図に示すように、ホールド制御部360と、タイマ割込制御部362と、エンコーダ割込制御部364と、周期カウンタ366と、位置カウンタ368と、制御選択部370と、タイマカウンタ372と、第一選択部374と、微分速度制御部376と、第二選択部378とを備えている。
《Low speed control unit》
FIG. 23 illustrates an example of the low speed control unit 354. As shown in the figure, the low speed control unit 354 includes a hold control unit 360, a timer interrupt control unit 362, an encoder interrupt control unit 364, a period counter 366, a position counter 368, and a control selection unit 370. A timer counter 372, a first selection unit 374, a differential speed control unit 376, and a second selection unit 378.

なお、ホールド制御部360は、キャリッジ41が目標位置に到達したときにキャリッジモータ42を制御するための制御部である。また、タイマ割込制御部362は、キャリッジ41が停止しているとき、またはキャリッジ41がかなりゆっくりと移動しているときに、キャリッジモータ42を制御するための制御部である。また、エンコーダ割込制御部364は、キャリッジ41がある程度の速度にて移動しているときにキャリッジモータ42を制御するための制御部である。   The hold control unit 360 is a control unit for controlling the carriage motor 42 when the carriage 41 reaches the target position. The timer interrupt control unit 362 is a control unit for controlling the carriage motor 42 when the carriage 41 is stopped or when the carriage 41 is moving very slowly. The encoder interrupt control unit 364 is a control unit for controlling the carriage motor 42 when the carriage 41 is moving at a certain speed.

位置カウンタ368は、リニア式エンコーダ51の出力パルスを計数して、その計数結果をパルスとして出力する。また、周期カウンタ366は、リニア式エンコーダ51の出力パルスからその周期を検出して出力する。   The position counter 368 counts the output pulses of the linear encoder 51 and outputs the counting result as pulses. The period counter 366 detects the period from the output pulse of the linear encoder 51 and outputs the detected period.

制御選択部370は、位置カウンタ368からの出力に基づき、ホールド制御部360、タイマ割込制御部362およびエンコーダ割込制御部364の中から適切な制御部を選択する。すなわち、キャリッジ41が目標位置にある場合には、制御選択部370は、ホールド制御部360を選択する。   Based on the output from the position counter 368, the control selection unit 370 selects an appropriate control unit from among the hold control unit 360, the timer interrupt control unit 362, and the encoder interrupt control unit 364. That is, when the carriage 41 is at the target position, the control selection unit 370 selects the hold control unit 360.

一方、キャリッジ41が未だ目標位置に到達していない場合には、制御選択部370は、タイマ割込制御部362およびエンコーダ割込制御部364のうちのいずれか一方の制御部を選択する。ここで、制御選択部370は、タイマカウンタ372を備え、このタイマカウンタ372のカウント値に基づき、タイマ割込制御部362を選択するのか、エンコーダ割込制御部364を選択するのかを決定する。   On the other hand, when the carriage 41 has not yet reached the target position, the control selection unit 370 selects one of the timer interrupt control unit 362 and the encoder interrupt control unit 364. Here, the control selection unit 370 includes a timer counter 372, and determines whether to select the timer interrupt control unit 362 or the encoder interrupt control unit 364 based on the count value of the timer counter 372.

このタイマカウンタ372は、設定値が与えられると、カウントを開始し、当該カウント値がその設定値になるまでカウントを行う。このタイマカウンタ372は、位置カウンタからパルスが出力されたときには、カウント値をリセットする。そして、タイマカウンタ372は、リセット後、再びカウントを開始する。   The timer counter 372 starts counting when a set value is given, and counts until the count value reaches the set value. The timer counter 372 resets the count value when a pulse is output from the position counter. Then, the timer counter 372 starts counting again after being reset.

制御選択部370は、このタイマカウンタ372のカウント値が所定値に達していた場合には、キャリッジ41が停止しているか、またはかなりゆっくりと移動していると判断して、制御部としてタイマ割込制御部362を選択する。一方、タイマカウンタ372のカウント値が所定値に達していない場合には、キャリッジ41がある程度の速度にて移動していると判断して、制御部としてエンコーダ割込制御部364を選択する。このようにして制御選択部370は、ホールド制御部360、タイマ割込制御部362およびエンコーダ割込制御部364の中から適切な制御部を選択する。   When the count value of the timer counter 372 has reached a predetermined value, the control selection unit 370 determines that the carriage 41 has stopped or moved fairly slowly, and the timer selection as a control unit is performed. Select the control unit 362. On the other hand, when the count value of the timer counter 372 does not reach the predetermined value, it is determined that the carriage 41 is moving at a certain speed, and the encoder interrupt control unit 364 is selected as the control unit. In this way, the control selection unit 370 selects an appropriate control unit from among the hold control unit 360, the timer interrupt control unit 362, and the encoder interrupt control unit 364.

ホールド制御部360は、制御選択部370によって選択されているときに、位置カウンタ368の出力に基づき、キャリッジ41がその目標位置付近にて保持されるようにキャリッジモータ42を制御するための制御値RHを決定して第二選択部378に出力する。   The hold control unit 360 is a control value for controlling the carriage motor 42 so that the carriage 41 is held near the target position based on the output of the position counter 368 when selected by the control selection unit 370. RH is determined and output to the second selection unit 378.

タイマ割込制御部362は、制御選択部370によって選択されているときに、位置カウンタ368の出力に基づき、キャリッジ41が所定の速度にて移動をし始めるようにキャリッジモータ42を制御するための制御値RTを決定して第一選択部374に出力する。   The timer interrupt control unit 362 controls the carriage motor 42 so that the carriage 41 starts moving at a predetermined speed based on the output of the position counter 368 when selected by the control selection unit 370. The control value RT is determined and output to the first selection unit 374.

エンコーダ割込制御部364は、制御選択部370によって選択されているときに、位置カウンタ368からの出力と、周期カウンタ366からの出力とに基づき、キャリッジ41が所定の速度にて移動するようにキャリッジモータ42を制御するための制御値REを決定して第一選択部374に出力する。   The encoder interrupt control unit 364 causes the carriage 41 to move at a predetermined speed based on the output from the position counter 368 and the output from the cycle counter 366 when selected by the control selection unit 370. A control value RE for controlling the carriage motor 42 is determined and output to the first selection unit 374.

第一選択部374は、制御選択部370によりタイマ割込制御部362が選択されているときには、タイマ割込制御部362からの出力、即ち制御値RTを選択して微分速度制御部376に出力する。一方、第一選択部374は、制御選択部370によりエンコーダ割込制御部364が選択されたときには、エンコーダ割込制御部364からの出力、即ち制御値REを選択して微分速度制御部376に出力する。   When the timer interrupt control unit 362 is selected by the control selection unit 370, the first selection unit 374 selects the output from the timer interrupt control unit 362, that is, the control value RT and outputs it to the differential speed control unit 376. To do. On the other hand, when the encoder interrupt control unit 364 is selected by the control selection unit 370, the first selection unit 374 selects the output from the encoder interrupt control unit 364, that is, the control value RE, and sends it to the differential speed control unit 376. Output.

微分速度制御部376は、周期カウンタ366からの出力に基づいて、キャリッジ41の現在の移動速度と目標速度との速度偏差を求め、この速度偏差と、一つ前の割込時、即ち一つ前の動作時に算出した速度偏差との差に応じた値を制御値RDとして算出する。そして、微分速度制御部376は、この制御値RDを、第一選択部374から出力されたタイマ割込制御部362の制御値RTまたはエンコーダ割込制御部364の制御値REに加算する。そして、微分速度制御部376は、その加算した結果値、つまり、「RT+RD」または「RE+RD」を第二選択部378に出力する。   The differential speed control unit 376 obtains a speed deviation between the current moving speed of the carriage 41 and the target speed based on the output from the cycle counter 366, and this speed deviation and the previous interrupt, that is, one. A value corresponding to the difference from the speed deviation calculated during the previous operation is calculated as the control value RD. Then, the differential speed control unit 376 adds the control value RD to the control value RT of the timer interrupt control unit 362 or the control value RE of the encoder interrupt control unit 364 output from the first selection unit 374. Then, differential speed control section 376 outputs the added result value, that is, “RT + RD” or “RE + RD” to second selection section 378.

第二選択部378は、制御選択部370によりホールド制御部360が選択されたときには、ホールド制御部360の出力、即ち制御値RHを選択してPWM回路338に向けて出力する。一方、制御選択部370によりホールド制御部360が選択されていないとき、即ち、制御選択部370によりタイマ割込制御部362またはエンコーダ割込制御部364が選択されているときには、第二選択部378は、微分速度制御部376からの出力、即ち制御値「RT+RD」または制御値「RE+RD」を選択してPWM回路338に向けて出力する。このようにして制御選択部370によって選択された制御部360、362、364、376を通じて算出された制御値「RH」、「RT+RD」、「RE+RD」がそれぞれPWM回路338に入力される。   When the hold control unit 360 is selected by the control selection unit 370, the second selection unit 378 selects the output of the hold control unit 360, that is, the control value RH, and outputs it to the PWM circuit 338. On the other hand, when the hold control unit 360 is not selected by the control selection unit 370, that is, when the timer interrupt control unit 362 or the encoder interrupt control unit 364 is selected by the control selection unit 370, the second selection unit 378. Selects the output from the differential speed control unit 376, that is, the control value “RT + RD” or the control value “RE + RD”, and outputs it to the PWM circuit 338. Control values “RH”, “RT + RD”, and “RE + RD” calculated through the control units 360, 362, 364, and 376 selected by the control selection unit 370 in this way are input to the PWM circuit 338, respectively.

《リミッターの位置》
このようなキャリッジモータ制御部350において、リミッター342が設置されるのは、低速制御部354(図22参照)である。リミッター342は、この低速制御部354において、例えば、周期カウンタ366からの出力が微分速度制御部376に入力される経路に設けることができる。すなわち、図23に示すポイント「A」の位置にリミッター342を設けることができる。このようにポイント「A」にリミッター342が設けられれば、微分速度制御部376に入力される周期カウンタ366の出力に対して所定の上限値を超えないように制限をすることができる。また、リミッター342は、例えば、微分速度制御部376の出力が第二選択部に入力される経路に設けることができる。すなわち、図23に示すポイント「B」の位置にリミッター342を設けることができる。このようにポイント「B」の位置にリミッター342を設ければ、微分速度制御部376からの出力に対して所定の上限値を超えないように制限をすることができる。
《Limiter position》
In such a carriage motor control unit 350, the limiter 342 is installed in the low speed control unit 354 (see FIG. 22). The limiter 342 can be provided in a path through which the output from the period counter 366 is input to the differential speed control unit 376 in the low speed control unit 354, for example. That is, the limiter 342 can be provided at the position of the point “A” shown in FIG. Thus, if the limiter 342 is provided at the point “A”, it is possible to limit the output of the period counter 366 input to the differential speed control unit 376 so as not to exceed a predetermined upper limit value. Further, the limiter 342 can be provided, for example, in a path through which the output of the differential speed control unit 376 is input to the second selection unit. That is, the limiter 342 can be provided at the position of the point “B” shown in FIG. Thus, if the limiter 342 is provided at the position of the point “B”, it is possible to limit the output from the differential speed control unit 376 so as not to exceed a predetermined upper limit value.

このようにポイント「A」または「B」にリミッター342が設置されれば、何らかの要因によってキャリッジ41の移動速度に大きく変動が生じて微分要素336Cの演算出力の値が大きくなっても、キャリッジモータ42の制御にあたってあまり大きな影響を受けないようにすることができる。これにより、キャリッジ41を安定した状態にて移動させることができる。   If the limiter 342 is installed at the point “A” or “B” in this way, even if the movement speed of the carriage 41 greatly fluctuates due to some factor and the value of the calculation output of the differential element 336C increases, the carriage motor It is possible to prevent the control of 42 from being greatly influenced. Thereby, the carriage 41 can be moved in a stable state.

さらに、キャリッジ41がスティックスリップ動作を行っていると判定された場合には、これらポイント「A」または「B」に設けられたリミッター342の制限機能をオフにすれば、キャリッジ41がスティックスリップ動作を行うのを抑制することができる。   Further, if it is determined that the carriage 41 is performing a stick-slip operation, the limiter 342 limiting function provided at these points “A” or “B” is turned off to cause the carriage 41 to perform a stick-slip operation. Can be suppressed.

===印刷システム等の構成===
次に、本発明に係る印刷システムの一実施形態として、印刷装置としてインクジェットプリンタ1を備えた場合を例に説明する。図24は、印刷システムの一実施形態の外観構成を示したものである。この印刷システム300は、コンピュータ140と、表示装置304と、入力装置306とを備えている。コンピュータ140は、パーソナルコンピュータなどをはじめとする各種コンピュータにより構成される。
=== Configuration of Printing System etc. ===
Next, as an embodiment of a printing system according to the present invention, a case where an inkjet printer 1 is provided as a printing apparatus will be described as an example. FIG. 24 shows an external configuration of an embodiment of a printing system. The printing system 300 includes a computer 140, a display device 304, and an input device 306. The computer 140 includes various computers such as a personal computer.

コンピュータ140は、FDドライブ装置314やCD−ROMドライブ装置316などの読み取り装置312を備える。この他に、コンピュータ140は、例えば、MO(Magnet Optical)ディスクドライブ装置やDVDドライブ装置などを備えても良い。また、表示装置304は、CRTディスプレイやプラズマディスプレイ、液晶ディスプレイ等など、各種表示装置により構成される。入力装置306は、キーボード308やマウス310などにより構成される。   The computer 140 includes a reading device 312 such as an FD drive device 314 and a CD-ROM drive device 316. In addition, the computer 140 may include, for example, an MO (Magnet Optical) disk drive device or a DVD drive device. The display device 304 includes various display devices such as a CRT display, a plasma display, and a liquid crystal display. The input device 306 includes a keyboard 308, a mouse 310, and the like.

図25は、本実施形態の印刷システムのシステム構成の一例を示したブロック構成図である。コンピュータ140は、FDドライブ装置314やCD−ROMドライブ装置316などの読み取り装置312の他に、CPU318と、メモリ320と、ハードディスクドライブ322とを備えている。   FIG. 25 is a block diagram showing an example of the system configuration of the printing system according to the present embodiment. The computer 140 includes a CPU 318, a memory 320, and a hard disk drive 322 in addition to the reading device 312 such as the FD drive device 314 and the CD-ROM drive device 316.

CPU318は、コンピュータ140の全体の制御を行う。また、メモリ320には、各種データが記憶される。ハードディスクドライブ322には、本実施形態のインクジェットプリンタ1等の印刷装置を制御するためのプログラムとして、プリンタドライバなどがインストールされている。CPU318は、ハードディスクドライブ322に記憶されたプリンタドライバなどのプログラムを読み込んで、プログラムに従って動作する。また、CPU318には、コンピュータ140の外部に設置された表示装置304や入力装置306、インクジェットプリンタ1などが接続される。   The CPU 318 performs overall control of the computer 140. The memory 320 stores various data. A printer driver or the like is installed in the hard disk drive 322 as a program for controlling a printing apparatus such as the ink jet printer 1 of the present embodiment. The CPU 318 reads a program such as a printer driver stored in the hard disk drive 322 and operates according to the program. The CPU 318 is connected to a display device 304, an input device 306, the ink jet printer 1, and the like installed outside the computer 140.

なお、このようにして実現された印刷システム300は、システム全体として従来システムよりも優れたシステムとなる。   The printing system 300 realized in this way is a system that is superior to the conventional system as a whole system.

===その他の実施の形態===
以上、一実施形態に基づき、本発明に係るプリンタ等の印刷装置について説明したが、上記の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更または改良され得るとともに、本発明には、その等価物が含まれることは言うまでもない。特に、以下に述べる実施形態であっても、本発明に係る印刷装置に含まれるものである。
=== Other Embodiments ===
As described above, the printing apparatus such as a printer according to the present invention has been described based on one embodiment. However, the above-described embodiment is for facilitating the understanding of the present invention, and the present invention is limited and interpreted. Not meant to be The present invention can be changed or improved without departing from the gist thereof, and needless to say, the present invention includes equivalents thereof. In particular, even the embodiments described below are included in the printing apparatus according to the present invention.

<印刷ヘッドについて>
前述した実施の形態では、印刷ヘッド(ヘッド21)が、インクを吐出するノズル♯1〜♯180を有し、各ノズル♯1〜♯180からそれぞれインクを吐出して印刷をするようになっていたが、ここでいう印刷ヘッドにあっては、必ずしもこのようなヘッド21に限らない。つまり、媒体に対して印刷を施すのであれば、どのような形態の印刷ヘッドであっても構わない。
<About print head>
In the embodiment described above, the print head (head 21) has the nozzles # 1 to # 180 that eject ink, and prints by ejecting ink from the nozzles # 1 to # 180, respectively. However, the print head here is not necessarily limited to such a head 21. That is, any form of print head may be used as long as printing is performed on a medium.

<モータについて>
前述した実施の形態では、「モータ」としてキャリッジモータ42が、プーリ44と、タイミングベルト45とを介してキャリッジ41を移動させていたが、「印刷ヘッド」を移動させるための「モータ」にあっては、必ずしもこのようなモータに限らない。つまり、媒体に対して印刷を施す印刷ヘッドを移動させるためのモータであれば、どのようなモータであっても構わない。
<About motor>
In the above-described embodiment, the carriage motor 42 moves as the “motor” via the pulley 44 and the timing belt 45, but the carriage 41 moves to the “motor” for moving the “printing head”. However, it is not necessarily limited to such a motor. That is, any motor may be used as long as it is a motor for moving a print head that performs printing on a medium.

<ガイド部について>
前述した実施の形態では、印刷ヘッド(ヘッド21、キャリッジ41)を所定の方向に沿って案内する「ガイド部」として、印刷ヘッド(ヘッド21、キャリッジ41)を横方向に直線状に案内するガイドレール46が開示されていたが、「ガイド部」にあっては、必ずしもこのようなガイドレール46のみとは限らない。つまり、印刷ヘッド(ヘッド21、キャリッジ41)を所定の方向に沿って案内するためのガイド部であれば、どのようなタイプのガイド部であっても構わない。
<About the guide>
In the embodiment described above, the guide for guiding the print head (head 21, carriage 41) linearly in the lateral direction is used as a “guide portion” for guiding the print head (head 21, carriage 41) along a predetermined direction. Although the rail 46 has been disclosed, the “guide portion” is not necessarily limited to such a guide rail 46 alone. That is, any type of guide unit may be used as long as it is a guide unit for guiding the print head (head 21, carriage 41) along a predetermined direction.

<モータ制御部について>
前述した実施の形態では、「モータ制御部」としてキャリッジモータ制御部128を例にして、モータ(キャリッジモータ42)に対してPID制御を実行するモータ制御部について説明したが、ここでいう「モータ制御部」にあっては、必ずしもこのようなモータ制御部に限らない。つまり、「モータ」を制御する制御部であれば、モータを制御する制御方式はどのような方式であっても構わない。例えば、PID制御等以外の他の方式によりモータを制御するモータ制御部であっても構わない。
<About the motor controller>
In the above-described embodiment, the carriage motor control unit 128 is taken as an example of the “motor control unit”, and the motor control unit that performs PID control on the motor (carriage motor 42) has been described. The “control unit” is not necessarily limited to such a motor control unit. That is, as long as the control unit controls the “motor”, any control method for controlling the motor may be used. For example, a motor control unit that controls the motor by a method other than PID control or the like may be used.

<印刷装置について>
前述した実施の形態では、印刷装置としては、前述したようなインクジェットプリンタ1の場合を例にして説明したが、このような印刷装置に限らず、他の方式によりインクを吐出するインクジェットプリンタであっても良い。
また、この他に、印刷装置としては、前述したインクジェットプリンタ1以外に、媒体に対して印刷を施し、かつ所定の方向に沿って移動可能に設けられた印刷ヘッドを備えた印刷装置であれば、どのようなタイプの印刷装置であっても構わない。
<About printing devices>
In the embodiment described above, the case of the inkjet printer 1 as described above has been described as an example of the printing apparatus. However, the printing apparatus is not limited to such a printing apparatus, but may be an inkjet printer that ejects ink by other methods. May be.
In addition to this, as a printing apparatus, in addition to the ink jet printer 1 described above, any printing apparatus provided with a print head that performs printing on a medium and is movable along a predetermined direction may be used. Any type of printing apparatus may be used.

<インクについて>
使用するインクについては、顔料インクであっても良く、また染料インクなど、その他各種インクであっても良い。
インクの色については、前述したイエロ(Y)、マゼンダ(M)、シアン(C)、ブラック(K)の他に、ライトシアン(LC)やライトマゼンダ(LM)、ダークイエロ(DY)をはじめ、例えば、レッドやバイオレット、ブルー、グリーンなど、その他の色のインクを使用しても良い。
<About ink>
The ink to be used may be a pigment ink, or other various inks such as a dye ink.
Regarding the ink color, in addition to the above-described yellow (Y), magenta (M), cyan (C), and black (K), for example, light cyan (LC), light magenta (LM), and dark yellow (DY), for example, Ink of other colors such as red, violet, blue, and green may be used.

<媒体について>
媒体については、普通紙やマット紙、カット紙、光沢紙、ロール紙、用紙、写真用紙、ロールタイプ写真用紙等をはじめ、これらの他に、OHPフィルムや光沢フィルム等のフィルム材や布材、金属板材などであっても構わない。すなわち、印刷対象となり得るものであれば、どのような媒体であっても構わない。
<About media>
For media, including plain paper, matte paper, cut paper, glossy paper, roll paper, paper, photo paper, roll-type photo paper, etc., in addition to these, film materials and cloth materials such as OHP film and gloss film, It may be a metal plate material or the like. That is, any medium can be used as long as it can be a printing target.

本発明に係る印刷装置の一実施形態の斜視図。1 is a perspective view of an embodiment of a printing apparatus according to the present invention. 印刷装置の内部構成を説明した斜視図。FIG. 3 is a perspective view illustrating an internal configuration of the printing apparatus. 印刷装置の搬送部を示す断面図。Sectional drawing which shows the conveyance part of a printing apparatus. 印刷装置のシステム構成を示すブロック構成図。1 is a block configuration diagram showing a system configuration of a printing apparatus. 印刷装置のヘッドの一例を示す平面図。FIG. 3 is a plan view illustrating an example of a head of a printing apparatus. リニア式エンコーダの一例を説明した説明図。Explanatory drawing explaining an example of the linear encoder. リニア式エンコーダの検出部の構成を示す構成図。The block diagram which shows the structure of the detection part of a linear encoder. 図8Aは、正転時のリニア式エンコーダの出力波形を示したタイミングチャート、図8Bは、逆転時のリニア式エンコーダの出力波形を示したタイミングチャートである。FIG. 8A is a timing chart showing the output waveform of the linear encoder during forward rotation, and FIG. 8B is a timing chart showing the output waveform of the linear encoder during reverse rotation. キャリッジモータ制御部のブロック構成図。The block block diagram of a carriage motor control part. 図10Aは、デューティ信号の時間変化のグラフであり、図10Bは、モータの速度変化のグラフ。FIG. 10A is a graph of time change of the duty signal, and FIG. 10B is a graph of speed change of the motor. 印刷処理の一例を説明するフローチャート。6 is a flowchart for explaining an example of printing processing. キャリッジがスティックスリップ動作を行ったときの移動速度の変化の説明図。Explanatory drawing of the change of the moving speed when a carriage performs stick-slip operation | movement. 移動速度に基づくスティックスリップ動作の判定方法の一例の説明図。Explanatory drawing of an example of the determination method of the stick slip operation | movement based on a moving speed. 移動速度に基づくスティックスリップ動作の判定方法の他の例の説明図。Explanatory drawing of the other example of the determination method of the stick slip operation | movement based on a moving speed. スティックスリップ動作時のキャリッジの移動速度とデューディ信号の信号値との関係の説明図。Explanatory drawing of the relationship between the moving speed of a carriage at the time of a stick-slip operation | movement, and the signal value of a duty signal. デューディ信号の信号値に基づくスティックスリップ動作の判定方法の一例の説明図。Explanatory drawing of an example of the determination method of the stick slip operation | movement based on the signal value of a duedy signal. 加速度に基づくスティックスリップ動作の判定方法の一例の説明図。Explanatory drawing of an example of the determination method of the stick slip operation | movement based on an acceleration. キャリッジモータ制御部のタイマーの説明図。Explanatory drawing of the timer of a carriage motor control part. タイマーの計測結果に基づくスティックスリップ動作の判定方法の一例の説明図。Explanatory drawing of an example of the determination method of the stick slip operation | movement based on the measurement result of a timer. スティックスリップ動作時のリミッターの出力の説明図。Explanatory drawing of the output of a limiter at the time of stick-slip operation | movement. スティックスリップ動作対応時のキャリッジの移動速度の説明図。Explanatory drawing of the moving speed of the carriage at the time of stick-slip operation correspondence. 対応処理の手順の一例を説明するフローチャート。The flowchart explaining an example of the procedure of a response process. キャリッジの移動速度が安定したか否かの判定方法の一例の説明図。FIG. 6 is an explanatory diagram illustrating an example of a method for determining whether or not the carriage moving speed is stable. リミッターの他の設置例の説明図。Explanatory drawing of the other example of a limiter installation. 他のキャリッジモータ制御部の構成例の説明図。An explanatory view of an example of composition of other carriage motor control parts. 低速制御部の一例の説明図。Explanatory drawing of an example of a low-speed control part. 印刷システムの一例の外観を示す斜視図。1 is a perspective view showing an appearance of an example of a printing system. 印刷システムの一例のシステム構成を示すブロック構成図。1 is a block configuration diagram showing a system configuration of an example of a printing system.

符号の説明Explanation of symbols

1 インクジェットプリンタ、2 操作パネル、3 排紙部、4 給紙部、
5 操作ボタン、6 表示ランプ、7 排紙トレイ、8 給紙トレイ、
13 給紙ローラ、14 プラテン、15 搬送モータ、17A 搬送ローラ、
17B 排紙ローラ、18A フリーローラ、18B フリーローラ、21 ヘッド、
31 ポンプ装置、35 キャッピング装置、41 キャリッジ、
42 キャリッジモータ、44 プーリ、45 タイミングベルト、
46 ガイドレール、48 インクカートリッジ、49 カートリッジ装着部、
51 リニア式エンコーダ、53 紙検知センサ、60 タイマー、
122 バッファメモリ、124 イメージバッファ、126 コントローラ、
127 メインメモリ、128 キャリッジモータ制御部、
129 通信インターフェース、130 搬送制御部、132 ヘッド駆動部、
134 ロータリ式エンコーダ、140 コンピュータ、
211Y イエロノズル列、211C シアンノズル列、
211M マゼンダノズル列、211K ブラックノズル列、
331 位置演算部、332 減算器、333 ゲイン、334 速度演算部、
335 減算器、336A 比例要素、336B 積分要素、336C 微分要素、
337 加算器、338 PWM回路、339A 加速制御部、339B タイマ、
340 ドライバ、342 リミッター、344 リミッター、346 減算器、
350 キャリッジモータ制御部、352 通常速度制御部、354 低速制御部、
356 制御選択部、360 ホールド制御部、362 タイマ割込制御部、
364 エンコーダ割込制御部、366 周期カウンタ、368 位置カウンタ、
370 制御選択部、372 タイマカウンタ、374 第一選択部、
376 微分速度制御部、378 第二選択部、452 発光ダイオード、
454 コリメータレンズ、456 検出処理部、458 フォトダイオード、
460 信号処理回路、462A コンパレータ、462B コンパレータ、
464 リニア式エンコーダ符号板、466 検出部
1 Inkjet printer, 2 operation panel, 3 paper discharge unit, 4 paper supply unit,
5 operation buttons, 6 indicator lamps, 7 paper discharge tray, 8 paper feed tray,
13 paper feed roller, 14 platen, 15 transport motor, 17A transport roller,
17B paper discharge roller, 18A free roller, 18B free roller, 21 heads,
31 pump device, 35 capping device, 41 carriage,
42 Carriage motor, 44 pulley, 45 timing belt,
46 guide rail, 48 ink cartridge, 49 cartridge mounting part,
51 linear encoder, 53 paper detection sensor, 60 timer,
122 buffer memory, 124 image buffer, 126 controller,
127 main memory, 128 carriage motor controller,
129 communication interface, 130 transport control unit, 132 head drive unit,
134 rotary encoder, 140 computer,
211Y yellow nozzle row, 211C cyan nozzle row,
211M magenta nozzle row, 211K black nozzle row,
331 Position calculation unit, 332 subtractor, 333 gain, 334 speed calculation unit,
335 subtractor, 336A proportional element, 336B integral element, 336C differential element,
337 Adder, 338 PWM circuit, 339A acceleration control unit, 339B timer,
340 driver, 342 limiter, 344 limiter, 346 subtractor,
350 Carriage motor controller, 352 Normal speed controller, 354 Low speed controller,
356 control selection unit, 360 hold control unit, 362 timer interrupt control unit,
364 encoder interrupt control unit, 366 period counter, 368 position counter,
370 control selection unit, 372 timer counter, 374 first selection unit,
376 differential speed control unit, 378 second selection unit, 452 light emitting diode,
454 collimator lens, 456 detection processing unit, 458 photodiode,
460 signal processing circuit, 462A comparator, 462B comparator,
464 linear encoder code plate, 466 detector

Claims (16)

(A)媒体に対して印刷を施す印刷ヘッドと、
(B)前記印刷ヘッドを移動させるためのモータと、
(C)前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
(D)前記印刷ヘッドの移動速度を検出する速度検出部と、
(E)前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定する判定部と、
(F)前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、
前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
(G)を備えたことを特徴とする印刷装置。
(A) a print head for printing on a medium;
(B) a motor for moving the print head;
(C) a guide portion for guiding the print head along a predetermined direction;
(D) a speed detector that detects the moving speed of the print head;
(E) a determination unit that determines whether the print head is performing a stick-slip operation;
(F) a motor controller that controls the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detector;
When controlling the motor to move the print head at a constant speed below the predetermined speed along the guide portion,
If the determination unit does not determine that the print head is performing a stick-slip operation, the control signal is generated based on the predetermined upper limit value when the amount of change exceeds a predetermined upper limit value. ,
When the determination unit determines that the print head is performing a stick-slip operation, the change amount exceeds the predetermined upper limit value and is based on the change amount regardless of the predetermined upper limit value. A motor control unit for generating the control signal;
A printing apparatus comprising (G).
前記モータ制御部には、前記速度検出部により検出された前記移動速度に基づき前記変化量を算出する演算部が設けられていることを特徴とする請求項1に記載の印刷装置。   The printing apparatus according to claim 1, wherein the motor control unit is provided with a calculation unit that calculates the amount of change based on the movement speed detected by the speed detection unit. 前記モータ制御部には、前記変化量が前記所定の上限値を超えたときに前記変化量として前記所定の上限値を出力するリミッターが設けられていることを特徴とする請求項1または2に記載の印刷装置。   3. The motor control unit is provided with a limiter that outputs the predetermined upper limit value as the change amount when the change amount exceeds the predetermined upper limit value. The printing apparatus as described. 前記モータ制御部は、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された後、前記速度検出部により検出された前記移動速度が所定時間以上、所定の許容範囲内にある場合には、前記変化量が前記所定の上限値を超えたときに前記所定の上限値に基づき前記制御信号を生成することを特徴とする請求項1〜3のいずれか1項に記載の印刷装置。   The motor control unit determines that the moving speed detected by the speed detection unit is within a predetermined allowable range for a predetermined time or more after the determination unit determines that the print head is performing a stick-slip operation. 4. The printing according to claim 1, wherein the control signal is generated based on the predetermined upper limit value when the amount of change exceeds the predetermined upper limit value. 5. apparatus. 前記判定部は、前記速度検出部により検出された前記移動速度に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定することを特徴とする請求項1〜4のいずれか1項に記載の印刷装置。   5. The determination unit according to claim 1, wherein the determination unit determines whether or not the print head is performing a stick-slip operation based on the moving speed detected by the speed detection unit. The printing apparatus as described in. 前記判定部は、前記制御信号に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定することを特徴とする請求項1〜4のいずれか1項に記載の印刷装置。   The printing apparatus according to claim 1, wherein the determination unit determines whether the print head is performing a stick-slip operation based on the control signal. 前記印刷ヘッドの加速度を検出する加速度検出部を備え、
前記判定部は、前記加速度検出部により検出された前記加速度に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定することを特徴とする請求項1〜4のいずれか1項に記載の印刷装置。
An acceleration detection unit for detecting the acceleration of the print head;
5. The determination unit according to claim 1, wherein the determination unit determines whether the print head is performing a stick-slip operation based on the acceleration detected by the acceleration detection unit. The printing apparatus as described.
前記印刷ヘッドの移動開始から移動終了までの間に、前記印刷ヘッドの移動速度が所定の許容下限値以下になった時間を計測するタイマーを備え、
前記判定部は、前記タイマーの計測時間に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定することを特徴とする請求項1〜4のいずれか1項に記載の印刷装置。
A timer for measuring a time during which the moving speed of the print head is equal to or lower than a predetermined allowable lower limit between the start of movement of the print head and the end of movement;
The printing apparatus according to claim 1, wherein the determination unit determines whether the print head is performing a stick-slip operation based on a measurement time of the timer.
前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドを当該印刷ヘッドに設けられた開口部を閉塞するキャッピング装置まで移動させる際であることを特徴とする請求項1〜8のいずれか1項に記載の印刷装置。   When the motor control unit controls the motor to move the print head along the guide unit at a constant speed at a predetermined speed or less, the motor control unit closes the opening provided in the print head. The printing apparatus according to claim 1, wherein the printing apparatus is moved to a capping apparatus. 前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに設けられた光学センサにより、印刷しようとする媒体の幅を検出するために前記印刷ヘッドを前記ガイド部に沿って移動させる際であることを特徴とする請求項1〜9のいずれか1項に記載の印刷装置。   When the motor control unit controls the motor to move the print head along the guide unit at a constant speed at a predetermined speed or less, the motor control unit tries to print by an optical sensor provided in the print head. The printing apparatus according to claim 1, wherein the printing head is moved along the guide portion in order to detect the width of the medium. 前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに搭載されたカートリッジを交換するために前記印刷ヘッドを所定位置まで移動させる際であることを特徴とする請求項1〜10のいずれか1項に記載の印刷装置。   When the motor control unit controls the motor to move the print head along the guide unit at a constant speed below a predetermined speed, the motor control unit prints the print head to replace a cartridge mounted on the print head. The printing apparatus according to claim 1, wherein the head is moved to a predetermined position. 前記印刷ヘッドは、前記媒体に対して印刷を施すために前記媒体に向けてインクを吐出するノズルを備えていることを特徴とする請求項1〜11のいずれか1項に記載の印刷装置。   The printing apparatus according to claim 1, wherein the print head includes a nozzle that ejects ink toward the medium in order to perform printing on the medium. (A)媒体に対して印刷を施す印刷ヘッドと、
(B)前記印刷ヘッドを移動させるためのモータと、
(C)前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
(D)前記印刷ヘッドの移動速度を検出する速度検出部と、
(E)前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定する判定部と、
(F)前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、
前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、
前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
(G)を備え、
(H)前記モータ制御部には、前記速度検出部により検出された前記移動速度に基づき前記変化量を算出する演算部が設けられ、
(I)前記モータ制御部には、前記変化量が前記所定の上限値を超えたときに前記変化量として当該所定の上限値を出力するリミッターが設けられ、
(J)前記モータ制御部は、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された後、前記速度検出部により検出された前記移動速度が所定時間以上、所定の許容範囲内にある場合には、前記変化量が前記所定の上限値を超えたときに前記所定の上限値に基づき前記制御信号を生成し、
(K)前記判定部は、前記速度検出部により検出された前記移動速度に基づき、前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定し、
(L)前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドを当該印刷ヘッドに設けられた開口部を閉塞するキャッピング装置まで移動させる際であり、
(M)前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに設けられた光学センサにより、印刷しようとする媒体の幅を検出するために前記印刷ヘッドを前記ガイド部に沿って移動させる際であり、
(N)前記モータ制御部が前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際とは、前記印刷ヘッドに搭載されたカートリッジを交換するために前記印刷ヘッドを所定位置まで移動させる際であり、
(O)前記印刷ヘッドは、前記媒体に対して印刷を施すために前記媒体に向けてインクを吐出するノズルを備えていることを特徴とする印刷装置。
(A) a print head for printing on a medium;
(B) a motor for moving the print head;
(C) a guide portion for guiding the print head along a predetermined direction;
(D) a speed detector that detects the moving speed of the print head;
(E) a determination unit that determines whether the print head is performing a stick-slip operation;
(F) a motor controller that controls the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detector;
When controlling the motor to move the print head at a constant speed below the predetermined speed along the guide portion,
If the determination unit does not determine that the print head is performing a stick-slip operation, the control signal is generated based on the predetermined upper limit value when the amount of change exceeds a predetermined upper limit value. ,
When the determination unit determines that the print head is performing a stick-slip operation, the change amount exceeds the predetermined upper limit value and is based on the change amount regardless of the predetermined upper limit value. A motor control unit for generating the control signal;
(G)
(H) The motor control unit is provided with a calculation unit that calculates the amount of change based on the moving speed detected by the speed detection unit,
(I) The motor control unit is provided with a limiter that outputs the predetermined upper limit value as the change amount when the change amount exceeds the predetermined upper limit value.
(J) After the motor control unit determines that the print head is performing a stick-slip operation by the determination unit, the movement speed detected by the speed detection unit is greater than or equal to a predetermined time and a predetermined allowable range. The control signal is generated based on the predetermined upper limit value when the amount of change exceeds the predetermined upper limit value,
(K) The determination unit determines whether or not the print head is performing a stick-slip operation based on the moving speed detected by the speed detection unit,
(L) When the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, an opening provided in the print head. It is when moving to a capping device that closes the part,
(M) When the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, printing is performed by an optical sensor provided in the print head. When moving the print head along the guide to detect the width of the medium to be attempted,
(N) When the motor control unit controls the motor to move the print head at a constant speed below the predetermined speed along the guide unit, the cartridge mounted on the print head is replaced. When the print head is moved to a predetermined position.
(O) The printing apparatus, wherein the print head includes a nozzle that discharges ink toward the medium in order to perform printing on the medium.
媒体に対して印刷を施す印刷ヘッドを当該印刷ヘッドを所定の方向に沿って案内するガイド部に沿って所定の速度以下にて定速移動させるべく制御信号を生成してモータを制御するステップと、
前記モータにより移動する前記印刷ヘッドの移動速度を検出するステップと、
前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定するステップと、
検出された前記移動速度の単位時間当たりの変化量に基づき前記制御信号を生成するステップであって、前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するステップと、
を有することを特徴とするスティックスリップ対応方法。
Generating a control signal to control a motor so as to move a print head that performs printing on a medium at a constant speed below a predetermined speed along a guide portion that guides the print head along a predetermined direction; and ,
Detecting a moving speed of the print head moved by the motor;
Determining whether the print head is performing a stick-slip operation;
The step of generating the control signal based on the detected change amount of the moving speed per unit time, and when the print head is not determined to perform a stick-slip operation, the change amount is When the predetermined upper limit value is exceeded, the control signal is generated based on the predetermined upper limit value, and when it is determined that the print head is performing a stick-slip operation, the amount of change is the predetermined upper limit value. Generating the control signal based on the amount of change regardless of the predetermined upper limit value even if exceeding a value;
A method for handling stick-slip, comprising:
媒体に対して印刷を施す印刷ヘッドを当該印刷ヘッドを所定の方向に沿って案内するガイド部に沿って所定の速度以下にて定速移動させるべく制御信号を生成してモータを制御するステップと、
前記モータにより移動する前記印刷ヘッドの移動速度を検出するステップと、
前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定するステップと、
検出された前記移動速度の単位時間当たりの変化量に基づき前記制御信号を生成するステップであって、前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するステップと、
を実行することを特徴とするプログラム。
Generating a control signal to control a motor so as to move a print head that performs printing on a medium at a constant speed below a predetermined speed along a guide portion that guides the print head along a predetermined direction; and ,
Detecting a moving speed of the print head moved by the motor;
Determining whether the print head is performing a stick-slip operation;
The step of generating the control signal based on the detected change amount of the moving speed per unit time, and when the print head is not determined to perform a stick-slip operation, the change amount is When the predetermined upper limit value is exceeded, the control signal is generated based on the predetermined upper limit value, and when it is determined that the print head is performing a stick-slip operation, the amount of change is the predetermined upper limit value. Generating the control signal based on the amount of change regardless of the predetermined upper limit value even if exceeding a value;
A program characterized by executing
コンピュータと、このコンピュータに接続可能な印刷装置とを具備した印刷システムであって、
前記印刷装置は、媒体に対して印刷を施す印刷ヘッドと、
前記印刷ヘッドを移動させるためのモータと、
前記印刷ヘッドを所定の方向に沿って案内するためのガイド部と、
前記印刷ヘッドの移動速度を検出する速度検出部と、
前記印刷ヘッドがスティックスリップ動作を行っているか否かを判定する判定部と、
前記速度検出部により検出された前記移動速度の単位時間当たりの変化量に基づき制御信号を生成して前記モータを制御するモータ制御部であって、前記印刷ヘッドを前記ガイド部に沿って所定の速度以下にて定速移動させるべく前記モータを制御する際に、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定されていない場合には、前記変化量が所定の上限値を超えたときに当該所定の上限値に基づき前記制御信号を生成し、前記判定部により前記印刷ヘッドがスティックスリップ動作を行っていると判定された場合には、前記変化量が前記所定の上限値を超えても前記所定の上限値とは関係なく前記変化量に基づき前記制御信号を生成するモータ制御部と、
を備えていることを特徴とする印刷システム。
A printing system comprising a computer and a printing device connectable to the computer,
The printing apparatus includes: a print head that performs printing on a medium;
A motor for moving the print head;
A guide portion for guiding the print head along a predetermined direction;
A speed detecting unit for detecting a moving speed of the print head;
A determination unit that determines whether or not the print head is performing a stick-slip operation;
A motor control unit for controlling the motor by generating a control signal based on a change amount per unit time of the moving speed detected by the speed detection unit, wherein the print head is moved along a predetermined direction along the guide unit; When the motor is controlled to move at a constant speed below the speed, if the determination unit does not determine that the print head is performing a stick-slip operation, the amount of change exceeds a predetermined upper limit. When the control signal is generated based on the predetermined upper limit value and the determination unit determines that the print head is performing a stick-slip operation, the amount of change is the predetermined upper limit value. A motor control unit that generates the control signal based on the amount of change regardless of the predetermined upper limit value,
A printing system comprising:
JP2005191932A 2005-06-30 2005-06-30 Printing apparatus, stick-slip handling method, program, and printing system Expired - Fee Related JP4529819B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005191932A JP4529819B2 (en) 2005-06-30 2005-06-30 Printing apparatus, stick-slip handling method, program, and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005191932A JP4529819B2 (en) 2005-06-30 2005-06-30 Printing apparatus, stick-slip handling method, program, and printing system

Publications (2)

Publication Number Publication Date
JP2007008012A JP2007008012A (en) 2007-01-18
JP4529819B2 true JP4529819B2 (en) 2010-08-25

Family

ID=37747109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005191932A Expired - Fee Related JP4529819B2 (en) 2005-06-30 2005-06-30 Printing apparatus, stick-slip handling method, program, and printing system

Country Status (1)

Country Link
JP (1) JP4529819B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000201499A (en) * 1998-12-28 2000-07-18 Canon Inc Device and method for recording
JP2003191558A (en) * 2001-12-27 2003-07-09 Seiko Epson Corp Printer and control method for carriage
JP2004181684A (en) * 2002-11-29 2004-07-02 Seiko Epson Corp Carriage speed controller, liquid ejector comprising carriage speed controller, and carriage speed control program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05124289A (en) * 1991-10-31 1993-05-21 Canon Inc Recorder
JPH05172240A (en) * 1991-12-20 1993-07-09 Toyota Motor Corp Judder sensing device of direct coupling clutch for vehicle
JP3254624B2 (en) * 1996-05-31 2002-02-12 株式会社山武 Stick-slip detection method and detection device
JPH10250184A (en) * 1997-03-13 1998-09-22 Canon Inc Recorder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000201499A (en) * 1998-12-28 2000-07-18 Canon Inc Device and method for recording
JP2003191558A (en) * 2001-12-27 2003-07-09 Seiko Epson Corp Printer and control method for carriage
JP2004181684A (en) * 2002-11-29 2004-07-02 Seiko Epson Corp Carriage speed controller, liquid ejector comprising carriage speed controller, and carriage speed control program

Also Published As

Publication number Publication date
JP2007008012A (en) 2007-01-18

Similar Documents

Publication Publication Date Title
US8235610B2 (en) Printing apparatus and conveyance control method
US6747429B2 (en) Print control system, print control method, and recording medium having recorded print control program
US7926895B2 (en) Printing apparatus and conveyance control method
US7222050B2 (en) Apparatus for determining overheating of motor, method for determining overheating of motor, computer-readable medium, motor control apparatus, motor control method, and printing apparatus
JP6241170B2 (en) Image forming apparatus, image forming method, and program
JP4483812B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP2006312286A (en) Printer, method of detecting stick slip, program, and printing system
JP2006281553A (en) Printer, method of detecting stick slip, program, and printing system
JP4529819B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP2007245476A (en) Printer, method for responding to stick slip, program, and printing system
US6967729B1 (en) Control unit and method for controlling motor for use in printer, and storage medium storing control program
JP2007253542A (en) Printer, method for responding to stick slip, program, and printing system
JP4586659B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP4586665B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP4591277B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP2006312285A (en) Printer, method of detecting stick slip, program, and printing system
JP2006281554A (en) Printer, method of detecting stick slip, program and printing system
JP4635771B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP4552543B2 (en) Motor overheat determination device, motor overheat determination method, motor overheat determination program, motor control device, motor control method, and printing apparatus
JP4577037B2 (en) Printing apparatus, medium detection method, and printing system
JP2007245422A (en) Printer, method for responding to stick slip, program, and printing system
JP2007245477A (en) Printer, method for responding to stick slip, program, and printing system
JP2006272762A (en) Printer, printing method, and program
JP4552544B2 (en) Motor overheat determination device, motor overheat determination method, motor overheat determination program, motor control device, motor control method, and printing apparatus
JP2006347028A (en) Method for adjusting liquid attaining position, liquid detecting apparatus, liquid delivering apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080411

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100518

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100531

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130618

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees