[go: up one dir, main page]

JP2008092058A - Image input device and reading unit movement control method - Google Patents

Image input device and reading unit movement control method Download PDF

Info

Publication number
JP2008092058A
JP2008092058A JP2006267882A JP2006267882A JP2008092058A JP 2008092058 A JP2008092058 A JP 2008092058A JP 2006267882 A JP2006267882 A JP 2006267882A JP 2006267882 A JP2006267882 A JP 2006267882A JP 2008092058 A JP2008092058 A JP 2008092058A
Authority
JP
Japan
Prior art keywords
reading
reading unit
unit
image
braking distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006267882A
Other languages
Japanese (ja)
Inventor
Hiroshi Suzuki
大志 鈴木
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 JP2006267882A priority Critical patent/JP2008092058A/en
Publication of JP2008092058A publication Critical patent/JP2008092058A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Scanning Arrangements (AREA)

Abstract

【課題】停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させること。
【解決手段】所定方向に移動して画像の読み取りを行う読み取り部と、前記読み取り部の減速開始からの最大制動距離を記憶するメモリと、前記読み取り部を前記所定方向に移動させ、前記画像の読み取りの開始位置に移動させるときにおいて、前記読み取り開始位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記最大制動距離以上離れた位置から前記読み取り部の減速を開始させるコントローラと、を備える画像入力装置。
【選択図】図14
Even if an error in stopping accuracy occurs, a reading unit is stopped at a position that does not adversely affect the next operation.
A reading unit that moves in a predetermined direction to read an image, a memory that stores a maximum braking distance from the start of deceleration of the reading unit, and the reading unit that moves in the predetermined direction, A controller that sets a stop target position of the reading unit at the reading start position and starts deceleration of the reading unit from a position that is more than the maximum braking distance from the stop target position when moving to the reading start position; An image input device comprising:
[Selection] Figure 14

Description

本発明は、画像入力装置、及び、読み取り部の移動制御方法に関する。   The present invention relates to an image input apparatus and a reading unit movement control method.

画像の読み取り部を原稿台の副走査方向に移動させつつ、画像を読みとるスキャナ装置がある。このスキャナ装置の読み取り部は、駆動モータの回転によって移動が制御される。   There is a scanner device that reads an image while moving an image reading unit in the sub-scanning direction of the document table. The movement of the reading unit of the scanner device is controlled by the rotation of the drive motor.

この読み取り部の移動を行う駆動モータは、ステッピングモータを採用する場合とDCモータを採用する場合とがある。そして、コストの問題から近年ではDCモータを使用することが考えられている。DCモータを使用して読み取り部の移動を制御する場合に、精度良く読み取り部を停止させるためにPID制御が用いられる。
特開2001−8029号公報
The drive motor for moving the reading unit may employ a stepping motor or a DC motor. In recent years, it has been considered to use a DC motor because of cost problems. When controlling the movement of the reading unit using a DC motor, PID control is used to stop the reading unit with high accuracy.
JP 2001-8029 A

しかしながら、PID制御を行ってDCモータを制御したとしても、停止精度の誤差は発生する。このように停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させる必要がある。   However, even if the DC motor is controlled by performing PID control, an error in stop accuracy occurs. Thus, even if a stop accuracy error occurs, it is necessary to stop the reading unit at a position that does not adversely affect the next operation.

本発明は、このような事情に鑑みてなされたものであり、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることを目的とする。   The present invention has been made in view of such circumstances, and it is an object of the present invention to stop a reading unit at a position that does not adversely affect the next operation even when an error in stop accuracy occurs. And

所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最大制動距離を記憶するメモリと、
前記読み取り部を前記所定方向に移動させ、前記画像の読み取りの開始位置に移動させるときにおいて、前記読み取り開始位置から前記所定方向の逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記逆方向に前記最大制動距離以上離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置である。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a maximum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the predetermined direction and moved to the reading start position of the image, the stop target position of the reading unit is set at a position away from the reading start position by a predetermined distance in the reverse direction of the predetermined direction. A controller configured to start deceleration of the reading unit from a position separated from the target stop position by a distance greater than the maximum braking distance in the reverse direction;
Is an image input device.

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

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

所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最大制動距離を記憶するメモリと、
前記読み取り部を前記所定方向に移動させ、前記画像の読み取りの開始位置に移動させるときにおいて、前記読み取り開始位置から前記所定方向の逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記逆方向に前記最大制動距離以上離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a maximum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the predetermined direction and moved to the reading start position of the image, the stop target position of the reading unit is set at a position away from the reading start position by a predetermined distance in the reverse direction of the predetermined direction. A controller configured to start deceleration of the reading unit from a position separated from the target stop position by a distance greater than or equal to the maximum braking distance in the reverse direction;
An image input device comprising:
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

かかる画像入力装置であって、前記所定距離は、前記読み取り部の次の動作時に所定の速度まで加速するための距離を含むことが望ましい。また、前記最大制動距離及び前記最小制動距離は、前記読み取り部の移動速度に関連して決められることが望ましい。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
In the image input apparatus, it is preferable that the predetermined distance includes a distance for accelerating to a predetermined speed at the next operation of the reading unit. The maximum braking distance and the minimum braking distance may be determined in relation to the moving speed of the reading unit.
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最小制動距離を記憶するメモリと、
前記画像の読み取りをやり直すために前記読み取り部を前記所定方向の逆方向に移動させ、読み取りやり直しの開始位置に移動させるときにおいて、前記読み取りやり直しの開始位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記所定方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a minimum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the reverse direction of the predetermined direction in order to redo the reading of the image and moved to the reading redo start position, the reading unit is moved to a position separated by a predetermined distance in the reverse direction from the reading redo start position. A controller that sets a target stop position of the reading unit, and starts deceleration of the reading unit from a position that is within the minimum braking distance in the predetermined direction from the target stop position;
An image input device comprising:
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最小制動距離を記憶するメモリと、
前記読み取り部を前記所定方向の逆方向に移動させ、該読み取り部の所定の初期位置に戻すときにおいて、前記画像の読み取り開始可能位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記所定方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a minimum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the reverse direction of the predetermined direction and returned to the predetermined initial position of the reading unit, the reading unit is stopped at a position separated by a predetermined distance in the reverse direction from the image reading start position. A controller for setting a target position, and starting deceleration of the reading unit from a position within the minimum braking distance in the predetermined direction from the stop target position;
An image input device comprising:
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

読み取り部の減速位置からの最大制動距離を読み出すステップと、
前記読み取り部を読み取り方向に移動させ、画像の読み取りの開始位置に移動させるときにおいて、前記読み取り開始位置から前記読み取り方向の逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定するステップと、
前記停止目標位置より前記逆方向に前記最大制動距離以上離れた位置から前記読み取り部の減速を開始させるステップと、
を含む、読み取り部の移動制御方法。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
Reading the maximum braking distance from the deceleration position of the reading unit;
When the reading unit is moved in the reading direction and moved to the image reading start position, the stop target position of the reading unit is set at a position away from the reading start position by a predetermined distance in the direction opposite to the reading direction. Steps,
Starting deceleration of the reading unit from a position that is more than the maximum braking distance in the reverse direction from the target stop position;
A method for controlling the movement of the reading unit.
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

読み取り部の減速位置からの最小制動距離を読み出すステップと、
画像の読み取りをやり直すために前記読み取り部を読み取り方向の逆方向に移動させ、読み取りやり直しの開始位置に移動させるときにおいて、前記読み取りやり直しの開始位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定するステップと、
前記停止目標位置より前記読み取り方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるステップと、
を含む、読み取り部の移動制御方法。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
Reading the minimum braking distance from the deceleration position of the reading unit;
When the reading unit is moved in the reverse direction of the reading direction in order to redo the reading of the image and moved to the starting position of the redoing of reading, the reading is performed at a position away from the starting point of the redoing of reading by a predetermined distance in the reverse direction. Setting a stop target position of the part,
Starting deceleration of the reading unit from a position separated from the target stop position within the minimum braking distance in the reading direction;
A method for controlling the movement of the reading unit.
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

