JP2010004713A - Motor control apparatus and motor control method - Google Patents

Motor control apparatus and motor control method Download PDF

Info

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
Application number
JP2008163534A
Other languages
Japanese (ja)
Other versions
JP2010004713A5 (en
Inventor
Tomoyoshi Kakegawa
智義 掛川
Yoshiaki Shibazaki
佳秋 柴崎
Kazuhisa Nakamura
和久 中村
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 JP2008163534A priority Critical patent/JP2010004713A/en
Publication of JP2010004713A publication Critical patent/JP2010004713A/en
Publication of JP2010004713A5 publication Critical patent/JP2010004713A5/ja
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Control Of Electric Motors In General (AREA)
  • Stopping Of Electric Motors (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To suppress operation of a carriage from going into an unstable state, when controlling a motor that drives the carriage which is moving reciprocatively. <P>SOLUTION: A motor control apparatus for controlling a motor for driving a carriage that moves reciprocally includes a correlation value detecting part for detecting the rotational speed correlative value that correlates with the rotational speed of the motor; a contact detecting part for detecting a contact between the carriage and an end part member arranged at the end of a movement route of the carriage; and a control execution part which controls the motor, by supplying a drive voltage to the motor based on the rotational speed correlation value. The control execution part does not control the motor, based on the rotational speed correlative value during a predetermined period, after detection of contact. <P>COPYRIGHT: (C)2010,JPO&INPIT

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).

特開2006−248104号公報JP 2006-248104 A

キャリッジとフレームとの度当たりの際には、フレームがキャリッジに押されて弾性変形することがある。そのため、度当たりの後にキャリッジを反対方向に移動させる際には、フレームの弾性変形の開放に伴いキャリッジに力が作用し、フィードバック制御によるキャリッジモータの制御を行うとキャリッジの動作が不安定になるおそれがあるという問題があった。   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 printer 100 according to the first embodiment of the present invention. The printer 100 is a so-called multifunction printer, and connects a scanner 110 for optically reading an image, a memory card slot 120 for inserting a memory card MC on which image data is recorded, and a device such as a digital camera. A USB interface 130. The printer 100 can print on the printing paper P an image captured by the scanner 110, an image read from the memory card MC, an image read from a device such as a digital camera via the USB interface 130, and the like. The printer 100 can also print an image input from a personal computer (not shown) connected by a printer cable or the like.

図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 printer 100. As shown in FIG. 2, the printer 100 has a carriage 210 on which an ink cartridge 212 is mounted as a mechanism for printing on the printing paper P, and a carriage motor 220 that drives the carriage 210 to reciprocate in the main scanning direction. And a paper feed motor 230 that transports the printing paper P in the sub-scanning direction. The printer 100 also includes a control unit 150 that controls the operation of the printer 100. The control unit 150 is connected to the scanner 110, the memory card slot 120, and the USB interface 130 shown in FIG.

キャリッジ210には、シアン(C)、ライトシアン(Lc)、マゼンタ(M)、ライトマゼンタ(Lm)、イエロ(Y)、ブラック(K)、の各インクが収容された6つのインクカートリッジ212が搭載される。キャリッジ210は、それぞれが6つのインクカートリッジ212の1つに対応した6つのインクヘッド211を有している。インクカートリッジ212からインクヘッド211に供給されたインクは、図示しないピエゾ素子(圧電素子)を駆動することで印刷用紙Pに向けて吐出される。   The carriage 210 includes six ink cartridges 212 that contain cyan (C), light cyan (Lc), magenta (M), light magenta (Lm), yellow (Y), and black (K) inks. Is done. The carriage 210 has six ink heads 211 each corresponding to one of the six ink cartridges 212. The ink supplied from the ink cartridge 212 to the ink head 211 is ejected toward the printing paper P by driving a piezoelectric element (piezoelectric element) (not shown).

キャリッジ210は、プラテン270の軸方向と平行に設置された摺動軸280に移動自在に保持されている。キャリッジモータ220は、駆動ベルト260を回転させることで、プラテン270の軸方向と平行に(すなわち主走査方向に)キャリッジ210を往復運動させる。プリンタ100は、キャリッジモータ220の回転に伴ってパルス状の信号を発するエンコーダ222を有している。   The carriage 210 is movably held by a sliding shaft 280 installed in parallel with the axial direction of the platen 270. The carriage motor 220 reciprocates the carriage 210 in parallel with the axial direction of the platen 270 (that is, in the main scanning direction) by rotating the drive belt 260. The printer 100 includes an encoder 222 that emits a pulsed signal as the carriage motor 220 rotates.

キャリッジ210の移動経路の端には、フレーム290が配置されている。すなわち、フレーム290は、キャリッジ210がその移動経路の一方の端に移動したときにキャリッジ210に接触するような位置に配置されている。フレーム290は、弾性変形可能な材料により形成されている。なお、キャリッジ210とフレーム290との接触は「度当たり」とも呼ばれる。また、フレーム290は、本発明における「端部部材」に相当する。   A frame 290 is disposed at the end of the movement path of the carriage 210. That is, the frame 290 is disposed at a position where it comes into contact with the carriage 210 when the carriage 210 moves to one end of the movement path. The frame 290 is formed of an elastically deformable material. The contact between the carriage 210 and the frame 290 is also referred to as “per unit”. The frame 290 corresponds to an “end member” in the present invention.

紙送りモータ230は、プラテン270を回転させることで、プラテン270の軸方向と垂直な方向に印刷用紙Pを搬送する。   The paper feed motor 230 rotates the platen 270 to convey the printing paper P in a direction perpendicular to the axial direction of the platen 270.

制御ユニット150は、CPU151とROMやRAMといった内部メモリ152とを含んでいる。内部メモリ152には、プリンタ100における印刷動作を制御するためのコンピュータプログラムである印刷制御部153が格納されている。印刷制御部153は、モジュールとして、キャリッジモータ制御部154と、速度検出部155と、接触検出部156と、位置検出部157と、を含んでいる。   The control unit 150 includes a CPU 151 and an internal memory 152 such as a ROM or a RAM. The internal memory 152 stores a print control unit 153 that is a computer program for controlling a printing operation in the printer 100. The print control unit 153 includes a carriage motor control unit 154, a speed detection unit 155, a contact detection unit 156, and a position detection unit 157 as modules.

キャリッジモータ制御部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 motor control unit 154 supplies drive voltage to the carriage motor 220 to execute drive control of the carriage motor 220. The speed detector 155 detects the rotation speed (rotation speed) of the carriage motor 220 based on the pulse period of the encoder signal output from the encoder 222. The contact detection unit 156 detects contact (per degree) between the carriage 210 and the frame 290 based on the current value of the carriage motor 220. Specifically, the contact detection unit 156 determines that the carriage 210, the frame 290, and the current when the current value of the carriage motor 220 when the carriage 210 is driven to move in the direction of the frame 290 is equal to or greater than the threshold value It. Is determined to have touched (per degree). In this embodiment, the position of the carriage 210 when the carriage 210 and the frame 290 meet each other is set as a reference position (hereinafter also referred to as “home position”) of the carriage 210. That is, the contact detection unit 156 detects that the carriage 210 is in the home position by detecting the contact between the carriage 210 and the frame 290. The position detection unit 157 detects the position of the carriage 210 on the movement path. Specifically, the position detection unit 157 detects the position of the carriage 210 based on the number of pulses of the encoder signal after the contact detection unit 156 detects that the carriage 210 is located at the home position.

なお、キャリッジモータ制御部154は本発明における「制御実行部」に相当する。また、速度検出部155により検出されるキャリッジモータ220の回転数は本発明における「回転数相関値」に相当し、速度検出部155は本発明における「回転数相関値検出部」に相当する。   The carriage motor control unit 154 corresponds to a “control execution unit” in the present invention. The rotation speed of the carriage motor 220 detected by the speed detection unit 155 corresponds to the “rotation speed correlation value” in the present invention, and the speed detection section 155 corresponds to the “rotation speed correlation value detection unit” in the present invention.

CPU151は、内部メモリ152から上記各部(各プログラム)を呼び出して実行することにより、上記各部の機能を実現する。   The CPU 151 implements the functions of the respective units by calling and executing the respective units (programs) from the internal memory 152.

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 carriage 210 and the frame 290 in the carriage driving process of the first embodiment. FIG. 5 is an explanatory diagram showing the current value of the carriage motor 220 and the speed of the carriage 210 in the carriage driving process of the first embodiment. The carriage driving process in the first embodiment is a process for driving the carriage 210 to cause the carriage 210 to perform a predetermined operation including an operation for detecting the home position. For example, the carriage driving process is executed when the printer 100 is turned on. Be started.

ステップ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 carriage motor 220 and starts moving the carriage 210 in the direction of the frame 290 (see FIG. 4A). This is for detecting and setting the home position of the carriage 210 by detecting the contact between the carriage 210 and the frame 290. Note that the control of the carriage motor 220 by the carriage motor control unit 154 is feedback control based on the number of rotations of the carriage motor 220 detected by the speed detection unit 155.

上述したように、本実施例では、キャリッジ210がフレーム290の方向に移動するように駆動されているときのキャリッジモータ220の電流値が閾値It以上となったとき、キャリッジ210とフレーム290とが度当たりしたと判定するものとしている。そのため、接触検出部156(図2)は、キャリッジモータ220の電流値を監視し、キャリッジモータ220の電流値が閾値It以上であるか否かを判定する(ステップS120)。   As described above, in this embodiment, when the current value of the carriage motor 220 when the carriage 210 is driven to move in the direction of the frame 290 becomes equal to or greater than the threshold value It, the carriage 210 and the frame 290 are It is assumed that it has been hit. Therefore, the contact detection unit 156 (FIG. 2) monitors the current value of the carriage motor 220 and determines whether or not the current value of the carriage motor 220 is equal to or greater than the threshold value It (step S120).

本実施例では、フレーム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 frame 290 is formed of an elastically deformable material, after the moment when the carriage 210 moves and contacts the frame 290 (see t1 in FIG. 4B and FIG. 5), the carriage 210 When pressed, the frame 290 is elastically deformed (see FIG. 4C). Along with this, the current value of the carriage motor 220 increases (see t1 to t2 in FIG. 5). When the contact detection unit 156 repeatedly checks the current value of the carriage motor 220 at predetermined intervals and detects that the current value of the carriage motor 220 is equal to or greater than the threshold value It, the carriage 210 and the frame 290 are hit. (Step S130). At this time, the carriage motor control unit 154 stops energization to the carriage motor 220 (see t2 in FIG. 5).

キャリッジモータ制御部154は、キャリッジ210とフレーム290との度当たりが検出されてキャリッジモータ220への通電が停止された後、所定時間Twだけキャリッジモータ220の駆動制御を行わずに待機する(ステップS140)。キャリッジモータ220への通電が停止されると、キャリッジ210によるフレーム290の弾性変形が開放される(図4(d)参照)。図5に示すように、所定時間Twは、フレーム290の弾性変形の開放に要する時間(t2〜t3)以上の時間(t2〜t4)となるように、予め設定されている。   The carriage motor control unit 154 waits for a predetermined time Tw without performing drive control of the carriage motor 220 after the contact between the carriage 210 and the frame 290 is detected and power supply to the carriage motor 220 is stopped (step Sw). S140). When the energization to the carriage motor 220 is stopped, the elastic deformation of the frame 290 by the carriage 210 is released (see FIG. 4D). As shown in FIG. 5, the predetermined time Tw is set in advance so as to be a time (t2 to t4) that is equal to or longer than the time (t2 to t3) required to release the elastic deformation of the frame 290.

