JP2010004713A - Motor control apparatus and motor control method - Google Patents
Motor control apparatus and motor control method Download PDFInfo
- Publication number
- JP2010004713A JP2010004713A JP2008163534A JP2008163534A JP2010004713A JP 2010004713 A JP2010004713 A JP 2010004713A JP 2008163534 A JP2008163534 A JP 2008163534A JP 2008163534 A JP2008163534 A JP 2008163534A JP 2010004713 A JP2010004713 A JP 2010004713A
- Authority
- JP
- Japan
- Prior art keywords
- carriage
- motor
- contact
- control
- rotational speed
- 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.)
- Withdrawn
Links
Images
Landscapes
- Character Spaces And Line Spaces In Printers (AREA)
- Control Of Electric Motors In General (AREA)
- Stopping Of Electric Motors (AREA)
Abstract
Description
本発明は、モータ制御装置およびモータ制御方法に関し、特に、往復移動するキャリッジを駆動するためのモータを制御するモータ制御装置およびモータ制御方法に関する。 The present invention relates to a motor control device and a motor control method, and more particularly to a motor control device and a motor control method for controlling a motor for driving a reciprocating carriage.
インクジェットプリンタは、印刷ヘッドとインク容器とを搭載したキャリッジを往復移動(主走査)させるためのキャリッジモータを有している。キャリッジモータによるキャリッジの駆動の際には、キャリッジの基準位置(ホームポジション)を検出するために、キャリッジを移動させてキャリッジの移動経路の端に配置されたフレームに接触させる動作が行われる。すなわち、キャリッジとフレームとが接触したときのキャリッジの位置、または当該位置に基づき設定された位置が、キャリッジの基準位置として検出される。なお、キャリッジとフレームとの接触は「度当たり」とも呼ばれる。例えば、キャリッジをフレーム方向に移動させてキャリッジモータの電流値が所定の閾値以上となったとき、キャリッジとフレームとが度当たりしたと判定される(例えば特許文献1)。 The ink jet printer has a carriage motor for reciprocally moving (main scanning) a carriage on which a print head and an ink container are mounted. When the carriage is driven by the carriage motor, in order to detect the reference position (home position) of the carriage, an operation of moving the carriage and bringing it into contact with a frame disposed at the end of the carriage movement path is performed. That is, the position of the carriage when the carriage and the frame are in contact with each other, or the position set based on the position is detected as the carriage reference position. The contact between the carriage and the frame is also referred to as “per unit”. For example, when the carriage is moved in the frame direction and the current value of the carriage motor exceeds a predetermined threshold value, it is determined that the carriage and the frame have hit each other (for example, Patent Document 1).
キャリッジとフレームとの度当たりの際には、フレームがキャリッジに押されて弾性変形することがある。そのため、度当たりの後にキャリッジを反対方向に移動させる際には、フレームの弾性変形の開放に伴いキャリッジに力が作用し、フィードバック制御によるキャリッジモータの制御を行うとキャリッジの動作が不安定になるおそれがあるという問題があった。 When the carriage and the frame hit each other, the frame may be elastically deformed by being pushed by the carriage. Therefore, when the carriage is moved in the opposite direction after hitting, a force is applied to the carriage as the elastic deformation of the frame is released, and the carriage operation becomes unstable if the carriage motor is controlled by feedback control. There was a problem of fear.
なお、このような問題は、インクジェットプリンタの有する印刷ヘッドとインク容器とを搭載したキャリッジを駆動するためのキャリッジモータを制御する場合に限らず、往復移動するキャリッジを駆動するためのモータを制御する場合に共通の問題であった。 Note that such a problem is not limited to controlling a carriage motor for driving a carriage on which an ink jet printer has a print head and an ink container, but controls a motor for driving a reciprocating carriage. The case was a common problem.
本発明は、上記の課題を解決するためになされたものであり、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することを可能とする技術を提供することを目的とする。 The present invention has been made in order to solve the above-described problems, and can control the operation of the carriage from becoming unstable when controlling a motor for driving a reciprocating carriage. It aims at providing the technology to do.
上記課題の少なくとも一部を解決するために、本発明は、以下の形態または適用例として実現することが可能である。 In order to solve at least a part of the above problems, the present invention can be realized as the following forms or application examples.
[適用例1]往復移動するキャリッジを駆動するためのモータを制御するモータ制御装置であって、
前記モータの回転数に相関する回転数相関値を検出する回転数相関値検出部と、
前記キャリッジと前記キャリッジの移動経路の端に配置された端部部材との接触を検出する接触検出部と、
前記回転数相関値に基づき、前記モータに駆動電圧を供給して、前記モータの制御を実行する制御実行部と、を備え、
前記制御実行部は、前記接触の検出後の所定の期間において、前記回転数相関値に基づく前記モータの制御を実行しない、モータ制御装置。
Application Example 1 A motor control device that controls a motor for driving a carriage that reciprocates,
A rotational speed correlation value detecting unit for detecting a rotational speed correlation value correlated with the rotational speed of the motor;
A contact detection unit that detects contact between the carriage and an end member disposed at an end of a movement path of the carriage;
A control execution unit that supplies a drive voltage to the motor based on the rotation speed correlation value and executes control of the motor;
The motor control device, wherein the control execution unit does not execute control of the motor based on the rotation speed correlation value in a predetermined period after detection of the contact.
このモータ制御装置では、キャリッジとキャリッジの移動経路の端に配置された端部部材との接触の検出後の所定の期間において、回転数相関値に基づくモータの制御が実行されないため、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することができる。 In this motor control device, since the control of the motor based on the rotational speed correlation value is not executed in a predetermined period after the detection of the contact between the carriage and the end member disposed at the end of the carriage movement path, the motor control device reciprocates. When the motor for driving the carriage is controlled, it is possible to suppress the operation of the carriage from becoming unstable.
[適用例2]適用例1に記載のモータ制御装置であって、
前記制御実行部は、前記所定の期間において、前記モータに駆動電圧を供給しない、モータ制御装置。
[Application Example 2] The motor control device according to Application Example 1,
The motor control device, wherein the control execution unit does not supply a drive voltage to the motor during the predetermined period.
このモータ制御装置では、所定の期間においてモータに駆動電圧が供給されないため、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することができる。 In this motor control device, since the drive voltage is not supplied to the motor in a predetermined period, it is possible to prevent the operation of the carriage from becoming unstable when controlling the motor for driving the carriage that reciprocates. .
[適用例3]適用例2に記載のモータ制御装置であって、
前記所定の期間は、前記接触が検出されたときから予め設定された時間が経過するまでの期間である、モータ制御装置。
[Application Example 3] The motor control device according to Application Example 2,
The motor control apparatus, wherein the predetermined period is a period from when the contact is detected until a preset time elapses.
このモータ制御装置では、接触が検出されたときから予め設定された時間が経過するまでの期間においてモータに駆動電圧が供給されないため、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することができる。 In this motor control device, since a drive voltage is not supplied to the motor in a period from when contact is detected until a preset time elapses, when controlling a motor for driving a reciprocating carriage, It is possible to prevent the carriage operation from becoming unstable.
[適用例4]適用例2に記載のモータ制御装置であって、さらに、
前記回転数相関値に基づき前記モータの回転数がゼロであるか否かを判定する判定部を備え、
前記所定の期間は、前記接触が検出されたときから前記モータの回転数がゼロであると判定されるまでの期間である、モータ制御装置。
[Application Example 4] The motor control device according to Application Example 2, further comprising:
A determination unit for determining whether the rotational speed of the motor is zero based on the rotational speed correlation value;
The said predetermined period is a motor control apparatus which is a period until it determines with the rotation speed of the said motor being zero after the said contact is detected.
このモータ制御装置では、接触が検出されたときからモータの回転数がゼロであると判定されるまでの期間においてモータに駆動電圧が供給されないため、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することができる。 In this motor control device, the drive voltage is not supplied to the motor during the period from when contact is detected until the motor speed is determined to be zero, so the motor for driving the reciprocating carriage is controlled. In doing so, it is possible to prevent the operation of the carriage from becoming unstable.
[適用例5]適用例1に記載のモータ制御装置であって、さらに、
前記移動経路上における前記キャリッジの位置を検出する位置検出部を備え、
前記所定の期間は、前記接触が検出されたときから、前記キャリッジが前記移動経路上の前記弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間であり、
前記制御実行部は、前記所定の期間において、前記モータの回転数が予め設定された値であるものと想定して、前記モータの制御を実行する、モータ制御装置。
[Application Example 5] The motor control device according to Application Example 1, further comprising:
A position detector for detecting the position of the carriage on the movement path;
The predetermined period is a period from when the contact is detected to when it is detected that the carriage has moved out of a predetermined range including the position of the elastic member on the movement path,
The control execution unit executes control of the motor on the assumption that the number of rotations of the motor is a preset value in the predetermined period.
このモータ制御装置では、接触が検出されたときからキャリッジが移動経路上の弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間において、モータの回転数が予め設定された値であるものと想定してモータの制御が実行されるため、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することができる。 In this motor control device, the number of rotations of the motor is set in advance during a period from when contact is detected to when it is detected that the carriage has moved out of a predetermined range including the position of the elastic member on the movement path. Since the motor control is executed on the assumption that the value has been set, it is possible to prevent the operation of the carriage from becoming unstable when controlling the motor for driving the reciprocating carriage. .
[適用例6]適用例1に記載のモータ制御装置であって、
前記移動経路上における前記キャリッジの位置を検出する位置検出部を備え、
前記所定の期間は、前記接触が検出されたときから、前記キャリッジが前記移動経路上の前記弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間であり、
前記制御実行部は、前記所定の期間において、前記回転数相関値とは独立して予め設定された駆動電圧を供給して、前記モータの制御を実行する、モータ制御装置。
[Application Example 6] The motor control device according to Application Example 1,
A position detector for detecting the position of the carriage on the movement path;
The predetermined period is a period from when the contact is detected to when it is detected that the carriage has moved out of a predetermined range including the position of the elastic member on the movement path,
In the predetermined period, the control execution unit supplies a drive voltage set in advance independently of the rotation speed correlation value, and executes control of the motor.
このモータ制御装置では、接触が検出されたときからキャリッジが移動経路上の弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間において、回転数相関値とは独立して予め設定された駆動電圧を供給してモータの制御が実行されるため、往復移動するキャリッジを駆動するためのモータを制御する際に、キャリッジの動作が不安定になることを抑制することができる。 In this motor control device, it is independent of the rotational speed correlation value during a period from when contact is detected until it is detected that the carriage has moved out of a predetermined range including the position of the elastic member on the movement path. Since the control of the motor is executed by supplying a preset driving voltage, it is possible to prevent the carriage operation from becoming unstable when controlling the motor for driving the carriage that reciprocates. Can do.
[適用例7]適用例1ないし適用例6のいずれかに記載のモータ制御装置であって、
前記接触検出部は、前記モータの電流値が所定の閾値以上となったときに前記キャリッジと前記端部部材とが接触したと判定することにより、前記接触を検出する、モータ制御装置。
[Application Example 7] The motor control device according to any one of Application Example 1 to Application Example 6,
The contact detection unit detects the contact by determining that the carriage and the end member are in contact with each other when a current value of the motor becomes a predetermined threshold value or more.
このモータ制御装置では、キャリッジとキャリッジの移動経路の端に配置された端部部材との接触を検出することができる。 In this motor control device, it is possible to detect contact between the carriage and the end member disposed at the end of the carriage movement path.
なお、本発明は、種々の態様で実現することが可能であり、例えば、画像処理方法および装置、器官領域検出方法および装置、これらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、そのコンピュータプログラムを含み搬送波内に具現化されたデータ信号、等の形態で実現することができる。 The present invention can be realized in various modes. For example, an image processing method and apparatus, an organ region detection method and apparatus, a computer program for realizing the functions of these methods or apparatuses, and the computer The present invention can be realized in the form of a recording medium recording the program, a data signal including the computer program and embodied in a carrier wave, and the like.
次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1実施例:
A−1.プリンタの構成:
A−2.キャリッジ駆動処理:
B.第2実施例:
C.第3実施例:
D.第4実施例:
E.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
A-1. Printer configuration:
A-2. Carriage drive processing:
B. Second embodiment:
C. Third embodiment:
D. Fourth embodiment:
E. Variation:
A.第1実施例:
A−1.プリンタの構成:
図1は、本発明の第1実施例におけるプリンタ100の外観を示す説明図である。プリンタ100は、いわゆる複合機タイプのプリンタであり、光学的に画像を読み込むスキャナ110と、画像データの記録されたメモリカードMCを挿入するためのメモリカードスロット120と、デジタルカメラ等の機器を接続するUSBインタフェース130と、を有している。プリンタ100は、スキャナ110によって取り込んだ画像や、メモリカードMCから読み込んだ画像、USBインタフェース130を介してデジタルカメラ等の機器から読み込んだ画像等を印刷用紙Pに印刷することができる。また、プリンタ100は、プリンタケーブル等によって接続された図示していないパーソナルコンピュータから入力した画像の印刷も行うことができる。
A. First embodiment:
A-1. Printer configuration:
FIG. 1 is an explanatory diagram showing the appearance of the
図2は、プリンタ100の内部構成を機能的に示す説明図である。図2に示すように、プリンタ100は、印刷用紙Pに印刷を行う機構として、インクカートリッジ212を搭載したキャリッジ210と、キャリッジ210を主走査方向に沿って往復移動するように駆動するキャリッジモータ220と、印刷用紙Pを副走査方向に搬送する紙送りモータ230と、を有している。また、プリンタ100は、プリンタ100の動作を制御する制御ユニット150を有している。制御ユニット150には、図1に示したスキャナ110やメモリカードスロット120、USBインタフェース130が接続されている。
FIG. 2 is an explanatory diagram functionally showing the internal configuration of the
キャリッジ210には、シアン(C)、ライトシアン(Lc)、マゼンタ(M)、ライトマゼンタ(Lm)、イエロ(Y)、ブラック(K)、の各インクが収容された6つのインクカートリッジ212が搭載される。キャリッジ210は、それぞれが6つのインクカートリッジ212の1つに対応した6つのインクヘッド211を有している。インクカートリッジ212からインクヘッド211に供給されたインクは、図示しないピエゾ素子(圧電素子)を駆動することで印刷用紙Pに向けて吐出される。
The
キャリッジ210は、プラテン270の軸方向と平行に設置された摺動軸280に移動自在に保持されている。キャリッジモータ220は、駆動ベルト260を回転させることで、プラテン270の軸方向と平行に(すなわち主走査方向に)キャリッジ210を往復運動させる。プリンタ100は、キャリッジモータ220の回転に伴ってパルス状の信号を発するエンコーダ222を有している。
The
キャリッジ210の移動経路の端には、フレーム290が配置されている。すなわち、フレーム290は、キャリッジ210がその移動経路の一方の端に移動したときにキャリッジ210に接触するような位置に配置されている。フレーム290は、弾性変形可能な材料により形成されている。なお、キャリッジ210とフレーム290との接触は「度当たり」とも呼ばれる。また、フレーム290は、本発明における「端部部材」に相当する。
A
紙送りモータ230は、プラテン270を回転させることで、プラテン270の軸方向と垂直な方向に印刷用紙Pを搬送する。
The
制御ユニット150は、CPU151とROMやRAMといった内部メモリ152とを含んでいる。内部メモリ152には、プリンタ100における印刷動作を制御するためのコンピュータプログラムである印刷制御部153が格納されている。印刷制御部153は、モジュールとして、キャリッジモータ制御部154と、速度検出部155と、接触検出部156と、位置検出部157と、を含んでいる。
The
キャリッジモータ制御部154は、キャリッジモータ220に駆動電圧を供給してキャリッジモータ220の駆動制御を実行する。速度検出部155は、エンコーダ222から出力されるエンコーダ信号のパルス周期に基づき、キャリッジモータ220の回転数(回転速度)を検出する。接触検出部156は、キャリッジモータ220の電流値に基づき、キャリッジ210とフレーム290との接触(度当たり)を検出する。具体的には、接触検出部156は、キャリッジ210がフレーム290の方向に移動するように駆動されているときのキャリッジモータ220の電流値が閾値It以上となったとき、キャリッジ210とフレーム290とが接触した(度当たりした)と判定する。なお、本実施例では、キャリッジ210とフレーム290とが度当たりしたときのキャリッジ210の位置が、キャリッジ210の基準位置(以下「ホームポジション」とも呼ぶ)として設定される。すなわち、接触検出部156は、キャリッジ210とフレーム290との度当たりを検出することにより、キャリッジ210がホームポジションに位置していることを検出している。位置検出部157は、キャリッジ210の移動経路上における位置を検出する。具体的には、位置検出部157は、接触検出部156によりキャリッジ210がホームポジションに位置していることが検出された後のエンコーダ信号のパルス数に基づき、キャリッジ210の位置を検出する。
The carriage
なお、キャリッジモータ制御部154は本発明における「制御実行部」に相当する。また、速度検出部155により検出されるキャリッジモータ220の回転数は本発明における「回転数相関値」に相当し、速度検出部155は本発明における「回転数相関値検出部」に相当する。
The carriage
CPU151は、内部メモリ152から上記各部(各プログラム)を呼び出して実行することにより、上記各部の機能を実現する。
The
A−2.キャリッジ駆動処理:
図3は、第1実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。図4は、第1実施例のキャリッジ駆動処理におけるキャリッジ210とフレーム290との関係を示す説明図である。図5は、第1実施例のキャリッジ駆動処理におけるキャリッジモータ220の電流値とキャリッジ210の速度とを示す説明図である。第1実施例におけるキャリッジ駆動処理は、キャリッジ210にホームポジション検出のための動作を含む所定の動作を実行させるためにキャリッジ210を駆動する処理であり、例えばプリンタ100の電源が投入されると実行開始される。
A-2. Carriage drive processing:
FIG. 3 is a flowchart showing the flow of the carriage driving process in the first embodiment. FIG. 4 is an explanatory diagram showing the relationship between the
ステップS110(図3)では、キャリッジモータ制御部154(図2)が、キャリッジモータ220への通電を開始し、キャリッジ210をフレーム290の方向に移動開始させる(図4(a)参照)。これは、キャリッジ210とフレーム290との度当たりを検出してキャリッジ210のホームポジションを検出・設定するためである。なお、キャリッジモータ制御部154によるキャリッジモータ220の制御は、速度検出部155により検出されるキャリッジモータ220の回転数に基づくフィードバック制御である。
In step S110 (FIG. 3), the carriage motor control unit 154 (FIG. 2) starts energizing the
上述したように、本実施例では、キャリッジ210がフレーム290の方向に移動するように駆動されているときのキャリッジモータ220の電流値が閾値It以上となったとき、キャリッジ210とフレーム290とが度当たりしたと判定するものとしている。そのため、接触検出部156(図2)は、キャリッジモータ220の電流値を監視し、キャリッジモータ220の電流値が閾値It以上であるか否かを判定する(ステップS120)。
As described above, in this embodiment, when the current value of the
本実施例では、フレーム290が弾性変形可能な材料により形成されているため、キャリッジ210が移動してフレーム290に接触した瞬間(図4(b)、図5のt1参照)以降、キャリッジ210に押されてフレーム290は弾性変形する(図4(c)参照)。これに伴い、キャリッジモータ220の電流値は上昇する(図5のt1〜t2参照)。接触検出部156は、キャリッジモータ220の電流値を所定のインターバルで繰り返し確認し、キャリッジモータ220の電流値が閾値It以上であることを検出すると、キャリッジ210とフレーム290とが度当たりしていると判定する(ステップS130)。このとき、キャリッジモータ制御部154は、キャリッジモータ220への通電を停止する(図5のt2参照)。
In this embodiment, since the
キャリッジモータ制御部154は、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後、所定時間Twだけキャリッジモータ220の駆動制御を行わずに待機する(ステップS140)。キャリッジモータ220への通電が停止されると、キャリッジ210によるフレーム290の弾性変形が開放される(図4(d)参照)。図5に示すように、所定時間Twは、フレーム290の弾性変形の開放に要する時間(t2〜t3)以上の時間(t2〜t4)となるように、予め設定されている。
The carriage
所定時間Twの待機後、キャリッジモータ制御部154は、キャリッジ210を反対方向(フレーム290が配置されていない側の端へ向かう方向)に移動させるよう、キャリッジモータ220を駆動制御する(図5のt4〜参照)。これにより、キャリッジ210は反対方向への移動を開始する(図4(e)、(f)参照)。
After waiting for a predetermined time Tw, the carriage
以上説明したように、第1実施例のキャリッジ駆動処理では、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後、所定時間Twだけキャリッジモータ220の駆動制御が行われない。仮にキャリッジ210とフレーム290との度当たりが検出された直後にキャリッジ210を反対方向に移動させるようキャリッジモータ220を駆動制御すると、図5に破線で示すように、フレーム290の弾性変形の開放に伴う力がキャリッジ210に作用し、キャリッジ210の動作が不安定になる。本実施例のキャリッジ駆動処理では、所定時間Twだけキャリッジモータ220の駆動制御が行われないため、フレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210の動作が不安定になることを抑制することができる。
As described above, in the carriage driving process of the first embodiment, after the contact between the
なお本実施例では、所定時間Twは、フレーム290の弾性変形の開放に要する時間以上の時間となるように予め設定されているため、フレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210の動作が不安定になることを確実に抑制することができる。
In the present embodiment, the predetermined time Tw is set in advance so as to be equal to or longer than the time required to release the elastic deformation of the
B.第2実施例:
図6は、第2実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。第2実施例におけるキャリッジ駆動処理は、ステップS210以降ステップS250までの処理内容が、図3に示した第1実施例におけるキャリッジ駆動処理とは異なっている。第2実施例では、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後(ステップS130)、キャリッジモータ220の回転が止まったこと(回転数がゼロになったこと)を検出し、その後、キャリッジ210の反対方向への移動が開始される。
B. Second embodiment:
FIG. 6 is a flowchart showing the flow of the carriage driving process in the second embodiment. The carriage driving process in the second embodiment differs from the carriage driving process in the first embodiment shown in FIG. 3 in the processing contents from step S210 to step S250. In the second embodiment, after the contact between the
図6に示したフローチャートにおけるステップS110からS130までの処理内容は、図3に示した第1実施例と同じである。ステップS210では、速度検出部155(図2)が、エンコーダ222から出力されるエンコーダ信号をサンプリングする。図7は、エンコーダ信号の一例を示す説明図である。本実施例では、エンコーダ信号は、互いに半パルス位相がずれたA相とB相との2つのパルス信号を含んでいる。A相およびB相のパルス信号のパルス周期に基づき、キャリッジモータ220の回転数が検出される。また、A相およびB相のパルス信号の位相のずれの方向に基づき、キャリッジモータ220の回転の方向(すなわちキャリッジ210の移動方向)が検出される。図7には、速度検出部155によるエンコーダ信号のサンプリングタイミングを矢印で示している。
The processing contents in steps S110 to S130 in the flowchart shown in FIG. 6 are the same as those in the first embodiment shown in FIG. In step S <b> 210, the speed detector 155 (FIG. 2) samples the encoder signal output from the
ステップS220では、速度検出部155が、前回のサンプリングタイミングからエンコーダ信号に変化があったか否かを判定する。ステップS220において変化があったと判定された場合には、N=0と設定され(ステップS230)、エンコーダ信号のサンプリング(ステップS210)が再度実行される。なお、最初のサンプリングタイミングでは、エンコーダ信号に変化があったと判定されるものとする。
In step S220, the
ステップS220において変化がなかったと判定された場合には、N=N+1と設定され(ステップS240)、Nが所定の閾値Ntに等しいか否かが判定される(ステップS250)。ここで、閾値Ntは、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後のフレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210が移動するときの速度に基づき、予め設定されている。すなわち、閾値Ntは、このようなキャリッジ210の移動の際にNが取り得る値よりも大きな値に設定されている。従って、フレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210が移動している間は、ステップS250においてNが閾値Ntに等しくないと判定され、エンコーダ信号のサンプリング(ステップS210)が再度実行されることとなる。
If it is determined in step S220 that there is no change, N = N + 1 is set (step S240), and it is determined whether N is equal to a predetermined threshold value Nt (step S250). Here, the threshold value Nt is determined by the action of the force accompanying the release of the elastic deformation of the
一方、フレーム290の弾性変形の開放が完了しキャリッジ210の移動が停止した場合には、図7に示すように、N=Ntとなるまで繰り返しステップS220において変化がなかったと判定される。ステップS250においてNが閾値Ntに等しいと判定されると、キャリッジモータ制御部154は、キャリッジ210を反対方向(フレーム290が配置されていない側の端へ向かう方向)に移動させるよう、キャリッジモータ220を駆動制御する(ステップS150)。
On the other hand, when the release of the elastic deformation of the
以上説明したように、第2実施例のキャリッジ駆動処理では、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後、キャリッジモータ220の回転が止まったこと(回転数がゼロになったこと)が検出されるまで、すなわちキャリッジ210の移動が停止するまでは、キャリッジモータ220の駆動制御が行われない。そのため、第2実施例のキャリッジ駆動処理では、フレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210の動作が不安定になることを抑制することができる。第2実施例のキャリッジ駆動処理では、キャリッジ210の移動の停止を検出するため、駆動時間をより短くすることができ、キャリッジ駆動処理の効率化を図ることができる。
As described above, in the carriage driving process of the second embodiment, the contact between the
C.第3実施例:
図8は、第3実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。図9は、第3実施例のキャリッジ駆動処理におけるキャリッジモータ220の電流値とキャリッジ210の速度とを示す説明図である。第3実施例におけるキャリッジ駆動処理は、ステップS310以降の処理内容が、図3に示した第1実施例におけるキャリッジ駆動処理とは異なっている。第3実施例では、キャリッジ210の移動経路上におけるフレーム290の位置を含む所定の範囲がマスク区間として設定され、キャリッジ210がマスク区間内に位置しているときは、速度検出部155により検出されるキャリッジモータ220の回転数に基づくキャリッジモータ220の制御は実行されない。
C. Third embodiment:
FIG. 8 is a flowchart showing the flow of the carriage driving process in the third embodiment. FIG. 9 is an explanatory diagram showing the current value of the
図8に示したフローチャートにおけるステップS110からS130までの処理内容は、図3に示した第1実施例と同じである。ステップS310では、キャリッジモータ制御部154が、キャリッジ210を反対方向(フレーム290が配置されていない側の端へ向かう方向)に移動させるよう、キャリッジモータ220を駆動制御する(図9のt2〜参照)。ただし、このときの駆動制御は、キャリッジモータ220の回転数が、エンコーダ信号に基づき算出される回転数ではなく、予め設定された固定値の回転数であるものとして実行される。
The processing contents in steps S110 to S130 in the flowchart shown in FIG. 8 are the same as those in the first embodiment shown in FIG. In step S310, the carriage
キャリッジ210を反対方向に移動させるようなキャリッジモータ220の駆動制御が開始されると、位置検出部157(図2)は、キャリッジ210がマスク区間内に位置するか否かを判定する。ここで、マスク区間は、フレーム290が変形したとしてもキャリッジ210とフレーム290とが接触し得ない区間として予め設定されている。すなわち、図9に示すように、マスク区間は、フレーム290の弾性変形の開放中にキャリッジ210が位置し得る区間を包含するような区間に設定されている。
When the drive control of the
キャリッジ210がマスク区間内に位置すると判定されている間は、キャリッジモータ220の回転数が予め設定された固定値の回転数であるものとしたキャリッジモータ220の駆動制御が継続される。一方、キャリッジ210がマスク区間の外に移動したと判定されると、キャリッジモータ制御部154は、キャリッジモータ220の回転数がエンコーダ信号に基づき算出される回転数であるとして、通常のフィードバック制御によるキャリッジモータ220の駆動制御を開始する(図9のt5〜参照)。
While it is determined that the
以上説明したように、第3実施例のキャリッジ駆動処理では、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後、直ちに、キャリッジ210を反対方向に移動させるようなキャリッジモータ220の駆動制御が開始される。ただし、キャリッジ210がマスク区間内に位置する間は、キャリッジモータ220の駆動制御は、キャリッジモータ220の回転数が、エンコーダ信号に基づき算出される回転数ではなく、予め設定された固定値の回転数であるものとして実行される。そのため、フレーム290の弾性変形の開放に伴う力がキャリッジ210に作用し、キャリッジ210の速度が変化しても、すなわちキャリッジモータ220の回転数が変化しても、当該変化はキャリッジモータ220の駆動制御に影響を与えない。そのため、第3実施例のキャリッジ駆動処理では、フレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210の動作が不安定になることを抑制することができる。また、第3実施例のキャリッジ駆動処理では、キャリッジ210とフレーム290との度当たりが検出された直後にキャリッジ210を反対方向に移動させるようなキャリッジモータ220の駆動制御が開始されるため、駆動時間をより短くすることができ、キャリッジ駆動処理の効率化を図ることができる。
As described above, in the carriage driving process of the third embodiment, the
D.第4実施例:
図10は、第4実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。第3実施例におけるキャリッジ駆動処理は、ステップS410の処理内容が、図8に示した第3実施例におけるキャリッジ駆動処理とは異なっている。
D. Fourth embodiment:
FIG. 10 is a flowchart showing the flow of the carriage driving process in the fourth embodiment. The carriage driving process in the third embodiment is different from the carriage driving process in the third embodiment shown in FIG.
第4実施例のキャリッジ駆動処理におけるステップS410では、第3実施例におけるステップS310と同様に、キャリッジモータ制御部154が、キャリッジ210を反対方向(フレーム290が配置されていない側の端へ向かう方向)に移動させるよう、キャリッジモータ220を駆動制御する。ただし、このときの駆動制御において、キャリッジモータ220に供給される駆動電圧は、キャリッジモータ220の回転数とは独立して設定される。具体的には、キャリッジモータ220に供給される駆動電圧は、デューティ比が予め設定された一定の割合で増加するように設定される。
In step S410 in the carriage driving process of the fourth embodiment, as in step S310 in the third embodiment, the carriage
その後は、第3実施例と同様に、キャリッジ210がマスク区間内に位置すると判定されている間は、このようなキャリッジモータ220の駆動制御が継続される。その後、キャリッジ210がマスク区間の外に移動したと判定されると、通常のフィードバック制御によるキャリッジモータ220の駆動制御が開始される(ステップS330)。
Thereafter, as in the third embodiment, while it is determined that the
以上説明したように、第4実施例のキャリッジ駆動処理では、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後、直ちに、キャリッジ210を反対方向に移動させるようなキャリッジモータ220の駆動制御が開始される。ただし、キャリッジ210がマスク区間内に位置する間は、キャリッジモータ220に供給される駆動電圧は、キャリッジモータ220の回転数とは独立して設定される。そのため、フレーム290の弾性変形の開放に伴う力がキャリッジ210に作用し、キャリッジ210の速度が変化しても、すなわちキャリッジモータ220の回転数が変化しても、当該変化はキャリッジモータ220の駆動制御に影響を与えない。そのため、第4実施例のキャリッジ駆動処理では、フレーム290の弾性変形の開放に伴う力の作用によってキャリッジ210の動作が不安定になることを抑制することができる。また、第4実施例のキャリッジ駆動処理では、キャリッジ210とフレーム290との度当たりが検出された直後にキャリッジ210を反対方向に移動させるようなキャリッジモータ220の駆動制御が開始されるため、駆動時間をより短くすることができ、キャリッジ駆動処理の効率化を図ることができる。
As described above, in the carriage driving process of the fourth embodiment, the
E.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
E. Variation:
The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.
E1.変形例1:
上記各実施例では、プリンタ100のキャリッジ210を駆動するためのキャリッジモータ220を制御するキャリッジ駆動処理を説明したが、本発明は、プリンタのキャリッジに限らず、往復移動するキャリッジを駆動するためのモータを制御する場合一般に適用することができる。
E1. Modification 1:
In each of the above-described embodiments, the carriage driving process for controlling the
E2.変形例2:
上記各実施例では、通常時のキャリッジモータ220のフィードバック制御は、キャリッジモータ220の回転数に基づき実行されるものとして説明したが、フィードバック制御は、キャリッジモータ220の回転数に相関する相関値であれば、他の値(例えばキャリッジ210の速度)に基づき実行されるものとしてもよい。
E2. Modification 2:
In each of the embodiments described above, the feedback control of the
E3.変形例3:
上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしてもよい。
E3. Modification 3:
In each of the above embodiments, a part of the configuration realized by hardware may be replaced by software, and conversely, a part of the configuration realized by software may be replaced by hardware. .
また、本発明の機能の一部または全部がソフトウェアで実現される場合には、そのソフトウェア(コンピュータプログラム)は、コンピュータ読み取り可能な記録媒体に格納された形で提供することができる。この発明において、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスクやCD−ROMのような携帯型の記録媒体に限らず、各種のRAMやROM等のコンピュータ内の内部記憶装置や、ハードディスク等のコンピュータに固定されている外部記憶装置も含んでいる。 In addition, when part or all of the functions of the present invention are realized by software, the software (computer program) can be provided in a form stored in a computer-readable recording medium. In the present invention, the “computer-readable recording medium” is not limited to a portable recording medium such as a flexible disk or a CD-ROM, but an internal storage device in a computer such as various RAMs and ROMs, a hard disk, and the like. An external storage device fixed to the computer is also included.
100…プリンタ
110…スキャナ
120…メモリカードスロット
150…制御ユニット
151…CPU
152…内部メモリ
153…印刷制御部
154…キャリッジモータ制御部
155…速度検出部
156…接触検出部
157…位置検出部
210…キャリッジ
211…インクヘッド
212…インクカートリッジ
220…キャリッジモータ
222…エンコーダ
230…モータ
260…駆動ベルト
270…プラテン
280…摺動軸
290…フレーム
DESCRIPTION OF
DESCRIPTION OF
Claims (8)
前記モータの回転数に相関する回転数相関値を検出する回転数相関値検出部と、
前記キャリッジと前記キャリッジの移動経路の端に配置された端部部材との接触を検出する接触検出部と、
前記回転数相関値に基づき、前記モータに駆動電圧を供給して、前記モータの制御を実行する制御実行部と、を備え、
前記制御実行部は、前記接触の検出後の所定の期間において、前記回転数相関値に基づく前記モータの制御を実行しない、モータ制御装置。 A motor control device for controlling a motor for driving a carriage that reciprocates,
A rotational speed correlation value detecting unit for detecting a rotational speed correlation value correlated with the rotational speed of the motor;
A contact detection unit that detects contact between the carriage and an end member disposed at an end of a movement path of the carriage;
A control execution unit that supplies a drive voltage to the motor based on the rotation speed correlation value and executes control of the motor;
The motor control device, wherein the control execution unit does not execute control of the motor based on the rotation speed correlation value in a predetermined period after detection of the contact.
前記制御実行部は、前記所定の期間において、前記モータに駆動電圧を供給しない、モータ制御装置。 The motor control device according to claim 1,
The motor control device, wherein the control execution unit does not supply a drive voltage to the motor during the predetermined period.
前記所定の期間は、前記接触が検出されたときから予め設定された時間が経過するまでの期間である、モータ制御装置。 The motor control device according to claim 2,
The motor control apparatus, wherein the predetermined period is a period from when the contact is detected until a preset time elapses.
前記回転数相関値に基づき前記モータの回転数がゼロであるか否かを判定する判定部を備え、
前記所定の期間は、前記接触が検出されたときから前記モータの回転数がゼロであると判定されるまでの期間である、モータ制御装置。 The motor control device according to claim 2, further comprising:
A determination unit for determining whether the rotational speed of the motor is zero based on the rotational speed correlation value;
The said predetermined period is a motor control apparatus which is a period until it determines with the rotation speed of the said motor being zero after the said contact is detected.
前記移動経路上における前記キャリッジの位置を検出する位置検出部を備え、
前記所定の期間は、前記接触が検出されたときから、前記キャリッジが前記移動経路上の前記弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間であり、
前記制御実行部は、前記所定の期間において、前記モータの回転数が予め設定された値であるものと想定して、前記モータの制御を実行する、モータ制御装置。 The motor control device according to claim 1, further comprising:
A position detector for detecting the position of the carriage on the movement path;
The predetermined period is a period from when the contact is detected to when it is detected that the carriage has moved out of a predetermined range including the position of the elastic member on the movement path,
The control execution unit executes control of the motor on the assumption that the number of rotations of the motor is a preset value in the predetermined period.
前記移動経路上における前記キャリッジの位置を検出する位置検出部を備え、
前記所定の期間は、前記接触が検出されたときから、前記キャリッジが前記移動経路上の前記弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間であり、
前記制御実行部は、前記所定の期間において、前記回転数相関値とは独立して予め設定された駆動電圧を供給して、前記モータの制御を実行する、モータ制御装置。 The motor control device according to claim 1,
A position detector for detecting the position of the carriage on the movement path;
The predetermined period is a period from when the contact is detected to when it is detected that the carriage has moved out of a predetermined range including the position of the elastic member on the movement path,
In the predetermined period, the control execution unit supplies a drive voltage set in advance independently of the rotation speed correlation value, and executes control of the motor.
前記接触検出部は、前記モータの電流値が所定の閾値以上となったときに前記キャリッジと前記端部部材とが接触したと判定することにより、前記接触を検出する、モータ制御装置。 The motor control device according to any one of claims 1 to 6,
The contact detection unit detects the contact by determining that the carriage and the end member are in contact with each other when a current value of the motor becomes a predetermined threshold value or more.
(a)前記モータの回転数に相関する回転数相関値を検出する工程と、
(b)前記キャリッジと前記キャリッジの移動経路の端に配置された端部部材との接触を検出する工程と、
(c)前記回転数相関値に基づき、前記モータに駆動電圧を供給して、前記モータの制御を実行する工程と、を備え、
前記モータの制御を実行する工程(c)は、前記接触の検出後の所定の期間において、前記回転数相関値に基づく前記モータの制御を実行しない工程である、モータ制御方法。 A motor control method for controlling a motor for driving a reciprocating carriage,
(A) detecting a rotational speed correlation value correlated with the rotational speed of the motor;
(B) detecting contact between the carriage and an end member disposed at an end of a movement path of the carriage;
(C) supplying a drive voltage to the motor based on the rotation speed correlation value, and executing control of the motor,
The step (c) of executing the control of the motor is a step of not executing the control of the motor based on the rotation speed correlation value in a predetermined period after the detection of the contact.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008163534A JP2010004713A (en) | 2008-06-23 | 2008-06-23 | Motor control apparatus and motor control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008163534A JP2010004713A (en) | 2008-06-23 | 2008-06-23 | Motor control apparatus and motor control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010004713A true JP2010004713A (en) | 2010-01-07 |
JP2010004713A5 JP2010004713A5 (en) | 2011-05-19 |
Family
ID=41585931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008163534A Withdrawn JP2010004713A (en) | 2008-06-23 | 2008-06-23 | Motor control apparatus and motor control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010004713A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013111842A (en) * | 2011-11-29 | 2013-06-10 | Canon Inc | Image processing apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003025672A (en) * | 2001-07-17 | 2003-01-29 | Seiko Epson Corp | Serial printer and method of home-seeking |
JP2003186544A (en) * | 2001-12-20 | 2003-07-04 | Brother Ind Ltd | Speed control method and speed control device |
JP2004025549A (en) * | 2002-06-24 | 2004-01-29 | Canon Inc | Controlling equipment and control process of motor |
-
2008
- 2008-06-23 JP JP2008163534A patent/JP2010004713A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003025672A (en) * | 2001-07-17 | 2003-01-29 | Seiko Epson Corp | Serial printer and method of home-seeking |
JP2003186544A (en) * | 2001-12-20 | 2003-07-04 | Brother Ind Ltd | Speed control method and speed control device |
JP2004025549A (en) * | 2002-06-24 | 2004-01-29 | Canon Inc | Controlling equipment and control process of motor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013111842A (en) * | 2011-11-29 | 2013-06-10 | Canon Inc | Image processing apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2007160756A (en) | Method of initializing carriage position of recording device, recording device, and control program therefor | |
US8480198B2 (en) | Image forming apparatus, control method therefor, and medium storing program | |
EP2995457B1 (en) | Ink jet recording apparatus and ink jet recording method | |
JP2008080750A (en) | Printer | |
JP2007055030A (en) | Recording apparatus and method for controlling recording apparatus | |
JP2010004713A (en) | Motor control apparatus and motor control method | |
JP5921141B2 (en) | Recording device | |
JP2005178334A (en) | Inkjet recording device | |
JP2004025549A (en) | Controlling equipment and control process of motor | |
JP2009034824A (en) | Recording device and its control method | |
JP2006272770A (en) | Recording device and method of controlling recording device | |
JP5987659B2 (en) | Image forming apparatus and image forming apparatus control method | |
JP2009226691A (en) | Printer and printing method | |
JP2006352978A (en) | Motor driver circuit, control method of circuit, electronic apparatus, and motor lock detection method of electronic apparatus | |
JP4274136B2 (en) | Printing apparatus and printing method | |
JP3567579B2 (en) | Recording device | |
JP2005349604A (en) | Inkjet recorder and inkjet recording method | |
JP2005241458A (en) | Recording device and method for determining degradation state of encoder | |
JP2005074945A (en) | Recording device and method | |
JP4670966B2 (en) | Printing apparatus and printing method | |
JP2008074024A (en) | Printer | |
JP2006103094A (en) | Inkjet recorder | |
JP2018022960A (en) | Recording device, control method thereof, and program | |
JP2006159695A (en) | Recording device and recording control method | |
JP2009119708A (en) | Recording device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110401 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110401 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121016 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121017 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20121029 |