JP2011056791A - Printer, position detector, and signal selection method - Google Patents

Printer, position detector, and signal selection method Download PDF

Info

Publication number
JP2011056791A
JP2011056791A JP2009208983A JP2009208983A JP2011056791A JP 2011056791 A JP2011056791 A JP 2011056791A JP 2009208983 A JP2009208983 A JP 2009208983A JP 2009208983 A JP2009208983 A JP 2009208983A JP 2011056791 A JP2011056791 A JP 2011056791A
Authority
JP
Japan
Prior art keywords
light
signal
detection signals
unit
signal selection
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
JP2009208983A
Other languages
Japanese (ja)
Inventor
Hitoshi Igarashi
人志 五十嵐
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 JP2009208983A priority Critical patent/JP2011056791A/en
Publication of JP2011056791A publication Critical patent/JP2011056791A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer and a position detector capable of reducing an error of a detection signal. <P>SOLUTION: The printer 10 includes: a light emission part 61; a scale 51 wherein light transmitting parts 51a and light shielding parts 51b are formed alternately at least; a light receiving part 62 positioned on the opposite side to the light emission part 61 via the scale 51 and outputting at least two detection signals; a signal selection output means 100 selecting either one of the detection signals and outputting the selected signal; and a timing signal generation means 115 generating a timing signal instructing timing of ink jetting from a printing head 38 based on the detection signal outputted from the signal selection output means 100. The signal selection output means 100 compares the respective detection signals in such condition that an object 31 to be driven is driven at a fixed speed, and selects and outputs the detection signal closest to a reference detection signal. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、プリンター、位置検出装置および信号選択方法に関する。   The present invention relates to a printer, a position detection device, and a signal selection method.

インクジェット式のプリンターにおいては、モーターによって、キャリッジおよび印刷媒体が移動させられる。この移動に際して、位置制御および速度制御を行うために、一般にエンコーダーが用いられている(たとえば、特許文献1参照)。エンコーダーは、フォトセンサーとスケールとを備えている。これらのうち、フォトセンサーは、発光素子と受光素子とを備えている。また、スケールは、発光素子で発せられる光を透過する透光部と、発光素子で発せられる光を遮る遮光部とを有していて、これら透光部と遮光部とが一定ピッチで繰り返されている。   In an ink jet printer, a carriage and a print medium are moved by a motor. In this movement, an encoder is generally used to perform position control and speed control (see, for example, Patent Document 1). The encoder includes a photo sensor and a scale. Among these, the photosensor includes a light emitting element and a light receiving element. The scale also has a light-transmitting portion that transmits light emitted from the light-emitting element and a light-shielding portion that blocks light emitted from the light-emitting element, and the light-transmitting portion and the light-shielding portion are repeated at a constant pitch. ing.

特許文献1には、直線状のリニアースケールと、発光素子と受光素子とによってリニアースケールを挟み込むように配置されたフォトセンサーとから構成されるリニアーエンコーダーが開示されている。この特許文献1に記載されたリニアーエンコーダーでは、フォトセンサーが、発光素子から出射された光を平行光にするコリメーターレンズを備え、リニアースケールの透光部を通過した平行光が受光素子で検知されている。また、このリニアーエンコーダーでは、リニアースケールの透光部の幅と遮光部の幅とが等しく形成されている。   Patent Document 1 discloses a linear encoder including a linear linear scale and a photosensor arranged so as to sandwich the linear scale between a light emitting element and a light receiving element. In the linear encoder described in Patent Document 1, the photosensor includes a collimator lens that collimates the light emitted from the light emitting element, and the parallel light that has passed through the light transmitting portion of the linear scale is detected by the light receiving element. Has been. Further, in this linear encoder, the width of the light transmitting portion and the width of the light shielding portion of the linear scale are formed to be equal.

特開2004−202963号公報(段落番号0004から0007、図21等参照)Japanese Unexamined Patent Application Publication No. 2004-202963 (see paragraph numbers 0004 to 0007, FIG. 21, etc.)

ところで、上述の特許文献1に記載されているようなエンコーダーにおいては、A相か、またはB相のいずれかの信号のみが、計算回路に固定的に取り込まれて、矩形状のエンコーダー信号(検出信号)を得てモーターの制御が為されている。この構成では、A相とB相の2つの出力を得るために、2ch以上の受光回路が存在している。ここで、この受光回路における誤差、およびエンコーダー等の光学系の誤差等が存在するため、A相とB相の2つの出力は、均一なものとはなっていない。   By the way, in the encoder as described in Patent Document 1 described above, only the signal of either the A phase or the B phase is fixedly taken into the calculation circuit, and the rectangular encoder signal (detection) is detected. Signal) and the motor is controlled. In this configuration, in order to obtain two outputs of the A phase and the B phase, there are 2ch or more light receiving circuits. Here, since there are errors in the light receiving circuit and errors in an optical system such as an encoder, the two outputs of the A phase and the B phase are not uniform.

また、プリンターを使用するにつれて、上記の光学系には劣化が生じるため、A相とB相の2つの出力において、基準となる周期に対する誤差(変動率)が大きくなる。   Further, as the printer is used, the above-described optical system is deteriorated, so that an error (variation rate) with respect to a reference period increases in the two outputs of the A phase and the B phase.

本発明は上記の事情にもとづきなされたもので、その目的とするところは、受光部からの検出信号の誤差を低減可能なプリンター、位置検出装置および信号選択方法を提供しよう、とするものである。   The present invention has been made based on the above circumstances, and an object of the present invention is to provide a printer, a position detection device, and a signal selection method capable of reducing an error of a detection signal from a light receiving unit. .

上記課題を解決するために、本発明のプリンターの第1の側面は、光を発する発光部と、発光部からの光を透過する透光部および発光部からの光を遮断する遮光部が少なくとも交互に形成されているスケールと、スケールを挟んで発光部とは反対側に位置すると共に、被駆動物の駆動に応じて生成される透光部を透過した周期的な特徴を有する光に基づき、位相が異なる少なくとも2つの検出信号を出力する受光部と、少なくとも2つの検出信号が入力されると共に、これらのうちからいずれかの検出信号を選択して出力する制御を行う信号選択出力手段と、信号選択出力手段から出力される検出信号に基づいて、インクを印刷媒体に向けて噴射する印刷ヘッドからのインクの噴射のタイミングを指示するためのタイミング信号を生成するタイミング信号生成手段と、を具備し、信号選択出力手段は、被駆動物が一定速度で駆動させられる状態において、それぞれの検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力するものである。   In order to solve the above problems, a first aspect of the printer of the present invention includes at least a light emitting unit that emits light, a light transmitting unit that transmits light from the light emitting unit, and a light shielding unit that blocks light from the light emitting unit. Based on alternating scales and light that is located on the opposite side of the light-emitting part across the scale and that has a periodic characteristic that is transmitted through a light-transmitting part that is generated in response to driving of the driven object A light receiving unit that outputs at least two detection signals having different phases; and a signal selection output unit that performs control to select and output one of the detection signals from among the two detection signals. And generating a timing signal for instructing the timing of ink ejection from the print head that ejects ink toward the print medium based on the detection signal output from the signal selection output means. And a signal selection output means that compares the detection signals in a state where the driven object is driven at a constant speed, and selects the detection signal closest to the reference signal. Output.

このように構成する場合には、信号選択出力手段には、少なくとも2つの検出信号が入力されるものの、それぞれの検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力している。このため、選択されなかった検出信号を選択/出力する場合と比較して、基準となる検出信号に対する誤差を低減可能となる。また、信号選択出力手段によって選択/出力される検出信号に基づいて、タイミング信号生成手段によってタイミング信号を生成すると、選択されなかった検出信号に基づいてタイミング信号を生成する場合と比較して、インクの噴射のタイミングが、より適正なものへと近づけることが可能となる。そのため、インクの噴射によって印刷媒体に形成される印刷画像の画質を向上させることが可能となる。   In such a configuration, although at least two detection signals are input to the signal selection output means, the respective detection signals are compared, and the one closest to the reference detection signal is selected and output. is doing. For this reason, it is possible to reduce an error with respect to a reference detection signal as compared with the case of selecting / outputting a detection signal that has not been selected. Further, when the timing signal is generated by the timing signal generation unit based on the detection signal selected / output by the signal selection output unit, the ink is compared with the case where the timing signal is generated based on the detection signal not selected. This makes it possible to bring the injection timing closer to a more appropriate one. Therefore, it is possible to improve the image quality of the print image formed on the print medium by ejecting ink.

また、本発明の他の側面は、上述の発明において、検出信号の出力レベルは、所定の閾値を越えるHレベルと、所定の閾値を越えないLレベルとが存在すると共に、信号選択出力手段は、検出信号の基準となる基準周期に対して、それぞれの検出信号の周期のうち誤差が最も小さいものを選択して外部へ出力することが好ましい。   According to another aspect of the present invention, in the above-described invention, the output level of the detection signal includes an H level that exceeds a predetermined threshold and an L level that does not exceed the predetermined threshold, and the signal selection output means includes: It is preferable to select and output the detection signal having the smallest error among the detection signal periods to the reference period serving as the reference of the detection signal.