所定時間Twの待機後、キャリッジモータ制御部154は、キャリッジ210を反対方向(フレーム290が配置されていない側の端へ向かう方向)に移動させるよう、キャリッジモータ220を駆動制御する(図5のt4〜参照)。これにより、キャリッジ210は反対方向への移動を開始する(図4(e)、(f)参照)。   After waiting for a predetermined time Tw, the carriage motor control unit 154 drives and controls the carriage motor 220 so as to move the carriage 210 in the opposite direction (the direction toward the end where the frame 290 is not disposed) (see FIG. 5). t4 ~). As a result, the carriage 210 starts to move in the opposite direction (see FIGS. 4E and 4F).

以上説明したように、第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 carriage 210 and the frame 290 is detected and the energization of the carriage motor 220 is stopped, the carriage motor 220 is driven for a predetermined time Tw. Control is not performed. If the carriage motor 220 is driven and controlled to move the carriage 210 in the opposite direction immediately after the contact between the carriage 210 and the frame 290 is detected, the elastic deformation of the frame 290 is released as shown by a broken line in FIG. The accompanying force acts on the carriage 210, and the operation of the carriage 210 becomes unstable. In the carriage driving process of this embodiment, since the drive control of the carriage motor 220 is not performed for a predetermined time Tw, the operation of the carriage 210 is prevented from becoming unstable due to the action of the force accompanying the release of the elastic deformation of the frame 290. can do.