読み取り部の減速位置からの最小制動距離を読み出すステップと、
前記読み取り部を読み取り方向の逆方向に移動させ、該読み取り部の所定の初期位置に戻すときにおいて、前記画像の読み取り開始可能位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止位置を設定するステップと、
前記停止目標位置より前記読み取り方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるステップと、
を含む、読み取り部の移動制御方法。
このようにすることで、停止精度の誤差が発生してしまう場合であっても、次の動作に悪影響を及ぼさない位置に読み取り部を停止させることができる。
Reading the minimum braking distance from the deceleration position of the reading unit;
When the reading unit is moved in the reverse direction of the reading direction and returned to the predetermined initial position of the reading unit, the stop position of the reading unit at a position separated by a predetermined distance in the reverse direction from the reading start position of the image Steps to set
Starting deceleration of the reading unit from a position separated from the target stop position within the minimum braking distance in the reading direction;
A method for controlling the movement of the reading unit.
In this way, even if an error in stop accuracy occurs, the reading unit can be stopped at a position that does not adversely affect the next operation.

===印刷システムの構成===
図1は、本実施形態のSPC複合装置の全体図である。図2は、SPC複合装置の構成のブロック図である。本実施形態のSPC複合装置1は、原稿から画像を読み取るためのスキャナ機能、外部のコンピュータからの印刷データに基づいて画像を紙に印刷するプリンタ機能、スキャナ機能により入力した画像を紙に印刷するコピー機能を有する複合装置である。
=== Configuration of Printing System ===
FIG. 1 is an overall view of the SPC multifunction apparatus according to the present embodiment. FIG. 2 is a block diagram of the configuration of the SPC multifunction apparatus. The SPC multifunction apparatus 1 according to the present embodiment prints an image input by a scanner function for reading an image from a document, a printer function for printing an image on paper based on print data from an external computer, and an image input by the scanner function. This is a composite apparatus having a copy function.

このSPC複合装置1は、プリンタ部10と、スキャナ部20と、パネル部30と、コントローラ50と、メモリ60とを有する。プリンタ部10の主な構成要素は、SPC複合装置1の下部に設けられている。スキャナ部20は、プリンタ部10の上方に設けられている。パネル部30は、ユーザが操作し易いように、SPC複合装置1の前面に設けられている。   The SPC multifunction apparatus 1 includes a printer unit 10, a scanner unit 20, a panel unit 30, a controller 50, and a memory 60. The main components of the printer unit 10 are provided in the lower part of the SPC multifunction apparatus 1. The scanner unit 20 is provided above the printer unit 10. The panel unit 30 is provided on the front surface of the SPC multifunction apparatus 1 so that the user can easily operate it.

図3は、SPC複合装置1におけるプリンタ部10の説明図である。プリンタ部10は、紙を搬送する搬送ユニット(不図示)と、インクを吐出するヘッドを移動させるキャリッジ16とを有し、搬送ユニットによる搬送動作と、移動するヘッドからインクを吐出するドット形成動作とを交互に繰り返すことにより、いわゆるインクジェット方式により紙に印刷を行う。不図示の搬送ユニットは、SPC複合装置1の背面の給紙部12にセットされた紙を給紙し、SPC複合装置1の前面の排紙部14へ印刷された紙を排紙する。SPC複合装置1の上部に設けられたスキャナ部20を持ち上げると、プリンタ部10のキャリッジ16が露出し、キャリッジに搭載されるインクカートリッジ162の交換が可能になる。   FIG. 3 is an explanatory diagram of the printer unit 10 in the SPC multifunction apparatus 1. The printer unit 10 includes a transport unit (not shown) that transports paper, and a carriage 16 that moves a head that ejects ink. The transport operation by the transport unit and a dot formation operation that ejects ink from the moving head. By alternately repeating the above, printing is performed on paper by a so-called inkjet method. A transport unit (not shown) feeds the paper set in the paper feeding unit 12 on the back surface of the SPC multifunction device 1 and ejects the printed paper to the paper ejection unit 14 on the front surface of the SPC multifunction device 1. When the scanner unit 20 provided at the top of the SPC multifunction apparatus 1 is lifted, the carriage 16 of the printer unit 10 is exposed, and the ink cartridge 162 mounted on the carriage can be replaced.

図4は、SPC複合装置1におけるスキャナ部20の説明図である。スキャナ部20は、上蓋21と、載置ガラス22とを有する。載置ガラス22に原稿5が置かれたときに上蓋21を閉じると、原稿5が載置ガラス22に押圧されて原稿が平らになり、原稿5がスキャナ部20にセットされる。なお、スキャナ部20の主な構成については、後述する。   FIG. 4 is an explanatory diagram of the scanner unit 20 in the SPC multifunction apparatus 1. The scanner unit 20 includes an upper lid 21 and a placement glass 22. When the upper cover 21 is closed when the document 5 is placed on the placing glass 22, the document 5 is pressed against the placing glass 22 to flatten the document 5, and the document 5 is set on the scanner unit 20. The main configuration of the scanner unit 20 will be described later.

パネル部30は、液晶ディスプレイと、各種のボタンを有する。ユーザは、各種のボタンを押すことにより、SPC複合装置1に対して情報を入力することができる。例えば、ユーザがパネル部30のコピーボタンを押すことにより、SPC複合装置1にコピーを行わせることができる。   The panel unit 30 has a liquid crystal display and various buttons. The user can input information to the SPC multifunction apparatus 1 by pressing various buttons. For example, when the user presses the copy button on the panel unit 30, the SPC multifunction apparatus 1 can be made to copy.

コントローラ50は、プリンタ部10やスキャナ部20等を制御し、SPC複合装置の全体の制御を行う。このコントローラ50は、不図示のCPUやASIC等から構成される。また、CPUの演算領域やプログラムの記憶領域を確保するメモリ60もコントローラ50の一部を構成する。後述するコントローラ50の機能は、ソフトウェアによって実現されても良いし、ハードウェアによって実現されても良いし、ソフトウェア及びハードウェアの協働によって実現されても良い。   The controller 50 controls the printer unit 10, the scanner unit 20, and the like, and controls the entire SPC multifunction apparatus. The controller 50 includes a CPU, ASIC, etc. (not shown). Further, a memory 60 that secures a CPU calculation area and a program storage area also forms part of the controller 50. The function of the controller 50 to be described later may be realized by software, hardware, or cooperation of software and hardware.

<プリンタ機能について>
図5は、プリンタ機能時のデータの流れの説明図である。
コンピュータ3には、予めSPC複合装置1のプリンタドライバがインストールされている。そして、プリンタドライバは、コンピュータ3に、アプリケーションソフトにより作成された画像データを印刷データに変換させる。この印刷データには、コマンドデータと画素データとが含まれている。コマンドデータは、SPC複合装置1のプリンタ部を制御するためのデータである。画素データは、印刷画像を構成するドットの有無・色・階調に関するデータである。そして、プリンタドライバは、コンピュータに、印刷データをSPC複合装置1に送信させる。
<About the printer function>
FIG. 5 is an explanatory diagram of the flow of data during the printer function.
A printer driver for the SPC multifunction apparatus 1 is installed in the computer 3 in advance. Then, the printer driver causes the computer 3 to convert the image data created by the application software into print data. This print data includes command data and pixel data. The command data is data for controlling the printer unit of the SPC multifunction apparatus 1. The pixel data is data related to the presence / absence, color, and gradation of the dots constituting the print image. Then, the printer driver causes the computer to transmit print data to the SPC multifunction apparatus 1.

コントローラ50は、コンピュータ3から送られてきた印刷データを、コマンドデータと画素データとに分離して、メモリ60にバッファする。そして、コントローラ50は、受信したコマンドデータに基づいてプリンタ部10を制御し、画素データに基づいてヘッドからインクを吐出させ、印刷を行う。これにより、SPC複合装置1は、外部のコンピュータ3からの印刷データに基づいて画像を紙に印刷するプリンタとして機能する。   The controller 50 separates the print data sent from the computer 3 into command data and pixel data and buffers them in the memory 60. The controller 50 controls the printer unit 10 based on the received command data, and performs printing by ejecting ink from the head based on the pixel data. Accordingly, the SPC multifunction apparatus 1 functions as a printer that prints an image on paper based on print data from the external computer 3.