このように構成する場合には、選択されなかった検出信号を選択/出力する場合と比較して、基準となる検出信号に対する誤差を低減可能となる。それにより、各種の制御において、当該制御の正確性を向上させることが可能となる。   In the case of such a configuration, an error with respect to a reference detection signal can be reduced as compared with the case of selecting / outputting a detection signal that has not been selected. Thereby, in various controls, it becomes possible to improve the accuracy of the control.

また、本発明の他の側面は、上述の各発明において、被駆動物は印刷ヘッドが取り付けられているキャリッジであると共に、発光部および受光部は、キャリッジに取り付けられていて、キャリッジを駆動させる駆動力を与えるモーターと、信号選択出力手段から出力される検出信号に基づいて、モーターの駆動の制御を行うモーター制御手段と、を備えることが好ましい。   According to another aspect of the present invention, in each of the above-described inventions, the driven object is a carriage to which a print head is attached, and the light emitting unit and the light receiving unit are attached to the carriage to drive the carriage. It is preferable to include a motor that applies driving force, and motor control means that controls driving of the motor based on the detection signal output from the signal selection output means.

このように構成する場合には、信号選択出力手段から出力される検出信号に基づいて、キャリッジを駆動させるモーターの制御が為される。このため、キャリッジの速度制御において、速度変動を抑えることが可能となる。また、キャリッジの停止位置制御等の位置制御においても、その精度を向上させることが可能となる。また、速度変動を抑え、さらには位置制御の精度を向上させることにより、印刷媒体に形成される印刷画像の画質を向上させることが可能となる。   In such a configuration, the motor for driving the carriage is controlled based on the detection signal output from the signal selection output means. For this reason, it is possible to suppress speed fluctuations in the carriage speed control. In addition, the accuracy of position control such as carriage stop position control can be improved. In addition, it is possible to improve the image quality of a print image formed on a print medium by suppressing speed fluctuations and further improving the accuracy of position control.

さらに、本発明の他の側面は、上述の各発明において、累積的な経過時間、使用時間または印刷ヘッドで印刷を行った印刷媒体の枚数のうちのいずれかの指標値をカウントするカウント手段を具備すると共に、信号選択出力手段は、カウント手段における指標値が所定の判定閾値に到達した場合に、信号選択出力により、少なくとも2つの検出信号のうちからいずれかの検出信号を選択して出力する制御を行うことが好ましい。   Further, according to another aspect of the present invention, in each of the above-described inventions, there is provided counting means for counting any index value of cumulative elapsed time, usage time, or number of print media printed by the print head. The signal selection output means selects and outputs one of the at least two detection signals by the signal selection output when the index value in the counting means reaches a predetermined determination threshold value. It is preferable to perform control.

このように構成する場合には、プリンターを所定の期間だけ使用し、発光部および受光部の出力に変動が生じていることが考えられる状況において、カウント手段における指標値が所定の判定閾値に到達すると、信号選択出力手段により、いずれかの検出信号を選択して出力する制御が為される。そのため、プリンターの長期間の使用に伴い、何等かの原因(たとえば、スケールへのミストの付着、エンコーダーの劣化等)によって、いずれかの検出信号に変動が生じている場合であっても、基準となる検出信号に最も近い検出信号を選択して、出力させることが可能となる。それにより、発光部および受光部を有する位置検出装置またはエンコーダーの長寿命化を図ることが可能となる。   In such a configuration, the index value in the counting means reaches a predetermined determination threshold value in a situation where the printer is used only for a predetermined period and the outputs of the light emitting unit and the light receiving unit are considered to vary. Then, control for selecting and outputting one of the detection signals is performed by the signal selection output means. Therefore, even if the detection signal fluctuates due to some cause (for example, mist adhesion to the scale, encoder deterioration, etc.) due to long-term use of the printer, It is possible to select and output the detection signal closest to the detection signal to be. Thereby, it is possible to extend the life of the position detection device or encoder having the light emitting unit and the light receiving unit.

また、本発明の他の側面である位置検出装置は、光を発する発光部と、発光部からの光を透過する透光部および発光部からの光を遮断する遮光部が少なくとも交互に形成されているスケールと、スケールを挟んで発光部とは反対側に位置すると共に、被駆動物の駆動に応じて生成される透光部を透過した周期的な特徴を有する光に基づき、位相が異なる少なくとも2つの検出信号を出力する受光部と、少なくとも2つの検出信号が入力されると共に、これらのうちからいずれかの検出信号を選択して出力する制御を行う信号選択出力手段と、を具備し、信号選択出力手段は、被駆動物が一定速度で駆動させられる状態において、それぞれの検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力することが好ましい。   In the position detection device according to another aspect of the present invention, a light emitting unit that emits light, a light transmitting unit that transmits light from the light emitting unit, and a light shielding unit that blocks light from the light emitting unit are alternately formed. The phase is different on the basis of the light having a periodic characteristic that is located on the opposite side of the light emitting unit across the scale and the light transmitting unit that is generated according to the driving of the driven object A light receiving unit that outputs at least two detection signals; and at least two detection signals are input, and a signal selection output unit that performs control to select and output one of these detection signals. The signal selection output means preferably compares the detection signals in a state where the driven object is driven at a constant speed, and selects and outputs the one closest to the reference detection signal.

このように構成する場合には、信号選択出力手段には、少なくとも2つの検出信号が入力されるものの、それぞれの検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力している。このため、選択されなかった検出信号を選択/出力する場合と比較して、基準となる検出信号に対する誤差を低減可能となる。   In such a configuration, although at least two detection signals are input to the signal selection output means, the respective detection signals are compared, and the one closest to the reference detection signal is selected and output. is doing. For this reason, it is possible to reduce an error with respect to a reference detection signal as compared with the case of selecting / outputting a detection signal that has not been selected.

また、本発明の他の側面である信号選択方法は、発光部からの光を透過する透光部と光を遮断する遮光部が少なくとも交互に形成されているスケールの透光部を透過し、かつ被駆動物の駆動に応じて生成された周期的な特徴を有する光に基づき、位相が異なる少なくとも2つの検出信号を受光部から出力し、それらの検出信号のうちからいずれかの検出信号を選択する信号選択方法であって、被駆動物が一定速度で駆動させられる状態において、それぞれの検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力することが好ましい。   Further, in the signal selection method according to another aspect of the present invention, the light transmitting part that transmits light from the light emitting part and the light transmitting part of the scale in which the light shielding parts that block light are alternately formed are transmitted, And based on the light which has the periodic characteristic produced | generated according to the drive of the to-be-driven object, the at least 2 detection signal from which a phase differs is output from a light-receiving part, and any detection signal is output from those detection signals. In the signal selection method to be selected, in a state where the driven object is driven at a constant speed, it is preferable to compare the respective detection signals and select and output the one closest to the reference detection signal.

このように構成する場合には、それぞれの検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力している。このため、選択されなかった検出信号を選択/出力する場合と比較して、基準となる検出信号に対する誤差を低減可能となる。   When configured in this way, the respective detection signals are compared, and the one closest to the reference detection signal is selected and output. For this reason, it is possible to reduce an error with respect to a reference detection signal as compared with the case of selecting / outputting a detection signal that has not been selected.

本発明の一実施の形態に係るプリンターの構成を示す斜視図である。1 is a perspective view illustrating a configuration of a printer according to an embodiment of the present invention. プリンターの構成を示す概略図である。FIG. 2 is a schematic diagram illustrating a configuration of a printer. プリンターの紙送りに関する部分の一側断面図である。FIG. 4 is a side sectional view of a portion related to paper feeding of the printer. リニアースケールの取付態様を示す部分的な斜視図である。It is a partial perspective view which shows the attachment aspect of a linear scale. リニアーエンコーダーの回路構成を示す図である。It is a figure which shows the circuit structure of a linear encoder. リニアースケールとフォトセンサーの関係を示す模式図である。It is a schematic diagram which shows the relationship between a linear scale and a photosensor. エンコーダーのアナログ信号および出力パルスを示す図である。It is a figure which shows the analog signal and output pulse of an encoder. リニアースケールとフォトセンサーの関係の変形例を示す模式図である。It is a schematic diagram which shows the modification of the relationship between a linear scale and a photosensor. 制御部の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of a control part. 発光部に導通させる電流と検出信号の誤差の実験結果を示す図である。It is a figure which shows the experimental result of the difference | error of the electric current made to conduct to a light emission part, and a detection signal. 制御部の概略構成の変形例を示すブロック図である。It is a block diagram which shows the modification of schematic structure of a control part.

以下、本発明の一実施の形態に係るプリンター10、このプリンター10が具備する位置検出装置および信号選択方法について、図1から図10に基づいて説明する。なお、本実施の形態のプリンター10は、インクジェット式のプリンターであるが、かかるインクジェット式のプリンターは、インクを噴射して印刷媒体に印刷可能な装置であれば、いかなる噴射方法を採用した装置でも良い。   Hereinafter, a printer 10 according to an embodiment of the present invention, a position detection device provided in the printer 10 and a signal selection method will be described with reference to FIGS. The printer 10 according to the present embodiment is an ink jet printer. However, the ink jet printer may be an apparatus that employs any ejection method as long as the apparatus can eject ink and print on a print medium. good.