なお本実施例では、所定時間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 frame 290. Therefore, the carriage 210 is caused by the action of the force accompanying the release of the elastic deformation of the frame 290. Can be reliably prevented from becoming unstable.

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 carriage 210 and the frame 290 is detected and the energization to the carriage motor 220 is stopped (step S130), the rotation of the carriage motor 220 is stopped (the rotation speed is zero). After that, the movement of the carriage 210 in the opposite direction is started.

図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 encoder 222. FIG. 7 is an explanatory diagram illustrating an example of an encoder signal. In the present embodiment, the encoder signal includes two pulse signals of A phase and B phase whose half pulse phases are shifted from each other. Based on the pulse periods of the A-phase and B-phase pulse signals, the rotational speed of the carriage motor 220 is detected. Further, the direction of rotation of the carriage motor 220 (that is, the moving direction of the carriage 210) is detected based on the phase shift direction of the A-phase and B-phase pulse signals. In FIG. 7, the sampling timing of the encoder signal by the speed detector 155 is indicated by an arrow.

ステップS220では、速度検出部155が、前回のサンプリングタイミングからエンコーダ信号に変化があったか否かを判定する。ステップS220において変化があったと判定された場合には、N=0と設定され(ステップS230)、エンコーダ信号のサンプリング(ステップS210)が再度実行される。なお、最初のサンプリングタイミングでは、エンコーダ信号に変化があったと判定されるものとする。   In step S220, the speed detection unit 155 determines whether or not the encoder signal has changed since the previous sampling timing. If it is determined in step S220 that there has been a change, N = 0 is set (step S230), and encoder signal sampling (step S210) is executed again. Note that, at the first sampling timing, it is determined that the encoder signal has changed.