<スキャナ機能について>
図6は、スキャナ機能時のデータの流れの説明図である。
コンピュータ3には、予めSPC複合装置1のスキャナドライバがインストールされている。また、ユーザは、予めスキャナ部20に原稿5をセットする。そして、ユーザは、コンピュータ3上でスキャナドライバの設定を行い、例えば読取解像度、白黒・カラー、読み取り範囲などの設定を行う。
ユーザがコンピュータ上でスキャナドライバによりスキャン開始を指示すると、スキャナドライバは、コンピュータ3に、ユーザの設定内容に応じた制御データをSPC複合装置1に送信させる。
コントローラ50は、受信した制御データに基づいてスキャナ部20を制御し、スキャナ部20から原稿5の画像データを取得する。スキャナ部20から取得した画像データは、メモリ60に一旦バッファされる。そして、コントローラ50は、取得した画像データをコンピュータ3に送信する。これにより、SPC複合装置1は、原稿5の画像を読み取るスキャナとして機能する。
<About the scanner function>
FIG. 6 is an explanatory diagram of the flow of data during the scanner function.
A scanner driver for the SPC multifunction apparatus 1 is installed in the computer 3 in advance. In addition, the user sets the document 5 on the scanner unit 20 in advance. Then, the user sets the scanner driver on the computer 3 and sets, for example, the reading resolution, black and white / color, and reading range.
When the user instructs to start scanning with the scanner driver on the computer, the scanner driver causes the computer 3 to transmit control data corresponding to the setting contents of the user to the SPC multifunction apparatus 1.
The controller 50 controls the scanner unit 20 based on the received control data, and acquires image data of the document 5 from the scanner unit 20. The image data acquired from the scanner unit 20 is temporarily buffered in the memory 60. Then, the controller 50 transmits the acquired image data to the computer 3. As a result, the SPC multifunction apparatus 1 functions as a scanner that reads an image of the document 5.

<コピー機能について>
図7は、コピー機能時のデータの流れの説明図である。
ユーザは、予めスキャナ部20に原稿5をセットする。そして、ユーザは、パネル部30を操作して、紙の大きさ、原稿の大きさ、倍率、コピーモード(はやい/きれい)等の設定を行う。
<About copy function>
FIG. 7 is an explanatory diagram of the data flow during the copy function.
The user sets the document 5 on the scanner unit 20 in advance. Then, the user operates the panel unit 30 to set the paper size, document size, magnification, copy mode (fast / clean), and the like.

ユーザがパネル部30のコピーボタンを押すと、印刷開始を示す開始信号がパネル部30からコントローラ50へ送られる。コントローラ50は、ユーザの設定内容に応じた制御データに基づいてスキャナ部20を制御し、スキャナ部20から原稿5の画像データを取得する。スキャナ部20から取得した画像データは、メモリ60に一旦バッファされる。   When the user presses the copy button on the panel unit 30, a start signal indicating the start of printing is sent from the panel unit 30 to the controller 50. The controller 50 controls the scanner unit 20 based on the control data corresponding to the user's settings, and acquires the image data of the document 5 from the scanner unit 20. The image data acquired from the scanner unit 20 is temporarily buffered in the memory 60.

スキャナ部20から取得した画像データは、例えば256階調のRGB(レッド、グリーン、ブルー)のデータである。コントローラ50は、このデータを、256階調のCMYK(シアン、マゼンタ、イエロー、ブラック)のデータに変換する(色変換する)。なお、色変換に必要な色変換テーブルは、メモリ60に格納されている。次に、コントローラ50は、256階調のCMYKデータを2階調のCMYKデータに変換する(ハーフトーン処理する)。この2階調のCMYKデータが、印刷データの画素データを構成する。なお、256階調のデータを2階調のデータに変換するための変換テーブルも、メモリ60に格納されている。また、変換された2階調のデータも、メモリ60にバッファされる。   The image data acquired from the scanner unit 20 is, for example, 256 gradation RGB (red, green, blue) data. The controller 50 converts this data into 256-tone CMYK (cyan, magenta, yellow, black) data (color conversion). A color conversion table necessary for color conversion is stored in the memory 60. Next, the controller 50 converts 256-level CMYK data into 2-level CMYK data (halftone processing). The two-tone CMYK data constitutes print data pixel data. A conversion table for converting 256 gradation data into two gradation data is also stored in the memory 60. The converted two-gradation data is also buffered in the memory 60.

画像データが印刷データに変換された後、コントローラ50は、この印刷データに基づいてプリンタ部10を制御して印刷を行う。これにより、SPC複合装置1は、コピー機として機能する。   After the image data is converted into the print data, the controller 50 performs printing by controlling the printer unit 10 based on the print data. As a result, the SPC multifunction apparatus 1 functions as a copier.

===スキャナ部20の構成===
<スキャナ部20の全体構成について>
図8は、スキャナ部20の構成の説明図である。スキャナ部20は、上蓋21及び載置ガラス22のほかに、読取キャリッジ23(読み取り部に相当する)と、駆動ユニット24と、エンコーダ25と、センサユニット70とを更に有する。
=== Configuration of Scanner Unit 20 ===
<Overall Configuration of Scanner Unit 20>
FIG. 8 is an explanatory diagram of the configuration of the scanner unit 20. The scanner unit 20 further includes a reading carriage 23 (corresponding to a reading unit), a drive unit 24, an encoder 25, and a sensor unit 70 in addition to the upper lid 21 and the placement glass 22.

読取キャリッジ23は、ガイド231により移動方向(副走査方向)に沿って移動可能である。この読取キャリッジ23にはセンサユニット70が収容されている。
駆動ユニット24は、駆動モータ241と、プーリ242と、タイミングベルト243とを有する。駆動モータ241が駆動すると、プーリ242が回転されて、タイミングベルト243も回転する。タイミングベルト243の一部が読取キャリッジ23と接合されており、タイミングベルト243が回転すると、読取キャリッジ23がガイド231に沿って移動方向に移動する。
エンコーダ25は、駆動モータ241の回転量を検出する。エンコーダ25の検出結果は、コントローラ50に出力される。コントローラ50は、駆動モータ241の回転量を検出すれば、読取キャリッジ23の速度及び位置を検出することができる。
The reading carriage 23 can be moved along a moving direction (sub-scanning direction) by a guide 231. A sensor unit 70 is accommodated in the reading carriage 23.
The drive unit 24 includes a drive motor 241, a pulley 242, and a timing belt 243. When the drive motor 241 is driven, the pulley 242 is rotated and the timing belt 243 is also rotated. A part of the timing belt 243 is joined to the reading carriage 23, and when the timing belt 243 rotates, the reading carriage 23 moves in the moving direction along the guide 231.
The encoder 25 detects the amount of rotation of the drive motor 241. The detection result of the encoder 25 is output to the controller 50. The controller 50 can detect the speed and position of the reading carriage 23 by detecting the rotation amount of the drive motor 241.

センサユニット70は、光源71と、光学系72と、CCDセンサ73とを有する。光源71は、原稿5に光を照射する。光源71は、RGBの3色のLEDを有し、R点灯→G点灯→B点灯→消灯を順次切り替える。光学系72は、原稿5からの反射光をCCDセンサ73へ結像させる。CCDセンサ73は、受けた光に応じた信号を出力する。CCDセンサ73は、コントローラ50によって制御され、Rデータ→Gデータ→Bデータを画像データとしてコントローラ50へ順次出力することになる。   The sensor unit 70 includes a light source 71, an optical system 72, and a CCD sensor 73. The light source 71 irradiates the document 5 with light. The light source 71 has RGB three-color LEDs, and sequentially switches from R lighting → G lighting → B lighting → off. The optical system 72 forms an image of the reflected light from the document 5 on the CCD sensor 73. The CCD sensor 73 outputs a signal corresponding to the received light. The CCD sensor 73 is controlled by the controller 50 and sequentially outputs R data → G data → B data to the controller 50 as image data.

センサユニット70は、原稿5において、主走査方向に長いライン状の領域の画像を読み取る。このセンサユニット70が読取キャリッジ23により移動方向(副走査方向)に移動することによって、スキャナ部20は原稿5の全体の画像を読み取ることができる。   The sensor unit 70 reads an image of a line-shaped region that is long in the main scanning direction on the document 5. By moving the sensor unit 70 in the moving direction (sub-scanning direction) by the reading carriage 23, the scanner unit 20 can read the entire image of the document 5.