また、以下の説明においては、下方側とは、プリンター10が設置される側を指し、上方側とは、設置される側から離間する側を指す。また、後述するキャリッジ31が移動する方向を主走査方向、主走査方向に直交する方向であって印刷媒体Pが搬送される方向を副走査方向とする。また、印刷媒体Pが供給される側を給紙側(後端側)、印刷媒体Pが排出される側を排紙側(手前側)として説明する。   In the following description, the lower side refers to the side where the printer 10 is installed, and the upper side refers to the side away from the installed side. In addition, a direction in which a carriage 31 to be described later moves is a main scanning direction, a direction orthogonal to the main scanning direction, and a direction in which the print medium P is conveyed is a sub-scanning direction. Further, the side on which the print medium P is supplied is described as a paper feed side (rear end side), and the side on which the print medium P is discharged is described as a paper discharge side (front side).

図1に示すように、プリンター10は、筐体部20と、キャリッジ駆動機構30と、用紙搬送機構40と、リニアーエンコーダー50と、ロータリーエンコーダー80と、制御部100と、を主要な構成要素としている。   As shown in FIG. 1, the printer 10 includes a housing unit 20, a carriage drive mechanism 30, a paper transport mechanism 40, a linear encoder 50, a rotary encoder 80, and a control unit 100 as main components. Yes.

これらのうち、筐体部20は、設置面に設置されるシャーシ21、このシャーシ21から上方に向かい立設されている支持フレーム22を具備している。また、キャリッジ駆動機構30は、キャリッジ31と、キャリッジモーター(CRモーター32)と、ベルト33と、歯車プーリー34、従動プーリー35およびキャリッジ軸36を備えている。これらのうち、キャリッジ31には、各色のインクカートリッジ37を搭載可能としている。また、図2に示すように、キャリッジ31の下面には、インク滴を噴射可能な印刷ヘッド38が設けられている。また、ベルト33は、無端ベルトであり、その一部がキャリッジ31の背面に固定されている。このベルト33は、歯車プーリー34と従動プーリー35とによって張設されている。   Among these, the housing | casing part 20 is equipped with the chassis 21 installed in the installation surface, and the support frame 22 standing upright from this chassis 21. As shown in FIG. The carriage drive mechanism 30 includes a carriage 31, a carriage motor (CR motor 32), a belt 33, a gear pulley 34, a driven pulley 35, and a carriage shaft 36. Among these, each color ink cartridge 37 can be mounted on the carriage 31. Further, as shown in FIG. 2, a print head 38 capable of ejecting ink droplets is provided on the lower surface of the carriage 31. The belt 33 is an endless belt, and a part of the belt 33 is fixed to the back surface of the carriage 31. The belt 33 is stretched by a gear pulley 34 and a driven pulley 35.

上述の印刷ヘッド38には、各インクに対応づけられた不図示のノズル列が設けられていて、このノズル列を構成するノズルには、不図示のピエゾ素子が配置されている。このピエゾ素子の作動により、インク通路の端部にあるノズルからインク滴を噴射させることが可能となっている。なお、印刷ヘッド38は、ピエゾ素子を用いたピエゾ駆動方式に限られず、例えばインクをヒーターで加熱し、発生する泡の力を利用するヒーター方式、磁歪素子を用いる磁歪方式、ミストを電界で制御するミスト方式等を採用しても良い。また、カートリッジ37に充填されるインクは、染料系インク/顔料系インク等、いずれの種類のインクを搭載しても良い。   The above-described print head 38 is provided with a nozzle row (not shown) corresponding to each ink, and a piezo element (not shown) is arranged in the nozzle constituting the nozzle row. By the operation of this piezo element, it is possible to eject ink droplets from the nozzle at the end of the ink passage. The print head 38 is not limited to a piezo drive system using a piezo element. For example, a heater system that heats ink with a heater and uses the generated foam force, a magnetostriction system that uses a magnetostrictive element, and a mist that is controlled by an electric field. A mist method or the like may be employed. The ink filled in the cartridge 37 may be mounted with any type of ink such as dye-based ink / pigment-based ink.

図3に示すように、用紙搬送機構40は、印刷媒体P等を搬送するためのPFモーター41(図2他参照)、および普通紙等の給紙に対応する給紙ローラー42を具備している。また、給紙ローラー42よりも排紙側には、印刷媒体Pを搬送/挟持するためのPFローラー対43が設けられている。また、PFローラー対43の排紙側には、プラテン44および上述の印刷ヘッド38が上下に対向する様に配設されている。プラテン44は、PFローラー対43によって印刷ヘッド38の下へ搬送されてくる印刷媒体Pを、下方側から支持する。また、プラテン44よりも排紙側には、上述のPFローラー対43と同様の、排紙ローラー対45が設けられている。この排紙ローラー対45のうち、排紙駆動ローラー45aには、PF駆動ローラー43aと共に、PFモーター41からの駆動力が伝達される。   As shown in FIG. 3, the paper transport mechanism 40 includes a PF motor 41 (see FIG. 2 and others) for transporting the print medium P and the like, and a paper feed roller 42 corresponding to the feeding of plain paper or the like. Yes. Further, a PF roller pair 43 for conveying / clamping the print medium P is provided on the paper discharge side with respect to the paper feed roller 42. On the paper discharge side of the PF roller pair 43, the platen 44 and the above-described print head 38 are disposed so as to face each other vertically. The platen 44 supports the print medium P conveyed below the print head 38 by the PF roller pair 43 from below. Further, on the paper discharge side with respect to the platen 44, a paper discharge roller pair 45 similar to the above-described PF roller pair 43 is provided. Of the pair of paper discharge rollers 45, the drive force from the PF motor 41 is transmitted to the paper discharge drive roller 45a together with the PF drive roller 43a.

また、図2に示すように、リニアーエンコーダー50は、位置検出装置の一部の構成要素として機能させることが可能であり、リニアースケール51と、フォトセンサー60と、を備えている。   Further, as shown in FIG. 2, the linear encoder 50 can function as a part of components of the position detection device, and includes a linear scale 51 and a photosensor 60.

リニアースケール51は、透明な樹脂等の薄板から長尺状(細長の直線状)に形成されている。このリニアースケール51は、主走査方向と平行に支持フレーム22に取り付けられている。すなわち、プリンター10では、リニアースケール51の短手方向を高さ方向とした状態で、リニアースケール51が支持フレーム22に取り付けられている。このリニアースケール51の両端部分には、図4に示すような細長の係止孔53が設けられている。この係止孔53には、支持フレーム22に固定されている係止爪22aが差し込まれ、該係止爪22aによってリニアースケール51は、張設状態で支持される。   The linear scale 51 is formed in a long shape (elongated linear shape) from a thin plate of transparent resin or the like. The linear scale 51 is attached to the support frame 22 in parallel with the main scanning direction. That is, in the printer 10, the linear scale 51 is attached to the support frame 22 in a state where the short direction of the linear scale 51 is the height direction. Elongated locking holes 53 as shown in FIG. 4 are provided at both ends of the linear scale 51. A locking claw 22a fixed to the support frame 22 is inserted into the locking hole 53, and the linear scale 51 is supported in a stretched state by the locking claw 22a.

また、フォトセンサー60は、光の投受光方式のセンサーであり、図5等に示すように、発光部61と受光部62とを備え、図3に示すように、キャリッジ31の背面に固定部材63を介して固定されている。固定部材63は、対向する2つの取付部63a,63bを有していて、この2つの取付部63a,63bの間の空間部に、リニアースケール51が位置している。   The photo sensor 60 is a light projecting / receiving sensor, and includes a light emitting portion 61 and a light receiving portion 62 as shown in FIG. 5 and the like, and as shown in FIG. It is fixed via 63. The fixing member 63 has two mounting portions 63a and 63b facing each other, and the linear scale 51 is located in a space between the two mounting portions 63a and 63b.

また、一方の取付部63aには、発光部61が取り付けられていて、他方の取付部63bには、受光部62が取り付けられている。これら発光部61と受光部62とはリニアースケール51を挟んで、互いに対向する状態で配置されている。また、発光部61には、図5に示すような、光が通過するコリメーターレンズ64が取り付けられていて、リニアースケール51に向かう光が平行光となるように整えられる。   Moreover, the light emitting part 61 is attached to one attachment part 63a, and the light receiving part 62 is attached to the other attachment part 63b. The light emitting unit 61 and the light receiving unit 62 are arranged in a state of facing each other with the linear scale 51 interposed therebetween. Further, the light emitting unit 61 is provided with a collimator lens 64 through which light passes, as shown in FIG. 5, and is arranged so that the light traveling toward the linear scale 51 becomes parallel light.

発光部61は、例えば発光ダイオードといった発光素子610を備え、この発光素子610で生じる光は、リニアースケール51に向かって出射される。この発光素子610には、可変抵抗611を介して電流が供給されている。そのため、可変抵抗611によって、発光素子610からの発光量を増減することができる。   The light emitting unit 61 includes a light emitting element 610 such as a light emitting diode, and light generated by the light emitting element 610 is emitted toward the linear scale 51. A current is supplied to the light emitting element 610 through a variable resistor 611. Therefore, the amount of light emitted from the light emitting element 610 can be increased or decreased by the variable resistor 611.