ステップ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 frame 290 after the contact between the carriage 210 and the frame 290 is detected and the energization of the carriage motor 220 is stopped. It is preset based on the speed of the hour. That is, the threshold value Nt is set to a value larger than a value that N can take when the carriage 210 moves. Therefore, while the carriage 210 is moved by the action of the force accompanying the release of the elastic deformation of the frame 290, it is determined in step S250 that N is not equal to the threshold value Nt, and the encoder signal sampling (step S210) is executed again. Will be.

一方、フレーム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 frame 290 is completed and the movement of the carriage 210 is stopped, it is determined in step S220 that there is no change until N = Nt as shown in FIG. If it is determined in step S250 that N is equal to the threshold value Nt, the carriage motor control unit 154 causes the carriage motor 220 to move the carriage 210 in the opposite direction (the direction toward the end where the frame 290 is not disposed). Is controlled (step S150).

以上説明したように、第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 carriage 210 and the frame 290 is detected and the energization of the carriage motor 220 is stopped, and then the carriage motor 220 stops rotating. The drive control of the carriage motor 220 is not performed until it is detected that the rotational speed has become zero, that is, until the movement of the carriage 210 is stopped. Therefore, in the carriage driving process of the second embodiment, it is possible to suppress the operation of the carriage 210 from becoming unstable due to the action of force accompanying the release of the elastic deformation of the frame 290. In the carriage driving process of the second embodiment, since the stop of the movement of the carriage 210 is detected, the driving time can be shortened and the efficiency of the carriage driving process can be improved.

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 carriage motor 220 and the speed of the carriage 210 in the carriage driving process of the third embodiment. The carriage driving process in the third embodiment is different from the carriage driving process in the first embodiment shown in FIG. In the third embodiment, a predetermined range including the position of the frame 290 on the movement path of the carriage 210 is set as a mask section, and when the carriage 210 is located in the mask section, it is detected by the speed detection unit 155. The control of the carriage motor 220 based on the rotation speed of the carriage motor 220 is not executed.