===リニア式エンコーダ===
<エンコーダの構成>
図9Aは、リニア式エンコーダ25の構成を概略的に示したものである。リニア式エンコーダ51は、リニア式エンコーダ符号板464と、検出部466とを備えている。リニア式エンコーダ符号板464は、スキャナ部20の内部に取り付けられている。一方、検出部466は、読取キャリッジ23側に取り付けられている。読取キャリッジ23がガイド231に沿って移動すると、検出部466がリニア式エンコーダ符号板464に沿って相対的に移動する。これによって、検出部466は、読取キャリッジ23の移動量を検出する。
=== Linear encoder ===
<Configuration of encoder>
FIG. 9A schematically shows the configuration of the linear encoder 25. The linear encoder 51 includes a linear encoder code plate 464 and a detection unit 466. The linear encoder code plate 464 is attached inside the scanner unit 20. On the other hand, the detection unit 466 is attached to the reading carriage 23 side. When the reading carriage 23 moves along the guide 231, the detection unit 466 moves relatively along the linear encoder code plate 464. Accordingly, the detection unit 466 detects the amount of movement of the reading carriage 23.

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

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

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

<駆動モータ制御部>
図10は、スキャナ部20の駆動モータ241を制御するコントローラ50の機能的な構成の説明図である。
コントローラ50は、加速制御部339Aと、速度演算部524と、減算部525と、PIDによる演算部526と、PWM回路527とを有する。図中の構成要素のうちの速度演算部524、減算部525及びPID演算部526の機能は、ソフトウェアによって実現される。PWM回路527はハードウェアによって実現される。このように、図中のコントローラ50の機能は、ソフトウェアとハードウェアによって実現される。
<Drive motor controller>
FIG. 10 is an explanatory diagram of a functional configuration of the controller 50 that controls the drive motor 241 of the scanner unit 20.
The controller 50 includes an acceleration control unit 339A, a speed calculation unit 524, a subtraction unit 525, a PID calculation unit 526, and a PWM circuit 527. The functions of the speed calculation unit 524, the subtraction unit 525, and the PID calculation unit 526 among the components in the figure are realized by software. The PWM circuit 527 is realized by hardware. Thus, the function of the controller 50 in the figure is realized by software and hardware.

速度演算部524は、リニアエンコーダ25の出力(ENC−A、ENC−B)のエッジの周期を計時し、この周期に基づいて読取キャリッジ23の速度(若しくは駆動モータ241の回転速度)を演算する。減算部525は、目標速度と、速度演算部524により検出された速度との差(速度偏差)を演算する。PID演算部526は、比例要素526Aと、積分要素526Bと、微分要素526Cと、加算要素526Dとを有する。比例要素526Aは、速度偏差に比例ゲインGpを乗算し、比例成分を算出する。積分要素526Bは、速度偏差に積分ゲインGiを乗算したものを積算し、積分成分を算出する。微分要素526Cは、現在の速度偏差と、1つ前の速度偏差との差に微分ゲインGdを乗算し、微分成分を算出する。加算要素526Dは、比例成分、積分成分及び微分成分を合計する。この合計結果は、デューティ信号として、PWM回路527へ出力される。PWM回路527は、デューティ信号に基づいて、駆動モータ241を制御するための駆動信号を出力する。   The speed calculation unit 524 measures the period of the edge of the output (ENC-A, ENC-B) of the linear encoder 25, and calculates the speed of the reading carriage 23 (or the rotational speed of the drive motor 241) based on this period. . The subtraction unit 525 calculates a difference (speed deviation) between the target speed and the speed detected by the speed calculation unit 524. The PID calculation unit 526 includes a proportional element 526A, an integral element 526B, a differential element 526C, and an addition element 526D. The proportional element 526A multiplies the speed deviation by a proportional gain Gp to calculate a proportional component. The integral element 526B integrates the speed deviation multiplied by the integral gain Gi to calculate an integral component. The differential element 526C multiplies the difference between the current speed deviation and the previous speed deviation by a differential gain Gd to calculate a differential component. The adding element 526D adds the proportional component, the integral component, and the derivative component. The total result is output to the PWM circuit 527 as a duty signal. The PWM circuit 527 outputs a drive signal for controlling the drive motor 241 based on the duty signal.

図11は、メモリ60に格納されているゲインテーブルの説明図である。ゲインテーブルは、目標速度とゲインGp、Gi、Gdの値とを対応づけたテーブルであり、メモリ60に格納されている。
PID制御では、現実の速度(この場合、駆動モータの回転速度又は読取キャリッジ23の移動速度)が目標速度に精度良く追従するように、目標速度に応じてゲインが設定されている。そして、コントローラ50は、目標速度をキーとしてゲインテーブルを参照し、参照結果に基づいてPID演算部526の各ゲインGp、Gi、Gdの値を決定する。
目標速度が変更された場合、コントローラ50は、目標速度を変更するタイミングで各ゲインを変更する。
加速制御部339Aは、駆動モータ241の加速制御時に用いられる。加速制御部339Aは、タイマ割込信号を受ける毎に所定のデューティ信号値を積算し、積算結果としてデューティ信号を生成して、このデューティ信号をPWM回路527に出力する。
FIG. 11 is an explanatory diagram of a gain table stored in the memory 60. The gain table is a table in which the target speed and the values of the gains Gp, Gi, and Gd are associated with each other, and is stored in the memory 60.
In PID control, the gain is set according to the target speed so that the actual speed (in this case, the rotational speed of the drive motor or the moving speed of the reading carriage 23) accurately follows the target speed. Then, the controller 50 refers to the gain table using the target speed as a key, and determines the values of the gains Gp, Gi, and Gd of the PID calculation unit 526 based on the reference result.
When the target speed is changed, the controller 50 changes each gain at the timing of changing the target speed.
The acceleration control unit 339A is used during acceleration control of the drive motor 241. Acceleration control unit 339A integrates predetermined duty signal values every time it receives a timer interrupt signal, generates a duty signal as an integration result, and outputs this duty signal to PWM circuit 527.

===駆動モータの駆動方法===
図12は、駆動モータ241の速度変化のグラフである。図において、横軸は時間tであり、縦軸は読取キャリッジ23の速度(駆動モータ241の回転速度ともいえる)である。横軸には、オープン加速をしている時間領域、PID制御による加速制御が行われている時間領域、PID制御により定速制御されている時間領域、及び、PID制御により減速制御が行われている時間領域が示されている。
=== Driving method of driving motor ===
FIG. 12 is a graph of the speed change of the drive motor 241. In the figure, the horizontal axis is time t, and the vertical axis is the speed of the reading carriage 23 (also referred to as the rotational speed of the drive motor 241). On the horizontal axis, the time domain in which open acceleration is performed, the time domain in which acceleration control by PID control is performed, the time domain in which constant speed control is performed by PID control, and deceleration control is performed by PID control The time domain is shown.

図に示すオープン加速領域では、加速制御部339Aにおいて所定のタイマ割り込みごとに所定量のデューティ信号が加算される。そして、このデューティ信号値は、PWM回路527に送られる。このとき、デューティ信号値はほぼ比例的に増加し、PWM回路527に入力される。よって、駆動モータ241もほぼ一定の加速度で速度を増す。   In the open acceleration region shown in the figure, a predetermined amount of duty signal is added for each predetermined timer interruption in the acceleration control unit 339A. Then, this duty signal value is sent to the PWM circuit 527. At this time, the duty signal value increases substantially proportionally and is input to the PWM circuit 527. Therefore, the drive motor 241 also increases in speed with a substantially constant acceleration.

オープン加速領域において駆動モータ241が加速され、読取キャリッジ23の所定量の移動が完了すると、オープン加速制御からPID制御へと切り替わる。PID制御に切り替わると、演算部526によりPID制御が行われ、所定の速度になるまでPID制御による加速制御が行われる(PID加速領域)。   When the drive motor 241 is accelerated in the open acceleration region and a predetermined amount of movement of the reading carriage 23 is completed, the open acceleration control is switched to the PID control. When switching to PID control, PID control is performed by the arithmetic unit 526, and acceleration control by PID control is performed until a predetermined speed is reached (PID acceleration region).

さらに、駆動モータ241の起動を開始してから読み取りキャリッジ23の移動距離が所定量になると、PID制御による定速移動に切り替わる。PID定速領域において、読取キャリッジ23は、PID制御により定速移動が行われている。   Furthermore, when the moving distance of the reading carriage 23 reaches a predetermined amount after starting the drive motor 241, the operation is switched to constant speed movement by PID control. In the PID constant speed region, the reading carriage 23 is moved at a constant speed by PID control.