また、図5および図6に示すように、受光部62は、基板65と、この基板65上に設けられる第1受光素子列66および第2受光素子列67とを有していて、これら第1受光素子列66においては、複数の受光素子66a,66bが一列に配列され、同じく第2受光素子列67においても、複数の受光素子67a,67bが配列されている。受光素子66a〜67bは、例えばフォトトランジスタ、フォトダイオード、フォトIC等のような、受光した光を、その光量に応じた電気信号に変換可能な受光素子を備えている。これらの受光素子66a〜67bは、透光部51aと遮光部51bとで構成される1ピッチにつき、2つ配置さられている。また、本実施の形態では、第1受光素子列66と第2受光素子列67とは、1/4ピッチずつ、ずらされた配置となっている。すなわち、第1受光素子列66と第2受光素子列67の位相差が90度となっている。   Further, as shown in FIGS. 5 and 6, the light receiving unit 62 includes a substrate 65 and a first light receiving element array 66 and a second light receiving element array 67 provided on the substrate 65. In one light receiving element row 66, a plurality of light receiving elements 66a, 66b are arranged in a row, and also in the second light receiving element row 67, a plurality of light receiving elements 67a, 67b are arranged. The light receiving elements 66a to 67b include light receiving elements such as phototransistors, photodiodes, and photo ICs that can convert received light into electric signals corresponding to the light quantity. Two of these light receiving elements 66a to 67b are arranged for one pitch composed of the light transmitting part 51a and the light shielding part 51b. Further, in the present embodiment, the first light receiving element row 66 and the second light receiving element row 67 are arranged so as to be shifted by a quarter pitch. That is, the phase difference between the first light receiving element array 66 and the second light receiving element array 67 is 90 degrees.

ここで、本実施の形態では、透光部51aと遮光部51bとの幅寸法が等しいものとなっているが、その場合、透光部51a/遮光部51bのそれぞれに、1つの受光素子66a〜67bが対応する配置関係となっている。なお、受光素子66a,66b,67a,67bで1セットとすると、本実施の形態では、4セット程度が基板65に設けられている。しかしながら、受光素子66a〜67bは、4セット以上、または4セット以下が基板65に設けられる構成としても良い。   Here, in the present embodiment, the width dimensions of the light transmitting portion 51a and the light shielding portion 51b are equal, but in this case, one light receiving element 66a is provided for each of the light transmitting portion 51a and the light shielding portion 51b. ˜67b is a corresponding arrangement relationship. In this embodiment, when the light receiving elements 66a, 66b, 67a, 67b are one set, about four sets are provided on the substrate 65. However, the light receiving elements 66a to 67b may have a configuration in which four sets or more or four sets or less are provided on the substrate 65.

また、図5に示すように、複数の受光素子66a〜67bは、信号増幅回路68に接続されていて、この信号増幅回路68によって、受光素子66a〜67bから出力される光量に応じたアナログ波形の信号を増幅した後に、第1コンパレータ69aおよび第2コンパレータ69bに向けて出力する。また、第1コンパレータ69aおよび第2コンパレータ69bは、信号増幅回路68を経由してそれぞれの受光素子列66,67から出力されるアナログ信号に基づいて、パルス波形のデジタル信号(検出信号)を出力する。   As shown in FIG. 5, the plurality of light receiving elements 66 a to 67 b are connected to a signal amplification circuit 68, and an analog waveform corresponding to the amount of light output from the light reception elements 66 a to 67 b by the signal amplification circuit 68. Are amplified and output to the first comparator 69a and the second comparator 69b. The first comparator 69a and the second comparator 69b output a digital signal (detection signal) having a pulse waveform based on the analog signals output from the respective light receiving element arrays 66 and 67 via the signal amplifier circuit 68. To do.

ここで、第1コンパレータ69aの+側の端子には、第1受光素子列66の受光素子66aが接続されると共に、−側の端子には同じ第1受光素子列66の受光素子66bが接続される。また、第2コンパレータ69bにおいても、第2受光素子列67の受光素子67a,67bが同様に接続される。そして、例えば、+側の端子に入力されるアナログ信号のレベルが、−側の端子に入力されるアナログ信号のレベルよりも高い場合、ハイレベル(Hレベル)の信号を出力し、逆の場合には、ローレベル(Lレベル)の信号を出力する。それにより、透光部51a/遮光部51bの検出に対応する、図7に示すようなパルス信号(ENC−A,ENC−B;検出信号)を出力することが可能となっている。   Here, the light receiving element 66a of the first light receiving element row 66 is connected to the + side terminal of the first comparator 69a, and the light receiving element 66b of the same first light receiving element row 66 is connected to the − side terminal. Is done. In the second comparator 69b, the light receiving elements 67a and 67b of the second light receiving element array 67 are similarly connected. For example, when the level of the analog signal input to the + side terminal is higher than the level of the analog signal input to the − side terminal, a high level (H level) signal is output, and vice versa. Outputs a low level (L level) signal. Thereby, it is possible to output pulse signals (ENC-A, ENC-B; detection signals) as shown in FIG. 7 corresponding to the detection of the light transmitting part 51a / the light shielding part 51b.

なお、図7に示すように、受光素子66aから出力されるアナログ信号と、受光素子66bから出力されるアナログ信号とは、半周期だけずれているが、第1受光素子列66に対応する第1コンパレータ69aを経由すると、矩形波であるA相信号ENC−Aが出力される。同様に、1/4ピッチだけずれた配置の第2受光素子列67に対応する第2コンパレータ69bからは、90度だけ位相がずれている矩形波であるB相信号ENC−Bが出力される。以下の説明においては、A相信号ENC−AとB相信号ENC−Bとの両方を称呼する場合、または両方を区別する必要のない場合には、検出信号と称呼する。   As shown in FIG. 7, the analog signal output from the light receiving element 66a and the analog signal output from the light receiving element 66b are shifted by a half cycle, but the first signal corresponding to the first light receiving element array 66 is shown. Through the 1 comparator 69a, the A-phase signal ENC-A, which is a rectangular wave, is output. Similarly, a B-phase signal ENC-B, which is a rectangular wave whose phase is shifted by 90 degrees, is output from the second comparator 69b corresponding to the second light receiving element row 67 arranged by being shifted by ¼ pitch. . In the following description, both the A-phase signal ENC-A and the B-phase signal ENC-B are referred to as “detection signals” when it is not necessary to distinguish both.

また、上述のような構成を採用せずに、1つの受光素子列660が存在する、図8に示す構成を採用しても良い。この場合には、受光素子660aが第1コンパレータ69aの+側または−側のいずれかの端子に接続されると共に、受光素子660bが第2コンパレータ69bの+側または−側のいずれかの端子に接続される。   Further, the configuration shown in FIG. 8 in which one light receiving element array 660 exists may be adopted without adopting the configuration as described above. In this case, the light receiving element 660a is connected to either the + side or the − side terminal of the first comparator 69a, and the light receiving element 660b is connected to either the + side or the − side terminal of the second comparator 69b. Connected.

また、ロータリーエンコーダー80は、図2に示すように、円盤状のロータリースケール81を備えると共に、上述のリニアーエンコーダー50と同様のフォトセンサー82を備えている。なお、ロータリーエンコーダー80においては、その他、リニアーエンコーダー50と同様の構成となっているため、その詳細についての説明は省略する。   Further, as shown in FIG. 2, the rotary encoder 80 includes a disk-shaped rotary scale 81 and a photo sensor 82 similar to the linear encoder 50 described above. Since the rotary encoder 80 has the same configuration as that of the linear encoder 50, the detailed description thereof is omitted.

<制御部の構成について>
図2に示すように、制御部100は、CPU101、ROM102、RAM103、EEPROM104、ASIC105、モータードライバー106等を具備していて、これらが例えばバス等の伝送路107を介して接続されている。また、制御部100は、コンピューター120に接続されている。そして、これらのハードウエアと、ROM102やEEPROM104に記憶されているソフトウエアおよび/またはデーターの協働、または特有の処理を行う回路や構成要素の追加等によって、図9のブロック図に示す構成が機能的に実現されている。
<Regarding the configuration of the control unit>
As shown in FIG. 2, the control unit 100 includes a CPU 101, a ROM 102, a RAM 103, an EEPROM 104, an ASIC 105, a motor driver 106, and the like, and these are connected via a transmission path 107 such as a bus. The control unit 100 is connected to the computer 120. The configuration shown in the block diagram of FIG. 9 is achieved by the cooperation of these hardware and the software and / or data stored in the ROM 102 or the EEPROM 104, or the addition of circuits or components for performing specific processing. Functionally realized.