図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 motor control unit 154 drives and controls the carriage motor 220 so as to move the carriage 210 in the opposite direction (direction toward the end where the frame 290 is not disposed) (see t2 in FIG. 9). ). However, the drive control at this time is executed on the assumption that the rotational speed of the carriage motor 220 is not a rotational speed calculated based on the encoder signal but a fixed rotational speed set in advance.

キャリッジ210を反対方向に移動させるようなキャリッジモータ220の駆動制御が開始されると、位置検出部157(図2)は、キャリッジ210がマスク区間内に位置するか否かを判定する。ここで、マスク区間は、フレーム290が変形したとしてもキャリッジ210とフレーム290とが接触し得ない区間として予め設定されている。すなわち、図9に示すように、マスク区間は、フレーム290の弾性変形の開放中にキャリッジ210が位置し得る区間を包含するような区間に設定されている。   When the drive control of the carriage motor 220 that moves the carriage 210 in the opposite direction is started, the position detection unit 157 (FIG. 2) determines whether the carriage 210 is positioned within the mask section. Here, the mask section is set in advance as a section in which the carriage 210 and the frame 290 cannot come into contact with each other even if the frame 290 is deformed. That is, as shown in FIG. 9, the mask section is set to a section that includes a section in which the carriage 210 can be positioned while the elastic deformation of the frame 290 is released.

キャリッジ210がマスク区間内に位置すると判定されている間は、キャリッジモータ220の回転数が予め設定された固定値の回転数であるものとしたキャリッジモータ220の駆動制御が継続される。一方、キャリッジ210がマスク区間の外に移動したと判定されると、キャリッジモータ制御部154は、キャリッジモータ220の回転数がエンコーダ信号に基づき算出される回転数であるとして、通常のフィードバック制御によるキャリッジモータ220の駆動制御を開始する(図9のt5〜参照)。   While it is determined that the carriage 210 is located within the mask section, the drive control of the carriage motor 220 is continued assuming that the rotation speed of the carriage motor 220 is a fixed rotation speed set in advance. On the other hand, when it is determined that the carriage 210 has moved out of the mask section, the carriage motor control unit 154 determines that the rotation speed of the carriage motor 220 is the rotation speed calculated based on the encoder signal, and performs normal feedback control. The drive control of the carriage motor 220 is started (see t5 in FIG. 9).