読取キャリッジ23が減速開始位置に達すると、PID制御による減速制御が行われる。読取キャリッジ23の減速制御は、残りの距離に対する目標速度の表を参照することにより行われる。この残りの距離に対する目標速度の表は図示しないが、メモリ60に記憶されている。残り距離に対応する目標速度は減算部525にフィードバックされ、読取キャリッジの減速が行われる。   When the reading carriage 23 reaches the deceleration start position, deceleration control by PID control is performed. The deceleration control of the reading carriage 23 is performed by referring to a table of target speeds for the remaining distances. A table of target speeds for the remaining distance is not shown, but is stored in the memory 60. The target speed corresponding to the remaining distance is fed back to the subtracting unit 525, and the reading carriage is decelerated.

===第1実施形態===
図13は、第1実施形態における読取キャリッジの位置とその移動状態を説明するための図である。まず、図13を参照しつつ、読取キャリッジ23の移動制御方法の概略を説明する。
=== First Embodiment ===
FIG. 13 is a diagram for explaining the position of the reading carriage and its moving state in the first embodiment. First, an outline of a movement control method of the reading carriage 23 will be described with reference to FIG.

スキャナ部が画像を読みとるとき、用紙が存在する位置、又は、ユーザが画像の読み取りを開始させたい位置まで、読取キャリッジ23を高速で移動させる(図中の読み取りスキップ)。このとき、画像の読み取り開始位置より所定距離離れた位置で読取キャリッジを一時停止させ、そこから読取キャリッジを再加速させる。そして、画像の読み取り開始位置から定速で画像の読み取りを行う。   When the scanner unit reads an image, the reading carriage 23 is moved at a high speed to a position where a sheet exists or a position where the user wants to start reading an image (read skip in the figure). At this time, the reading carriage is temporarily stopped at a position away from the image reading start position by a predetermined distance, and the reading carriage is accelerated again therefrom. Then, the image is read at a constant speed from the image reading start position.

画像の読み取りは、所定の一定速度で行われる。よって、読取キャリッジ23は読み取り開始位置に移動するまでに、その所定の一定速度にまで加速を完了していなければならない。すると、読取キャリッジ23は、その所定の一定速度にまで加速するのに十分な距離(安定化距離(所定距離に相当する))だけ読み取り開始位置から離れた位置に停止する必要がある。   Image reading is performed at a predetermined constant speed. Therefore, before the reading carriage 23 moves to the reading start position, acceleration must be completed to a predetermined constant speed. Then, the reading carriage 23 needs to stop at a position separated from the reading start position by a sufficient distance (stabilization distance (corresponding to the predetermined distance)) to accelerate to the predetermined constant speed.

PID制御を行って読取キャリッジ23の制動を行っても停止位置の誤差は発生する。よって、ここでは、読取キャリッジ23の最大制動距離を考慮し、読み取り開始位置よりも少なくとも安定化距離だけ離れた位置に読取キャリッジ23を停止させるようにしている。   Even if the reading carriage 23 is braked by performing PID control, an error in the stop position occurs. Therefore, here, in consideration of the maximum braking distance of the reading carriage 23, the reading carriage 23 is stopped at a position at least a stabilization distance away from the reading start position.

図14は、最大制動距離を考慮した読取キャリッジ23の移動制御方法を説明するためのフローチャートである。以下、このフローチャートに従って説明を行う。尚、ここでは、予め、画像の読み取り開始位置がコンピュータ3を介してユーザによって設定されている。また、画像の読み取り解像度が設定されている。   FIG. 14 is a flowchart for explaining a movement control method of the reading carriage 23 in consideration of the maximum braking distance. Hereinafter, description will be given according to this flowchart. Here, the image reading start position is set in advance by the user via the computer 3. Also, the image reading resolution is set.

まず、コントローラ50は、メモリ60から最大制動距離を読み出す(S142)。
図15は、読取キャリッジの最大制動距離と最小制動距離を示す表である。この表は、PIDモード及び安定化距離との関係から予め求められ、コントローラ50のメモリ60に記憶されている。最大制動距離と最小制動距離は、PIDモードと所定距離に関連づけられて記憶されている。ここでPIDモードは、読み取りの解像度によって決まるPID制御のモードである。詳細は後述する。また、表中の安定化距離とは、停止位置から読み取り開始位置までに読取キャリッジ23を所定の読み取り速度にするのに必要な距離である。
First, the controller 50 reads the maximum braking distance from the memory 60 (S142).
FIG. 15 is a table showing the maximum braking distance and the minimum braking distance of the reading carriage. This table is obtained in advance from the relationship between the PID mode and the stabilization distance, and is stored in the memory 60 of the controller 50. The maximum braking distance and the minimum braking distance are stored in association with the PID mode and the predetermined distance. Here, the PID mode is a PID control mode determined by the reading resolution. Details will be described later. In addition, the stabilization distance in the table is a distance necessary for the reading carriage 23 to have a predetermined reading speed from the stop position to the reading start position.

図16は、解像度とPIDモードの関係を示す表である。PIDモードは、副走査方向(読取キャリッジ23の移動方向)の読み取り解像度によって決められる。PID1〜PID4は、それぞれ順番に解像度が低いものから高いものに対応する。PID1は解像度が最も粗いものに対応し、PID4は最も高精細なものに対応する。つまり解像度の低いものから順番にresolurtion_1,resolution_2,resolution_3,resolution4となっている。   FIG. 16 is a table showing the relationship between the resolution and the PID mode. The PID mode is determined by the reading resolution in the sub-scanning direction (moving direction of the reading carriage 23). PID1 to PID4 correspond to the ones having the lowest resolution in order. PID1 corresponds to the coarsest resolution, and PID4 corresponds to the finest resolution. That is, in order from the lowest resolution, resolurtion_1, resolution_2, resolution_3, resolution4.

PIDモードがPID1のとき、解像度が低いことからモータ駆動速度は速く、すなわち読取キャリッジ23の移動速度が速い。一方、PIDモードがPID4のとき、解像度が高いことからモータ駆動速度が遅く、すなわち読取キャリッジ23の移動速度が遅い。つまり、図16に示される駆動速度はV1>V2>V3>V4の関係にある。   When the PID mode is PID1, since the resolution is low, the motor driving speed is high, that is, the moving speed of the reading carriage 23 is high. On the other hand, when the PID mode is PID4, the motor drive speed is slow because the resolution is high, that is, the moving speed of the reading carriage 23 is slow. That is, the drive speed shown in FIG. 16 has a relationship of V1> V2> V3> V4.

モータの移動速度が速い場合、最大制動距離と最小制動距離の値が大きくなる。また、読取キャリッジ23の停止位置にばらつきが生じる。一方、モータの移動速度が遅い場合、最大制動距離と最小制動距離の値は小さくなる。そして、読取キャリッジ23の停止位置のばらつきは少なくなる。   When the moving speed of the motor is fast, the maximum braking distance and the minimum braking distance are increased. In addition, the stop position of the reading carriage 23 varies. On the other hand, when the moving speed of the motor is slow, the values of the maximum braking distance and the minimum braking distance are small. Further, the variation in the stop position of the reading carriage 23 is reduced.

最大制動距離の読み出し処理において、コントローラ50は、ユーザが設定した読み取り解像度を取得する。そして、メモリ60を参照して、読み取り解像度に対応するPIDモードを取得する。PIDモードを取得するとこれに対応する最大制動距離を取得する。たとえば、解像度がresolution_1のとき対応するPIDモードはPID1であるから、最大制動距離は600EP(600エンコーダパルス)となる。尚、ここで、エンコーダパルス(EP)であるが1EPは1/4800インチであり、すなわち1EPは5.29×10−3mmに相当する。 In the maximum braking distance reading process, the controller 50 acquires the reading resolution set by the user. Then, referring to the memory 60, the PID mode corresponding to the reading resolution is acquired. When the PID mode is acquired, the maximum braking distance corresponding to this is acquired. For example, when the resolution is resolution_1, the corresponding PID mode is PID1, so the maximum braking distance is 600EP (600 encoder pulses). Here, although the encoder pulse (EP) is 1EP, it is 1/4800 inch, that is, 1EP corresponds to 5.29 × 10 −3 mm.