図9に示すように、制御部100は、ENC信号抽出部110と、誤差算出部111と、ENC信号決定部112と、メモリー113と、ENC信号選択部114と、タイミング信号生成部115と、モーター制御部116と、を備えている。なお、制御部100のうち、ENC信号抽出部110と、誤差算出部111と、ENC信号決定部112と、メモリー113と、ENC信号選択部114とは、信号選択出力手段および位置検出装置の一部の構成要素に対応する。   As shown in FIG. 9, the control unit 100 includes an ENC signal extraction unit 110, an error calculation unit 111, an ENC signal determination unit 112, a memory 113, an ENC signal selection unit 114, a timing signal generation unit 115, A motor control unit 116. Of the control unit 100, the ENC signal extraction unit 110, the error calculation unit 111, the ENC signal determination unit 112, the memory 113, and the ENC signal selection unit 114 are a signal selection output unit and a position detection device. This corresponds to the component of the part.

これらのうち、ENC信号抽出部110は、A相信号ENC−AおよびB相信号ENC−Bが、それぞれ入力される。そして、このENC信号抽出部110では、これらA相信号ENC−AおよびB相信号ENC−Bについて、所定の周期分だけ取り出す(サンプリングする)。すなわち、ENC信号抽出部110は、A相信号ENC−AおよびB相信号ENC−Bのそれぞれにつき、所定の周期数分だけ、それぞれの周期の時間長さを計測し、A相信号ENC−AおよびB相信号ENC−Bの周期の平均値を算出する。なお、この取り出し(サンプリング)は、CRモーター32が一定の速度で駆動される領域(定速部)において、A相信号ENC−AとB相信号ENC−Bとの周期を、同時(または所定の位相ズレを許容する程度)に計測することにより、行われている。   Among these, the ENC signal extraction unit 110 receives the A-phase signal ENC-A and the B-phase signal ENC-B, respectively. The ENC signal extraction unit 110 extracts (samples) the A phase signal ENC-A and the B phase signal ENC-B for a predetermined period. That is, the ENC signal extraction unit 110 measures the time length of each cycle by a predetermined number of cycles for each of the A-phase signal ENC-A and the B-phase signal ENC-B, and the A-phase signal ENC-A And the average value of the period of B phase signal ENC-B is calculated. In this extraction (sampling), the period of the A-phase signal ENC-A and the B-phase signal ENC-B is simultaneously (or predetermined) in a region where the CR motor 32 is driven at a constant speed (constant speed portion). To the extent that the phase shift is allowed).

なお、A相信号ENC−AおよびB相信号ENC−Bの周期の平均値を算出せずに、A相信号ENC−AおよびB相信号ENC−Bの特定の1周期分を取り出すようにしても良い。また、以下の説明においては、ENC信号抽出部110によって算出されたA相信号ENC−Aの周期を周期TAとすると共に、ENC信号抽出部110によって算出されたB相信号ENC−Bの周期を周期TBとする。   It should be noted that a specific one period of the A phase signal ENC-A and the B phase signal ENC-B is taken out without calculating the average value of the periods of the A phase signal ENC-A and the B phase signal ENC-B. Also good. In the following description, the cycle of the A-phase signal ENC-A calculated by the ENC signal extraction unit 110 is set as a cycle TA, and the cycle of the B-phase signal ENC-B calculated by the ENC signal extraction unit 110 is set as the cycle TA. A period TB is assumed.

誤差算出部111は、周期TAと周期TBとが、誤差のない基準となる周期Tに対して、どれだけの誤差があるのかを算出する。具体的には、以下の(式1)および(式2)に基づいて、%で表される周期誤差TAe,TBeをそれぞれ算出する。
TAe=(1−TA/T)×100 …(式1)
TBe=(1−TB/T)×100 …(式2)
The error calculation unit 111 calculates how much error the cycle TA and the cycle TB have with respect to the cycle T serving as a reference with no error. Specifically, based on the following (Expression 1) and (Expression 2), periodic errors TAe and TBe expressed in% are calculated.
TAe = (1-TA / T) × 100 (Formula 1)
TBe = (1−TB / T) × 100 (Formula 2)

ENC信号決定部112は、誤差算出部111で算出された周期誤差TAe,TBeの結果から、A相信号ENC−AとB相信号ENC−Bのうちのいずれかの検出信号を出力すべきかを決定する。ここでは、周期誤差TAeと周期誤差TBeの値が、小さい検出信号を出力すべきと決定する。   The ENC signal determination unit 112 determines whether to output one of the detection signals of the A phase signal ENC-A and the B phase signal ENC-B from the results of the cyclic errors TAe and TBe calculated by the error calculation unit 111. decide. Here, it is determined that a detection signal with a small value of the cyclic error TAe and the cyclic error TBe should be output.

メモリー113は、ENC信号決定部112において、A相信号ENC−AとB相信号ENC−Bのうちのいずれの検出信号を出力すべきと決定されたのかを示す情報を、ENC信号決定部112の指示に基づいて記憶する部分である。なお、メモリー113には、上述のEEPROM104が該当し得るが、その他の、プリンター10の電源オフ状態でも情報を保持可能な記憶可能な記憶媒体をメモリー113としても良い。   The memory 113 stores information indicating which of the A-phase signal ENC-A and the B-phase signal ENC-B is to be output by the ENC signal determination unit 112 as ENC signal determination unit 112. This is a part to be stored based on the instruction. The memory 113 may correspond to the above-described EEPROM 104, but other storage media that can hold information even when the printer 10 is powered off may be used as the memory 113.

ENC信号選択部114は、メモリー113にアクセスして、出力すべきと決定された検出信号に関する情報を取得する。また、ENC信号選択部114には、A相信号ENC−AとB相信号ENC−Bの両方が入力されている。そして、ENC信号選択部114は、A相信号ENC−AとB相信号ENC−Bのうち、出力すべきと決定された検出信号の方を出力させる。   The ENC signal selection unit 114 accesses the memory 113 and obtains information regarding the detection signal determined to be output. Further, both the A-phase signal ENC-A and the B-phase signal ENC-B are input to the ENC signal selection unit 114. Then, the ENC signal selection unit 114 outputs the detection signal determined to be output, of the A-phase signal ENC-A and the B-phase signal ENC-B.

タイミング信号生成部115(タイミング信号生成手段に対応)には、ENC信号選択部114から出力された検出信号が入力される。そして、タイミング信号生成部115は、入力される検出信号から、タイミング信号PTS(Print Timing Signal)を生成する。このとき、入力される検出信号に対して、所定の逓倍処理を行って、タイミング信号PTSを生成するようにしても良い。   The detection signal output from the ENC signal selection unit 114 is input to the timing signal generation unit 115 (corresponding to the timing signal generation unit). Then, the timing signal generation unit 115 generates a timing signal PTS (Print Timing Signal) from the input detection signal. At this time, a predetermined multiplication process may be performed on the input detection signal to generate the timing signal PTS.

このタイミング信号生成部115で生成されたタイミング信号PTSは、印刷ヘッド38に供給される。そして、このタイミング信号PTSに基づいて、印刷ヘッド38に別途供給される駆動信号のタイミング制御を行っている。   The timing signal PTS generated by the timing signal generator 115 is supplied to the print head 38. Based on this timing signal PTS, timing control of a drive signal separately supplied to the print head 38 is performed.

モーター制御部116には、ENC信号選択部114から出力された検出信号が入力される。そして、モーター制御部116は、入力される検出信号に基づいて、CRモーター32の駆動制御を行う。なお、CRモーター32の駆動制御に際しては、たとえばPID制御のようなフィードバック制御によって、所定の目標速度テーブルまたは所定の目標位置テーブルに追従するように制御しても良い。また、CRモーター32の駆動制御に際しては、所定のオープン制御を行うようにしても良い。また、入力される検出信号に対して、所定の逓倍処理を行って、CRモーター32の駆動制御を行うようにしても良い。   The detection signal output from the ENC signal selection unit 114 is input to the motor control unit 116. The motor control unit 116 performs drive control of the CR motor 32 based on the input detection signal. Note that the drive control of the CR motor 32 may be controlled to follow a predetermined target speed table or a predetermined target position table by feedback control such as PID control. In addition, when the drive control of the CR motor 32 is performed, a predetermined open control may be performed. In addition, a predetermined multiplication process may be performed on the input detection signal to control the driving of the CR motor 32.

<制御部の構成から生じる動作>
以上のように、A相信号ENC−AおよびB相信号ENC−Bが制御部100に入力されると、信号選択方法に関する動作が実行される。すなわち、A相信号ENC−AおよびB相信号ENC−Bのうちのいずれかの検出信号を出力するように決定されて、その情報がメモリー113に記憶させられる。そして、このメモリー113にENC信号選択部114がアクセスして、出力すべきと決定された検出信号に関する情報を取得する。そして、ENC信号選択部114では、A相信号ENC−AとB相信号ENC−Bのうち、出力すべきと決定された検出信号の方を、タイミング信号生成部115および/またはモーター制御部116に出力する。
<Operations resulting from the configuration of the control unit>
As described above, when the A-phase signal ENC-A and the B-phase signal ENC-B are input to the control unit 100, the operation related to the signal selection method is executed. That is, it is determined to output one of the detection signals of the A phase signal ENC-A and the B phase signal ENC-B, and the information is stored in the memory 113. Then, the ENC signal selection unit 114 accesses the memory 113 to acquire information regarding the detection signal determined to be output. Then, in the ENC signal selection unit 114, the timing signal generation unit 115 and / or the motor control unit 116 selects the detection signal determined to be output from the A phase signal ENC-A and the B phase signal ENC-B. Output to.