以上説明したように、第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 carriage 210 is moved in the opposite direction immediately after the contact between the carriage 210 and the frame 290 is detected and the power supply to the carriage motor 220 is stopped. The drive control of the carriage motor 220 is started. However, while the carriage 210 is positioned within the mask section, the drive control of the carriage motor 220 is such that the rotation speed of the carriage motor 220 is not the rotation speed calculated based on the encoder signal, but a rotation with a fixed value set in advance. Implemented as a number. Therefore, even if the force accompanying the release of the elastic deformation of the frame 290 acts on the carriage 210 and the speed of the carriage 210 changes, that is, the number of rotations of the carriage motor 220 changes, the change is driven by the carriage motor 220. Does not affect control. Therefore, in the carriage driving process of the third embodiment, it is possible to suppress the operation of the carriage 210 from becoming unstable due to the action of the force accompanying the release of the elastic deformation of the frame 290. In the carriage driving process of the third embodiment, the drive control of the carriage motor 220 is started so as to move the carriage 210 in the opposite direction immediately after the contact between the carriage 210 and the frame 290 is detected. The time can be further shortened, and the efficiency of the carriage driving process can be improved.

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 motor control unit 154 moves the carriage 210 in the opposite direction (the direction toward the end where the frame 290 is not disposed). The carriage motor 220 is driven and controlled so as to be moved. However, in the drive control at this time, the drive voltage supplied to the carriage motor 220 is set independently of the rotation speed of the carriage motor 220. Specifically, the drive voltage supplied to the carriage motor 220 is set so that the duty ratio increases at a preset constant rate.

その後は、第3実施例と同様に、キャリッジ210がマスク区間内に位置すると判定されている間は、このようなキャリッジモータ220の駆動制御が継続される。その後、キャリッジ210がマスク区間の外に移動したと判定されると、通常のフィードバック制御によるキャリッジモータ220の駆動制御が開始される(ステップS330)。   Thereafter, as in the third embodiment, while it is determined that the carriage 210 is located within the mask section, such drive control of the carriage motor 220 is continued. Thereafter, when it is determined that the carriage 210 has moved out of the mask section, drive control of the carriage motor 220 by normal feedback control is started (step S330).

以上説明したように、第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 carriage 210 is moved in the opposite direction immediately after the contact between the carriage 210 and the frame 290 is detected and the energization of the carriage motor 220 is stopped. The drive control of the carriage motor 220 is started. However, while the carriage 210 is positioned within the mask section, the drive voltage supplied to the carriage motor 220 is set independently of the number of rotations of the carriage motor 220. Therefore, even if the force accompanying the release of the elastic deformation of the frame 290 acts on the carriage 210 and the speed of the carriage 210 changes, that is, the number of rotations of the carriage motor 220 changes, the change is driven by the carriage motor 220. Does not affect control. Therefore, in the carriage driving process of the fourth embodiment, it is possible to suppress the operation of the carriage 210 from becoming unstable due to the action of a force accompanying the release of the elastic deformation of the frame 290. In the carriage driving process of the fourth embodiment, the drive control of the carriage motor 220 is started so as to move the carriage 210 in the opposite direction immediately after the contact between the carriage 210 and the frame 290 is detected. The time can be further shortened, and the efficiency of the carriage driving process can be improved.

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 carriage motor 220 for driving the carriage 210 of the printer 100 has been described. However, the present invention is not limited to the carriage of the printer, but for driving a reciprocating carriage. It can be generally applied when controlling a motor.

E2.変形例2:
上記各実施例では、通常時のキャリッジモータ220のフィードバック制御は、キャリッジモータ220の回転数に基づき実行されるものとして説明したが、フィードバック制御は、キャリッジモータ220の回転数に相関する相関値であれば、他の値(例えばキャリッジ210の速度)に基づき実行されるものとしてもよい。
E2. Modification 2:
In each of the embodiments described above, the feedback control of the carriage motor 220 at the normal time has been described as being executed based on the rotation speed of the carriage motor 220. If there is, it may be executed based on another value (for example, the speed of the carriage 210).

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.