次に、コントローラ50は、停止目標位置を設定する(S144)。停止目標位置は、読み取りの開始位置から読取キャリッジ23の読み取り方向とは逆方向に安定化距離だけ離れた位置である。安定化距離は、PIDモードに対応するものが読み出される。ここで、PIDモードがPID1であった場合、安定化距離は2000EPである。よって、例えば読み取り開始位置が10000EPにあった場合、安定化距離が2000EPであるので、停止目標位置は8000EPとなる。   Next, the controller 50 sets a stop target position (S144). The stop target position is a position away from the reading start position by a stabilization distance in the direction opposite to the reading direction of the reading carriage 23. The stabilization distance corresponding to the PID mode is read out. Here, when the PID mode is PID1, the stabilization distance is 2000EP. Therefore, for example, when the reading start position is 10000EP, the stabilization distance is 2000EP, so the stop target position is 8000EP.

次に、コントローラ50は、停止目標位置から最大制動距離離れた位置から読取キャリッジ23の減速を開始するようにする(S146)。例えば停止目標位置が8000EPの位置であり、最大制動距離が600EPの位置であった場合、7400EPの位置から減速を開始するようにする。   Next, the controller 50 starts decelerating the reading carriage 23 from a position away from the stop target position by the maximum braking distance (S146). For example, when the stop target position is 8000 EP and the maximum braking distance is 600 EP, deceleration is started from the position 7400 EP.

コントローラ50は、読取キャリッジ23の位置を監視している。そして、読取キャリッジ23の位置が減速開始位置(ここでは7400EP)になると、PID制御による読取キャリッジの減速を開始する。   The controller 50 monitors the position of the reading carriage 23. When the position of the reading carriage 23 reaches the deceleration start position (here, 7400EP), the reading carriage starts decelerating by PID control.

このように、読み取り開始位置より読み取り方向の逆方向に安定化距離だけ離れた位置を停止目標位置に設定する。そして、停止目標位置から読み取り方向の逆方向に最大制動距離だけ離れた位置で減速を開始するので、読取キャリッジ23を停止目標位置より手前側で停止させることができる。よって、読み取り開始位置において、所定の読み取り速度にまで読取キャリッジ23を加速することができる。   In this way, a position that is a stabilization distance away from the reading start position in the direction opposite to the reading direction is set as the target stop position. Then, since deceleration is started at a position away from the target stop position by the maximum braking distance in the direction opposite to the reading direction, the reading carriage 23 can be stopped before the target stop position. Therefore, the reading carriage 23 can be accelerated to a predetermined reading speed at the reading start position.

===第2実施形態===
図17は、第2実施形態における読取キャリッジの位置とその移動状態を説明するための図である。まず、図17を参照しつつ、読取キャリッジの移動方法の概略を説明する。
=== Second Embodiment ===
FIG. 17 is a diagram for explaining the position of the reading carriage and its moving state in the second embodiment. First, an outline of a method for moving the reading carriage will be described with reference to FIG.

スキャナが画像を読みとるとき、読み取った画像データをスキャナのメモリに一時的にため込み(バッファリング)、これを順次コンピュータ3に送る。しかしながら、何らかの原因により、スキャナのメモリが読みとったデータでいっぱいになってしまう場合がある。この場合、これ以上画像データをメモリに蓄積できないので読取キャリッジを一旦停止し、読取キャリッジを読み取り方向の逆方向に戻して、画像データの再取得を試みる。   When the scanner reads an image, the read image data is temporarily stored (buffered) in the memory of the scanner, and this is sequentially sent to the computer 3. However, for some reason, the scanner's memory may become full of read data. In this case, since no more image data can be stored in the memory, the reading carriage is temporarily stopped, the reading carriage is returned to the direction opposite to the reading direction, and re-acquisition of the image data is attempted.

このような画像データの再取得を行う際、次の読み取りやり直しの開始位置より所定距離だけ離れた位置に読取キャリッジ23を戻し、そこから読取キャリッジ23を読み取り方向に再加速させる。そして、画像の読み取り開始位置から定速で画像の読み取りを行う。   When performing such reacquisition of image data, the reading carriage 23 is returned to a position that is a predetermined distance away from the start position of the next reading restart, and the reading carriage 23 is reaccelerated in the reading direction therefrom. Then, the image is read at a constant speed from the image reading start position.

画像の読み取りは、所定の一定速度で行われる。よって、読取キャリッジ23は、読み取りやり直しの開始位置に移動するまでに、その所定の一定速度にまで加速を完了していなければならない。すると、読取キャリッジ23は、その所定の一定速度にまで加速するのに十分な距離(安定化距離)だけ読み取りのやりなおし開始位置から離れた位置に戻る必要がある。   Image reading is performed at a predetermined constant speed. Therefore, the reading carriage 23 must complete the acceleration to the predetermined constant speed before moving to the reading start position. Then, it is necessary for the reading carriage 23 to return to a position away from the reading re-starting position by a distance (stabilization distance) sufficient to accelerate to the predetermined constant speed.

PID制御を行って読取キャリッジ23の制動を行っても停止位置の誤差は発生する。よって、ここでは、読取キャリッジ23の最小制動距離を考慮し、読み取りやり直しの開始位置よりも安定化距離だけ離れた位置に読取キャリッジ23を戻すようにしている。   Even if the reading carriage 23 is braked by performing PID control, an error in the stop position occurs. Therefore, here, in consideration of the minimum braking distance of the reading carriage 23, the reading carriage 23 is returned to a position separated by a stabilization distance from the reading re-starting position.

図18は、最小制動距離を考慮した読取キャリッジ23の移動方法を説明するためのフローチャートである。尚、ここでは、読み取りのやり直し開始位置は、画像の読み取りプロセスにおいて設定されているものとする。また、画像の読み取り解像度も設定されているものとする。また、第2実施形態では、第1実施形態で使用した図15(読み取りキャリッジの最大制動距離と最小制動距離を示す表)と図16(解像度とPIDモードの関係を示す表)を使用するが、表中の数値等は異なるものが用意されていることとしてもよい。   FIG. 18 is a flowchart for explaining a method of moving the reading carriage 23 in consideration of the minimum braking distance. Here, it is assumed that the reading start position is set in the image reading process. It is also assumed that the image reading resolution is set. In the second embodiment, FIG. 15 (table showing the maximum braking distance and minimum braking distance of the reading carriage) and FIG. 16 (table showing the relationship between the resolution and the PID mode) used in the first embodiment are used. Different numerical values in the table may be prepared.

まず、コントローラ50は、メモリ60から最小制動距離を読み出す(S182)。最小制動距離の読み出し処理において、コントローラ50は、ユーザが設定した読み取り解像度を取得する。そして、メモリ60を参照して、読み取り解像度に対応するPIDモードを取得する。コントローラ50は、PIDモードを取得するとこれに対応する最小制動距離を取得する。   First, the controller 50 reads out the minimum braking distance from the memory 60 (S182). In the reading process of the minimum braking distance, the controller 50 acquires the reading resolution set by the user. Then, referring to the memory 60, the PID mode corresponding to the reading resolution is acquired. When acquiring the PID mode, the controller 50 acquires the minimum braking distance corresponding to the PID mode.

次に、コントローラ50は、停止目標位置を設定する(S184)。停止目標位置は、読み取りやり直しの開始位置から読み取りキャリッジ23の読み取り方向に安定化距離だけ離れた位置である。尚、安定化距離は、PIDモードに対応するものが使用される。   Next, the controller 50 sets a stop target position (S184). The stop target position is a position that is separated from the start position of the re-read by a stabilization distance in the reading direction of the reading carriage 23. As the stabilization distance, the one corresponding to the PID mode is used.

次に、コントローラ50は、停止目標位置から最小制動距離だけ読み取り方向に離れた位置から読取キャリッジ23の減速を開始するようにする。   Next, the controller 50 starts decelerating the reading carriage 23 from a position separated from the target stop position by a minimum braking distance in the reading direction.

このように、読み取りやり直し開始位置より読み取り方向の逆方向に安定化距離だけ離れた位置を停止目標位置に設定する。そして、停止目標位置から最小制動距離だけ読み取り方向に離れた位置で減速を開始するので、読取キャリッジ23を停止目標位置より読み取り方向の逆方向側で停止させることができる。よって、読み取りやり直し開始位置において、所定の読み取り速度にまで読取キャリッジ23を加速することができる。   In this way, a position that is separated from the reading start position by a stabilization distance in the direction opposite to the reading direction is set as the stop target position. Then, since deceleration starts at a position separated from the stop target position by the minimum braking distance in the reading direction, the reading carriage 23 can be stopped on the opposite side of the reading direction from the stop target position. Therefore, the reading carriage 23 can be accelerated to a predetermined reading speed at the reading start position.