それにより、タイミング信号生成部115では、選択された検出信号からタイミング信号PTSが生成される。印刷ヘッド38においては、このタイミング信号PTSに基づいて、別途供給される駆動信号のタイミング制御が為される。また、モーター制御部116では、選択された検出信号に基づいて、CRモーター32の速度制御または位置制御といった駆動制御が為される。   As a result, the timing signal generator 115 generates the timing signal PTS from the selected detection signal. In the print head 38, timing control of a separately supplied drive signal is performed based on the timing signal PTS. Further, the motor control unit 116 performs drive control such as speed control or position control of the CR motor 32 based on the selected detection signal.

<効果>
このような構成のプリンター10、位置検出装置および信号選択方法によれば、制御部100のENC信号抽出部110には、2つの検出信号が入力され、誤差算出部111で周期誤差TAe,TBeを算出し、ENC信号決定部112でいずれの検出信号を出力するのかを決定し、それをメモリー113に記憶させる。そして、ENC信号選択部114では、出力すべきと決定された検出信号を出力させる。
<Effect>
According to the printer 10, the position detection apparatus, and the signal selection method configured as described above, two detection signals are input to the ENC signal extraction unit 110 of the control unit 100, and the cyclic error TAe and TBe are calculated by the error calculation unit 111. Then, the ENC signal determination unit 112 determines which detection signal to output, and stores it in the memory 113. Then, the ENC signal selection unit 114 outputs a detection signal determined to be output.

このようにすることにより、選択されなかった検出信号を選択/出力する場合と比較して、基準となる検出信号に対する誤差を低減可能となる。この状態を、図10を用いて説明する。図10は、発光部61に導通させる電流を変化させた場合の、A相信号ENC−AとB相信号ENC−Bとが、基準となる周期Tに対して、どれだけの誤差を有しているのかを示す実験結果である。   By doing so, it is possible to reduce an error with respect to a reference detection signal as compared with the case of selecting / outputting a detection signal that has not been selected. This state will be described with reference to FIG. FIG. 10 shows how much error the A-phase signal ENC-A and the B-phase signal ENC-B have with respect to the reference period T when the current conducted to the light emitting unit 61 is changed. It is an experimental result which shows whether it is.

実験結果(A)では、A相信号ENC−Aにおける誤差の方が、B相信号ENC−Bにおける誤差よりも、概ね4%台後半ほど小さくなっている。この状況下で、ENC信号選択部114から出力させる検出信号をA相信号ENC−Aとなるように決定すれば、出力される検出信号の周期が、他の検出信号を選択する場合と比較して、概ね4%台後半の誤差の分だけ誤差を小さくすることが可能となる。また、実験結果(B)では、B相信号ENC−Bにおける誤差の方が、A相信号ENC−Aにおける誤差よりも、概ね3%台弱ほど小さくなっている。この状況下で、ENC信号選択部114から出力させる検出信号をB相信号ENC−Bとなるように決定すれば、力される検出信号の周期が、他の検出信号を選択する場合と比較して、概ね3%台弱の誤差の分だけ誤差を小さくすることが可能となる。   In the experimental result (A), the error in the A-phase signal ENC-A is smaller by about 4% than the error in the B-phase signal ENC-B. Under this situation, if the detection signal to be output from the ENC signal selection unit 114 is determined to be the A-phase signal ENC-A, the period of the detection signal to be output is compared with the case of selecting another detection signal. Thus, it is possible to reduce the error by the error in the latter half of the 4% range. In the experimental result (B), the error in the B-phase signal ENC-B is smaller than the error in the A-phase signal ENC-A by about 3%. Under this situation, if the detection signal to be output from the ENC signal selection unit 114 is determined to be the B-phase signal ENC-B, the period of the detection signal to be applied is compared with the case of selecting another detection signal. Thus, it is possible to reduce the error by an error of about 3%.

また、本実施の形態では、ENC信号選択部114から出力される検出信号に基づいて、タイミング信号生成部115によってタイミング信号PTSを生成すると、選択されなかった検出信号に基づいてタイミング信号PTSを生成する場合と比較して、インクの噴射のタイミングが、より適正なものへと近づけることが可能となる。そのため、インクの噴射によって印刷媒体Pに形成される印刷画像の画質を向上させることが可能となる。   In the present embodiment, when the timing signal PTS is generated by the timing signal generation unit 115 based on the detection signal output from the ENC signal selection unit 114, the timing signal PTS is generated based on the detection signal not selected. Compared with the case where it does, it becomes possible to make the timing of the ejection of ink closer to a more appropriate one. Therefore, it is possible to improve the image quality of a print image formed on the print medium P by ink ejection.

さらに、本実施の形態では、制御部100(ENC信号抽出部110〜ENC信号選択部114)は、検出信号の基準となる基準周期に対して、それぞれの検出信号の周期のうち誤差が最も小さいものを選択して外部へ出力している。このため、選択されなかった検出信号を選択/出力する場合と比較して、基準となる検出信号に対する誤差を低減可能となる。それにより、各種の制御において、当該制御の正確性を向上させることが可能となる。   Furthermore, in the present embodiment, the control unit 100 (ENC signal extraction unit 110 to ENC signal selection unit 114) has the smallest error in the period of each detection signal with respect to the reference period that is the reference of the detection signal. A thing is selected and output to the outside. For this reason, it is possible to reduce an error with respect to a reference detection signal as compared with the case of selecting / outputting a detection signal that has not been selected. Thereby, in various controls, it becomes possible to improve the accuracy of the control.

また、本実施の形態では、制御部100(ENC信号抽出部110〜ENC信号選択部114)から出力される検出信号に基づき、モーター制御部116によって、キャリッジ31を駆動させるCRモーター32の制御が為されている。このため、キャリッジ31の速度制御において、速度変動を抑えることが可能となる。また、キャリッジ31の停止位置制御等の位置制御においても、その精度を向上させることが可能となる。また、速度変動を抑え、さらには位置制御の精度を向上させることにより、印刷媒体Pに形成される印刷画像の画質を向上させることが可能となる。   Further, in the present embodiment, the motor control unit 116 controls the CR motor 32 that drives the carriage 31 based on the detection signal output from the control unit 100 (ENC signal extraction unit 110 to ENC signal selection unit 114). It has been done. For this reason, it is possible to suppress speed fluctuations in the speed control of the carriage 31. Further, the accuracy of position control such as stop position control of the carriage 31 can be improved. Further, it is possible to improve the image quality of the print image formed on the print medium P by suppressing the speed fluctuation and further improving the accuracy of the position control.

また、本実施の形態では、検出信号の誤差の小さな、高価なリニアーエンコーダーを用いなくても、本実施の形態における制御部100を備えることにより、廉価なリニアーエンコーダーを用いる場合でも、検出信号の誤差を小さくすることができるので、コストの低減が可能となる。   Further, in the present embodiment, even if an inexpensive linear encoder is used by providing the control unit 100 in the present embodiment without using an expensive linear encoder with a small detection signal error, the detection signal Since the error can be reduced, the cost can be reduced.

<変形例>
以上、本発明の一実施の形態について述べたが、本発明は、種々変形可能である。以下、それについて述べる。
<Modification>
Although one embodiment of the present invention has been described above, the present invention can be variously modified. This will be described below.

上述の実施の形態では、A相信号ENC−AおよびB相信号ENC−Bの2つの検出信号の中から、誤差の小さな検出信号の方を、ENC信号選択部114から出力するようにしている。しかしながら、検出信号は2つに限られるものではなく、3つ以上の検出信号が存在するものに対して本発明を適用することは、勿論可能である。   In the above-described embodiment, the detection signal with a smaller error is output from the ENC signal selection unit 114 out of the two detection signals of the A-phase signal ENC-A and the B-phase signal ENC-B. . However, the number of detection signals is not limited to two, and it is of course possible to apply the present invention to a signal having three or more detection signals.

さらに、上述の実施の形態では、プリンター10を長期に亘って使用した場合において、検出信号の出力変動が生じる点については、触れられていない。しかしながら、プリンター10の長期に亘る使用により、検出信号の出力変動が生じる場合にも、対応させる構成としても良い。以下、この場合について説明する。   Furthermore, in the above-described embodiment, the point that output fluctuation of the detection signal occurs when the printer 10 is used for a long time is not mentioned. However, the printer 10 may be configured to cope with a case where the detection signal output fluctuates due to long-term use of the printer 10. Hereinafter, this case will be described.