本発明の第1実施例におけるプリンタ100の外観を示す説明図である。FIG. 2 is an explanatory diagram illustrating an appearance of the printer 100 according to the first embodiment of the present invention. プリンタ100の内部構成を機能的に示す説明図である。2 is an explanatory diagram functionally illustrating an internal configuration of a printer 100. FIG. 第1実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the carriage drive process in 1st Example. 第1実施例のキャリッジ駆動処理におけるキャリッジ210とフレーム290との関係を示す説明図である。It is explanatory drawing which shows the relationship between the carriage 210 and the frame 290 in the carriage drive process of 1st Example. 第1実施例のキャリッジ駆動処理におけるキャリッジモータ220の電流値とキャリッジ210の速度とを示す説明図である。It is explanatory drawing which shows the electric current value of the carriage motor 220 in the carriage drive process of 1st Example, and the speed of the carriage 210. FIG. 第2実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the carriage drive process in 2nd Example. エンコーダ信号の一例を示す説明図である。It is explanatory drawing which shows an example of an encoder signal. 第3実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the carriage drive process in 3rd Example. 第3実施例のキャリッジ駆動処理におけるキャリッジモータ220の電流値とキャリッジ210の速度とを示す説明図である。It is explanatory drawing which shows the electric current value of the carriage motor 220 and the speed of the carriage 210 in the carriage drive process of 3rd Example. 第4実施例におけるキャリッジ駆動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the carriage drive process in 4th Example.

符号の説明Explanation of symbols

100…プリンタ
110…スキャナ
120…メモリカードスロット
150…制御ユニット
151…CPU
152…内部メモリ
153…印刷制御部
154…キャリッジモータ制御部
155…速度検出部
156…接触検出部
157…位置検出部
210…キャリッジ
211…インクヘッド
212…インクカートリッジ
220…キャリッジモータ
222…エンコーダ
230…モータ
260…駆動ベルト
270…プラテン
280…摺動軸
290…フレーム
DESCRIPTION OF SYMBOLS 100 ... Printer 110 ... Scanner 120 ... Memory card slot 150 ... Control unit 151 ... CPU
DESCRIPTION OF SYMBOLS 152 ... Internal memory 153 ... Print control part 154 ... Carriage motor control part 155 ... Speed detection part 156 ... Contact detection part 157 ... Position detection part 210 ... Carriage 211 ... Ink head 212 ... Ink cartridge 220 ... Carriage motor 222 ... Encoder 230 ... Motor 260 ... Driving belt 270 ... Platen 280 ... Sliding shaft 290 ... Frame

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.
請求項1に記載のモータ制御装置であって、
前記制御実行部は、前記所定の期間において、前記モータに駆動電圧を供給しない、モータ制御装置。
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.
請求項2に記載のモータ制御装置であって、
前記所定の期間は、前記接触が検出されたときから予め設定された時間が経過するまでの期間である、モータ制御装置。
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.
請求項2に記載のモータ制御装置であって、さらに、
前記回転数相関値に基づき前記モータの回転数がゼロであるか否かを判定する判定部を備え、
前記所定の期間は、前記接触が検出されたときから前記モータの回転数がゼロであると判定されるまでの期間である、モータ制御装置。
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.
請求項1に記載のモータ制御装置であって、さらに、
前記移動経路上における前記キャリッジの位置を検出する位置検出部を備え、
前記所定の期間は、前記接触が検出されたときから、前記キャリッジが前記移動経路上の前記弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間であり、
前記制御実行部は、前記所定の期間において、前記モータの回転数が予め設定された値であるものと想定して、前記モータの制御を実行する、モータ制御装置。
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.
請求項1に記載のモータ制御装置であって、
前記移動経路上における前記キャリッジの位置を検出する位置検出部を備え、
前記所定の期間は、前記接触が検出されたときから、前記キャリッジが前記移動経路上の前記弾性部材の位置を含む所定の範囲の外に移動したことが検出されるまでの期間であり、
前記制御実行部は、前記所定の期間において、前記回転数相関値とは独立して予め設定された駆動電圧を供給して、前記モータの制御を実行する、モータ制御装置。
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.
請求項1ないし請求項6のいずれかに記載のモータ制御装置であって、
前記接触検出部は、前記モータの電流値が所定の閾値以上となったときに前記キャリッジと前記端部部材とが接触したと判定することにより、前記接触を検出する、モータ制御装置。
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.
JP2008163534A 2008-06-23 2008-06-23 Motor control apparatus and motor control method Withdrawn JP2010004713A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013111842A (en) * 2011-11-29 2013-06-10 Canon Inc Image processing apparatus

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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