===第3実施形態===
図19は、第3実施形態における読取キャリッジ23の位置とその移動状態を説明するための図である。図19を参照しつつ、読取キャリッジ23の移動方法の概略を説明する。
=== Third Embodiment ===
FIG. 19 is a diagram for explaining the position of the reading carriage 23 and its moving state in the third embodiment. An outline of the moving method of the reading carriage 23 will be described with reference to FIG.

読取キャリッジ23が画像の読み取りを終えるとホームポジションと呼ばれる位置に移動する。ホームポジションは、読取キャリッジの移動可能な領域のうち最も読み取り方向の逆方向側の位置付近に存在する。そして、画像の読み取りを開始するとき、ホームポジションから読取キャリッジ23の加速を開始し、画像の読み取り開始可能位置から画像の読み取りを行うべく所定の一定速度にまで加速を完了する。   When the reading carriage 23 finishes reading the image, the reading carriage 23 moves to a position called a home position. The home position exists in the vicinity of the position on the opposite side of the reading direction in the movable area of the reading carriage. When the image reading is started, acceleration of the reading carriage 23 is started from the home position, and the acceleration is completed to a predetermined constant speed so as to read the image from the image reading start possible position.

すると、その所定の一定速度にまで加速を完了できる十分な距離(安定化距離)離れた位置にホームポジションが存在する必要がある。よって、ここでは、読み取り開始可能位置から安定化距離だけ離れた位置にホームポジションを設定し、さらにそこから最小制動距離離れた位置で読取キャリッジ23の減速を開始することとしている。   Then, the home position needs to be present at a position that is a sufficient distance (stabilization distance) that can complete the acceleration up to the predetermined constant speed. Therefore, here, the home position is set at a position away from the position where reading can be started by a stabilization distance, and the reading carriage 23 starts decelerating at a position away from the minimum braking distance.

第3実施形態における実施フローは第2実施形態とほぼ同様である。第3実施形態における読み取り開始可能位置が第2実施形態における読み取りやり直しの開始位置に対応する。そして、停止目標位置がホームポジションに対応している。   The execution flow in the third embodiment is substantially the same as that in the second embodiment. The position where the reading can be started in the third embodiment corresponds to the starting position of reading / redoing in the second embodiment. The stop target position corresponds to the home position.

このように、読み取り開始可能位置より安定化距離だけ離れた位置であるホームポジションを停止目標位置に設定する。そして、停止目標位置から最小制動距離だけ離れた位置で減速を開始するので、読取キャリッジ23を停止目標位置より読み取り方向の逆方向側で停止させることができる。よって、読み取り開始可能位置において、所定の読み取り速度にまで読取キャリッジ23を加速させることができる。   In this way, the home position, which is a position away from the position where reading can be started by the stabilization distance, is set as the target stop position. Then, since deceleration is started at a position separated from the stop target position by the minimum braking distance, the reading carriage 23 can be stopped on the opposite side of the reading direction from the stop target position. Therefore, the reading carriage 23 can be accelerated to a predetermined reading speed at the position where reading can be started.

===オープン減速の場合===
上述の実施形態では、読取キャリッジ23の減速制御をPID制御を用いて行った。しかしながら減速制御の方法は、PID制御を用いる以外の方法を用いることができる。例えば、減速開始位置において、PWM回路に送られていたデューティ値を0にしてしまうことで減速を行わせることもできる。この場合であっても、これに対応する最大制動距離を用意し、上述と同様の手法を用いることによって、停止目標位置よりも手前で読取キャリッジを停止させることができる。また、これに対応する最小制動距離を用意し、上述と同様の手法を用いることによって、停止目標位置よりも奥側に読取キャリッジを停止させることができる。
=== Open deceleration ===
In the above-described embodiment, the deceleration control of the reading carriage 23 is performed using the PID control. However, a method other than using the PID control can be used as the deceleration control method. For example, deceleration can be performed by setting the duty value sent to the PWM circuit to 0 at the deceleration start position. Even in this case, the reading carriage can be stopped before the stop target position by preparing the maximum braking distance corresponding to this and using the same method as described above. Also, by preparing a minimum braking distance corresponding to this and using the same method as described above, the reading carriage can be stopped at the back side from the stop target position.

===その他の実施の形態===
上記の実施形態は、主としてSPC複合装置について記載されているが、その中には、画像読取装置(スキャナ)、画像読取方法等の開示が含まれていることは言うまでもない。
=== Other Embodiments ===
The above embodiments are mainly described for the SPC multifunction apparatus, but it goes without saying that the disclosure includes an image reading apparatus (scanner), an image reading method, and the like.

また、一実施形態としてのSPC複合装置等を説明したが、上記の実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることは言うまでもない。   Moreover, although the SPC multifunction apparatus and the like as one embodiment have been described, the above embodiment is for facilitating the understanding of the present invention, and is not intended to limit the present invention. The present invention can be changed and improved without departing from the gist thereof, and it is needless to say that the present invention includes equivalents thereof.

本実施形態のSPC複合装置の全体斜視図である。It is a whole perspective view of the SPC compound device of this embodiment. SPC複合装置の構成のブロック図である。It is a block diagram of a structure of a SPC compound apparatus. SPC複合装置におけるプリンタ部の説明図である。It is explanatory drawing of the printer part in a SPC compound apparatus. SPC複合装置におけるスキャナ部の説明図である。It is explanatory drawing of the scanner part in a SPC compound apparatus. プリンタ機能時のデータの流れの説明図である。It is explanatory drawing of the flow of data at the time of a printer function. スキャナ機能時のデータの流れの説明図である。It is explanatory drawing of the flow of data at the time of a scanner function. コピー機能時のデータの流れの説明図である。It is explanatory drawing of the flow of data at the time of a copy function. スキャナ部の構成の説明図である。It is explanatory drawing of a structure of a scanner part. 図9Aは、リニア式エンコーダの構成を概略的に示したものであり、図9Bは検出部の構成を模式的に示したものである。FIG. 9A schematically shows the configuration of the linear encoder, and FIG. 9B schematically shows the configuration of the detection unit. スキャナ部の駆動モータを制御するコントローラの機能的な構成の説明図である。It is explanatory drawing of the functional structure of the controller which controls the drive motor of a scanner part. メモリに格納されているゲインテーブルの説明図である。It is explanatory drawing of the gain table stored in memory. 駆動モータの速度変化のグラフである。It is a graph of the speed change of a drive motor. 第1実施形態における読取キャリッジの位置とその移動状態を説明するための図である。FIG. 5 is a diagram for explaining a position of a reading carriage and a moving state thereof in the first embodiment. 最大制動距離を考慮した読取キャリッジ23の移動制御方法を説明するためのフローチャートである。6 is a flowchart for explaining a movement control method of the reading carriage 23 in consideration of a maximum braking distance. 読取キャリッジの最大制動距離と最小制動距離を示す表である。It is a table | surface which shows the maximum braking distance and minimum braking distance of a reading carriage. 解像度とPIDモードの関係を示す表である。It is a table | surface which shows the relationship between a resolution and PID mode. 第2実施形態における読取キャリッジの位置とその移動状態を説明するための図である。It is a figure for demonstrating the position of the reading carriage in 2nd Embodiment, and its movement state. 最初上移動距離を考慮した読取キャリッジ23の移動方法を説明するためのフローチャートである。6 is a flowchart for explaining a method of moving the reading carriage 23 in consideration of the first upward movement distance. 第3実施形態における読取キャリッジの位置とその移動状態を説明するための図である。FIG. 10 is a diagram for explaining a position of a reading carriage and a moving state thereof in a third embodiment.

符号の説明Explanation of symbols