図11に示す制御部100Aは、カウント手段に対応するカウント部117を有している。カウント部117は、プリンター10の使用開始からの累積的な経過時間、使用時間または印刷ヘッド38で印刷を行った印刷媒体Pの枚数のうちのいずれかの指標値に関する信号が入力され、カウント部117では、指標値のカウントを行う。また、カウント部117は、上述の指標値が、カウント部117の記憶部位または別途のメモリーに記憶されている判定閾値に到達したか否か(判定閾値より大きくなったか否か、または判定閾値以上となったか否か)を判定する。この判定の結果、指標値が判定閾値に到達したと判定される場合には、カウント部117からの指令によりENC信号抽出部110での差動が開始され、2つ(または複数)の検出信号の中から、出力させるべき検出信号が決定される。   The control unit 100A illustrated in FIG. 11 includes a counting unit 117 corresponding to the counting unit. The count unit 117 receives a signal related to an index value of either the cumulative elapsed time from the start of use of the printer 10, the usage time, or the number of print media P printed by the print head 38. In 117, the index value is counted. In addition, the count unit 117 determines whether or not the above-described index value has reached a determination threshold value stored in the storage part of the count unit 117 or a separate memory (whether the index value is greater than the determination threshold value, or greater than or equal to the determination threshold value). Or not). As a result of this determination, if it is determined that the index value has reached the determination threshold value, the ENC signal extraction unit 110 starts differential operation in response to a command from the counting unit 117, and two (or a plurality) detection signals are detected. The detection signal to be output is determined from the above.

このように構成する場合には、プリンター10の長期間の使用に伴い、何等かの原因(たとえば、リニアースケール51へのミストの付着、リニアーエンコーダー50の劣化等)によって、いずれかの検出信号に変動が生じている場合であっても、基準となる検出信号に最も近い検出信号を選択して、出力させることが可能となる。それにより、発光部61および受光部62を有するリニアーエンコーダー50の長寿命化を図ることが可能となる。   In the case of such a configuration, any detection signal is caused by any cause (for example, mist adhesion to the linear scale 51, deterioration of the linear encoder 50, etc.) due to the long-term use of the printer 10. Even when fluctuations occur, it is possible to select and output the detection signal closest to the reference detection signal. As a result, the life of the linear encoder 50 having the light emitting unit 61 and the light receiving unit 62 can be extended.

また、上述の実施の形態では、制御部100(ENC信号抽出部110〜ENC信号選択部114)は、リニア−エンコーダー50に関して、それぞれの検出信号の周期のうち誤差が最も小さいものを選択して外部へ出力している。しかしながら、本発明の適用は、リニアーエンコーダーに限られるものではなく、たとえばロータリーエンコーダー80に本発明を適用することは、勿論可能である。また、それ以外のA相の検出信号とB相の検出信号、またはそれ以上の複数の検出信号を出力するエンコーダーに対して、本発明を適用することは、勿論可能である。   In the above-described embodiment, the control unit 100 (ENC signal extraction unit 110 to ENC signal selection unit 114) selects the one with the smallest error among the periods of the respective detection signals with respect to the linear encoder 50. Output to the outside. However, the application of the present invention is not limited to the linear encoder, and it is of course possible to apply the present invention to the rotary encoder 80, for example. It is of course possible to apply the present invention to encoders that output other detection signals of A phase and B phase, or a plurality of detection signals higher than that.

また、上述の実施の形態では、制御部100は、プリンター10に存在しているものとして説明している。しかしながら、制御部100の一部の構成要素を、別途の測定機器に搭載して用いるようにしても良い。たとえば、ENC信号抽出部110、誤差算出部111、ENC信号決定部112を、別途の測定機器に搭載して用いるようにしても良い。ここで、制御部100の一部の構成要素を、別途の測定機器に搭載する場合であっても、(プリンター10のうち一部の構成要素を除いたもの)と(一部の構成要素を搭載する別途の測定機器)とによって、本実施の形態におけるプリンター10と同様のもの(プリンターシステム)を構成することが可能となる。   In the above-described embodiment, the control unit 100 is described as existing in the printer 10. However, some components of the control unit 100 may be used by being mounted on a separate measuring device. For example, the ENC signal extraction unit 110, the error calculation unit 111, and the ENC signal determination unit 112 may be mounted on a separate measuring device and used. Here, even when some components of the control unit 100 are mounted on a separate measuring device, (excluding some components of the printer 10) and (some components are By using a separate measuring device), it is possible to configure the same printer (printer system) as the printer 10 in the present embodiment.

また、上述の実施の形態においては、制御部100における各構成は、ソフトウエア的に実現されるものでも良く、また回路的に実現される構成であっても良い。   In the above-described embodiment, each configuration in the control unit 100 may be realized by software or may be realized by a circuit.

また、上述の各実施の形態では、プリンター10をインクジェット式のプリンター10としている。しかしながら、プリンター10は、インクジェット式のプリンター10に適用される場合には限られず、例えば、ジェルジェット方式のプリンター、トナー方式のプリンター、ドットインパクト方式のプリンター等、種々のタイプのプリンターとしても良い。また、プリンター以外のスキャナー装置、ファックス装置、コピー装置等を備える複合機を、本発明のプリンターとしても良い。   In each of the above-described embodiments, the printer 10 is the ink jet printer 10. However, the printer 10 is not limited to being applied to the ink jet printer 10, and may be various types of printers such as a gel jet printer, a toner printer, and a dot impact printer. In addition, a multifunction machine including a scanner device other than a printer, a fax device, a copy device, and the like may be used as the printer of the present invention.

また、上述の実施の形態におけるプリンター10の概念には、インク以外の他の液体(液体そのものや、機能材料の粒子が液体に分散又は混合されてなる液状体、ゲルのような流動性を有する材質を含む)を噴射したり吐出したりする流体噴射装置を含むようにすることもできる。そのようなものとしては、液晶ディスプレイ、EL(エレクトロルミネッセンス)ディスプレイ及び面発光ディスプレイの製造などに用いられる電極材や色材(画素材料)などの材料を分散または溶解のかたちで含む液体を噴射する液状体噴射装置、バイオチップ製造に用いられる生体有機物を噴射する流体噴射装置、精密ピペットとして用いられ試料となる液体を噴射する流体噴射装置等がある。   Further, the concept of the printer 10 in the above-described embodiment includes fluids such as liquids other than ink (liquids themselves, liquids obtained by dispersing or mixing functional material particles in liquids, and gels). It is also possible to include a fluid ejecting apparatus that ejects or discharges (including material). As such, a liquid containing a material such as an electrode material or a color material (pixel material) used for manufacturing a liquid crystal display, an EL (electroluminescence) display, and a surface emitting display is dispersed or dissolved. There are a liquid ejecting apparatus, a fluid ejecting apparatus that ejects a bio-organic matter used for biochip manufacturing, a fluid ejecting apparatus that ejects a liquid that is used as a precision pipette and serves as a sample.

さらに、本発明のプリンター10の概念に含まれるものとしては、時計やカメラ等の精密機械にピンポイントで潤滑油を噴射する流体噴射装置、光通信素子等に用いられる微小半球レンズ(光学レンズ)などを形成するために紫外線硬化樹脂等の透明樹脂液を基板上に噴射する流体噴射装置、基板などをエッチングするために酸又はアルカリ等のエッチング液を噴射する流体噴射装置、ゲル(例えば物理ゲル)などの流状体を噴射する流状体噴射装置等がある。   Further, the concept of the printer 10 of the present invention includes a micro hemispherical lens (optical lens) used in a fluid ejecting apparatus, an optical communication element, and the like that ejects lubricating oil pinpoint to a precision machine such as a watch or a camera. A fluid ejecting apparatus that ejects a transparent resin liquid such as an ultraviolet curable resin onto a substrate to form a substrate, a fluid ejecting apparatus that ejects an etchant such as an acid or an alkali to etch the substrate, etc., a gel (for example, a physical gel ) And the like.

10…プリンター、20…筐体部、21…シャーシ、22…支持フレーム、30…キャリッジ駆動機構、31…キャリッジ、32…CRモーター、38…印刷ヘッド、40…用紙搬送機構、41…PFモーター、50…リニアーエンコーダー、51…リニアースケール(スケールに対応)、51a…透光部、51b…遮光部、60…フォトセンサー、61…発光部、62…受光部、66a〜67b,660a,660b…受光素子、66,67,660…受光素子列、80…ロータリーエンコーダー、81…ロータリースケール、82…フォトセンサー、100,100A…制御部(信号選択出力手段に対応)、110…ENC信号抽出部、111…誤差算出部、112…ENC信号決定部、113…メモリー、114…ENC信号選択部、115…タイミング信号生成部(タイミング信号生成手段に対応)、116…モーター制御部、117…カウント部(カウント手段に対応)、120…コンピューター、610…発光素子、P…印刷媒体、PTS…タイミング信号   DESCRIPTION OF SYMBOLS 10 ... Printer, 20 ... Housing | casing part, 21 ... Chassis, 22 ... Support frame, 30 ... Carriage drive mechanism, 31 ... Carriage, 32 ... CR motor, 38 ... Print head, 40 ... Paper conveyance mechanism, 41 ... PF motor, DESCRIPTION OF SYMBOLS 50 ... Linear encoder, 51 ... Linear scale (corresponding to a scale), 51a ... Translucent part, 51b ... Light-shielding part, 60 ... Photo sensor, 61 ... Light-emitting part, 62 ... Light-receiving part, 66a-67b, 660a, 660b ... Light reception Element, 66, 67, 660... Light receiving element array, 80... Rotary encoder, 81... Rotary scale, 82... Photo sensor, 100, 100A .. Control unit (corresponding to signal selection output means) 110. ... error calculation unit, 112 ... ENC signal determination unit, 113 ... memory, 114 ... ENC signal selection unit, 15 ... timing signal generation unit (corresponding to the timing signal generating means), 116 ... motor control unit, 117 ... counter unit (corresponding to the count means), 120 ... Computer, 610 ... light emitting element, P ... print medium, PTS ... timing signal

Claims (6)

光を発する発光部と、
上記発光部からの光を透過する透光部および上記発光部からの光を遮断する遮光部が少なくとも交互に形成されているスケールと、
上記スケールを挟んで上記発光部とは反対側に位置すると共に、被駆動物の駆動に応じて生成される上記透光部を透過した周期的な特徴を有する光に基づき、位相が異なる少なくとも2つの検出信号を出力する受光部と、
少なくとも2つの上記検出信号が入力されると共に、これらのうちからいずれかの検出信号を選択して出力する制御を行う信号選択出力手段と、
上記信号選択出力手段から出力される上記検出信号に基づいて、インクを印刷媒体に向けて噴射する印刷ヘッドからの上記インクの噴射のタイミングを指示するためのタイミング信号を生成するタイミング信号生成手段と、
を具備し、
上記信号選択出力手段は、上記被駆動物が一定速度で駆動させられる状態において、それぞれの上記検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力する、
ことを特徴とするプリンター。
A light emitting unit that emits light;
A scale in which at least alternating light-transmitting parts that transmit light from the light-emitting part and light-shielding parts that block light from the light-emitting part are formed;
Based on light having a periodic characteristic that is located on the opposite side of the light emitting unit with the scale interposed and transmitted through the light transmitting unit generated in response to driving of the driven object, the phase is different from at least 2 A light receiving unit that outputs two detection signals;
At least two detection signals are input, and a signal selection output unit that performs control to select and output one of these detection signals,
Timing signal generation means for generating a timing signal for instructing the timing of ejection of the ink from the print head that ejects ink toward the print medium based on the detection signal output from the signal selection output means; ,
Comprising
The signal selection output means compares the detection signals in a state where the driven object is driven at a constant speed, and selects and outputs the one closest to the reference detection signal.
A printer characterized by that.
請求項1記載のプリンターであって、
前記検出信号の出力レベルは、所定の閾値を越えるHレベルと、所定の閾値を越えないLレベルとが存在すると共に、
前記信号選択出力手段は、前記検出信号の基準となる基準周期に対して、それぞれの前記検出信号の周期のうち誤差が最も小さいものを選択して外部へ出力する、
ことを特徴とするプリンター。
The printer according to claim 1,
The detection signal output level includes an H level exceeding a predetermined threshold and an L level not exceeding the predetermined threshold,
The signal selection output means selects the one having the smallest error among the periods of the detection signals with respect to a reference period serving as a reference of the detection signal, and outputs the selected one to the outside.
A printer characterized by that.
請求項1または2記載のプリンターであって、
前記被駆動物は前記印刷ヘッドが取り付けられているキャリッジであると共に、
前記発光部および前記受光部は、上記キャリッジに取り付けられていて、
上記キャリッジを駆動させる駆動力を与えるモーターと、
上記信号選択出力手段から出力される上記検出信号に基づいて、上記モーターの駆動の制御を行うモーター制御手段と、
を備えることを特徴とするプリンター。
The printer according to claim 1 or 2,
The driven object is a carriage to which the print head is attached,
The light emitting unit and the light receiving unit are attached to the carriage,
A motor for providing a driving force for driving the carriage;
Motor control means for controlling the drive of the motor based on the detection signal output from the signal selection output means;
A printer comprising:
請求項1から3のいずれか1項に記載のプリンターであって、
累積的な経過時間、使用時間または前記印刷ヘッドで印刷を行った印刷媒体の枚数のうちのいずれかの指標値をカウントするカウント手段を具備すると共に、
前記信号選択出力手段は、上記カウント手段における上記指標値が所定の判定閾値に到達した場合に、前記信号選択出力により、少なくとも2つの前記検出信号のうちからいずれかの検出信号を選択して出力する制御を行う、
ことを特徴とするプリンター。
The printer according to any one of claims 1 to 3,
A counting means for counting an index value of any one of cumulative elapsed time, usage time or the number of print media printed by the print head;
The signal selection output means selects and outputs one of at least two detection signals by the signal selection output when the index value in the counting means reaches a predetermined determination threshold. Do control,
A printer characterized by that.
光を発する発光部と、
上記発光部からの光を透過する透光部および上記発光部からの光を遮断する遮光部が少なくとも交互に形成されているスケールと、
上記スケールを挟んで上記発光部とは反対側に位置すると共に、被駆動物の駆動に応じて生成される上記透光部を透過した周期的な特徴を有する光に基づき、位相が異なる少なくとも2つの検出信号を出力する受光部と、
少なくとも2つの上記検出信号が入力されると共に、これらのうちからいずれかの検出信号を選択して出力する制御を行う信号選択出力手段と、
を具備し、
上記信号選択出力手段は、上記被駆動物が一定速度で駆動させられる状態において、それぞれの上記検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力する、
ことを特徴とする位置検出装置。
A light emitting unit that emits light;
A scale in which at least alternating light-transmitting parts that transmit light from the light-emitting part and light-shielding parts that block light from the light-emitting part are formed;
Based on light having a periodic characteristic that is located on the opposite side of the light emitting unit with the scale interposed and transmitted through the light transmitting unit generated in response to driving of the driven object, the phase is different from at least 2 A light receiving unit that outputs two detection signals;
At least two detection signals are input, and a signal selection output unit that performs control to select and output one of these detection signals,
Comprising
The signal selection output means compares the detection signals in a state where the driven object is driven at a constant speed, and selects and outputs the one closest to the reference detection signal.
A position detecting device characterized by that.
発光部からの光を透過する透光部と光を遮断する遮光部が少なくとも交互に形成されているスケールの透光部を透過し、かつ被駆動物の駆動に応じて生成された周期的な特徴を有する光に基づき、位相が異なる少なくとも2つの検出信号を受光部から出力し、それらの検出信号のうちからいずれかの検出信号を選択する信号選択方法であって、
上記被駆動物が一定速度で駆動させられる状態において、それぞれの上記検出信号を比較し、そのうち最も基準となる検出信号に近いものを選択して出力する、
ことを特徴とする信号選択方法。
Periodic light transmitted through a light transmitting part of a scale in which light transmitting parts that transmit light from the light emitting part and light shielding parts that block light are alternately formed and generated according to driving of the driven object A signal selection method for outputting at least two detection signals having different phases based on light having characteristics from a light receiving unit and selecting one of the detection signals from the detection signals,
In the state where the driven object is driven at a constant speed, the detection signals are compared, and the one closest to the reference detection signal is selected and output.
And a signal selection method.
JP2009208983A 2009-09-10 2009-09-10 Printer, position detector, and signal selection method Withdrawn JP2011056791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009208983A JP2011056791A (en) 2009-09-10 2009-09-10 Printer, position detector, and signal selection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009208983A JP2011056791A (en) 2009-09-10 2009-09-10 Printer, position detector, and signal selection method

Publications (1)

Publication Number Publication Date
JP2011056791A true JP2011056791A (en) 2011-03-24

Family

ID=43945013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009208983A Withdrawn JP2011056791A (en) 2009-09-10 2009-09-10 Printer, position detector, and signal selection method

Country Status (1)

Country Link
JP (1) JP2011056791A (en)

Similar Documents

Publication Publication Date Title
US7775654B2 (en) Printing apparatus, program, and printing method
WO2003076190A1 (en) Printer, printing method, program, storage medium and computer system
US7665818B2 (en) Multipass image-forming device having large feed calibration
JP2007136774A (en) Printer, and method for setting detection threshold value of end part of object to be printed
JP2013193350A (en) Image forming apparatus and program for the same
US7883202B2 (en) Image-forming device
US7784892B2 (en) Printer and method of controlling the same
US7402828B2 (en) Position detector that prevents erroneous detection of a scale and liquid ejecting apparatus incorporating the same
JP2007331272A (en) Image forming device
JP2007083636A (en) Position detecting device and liquid delivering apparatus
JP4682790B2 (en) Carriage movement amount detection method and liquid ejection device
JP2011056791A (en) Printer, position detector, and signal selection method
CN110949003B (en) Liquid ejecting apparatus, liquid ejecting method, and storage medium
US8141972B2 (en) Printing apparatus and printing control method
US7766446B2 (en) Position detector and liquid ejecting apparatus incorporating the same
JP4976117B2 (en) Printing device
JP2006056623A (en) Image forming device
JP2005137075A (en) Image forming apparatus
JP4408769B2 (en) Image forming apparatus
JP2009083381A (en) Image recorder and method for setting ejection control
JP2004224005A (en) Conveyer, conveyance method, printing device, and computer system
JP2005028715A (en) Printer, printing method, program, and computer system
JP5304587B2 (en) Liquid ejection apparatus and liquid ejection method
JP2005041080A (en) Printing device, program and computer system
CN112810317A (en) Liquid ejection device and liquid ejection head unit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20121204