1 SPC複合装置、3 コンピュータ、5 原稿
10 プリンタ部、12 給紙部、14 排紙部、
16 キャリッジ、162 インクカートリッジ、
20 スキャナ部、21 上蓋、22 載置ガラス、
23 読取キャリッジ、231 ガイド、
24 駆動ユニット、241 駆動モータ、242 プーリ、
243 タイミングベルト、
25 エンコーダ、30 パネル部、
50 コントローラ、524 速度演算部、525 減算部、
526 PID演算部、527 PWM回路、
60 メモリ、
70 センサユニット、71 光源、72 光学系、73 CCDセンサ
1 SPC multifunction device, 3 computer, 5 document 10 printer unit, 12 paper feed unit, 14 paper discharge unit,
16 carriage, 162 ink cartridge,
20 scanner part, 21 top cover, 22 mounting glass,
23 Reading carriage, 231 guide,
24 drive unit, 241 drive motor, 242 pulley,
243 Timing belt,
25 Encoder, 30 Panel,
50 controller, 524 speed calculation unit, 525 subtraction unit,
526 PID calculation unit, 527 PWM circuit,
60 memory,
70 sensor unit, 71 light source, 72 optical system, 73 CCD sensor

Claims (8)

所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最大制動距離を記憶するメモリと、
前記読み取り部を前記所定方向に移動させ、前記画像の読み取りの開始位置に移動させるときにおいて、前記読み取り開始位置から前記所定方向の逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記逆方向に前記最大制動距離以上離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a maximum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the predetermined direction and moved to the reading start position of the image, the stop target position of the reading unit is set at a position away from the reading start position by a predetermined distance in the reverse direction of the predetermined direction. A controller configured to start deceleration of the reading unit from a position separated from the target stop position by a distance greater than or equal to the maximum braking distance in the reverse direction;
An image input device comprising:
所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最小制動距離を記憶するメモリと、
前記画像の読み取りをやり直すために前記読み取り部を前記所定方向の逆方向に移動させ、読み取りやり直しの開始位置に移動させるときにおいて、前記読み取りやり直しの開始位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記所定方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a minimum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the reverse direction of the predetermined direction in order to redo the reading of the image and moved to the reading redo start position, the reading unit is moved to a position separated by a predetermined distance in the reverse direction from the reading redo start position. A controller that sets a target stop position of the reading unit, and starts deceleration of the reading unit from a position that is within the minimum braking distance in the predetermined direction from the target stop position;
An image input device comprising:
所定方向に移動して画像の読み取りを行う読み取り部と、
前記読み取り部の減速開始からの最小制動距離を記憶するメモリと、
前記読み取り部を前記所定方向の逆方向に移動させ、該読み取り部の所定の初期位置に戻すときにおいて、前記画像の読み取り開始可能位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定し、該停止目標位置より前記所定方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるコントローラと、
を備える画像入力装置。
A reading unit that moves in a predetermined direction and reads an image;
A memory for storing a minimum braking distance from the start of deceleration of the reading unit;
When the reading unit is moved in the reverse direction of the predetermined direction and returned to the predetermined initial position of the reading unit, the reading unit is stopped at a position separated by a predetermined distance in the reverse direction from the image reading start position. A controller for setting a target position, and starting deceleration of the reading unit from a position within the minimum braking distance in the predetermined direction from the stop target position;
An image input device comprising:
前記所定距離は、前記読み取り部の次の動作時に所定の速度まで加速するための距離を含む、請求項1〜3のいずれかに記載の画像入力装置。   The image input apparatus according to claim 1, wherein the predetermined distance includes a distance for accelerating to a predetermined speed at a next operation of the reading unit. 前記最大制動距離及び前記最小制動距離は、前記読み取り部の移動速度に関連して決められる、請求項1〜4のいずれかに記載の画像入力装置。   The image input device according to claim 1, wherein the maximum braking distance and the minimum braking distance are determined in association with a moving speed of the reading unit. 読み取り部の減速位置からの最大制動距離を読み出すステップと、
前記読み取り部を読み取り方向に移動させ、画像の読み取りの開始位置に移動させるときにおいて、前記読み取り開始位置から前記読み取り方向の逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定するステップと、
前記停止目標位置より前記逆方向に前記最大制動距離以上離れた位置から前記読み取り部の減速を開始させるステップと、
を含む、読み取り部の移動制御方法。
Reading the maximum braking distance from the deceleration position of the reading unit;
When the reading unit is moved in the reading direction and moved to the image reading start position, the stop target position of the reading unit is set at a position away from the reading start position by a predetermined distance in the direction opposite to the reading direction. Steps,
Starting deceleration of the reading unit from a position that is more than the maximum braking distance in the reverse direction from the target stop position;
A method for controlling the movement of the reading unit.
読み取り部の減速位置からの最小制動距離を読み出すステップと、
画像の読み取りをやり直すために前記読み取り部を読み取り方向の逆方向に移動させ、読み取りやり直しの開始位置に移動させるときにおいて、前記読み取りやり直しの開始位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止目標位置を設定するステップと、
前記停止目標位置より前記読み取り方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるステップと、
を含む、読み取り部の移動制御方法。
Reading the minimum braking distance from the deceleration position of the reading unit;
When the reading unit is moved in the reverse direction of the reading direction in order to redo the reading of the image and moved to the starting position of the redoing of reading, the reading is performed at a position away from the starting point of the redoing of reading by a predetermined distance in the reverse direction. Setting a stop target position of the part,
Starting deceleration of the reading unit from a position separated from the target stop position within the minimum braking distance in the reading direction;
A method for controlling the movement of the reading unit.
読み取り部の減速位置からの最小制動距離を読み出すステップと、
前記読み取り部を読み取り方向の逆方向に移動させ、該読み取り部の所定の初期位置に戻すときにおいて、前記画像の読み取り開始可能位置より前記逆方向に所定距離離れた位置に前記読み取り部の停止位置を設定するステップと、
前記停止目標位置より前記読み取り方向に前記最小制動距離以内離れた位置から前記読み取り部の減速を開始させるステップと、
を含む、読み取り部の移動制御方法。
Reading the minimum braking distance from the deceleration position of the reading unit;
When the reading unit is moved in the reverse direction of the reading direction and returned to the predetermined initial position of the reading unit, the stop position of the reading unit at a position separated by a predetermined distance in the reverse direction from the reading start position of the image Steps to set
Starting deceleration of the reading unit from a position separated from the target stop position within the minimum braking distance in the reading direction;
A method for controlling the movement of the reading unit.
JP2006267882A 2006-09-29 2006-09-29 Image input device and reading unit movement control method Pending JP2008092058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006267882A JP2008092058A (en) 2006-09-29 2006-09-29 Image input device and reading unit movement control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006267882A JP2008092058A (en) 2006-09-29 2006-09-29 Image input device and reading unit movement control method

Publications (1)

Publication Number Publication Date
JP2008092058A true JP2008092058A (en) 2008-04-17

Family

ID=39375770

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006267882A Pending JP2008092058A (en) 2006-09-29 2006-09-29 Image input device and reading unit movement control method

Country Status (1)

Country Link
JP (1) JP2008092058A (en)

Similar Documents

Publication Publication Date Title
JP5228418B2 (en) Image reading device
US7407245B2 (en) Printing apparatus, printing method, computer program, and computer system for detecting skew of printing medium
US8014046B2 (en) Scanner device, printing device and scan method
US6515445B2 (en) Digital encoder control method
WO2003070473A1 (en) Printer, method for determining top edge of object to be printed, method for determining bottom edge of object to be printed, computer program, and computer system
US9944082B2 (en) Inkjet printing apparatus and method for controlling the inkjet printing apparatus
US20040184860A1 (en) Carriage driving apparatus and motor control method
JP2010056893A (en) Printer and print control method
JP3031618B2 (en) Image deviation correction method and correction system
JP2008092058A (en) Image input device and reading unit movement control method
JP5500391B2 (en) Image reading device, printing device
JP2011102197A (en) Printing device, printed body lower end determining method, computer program, and computer system
JP2012090085A (en) Image reading apparatus
JP5678547B2 (en) Image reading device
US20060268374A1 (en) Position control device, and scanner and image forming apparatus having the same
JP2008078985A (en) Scanner device, printing device, and scanning method
CN114945059A (en) Flat scanner and method for manufacturing scanning data
JP4259574B2 (en) Recording apparatus and recording method in recording apparatus
JP4803129B2 (en) Printing apparatus and printing method
JP4019735B2 (en) Printing apparatus, printing medium upper end determination method, computer program, and computer system
JP4662821B2 (en) Motor drive control device, image forming apparatus, and program
JP4019730B2 (en) Printing apparatus, printing medium lower end determination method, computer program, and computer system
JP4192928B2 (en) Tilt detection method and printing method
JP2008076597A (en) Scanner device, printing device, and scanning method
KR100260932B1 (en) Method and apparatus for image error revision of shuttle type scanner