JP4900352B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP4900352B2
JP4900352B2 JP2008243432A JP2008243432A JP4900352B2 JP 4900352 B2 JP4900352 B2 JP 4900352B2 JP 2008243432 A JP2008243432 A JP 2008243432A JP 2008243432 A JP2008243432 A JP 2008243432A JP 4900352 B2 JP4900352 B2 JP 4900352B2
Authority
JP
Japan
Prior art keywords
document
level
sensor
reading
image reading
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.)
Active
Application number
JP2008243432A
Other languages
Japanese (ja)
Other versions
JP2010080994A (en
Inventor
剛司 久野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2008243432A priority Critical patent/JP4900352B2/en
Publication of JP2010080994A publication Critical patent/JP2010080994A/en
Application granted granted Critical
Publication of JP4900352B2 publication Critical patent/JP4900352B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は,原稿を自動的に原稿読取位置に搬送する原稿搬送装置を有する画像読取装置に関する。さらに詳細には,原稿の読み取りタイミングを高精度に制御する画像読取装置に関するものである。   The present invention relates to an image reading apparatus having a document conveying device that automatically conveys a document to a document reading position. More specifically, the present invention relates to an image reading apparatus that controls the reading timing of a document with high accuracy.

従来から,複数の原稿の自動読み取りに供するADF(Auto Document Feeder:自動原稿搬送装置)を搭載する原稿読取装置がある。ADFは,読み取り前の原稿を載置する給紙トレイと,読み取り後の原稿を載置する排紙トレイとを備え,給紙トレイに少なくとも1枚の原稿を載置すると,上側の原稿から1枚ずつ順に原稿読取位置に向けて搬送される。原稿は,原稿読取位置でスキャナによって読み取られ,排紙トレイへと搬送される。   2. Description of the Related Art Conventionally, there is an original reading apparatus equipped with an ADF (Auto Document Feeder) for automatic reading of a plurality of originals. The ADF includes a paper feed tray on which a document before reading is placed and a paper discharge tray on which the document after reading is placed. When at least one document is placed on the paper feed tray, the ADF starts from the upper document. The sheets are conveyed one by one toward the document reading position. The original is read by the scanner at the original reading position and conveyed to the paper discharge tray.

ADFでは,前述したように原稿を搬送しながら読み取る。そこで,原稿搬送中に原稿の先端を検知することによって原稿の読み取り開始タイミングを計っている。例えば,ADFの原稿搬送用モータには,正確な位置決め制御が可能なステッピングモータが採用され,原稿搬送経路内には用紙の通過を検知する原稿センサが配置される。そして,原稿が原稿センサを通過してから一定の位置に原稿読取位置がある(例えば,特許文献1)。
特開2006−33549号公報
In the ADF, as described above, the original is read while being conveyed. Therefore, the reading start timing of the document is measured by detecting the leading edge of the document while the document is being conveyed. For example, a stepping motor capable of accurate positioning control is adopted as an ADF document transport motor, and a document sensor for detecting passage of paper is disposed in a document transport path. Then, the document reading position is at a certain position after the document passes the document sensor (for example, Patent Document 1).
JP 2006-33549 A

しかしながら,前記した従来の画像読取装置には,次のような問題があった。すなわち,ADFを利用した読み取り方式では,原稿を検知する原稿センサが,原稿の先端を検知してから一定のステップを経た後に読み取りを開始し,原稿の後端を検知してから一定のステップを経た後に読み取りを終了する。そのため,原稿を正確に読み取るには,原稿センサが原稿の先端ないし後端を検知するタイミングを高精度にすることが重要になる。   However, the conventional image reading apparatus described above has the following problems. That is, in the reading method using ADF, the document sensor that detects the document starts reading after a certain step after detecting the leading edge of the document, and performs a certain step after detecting the trailing edge of the document. After a while, the reading is finished. Therefore, in order to read the document accurately, it is important that the document sensor detects the leading edge or the trailing edge of the document with high accuracy.

原稿センサの信号レベルの読み取りは,所定の割り込み信号を検知する度に行われる。この割り込み信号の間隔は,モータのステップ間隔と比較して大きい。つまり,割り込み信号の間隔は,モータの数ステップ分に相当する。そのため,ある割り込み信号と次の割り込み信号との間で原稿センサの信号レベルが変化した場合には,即座に原稿センサの変化を認識することができず,数ステップの誤差が生じる。そのため,原稿の読み取り精度が落ちてしまう。   The signal level of the document sensor is read each time a predetermined interrupt signal is detected. The interval between the interrupt signals is larger than the motor step interval. That is, the interrupt signal interval corresponds to several motor steps. Therefore, when the signal level of the document sensor changes between one interrupt signal and the next interrupt signal, the change in the document sensor cannot be recognized immediately, and an error of several steps occurs. As a result, the reading accuracy of the original document is degraded.

本発明は,前記した従来の画像読取装置が有する問題点を解決するためになされたものである。すなわちその課題とするところは,自動搬送時の原稿の読み取りタイミングを高精度に検知できる画像読取装置を提供することにある。   The present invention has been made to solve the problems of the conventional image reading apparatus. That is, an object of the present invention is to provide an image reading apparatus that can accurately detect the reading timing of an original during automatic conveyance.

この課題の解決を目的としてなされた画像読取装置は,原稿を読み取る読取手段と,原稿を搬送する搬送ローラを駆動するステッピングモータと,読取手段よりも原稿の搬送方向の上流側に位置し,原稿の通過を検知するセンサと,読取手段による1ライン分の読み取り時間に相当する周期のパルス信号を出力するライン信号出力手段と,パルス信号に同期するステッピングモータ用の駆動信号を出力するモータ駆動信号出力手段と,パルス信号の所定パルス数分に相当する周期の割り込み信号を出力する割り込み信号出力手段と,センサの出力が第1レベルの間,駆動信号のパルス数に相当するステップ数をカウントするカウント手段と,カウント手段のカウント開始前に,カウント手段のカウンタ値をリセットするリセット手段と,割り込み信号に応じてセンサの出力レベルを取得し,その出力レベルを基に原稿の端部が通過したか否かを判定する判定手段と,センサの位置から読取手段の読取位置までの原稿の移動に必要なステップ数を規定し,当該ステップ数から判定手段にて原稿が通過したと判定された時点でのカウンタ手段のカウンタ値を引いた値を基に読取手段の読み取りタイミングを決定する決定手段とを備えることを特徴としている。   An image reading apparatus for solving this problem is a reading unit that reads a document, a stepping motor that drives a conveyance roller that conveys the document, and an upstream side of the reading unit in the document conveyance direction. A sensor for detecting the passage of the signal, a line signal output means for outputting a pulse signal having a period corresponding to the reading time for one line by the reading means, and a motor drive signal for outputting a drive signal for the stepping motor synchronized with the pulse signal The output means, the interrupt signal output means for outputting an interrupt signal having a period corresponding to a predetermined number of pulses of the pulse signal, and the number of steps corresponding to the number of pulses of the drive signal are counted while the sensor output is at the first level. A counting means, a reset means for resetting the counter value of the counting means before the counting means starts counting, The output level of the sensor in response to the only signal, a determination means for determining whether or not the edge of the original has passed based on the output level, and the movement of the original from the position of the sensor to the reading position of the reading means Determining means for determining the reading timing of the reading means based on a value obtained by subtracting the counter value of the counter means at the time when the determination means determines that the document has passed from the number of steps. It is characterized by comprising.

本発明の画像読取装置は,原稿を自動搬送して読み取る機能を有している。原稿は,ステッピングモータによって駆動される搬送ローラにて,読取手段の読取位置に搬送される。また,原稿の搬送は,センサによって検知される。画像読取装置では,センサの位置から読取手段の読取位置までの原稿の移動に必要なステップ数(基準ステップ数)が規定されている。そして,画像読取装置は,センサが原稿を検知すると,基準ステップ数を基に読取手段の読み取りタイミングを決定する。読み取りタイミングには,読み取り開始タイミングと読み取り終了タイミングとがある。   The image reading apparatus of the present invention has a function of automatically conveying and reading a document. The original is conveyed to the reading position of the reading means by a conveying roller driven by a stepping motor. The conveyance of the original is detected by a sensor. In the image reading apparatus, the number of steps (reference step number) necessary for moving the document from the position of the sensor to the reading position of the reading unit is defined. Then, when the sensor detects the document, the image reading apparatus determines the reading timing of the reading unit based on the reference step number. The read timing includes a read start timing and a read end timing.

より詳細には,画像読取装置は,センサの出力が第1レベルの間,ステッピングモータ用の駆動信号のパルス数に相当するステップ数をカウントする。また,画像読取装置は,パルス信号の所定パルス数分に相当する周期の割り込み信号を基に,センサの出力レベルを取得する。取得タイミングは,例えば,割り込み信号の1パルスごとであってもよいし,数パルスごとであってもよい。その後,センサの出力レベルを基に,原稿の端部が通過したか否かを判定する。判定基準は,例えば,センサの出力が第1レベルであれば無条件で原稿の端部が通過したと判定してもよいし,所定の回数連続して第1レベルであれば原稿の端部が通過したと判定してもよい。そして,原稿の端部が通過したと判定した際には,「基準ステップ数」から「原稿の端部が通過したと判断した時点でのカウンタ値」を引いた値を基に,読取手段の読み取りタイミングを決定する。   More specifically, the image reading apparatus counts the number of steps corresponding to the number of pulses of the drive signal for the stepping motor while the output of the sensor is at the first level. Further, the image reading apparatus acquires the output level of the sensor based on an interrupt signal having a period corresponding to a predetermined number of pulses of the pulse signal. The acquisition timing may be, for example, every pulse of the interrupt signal or every few pulses. Thereafter, based on the output level of the sensor, it is determined whether or not the end of the document has passed. For example, if the sensor output is the first level, it may be determined that the end of the document has passed unconditionally. If the output is the first level continuously for a predetermined number of times, the end of the document may be determined. It may be determined that has passed. When it is determined that the edge of the document has passed, based on the value obtained by subtracting the “counter value when it is determined that the edge of the document has passed” from the “reference step number”. Determine the read timing.

すなわち,本発明の画像読取装置は,原稿の端部が通過した(すなわちセンサが第1レベルに変化した)後からのステップ数をカウントし,そのカウント値を基に読み取りタイミングを決定する。このことから,本発明の画像読取装置では,誤差が1ステップに相当する距離以内になる。よって,原稿の先端検知もしくは後端検知が従来(誤差が割り込み信号の周期(数ステップ)に相当する距離以内)と比較して高精度になる。   That is, the image reading apparatus of the present invention counts the number of steps after the end of the document passes (that is, the sensor changes to the first level), and determines the reading timing based on the count value. Therefore, in the image reading apparatus of the present invention, the error is within a distance corresponding to one step. Therefore, the leading edge detection or trailing edge detection of the document becomes highly accurate as compared with the conventional technique (the error is within a distance corresponding to the period (several steps) of the interrupt signal).

また,本発明の画像読取装置は,センサの出力が第2レベルの間,駆動信号のパルス数に相当するステップ数をカウントする第2カウント手段と,第2カウント手段のカウント開始前に,前記第2カウント手段をリセットする第2リセット手段とを備え,リセット手段は,センサの出力レベルが第2レベルから第1レベルに変化した時点での,第2カウント手段のカウンタ値が,閾値以上の場合にカウント手段をリセットするとよりよい。   In addition, the image reading apparatus of the present invention includes a second count unit that counts the number of steps corresponding to the number of pulses of the drive signal while the output of the sensor is at the second level, and before the count of the second count unit starts, Second reset means for resetting the second count means, and the reset means has a counter value of the second count means equal to or greater than a threshold when the sensor output level changes from the second level to the first level. In this case, it is better to reset the counting means.

すなわち,上記の画像読取装置は,センサの出力レベルが第1レベルとは異なるレベルである第2レベルの間でカウントアップする第2カウント手段を備えている。そして,リセット手段は,第2カウント手段のカウンタ値が閾値より小さい場合に,カウント手段をリセットしない。つまり,第2カウント手段のカウンタ値が閾値より小さい場合は,第2レベルであった期間が短く,ノイズ等によって瞬間的にセンサの値が変化したと考えられる。そこで,リセット手段がそのような短期間での変化を無視することで,センサの出力レベルのばらつきの影響を回避する。これにより,原稿の読み取りタイミングをより高精度に検知できる。   In other words, the image reading apparatus includes the second count unit that counts up between the second levels in which the output level of the sensor is different from the first level. The reset means does not reset the count means when the counter value of the second count means is smaller than the threshold value. That is, when the counter value of the second count means is smaller than the threshold value, it is considered that the period of the second level is short and the sensor value is instantaneously changed due to noise or the like. Therefore, the reset means ignores such a short-term change, thereby avoiding the influence of variations in sensor output level. Thereby, the reading timing of the original can be detected with higher accuracy.

また,上記の画像読取装置の第2リセット手段は,センサの出力レベルが第1レベルから第2レベルに変化した時点での,カウント手段のカウンタ値が,閾値以上の場合に第2カウント手段をリセットするとよりよい。   Further, the second reset unit of the image reading device described above is configured to switch the second count unit when the count value of the count unit is equal to or greater than a threshold when the output level of the sensor changes from the first level to the second level. Better to reset.

すなわち,センサが第1レベル時にカウントアップするカウント手段と,第2レベル時にカウントアップする第2カウント手段とを有する画像読取装置では,一方のカウント手段で原稿の先端の通過を検知して,読み取り開始タイミングの高精度化を図るとともに,他方のカウント手段で原稿の後端の通過を検知して,読み取り終了タイミングの高精度化を図ることができる。そこで,第2リセット手段でも,第1レベル時にカウントアップするカウント手段のカウンタ値が閾値より小さい場合は,リセットしないようにすることで,センサの出力レベルのばらつきの影響を回避する。これにより,原稿の読み取り開始タイミングと読み取り終了タイミングとの両方をより高精度に検知できる。   That is, in an image reading apparatus having a counting means that counts up when the sensor is at the first level and a second counting means that counts up when the sensor is at the second level, one of the counting means detects passage of the leading edge of the document and reads it. It is possible to increase the accuracy of the start timing and to detect the passage of the trailing edge of the document with the other counting means, thereby increasing the accuracy of the reading end timing. Therefore, even in the second reset means, when the counter value of the count means that counts up at the first level is smaller than the threshold value, the influence of variations in the output level of the sensor is avoided by not resetting. Thereby, both the reading start timing and the reading end timing of the document can be detected with higher accuracy.

本発明によれば,自動搬送時の原稿の読み取りタイミングを高精度に検知できる画像読取装置が実現している。   According to the present invention, an image reading apparatus that can detect the reading timing of a document during automatic conveyance with high accuracy is realized.

以下,本発明にかかる画像読取装置を具体化した実施の形態について,添付図面を参照しつつ詳細に説明する。本形態は,電話機能,スキャナ機能,プリンタ機能,コピー機能,ファクシミリ機能等を備えた複合機に本発明を適用したものである。   DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments embodying an image reading apparatus according to the present invention will be described below in detail with reference to the accompanying drawings. In this embodiment, the present invention is applied to a multi-function machine having a telephone function, a scanner function, a printer function, a copy function, a facsimile function, and the like.

[第1の形態]
[複合機の全体構成]
第1の形態の複合機100は,図1に示すように,用紙に画像を印刷する画像形成部10と,原稿の画像を読み取る原稿読取部20とを備えている。また,原稿読取部20の前面側には,液晶ディスプレイ41やボタン群42を備えた操作パネル40が設けられ,この操作パネル40により動作状況の表示やユーザによる操作の入力が可能になっている。なお,画像形成部10の画像形成方式は,電子写真方式であっても,インクジェット方式であってもよい。また,カラー画像の形成が可能であっても,モノクロ画像専用であってもよい。
[First embodiment]
[Overall configuration of MFP]
As shown in FIG. 1, the MFP 100 of the first embodiment includes an image forming unit 10 that prints an image on a sheet, and a document reading unit 20 that reads a document image. In addition, an operation panel 40 having a liquid crystal display 41 and a button group 42 is provided on the front side of the document reading unit 20, and the operation panel 40 can display an operation status and input a user operation. . The image forming method of the image forming unit 10 may be an electrophotographic method or an ink jet method. Further, even if a color image can be formed, it may be dedicated to a monochrome image.

[原稿読取部の構成]
原稿読取部20は,図2に示すように,原稿の画像を読み取るスキャナ部21と,原稿の自動搬送を行うADF(Auto Document Feeder:自動原稿供給装置)22とを備えている。スキャナ部21は,その上面に位置する2枚のプラテンガラス23,24と,その内部に位置するCCDユニット25とを備えている。
[Configuration of the document reader]
As shown in FIG. 2, the document reading unit 20 includes a scanner unit 21 that reads an image of a document and an ADF (Auto Document Feeder) 22 that automatically conveys the document. The scanner unit 21 includes two platen glasses 23 and 24 located on the upper surface thereof, and a CCD unit 25 located therein.

CCDユニット25は,CCDセンサ251と,レンズからなる光学素子252と,冷陰極管からなる光源253とを備えている。光源253の反射光は,光学素子252へと導かれ,CCDセンサ251に結像される。そして,CCDセンサ251によって電気信号に変換される。なお,読取ユニットは,CCD方式に限らず,例えばCIS(Contact Image Sensor)方式であってもよい。   The CCD unit 25 includes a CCD sensor 251, an optical element 252 made of a lens, and a light source 253 made of a cold cathode tube. The reflected light of the light source 253 is guided to the optical element 252 and imaged on the CCD sensor 251. Then, it is converted into an electric signal by the CCD sensor 251. The reading unit is not limited to the CCD system, but may be a CIS (Contact Image Sensor) system, for example.

ADF22は,読み取り前の原稿を載置する原稿トレイ221と,読み取り後の原稿を載置する排出トレイ222とを備えている。具体的に,原稿トレイ221は,排出トレイ222の上方に配設されている。そして,ADF22は,原稿トレイ221に載置された原稿を1枚ずつ取り出し,その原稿の読み取りが行われた後,その原稿を排出トレイ222上に排出する。また,ADF22は,スキャナ部21の上方を開閉可能に覆い,プラテンガラス23,24を含む原稿載置台上に載置された原稿に対する原稿押さえカバーとしての機能も兼ねる。   The ADF 22 includes a document tray 221 on which a document before reading is placed and a discharge tray 222 on which the document after reading is placed. Specifically, the document tray 221 is disposed above the discharge tray 222. Then, the ADF 22 takes out the originals placed on the original tray 221 one by one, reads the originals, and then discharges the originals onto the discharge tray 222. Further, the ADF 22 covers the upper portion of the scanner unit 21 so that it can be opened and closed, and also functions as a document pressing cover for the document placed on the document placement table including the platen glasses 23 and 24.

原稿の読取方式としては,フラットベッド(原稿固定走査)方式と,ADF(原稿移動走査)方式とがある。フラットベッド方式の場合,原稿を1枚ずつプラテンガラス24(以下,「FBガラス24」とする)上に載置する。その状態で,CCDユニット25が副走査方向(主走査方向に直交方向,図2の矢印A方向)に移動し,その際に主走査方向に1ラインずつ原稿の画像が読み取られる。一方,ADF方式の場合,原稿を纏めて原稿トレイ221に載置する。そして,CCDユニット25がプラテンガラス23(以下,「ADFガラス23」とする)に対向する位置に移動し,固定される。その状態で,原稿がADFガラス23に対向する位置(読取位置)に搬送され,その際に主走査方向に1ラインずつ原稿の画像が読み取られる。   As a document reading method, there are a flat bed (document fixed scanning) method and an ADF (document moving scanning) method. In the case of the flat bed system, documents are placed one by one on a platen glass 24 (hereinafter referred to as “FB glass 24”). In this state, the CCD unit 25 moves in the sub-scanning direction (the direction orthogonal to the main scanning direction, the direction of arrow A in FIG. 2), and at that time, the image of the document is read line by line in the main scanning direction. On the other hand, in the case of the ADF method, the originals are collectively placed on the original tray 221. Then, the CCD unit 25 is moved to a position facing the platen glass 23 (hereinafter referred to as “ADF glass 23”) and fixed. In this state, the document is conveyed to a position (reading position) facing the ADF glass 23, and at that time, the image of the document is read line by line in the main scanning direction.

続いて,ADF22について詳説する。ADF22の内部には,吸入ローラ271,分離ローラ272,搬送ローラ273,274,および排紙ローラ275の各種ローラと,ADFガラス23と対向する原稿押さえ278とが設けられ,これらによって原稿トレイ221と排出トレイ222とを連結する略U字形状の搬送路が設けられている。また,ADF22は,各種ローラを駆動するADFモータ28を備え,ADFモータ28によって各種ローラを回転させることで原稿を自動搬送する。ADF28には,正確な位置決め制御が可能なステッピングモータを採用する。   Next, the ADF 22 will be described in detail. Inside the ADF 22, there are provided various rollers such as a suction roller 271, a separation roller 272, a transport roller 273, 274, and a paper discharge roller 275, and a document presser 278 facing the ADF glass 23, and thereby the document tray 221 and A substantially U-shaped conveyance path that connects the discharge tray 222 is provided. The ADF 22 includes an ADF motor 28 that drives various rollers, and the ADF motor 28 automatically rotates the various rollers to automatically convey the original. For the ADF 28, a stepping motor capable of accurate positioning control is adopted.

具体的に,ADF22の搬送路は,原稿トレイ221から始まり,吸入ローラ271,分離ローラ272によってADF22内に取り込まれ,搬送ローラ273,274を経由してUターンし,原稿押さえ278とADFガラス23との隙間を通り,排紙ローラ275を抜けて排出トレイ222に向かう経路を構成している。そして,読取位置にて原稿の画像が読み取られる。   Specifically, the transport path of the ADF 22 starts from the document tray 221, is taken into the ADF 22 by the suction roller 271 and the separation roller 272, makes a U-turn via the transport rollers 273, 274, and the document presser 278 and the ADF glass 23. , And a path toward the discharge tray 222 through the discharge roller 275. Then, the image of the document is read at the reading position.

また,ADF22は,搬送路上を通過する原稿Sを検知する原稿センサ29を備えている。本形態では,原稿センサ29は,原稿の搬送方向の,最終的に原稿を読取位置に搬送する搬送ローラ274と読取位置との間を通過する原稿を検知可能な位置に配置されている。この原稿センサ29の出力レベルを基に,原稿の先端ないし後端が通過したことを検知できる。   In addition, the ADF 22 includes a document sensor 29 that detects the document S passing through the conveyance path. In this embodiment, the document sensor 29 is arranged at a position in the document conveyance direction where a document passing between the reading roller and the conveyance roller 274 that finally conveys the document to the reading position can be detected. Based on the output level of the document sensor 29, it can be detected that the leading or trailing edge of the document has passed.

画像読取部20は,原稿の先端を検知することで原稿の読み取り開始タイミングを計る。また,原稿の後端を検知することで原稿の読み取り終了タイミングを計る。具体的には,原稿センサ29が,原稿の先端を検知してから一定の期間を経た後に読み取りを開始し,原稿の後端を検知してから一定の期間を経た後に読み取りを終了している。すなわち,原稿センサ29からの信号を基に,原稿の読み取りタイミングを決定している。   The image reading unit 20 measures the document reading start timing by detecting the leading edge of the document. In addition, the document reading end timing is measured by detecting the trailing edge of the document. Specifically, the document sensor 29 starts reading after a certain period after detecting the leading edge of the document, and ends reading after a certain period after detecting the trailing edge of the document. . That is, the document reading timing is determined based on the signal from the document sensor 29.

[複写機の電気的構成]
続いて,複合機100の電気的構成について説明する。複写機100は,図3に示すように,CPU31と,ROM32と,RAM33と,NVRAM(不揮発性メモリ)34と,ASIC30とを有している。ASIC30は,画像形成部10,原稿読取部20,操作パネル40等と電気的に接続されている。
[Electric configuration of copier]
Next, the electrical configuration of the multifunction machine 100 will be described. As illustrated in FIG. 3, the copying machine 100 includes a CPU 31, a ROM 32, a RAM 33, an NVRAM (nonvolatile memory) 34, and an ASIC 30. The ASIC 30 is electrically connected to the image forming unit 10, the document reading unit 20, the operation panel 40, and the like.

ROM32には,複写機100を制御するための各種制御プログラムや各種設定,初期値等が記憶されている。RAM33は,各種制御プログラムが読み出される作業領域として,あるいは画像データを一時的に記憶する記憶領域として利用される。CPU31は,ROM32から読み出した制御プログラムに従って,その処理結果をRAM33やNVRAM34に記憶させながら,複写機100の各構成要素を制御する。   The ROM 32 stores various control programs for controlling the copying machine 100, various settings, initial values, and the like. The RAM 33 is used as a work area from which various control programs are read or as a storage area for temporarily storing image data. The CPU 31 controls each component of the copying machine 100 while storing the processing result in the RAM 33 or NVRAM 34 according to the control program read from the ROM 32.

図4は,画像読取部20との関係に着目したASIC30の機能構成を示している。ASIC30は,CCDユニット25やADFモータ28を制御する制御部301と,原稿センサ29からの信号を受け付けるセンサ受け付け部303と,ADFモータ28のステップ数をカウントするONカウンタ304,OFFカウンタ305(カウント手段,第2カウント手段の一例)とを備えている。なお,ONカウンタ304は,原稿センサ29の出力レベルがハイレベル(ONレベル)であることを条件としてカウントアップするカウンタであり,OFFカウンタ305は,原稿センサ29の出力レベルがローレベル(OFFレベル)であることを条件としてカウントアップするカウンタである。   FIG. 4 shows a functional configuration of the ASIC 30 focusing on the relationship with the image reading unit 20. The ASIC 30 includes a control unit 301 that controls the CCD unit 25 and the ADF motor 28, a sensor reception unit 303 that receives a signal from the document sensor 29, an ON counter 304 that counts the number of steps of the ADF motor 28, and an OFF counter 305 (counting). And an example of the second counting means). Note that the ON counter 304 is a counter that counts up on condition that the output level of the document sensor 29 is high (ON level), and the OFF counter 305 is that the output level of the document sensor 29 is low (OFF level). It is a counter that counts up on the condition that

制御部301は,ADFモータ28用の駆動信号を出力してADFモータ28を制御し,CCDユニット25用の駆動信号を出力してCCDユニット25を制御する。また,制御部301は,ADF方式によって原稿を読み取ることが指示された際,原稿センサ29の出力レベルおよびONカウンタ304ないしOFFカウンタ305のカウンタ値を取得し,それらを基にCCDユニット25の読み取り開始タイミングおよび読み取り終了タイミングを決定する。読み取りタイミングの求め方については後述する。   The control unit 301 outputs a drive signal for the ADF motor 28 to control the ADF motor 28, and outputs a drive signal for the CCD unit 25 to control the CCD unit 25. Further, the control unit 301 acquires the output level of the document sensor 29 and the counter value of the ON counter 304 to the OFF counter 305 when instructed to read the document by the ADF method, and reads the CCD unit 25 based on these. The start timing and reading end timing are determined. A method for obtaining the reading timing will be described later.

[ADF読み取り処理]
続いて,ADF方式による原稿の読み取り命令を受け取った際の複合機100の動作(ADF読み取り処理)の手順について,図5のフローチャートを参照しつつ説明する。なお,ADF22の原稿トレイ221には,少なくとも1枚の原稿が載置されているものとする。
[ADF reading process]
Next, the procedure of the operation of the multifunction peripheral 100 (ADF reading process) when receiving a document reading command by the ADF method will be described with reference to the flowchart of FIG. It is assumed that at least one document is placed on the document tray 221 of the ADF 22.

まず,ADF22内の各ローラがADFモータ28によって駆動される(S101)。これにより,吸入ローラ271によって原稿が1枚ずつADF22内に取り込まれ,分離ローラ272,搬送ローラ273,274を介して搬送路を移動する。   First, each roller in the ADF 22 is driven by the ADF motor 28 (S101). As a result, the originals are taken into the ADF 22 one by one by the suction roller 271 and moved along the conveyance path via the separation roller 272, the conveyance rollers 273 and 274.

次に,原稿センサ29によって原稿の先端が通過したか否かを判定する(S102)。より具体的にS102の処理では,原稿の先端が通過するタイミングを検知する。原稿の先端が通過した場合には(S102:YES),読み取り開始タイミングを決定する(S103)。すなわち,原稿の先端が読取位置に到達するタイミングを計る。そして,読み取り開始タイミングとなった時点で,CCDユニット25による原稿の読み取りを開始する(S104)。   Next, it is determined by the document sensor 29 whether or not the leading edge of the document has passed (S102). More specifically, in the process of S102, the timing at which the leading edge of the document passes is detected. If the leading edge of the document has passed (S102: YES), the reading start timing is determined (S103). That is, the timing at which the leading edge of the document reaches the reading position is measured. Then, when the reading start timing comes, reading of the original by the CCD unit 25 is started (S104).

次に,原稿センサ29によって原稿の後端が通過したか否かを判定する(S105)。より具体的にS105の処理では,原稿の後端が通過するタイミングを検知する。原稿の後端が通過した場合には(S105:YES),読み取り終了タイミングを決定する(S106)。すなわち,原稿の後端が読取位置に到達するタイミングを計る。そして,読み取り終了タイミングとなった時点で,CCDユニット25による原稿の読み取りを終了する(S107)。なお,原稿の読み取り開始タイミングおよび原稿の読み取り終了タイミングの決定方法の詳細については,後述する。   Next, it is determined by the document sensor 29 whether or not the trailing edge of the document has passed (S105). More specifically, in the process of S105, the timing at which the trailing edge of the document passes is detected. If the trailing edge of the document has passed (S105: YES), the reading end timing is determined (S106). That is, the timing at which the trailing edge of the document reaches the reading position is measured. Then, when the reading end timing is reached, reading of the original by the CCD unit 25 is ended (S107). Details of the method for determining the document reading start timing and the document reading end timing will be described later.

原稿の読み取りを終了し,原稿を排出トレイ222に排紙した後,原稿トレイ221に原稿がなければ,ADFモータ28を停止し,原稿の搬送を終了する(S108)。原稿の搬送終了後,本処理を終了する。   After reading the document and discharging the document to the discharge tray 222, if there is no document on the document tray 221, the ADF motor 28 is stopped and the conveyance of the document is ended (S108). After the conveyance of the original is completed, this process is terminated.

[原稿の読み取り開始タイミングの決定方法]
続いて,本形態の複合機100における原稿の読み取り開始タイミングの決定方法について,図6のタイミングチャートを参照しつつ説明する。
[How to determine the document reading start timing]
Next, a method for determining the document reading start timing in the multifunction peripheral 100 of the present embodiment will be described with reference to the timing chart of FIG.

複合機100のASIC30は,図6に示すように,CCDユニット25による1ライン分の読み取り時間に相当する周期のパルス信号(以下,「読取ラインエンド信号」とする)を出力する(ライン信号出力手段の一例)。さらに,この読取ラインエンド信号に同期して,ADFモータ28用の駆動信号(以下,「モータ駆動パルス信号」)を出力する(モータ駆動信号出力手段の一例)。本形態のADFモータ28は,励磁相モードが2w1−2相であり,読取ラインエンド信号の1パルスで1ステップ駆動されるものとする。   As shown in FIG. 6, the ASIC 30 of the multi-function peripheral 100 outputs a pulse signal (hereinafter referred to as “reading line end signal”) having a period corresponding to the reading time for one line by the CCD unit 25 (line signal output). Example of means). Further, a driving signal for the ADF motor 28 (hereinafter referred to as “motor driving pulse signal”) is output in synchronization with the reading line end signal (an example of motor driving signal output means). It is assumed that the ADF motor 28 of this embodiment has an excitation phase mode of 2w1-2 phase and is driven by one step with one pulse of the read line end signal.

さらに,ASIC30は,読取ラインエンド信号の所定パルス数分(本形態では4パルス分)に相当する周期の割り込み信号を出力する(割り込み信号出力手段の一例)。この割り込み信号に応じて,CPU31が原稿センサ29の信号レベルを取得する。取得した信号レベルを基に,原稿の先端および後端の通過を判定する。   Furthermore, the ASIC 30 outputs an interrupt signal having a period corresponding to a predetermined number of pulses (four pulses in this embodiment) of the read line end signal (an example of an interrupt signal output unit). In response to this interrupt signal, the CPU 31 acquires the signal level of the document sensor 29. Based on the acquired signal level, the passage of the leading edge and the trailing edge of the document is determined.

ONカウンタ304は,原稿センサ29がハイレベル(ONレベル)を出力している状態でカウントアップされる。OFFカウンタ305は,原稿センサ29がローレベル(OFFレベル)を出力している状態でカウントアップされる。また,ONカウンタ304およびOFFカウンタ305は,モータ駆動パルス信号の1パルスごとに所定のステップ数が加算され,それぞれのリードレジスタに保存される。リードレジスタへの保存は,読取ラインエンド信号のタイミングであってもよいし割り込み信号のタイミングであってもよい。本形態のADFモータ28は,励磁相モードが2w1−2相であり,1ステップずつ加算される。   The ON counter 304 is counted up while the document sensor 29 is outputting a high level (ON level). The OFF counter 305 is counted up while the document sensor 29 is outputting a low level (OFF level). In addition, the ON counter 304 and the OFF counter 305 add a predetermined number of steps for each pulse of the motor drive pulse signal, and store it in the respective read registers. Saving to the read register may be the timing of the read line end signal or the timing of the interrupt signal. The ADF motor 28 of this embodiment has an excitation phase mode of 2w1-2 phase, and is added step by step.

また,ONカウンタ304のカウンタ値は,原稿センサ29がOFFレベルからONレベルに変化したタイミングで0にリセットされる。一方,OFFカウンタ305のカウンタ値は,原稿センサ29がONレベルからOFFレベルに変化したタイミングで0にリセットされる。   The counter value of the ON counter 304 is reset to 0 when the document sensor 29 changes from the OFF level to the ON level. On the other hand, the counter value of the OFF counter 305 is reset to 0 when the document sensor 29 changes from the ON level to the OFF level.

以下,原稿の読み取り開始タイミングの決定手順について説明する。なお,本形態では,割り込み信号に同期して読み取った原稿センサ29の信号レベルが連続して3回ONレベルであった場合に,完全にONしたものと判断する。さらに,原稿センサ29がONに変化した時点から16ステップ後にCCDユニット25による画像読み取りを開始するものとし,このステップ数の「16」が「基準ステップ数」(原稿の通過を検知するセンサの位置から読取手段の読取位置までの原稿の移動に必要なステップ数)としてROM32に記憶されている。   The procedure for determining the document reading start timing will be described below. In the present embodiment, when the signal level of the document sensor 29 read in synchronization with the interrupt signal is continuously ON three times, it is determined that the document sensor 29 is completely turned on. Further, it is assumed that image reading by the CCD unit 25 is started 16 steps after the document sensor 29 is turned ON, and the step number “16” is “reference step number” (position of the sensor for detecting passage of the document). Is stored in the ROM 32 as the number of steps required to move the document from the reading position to the reading position of the reading means.

まず,ONカウンタ304では,原稿センサ29がONに変化した時点(図6中の(A))から後に駆動されたモータステップ数がカウントされる。なお,ONカウンタ304は,原稿センサ29がOFFレベルからONレベルに変化したタイミングでリセットされるため,0からカウントアップされる。一方,OFFカウンタ305は,原稿センサ29がONに変化した時点からカウントを停止する。   First, the ON counter 304 counts the number of motor steps driven after the time when the document sensor 29 changes to ON ((A) in FIG. 6). The ON counter 304 is counted up from 0 because the document sensor 29 is reset when the document sensor 29 changes from the OFF level to the ON level. On the other hand, the OFF counter 305 stops counting from the time when the document sensor 29 changes to ON.

その後,読取ラインエンド割り込みソフト処理にて,図6中の(1)の時点で,原稿センサ29のONレベルが検出される。このONレベルの検出を1回目とし,その後,(2)の時点で2回目が検出され,(3)の時点で3回目が検出される。そして,図6中の(3)の時点で,3回連続して原稿センサ29のONが検出されたことになるため,原稿センサ29が完全にONになったと判定される(判定手段の一例)。   Thereafter, the reading line end interrupt software process detects the ON level of the document sensor 29 at the time (1) in FIG. The ON level is detected for the first time, then the second time is detected at the time point (2), and the third time is detected at the time point (3). Then, since the ON of the document sensor 29 is detected three times continuously at the time (3) in FIG. 6, it is determined that the document sensor 29 is completely turned on (an example of a determination unit). ).

原稿センサ29のONが判定された段階で,ONカウンタ304のリードレジスタからカウンタ値が読み出される。そして,そのカウンタ値を基に,図6中の(3)の時点での画像読み取りを開始するまでの残ステップ数を算出する(決定手段の一例)。具体的には,次の式(I)によって求められる。
(残ステップ)=(基準ステップ数)−(カウンタ値) (I)
図6の例では,カウンタ値が10であることから,16−10で残り6ステップとなる。これにより,図6中の(3)の時点から6ステップ後の(B)の時点で画像読み取りが開始される。
When it is determined that the document sensor 29 is ON, the counter value is read from the read register of the ON counter 304. Then, based on the counter value, the number of remaining steps until the image reading at the time (3) in FIG. 6 is started is calculated (an example of a determination unit). Specifically, it is obtained by the following equation (I).
(Remaining steps) = (Reference step number)-(Counter value) (I)
In the example of FIG. 6, since the counter value is 10, the remaining 6 steps are 16-10. As a result, image reading is started at a time point (B) six steps after a time point (3) in FIG.

すなわち,本形態の複合機100では,原稿センサ29がONに変化した時から,つまり原稿の先端が検知されたときから,ADFモータ28のステップ数をカウントしている。そして,そのカウンタ値を基に,原稿の読み取り開始タイミングを決定している。そのため,原稿センサ29がONに変化した時点(A)を基準として,原稿の読み取り開始タイミングが決定される。その結果,本形態では,読み取り開始タイミングの最大誤差がモータ駆動パルス信号の周期に相当する1ステップ以内になる。   That is, in the MFP 100 of this embodiment, the number of steps of the ADF motor 28 is counted from when the document sensor 29 is turned on, that is, from when the leading edge of the document is detected. Based on the counter value, the document reading start timing is determined. For this reason, the document reading start timing is determined with reference to the time point (A) when the document sensor 29 changes to ON. As a result, in this embodiment, the maximum error of the reading start timing is within one step corresponding to the cycle of the motor drive pulse signal.

一方,従来の手順では,図6中の(3)の時点で,原稿センサ29が完全にONになったと判断されると,1回目に原稿センサ29のONが検知された時点(1)を基準として,残りのステップ数が16−8で8ステップと算出される。そのため,図6中の(3)の時点から8ステップ後の(C)の時点で画像読み取りが開始される。その結果,原稿センサ29がONに変化後,次の割り込み信号が出力されるまでの2ステップ分が誤差になる。つまり,従来の手順では,読み取り開始タイミングの最大誤差が割り込み信号の周期に相当するステップ数(図6では4ステップ)になる。このことから,本形態の複合機100の読み取り開始タイミングが従来と比較して高精度であることがわかる。   On the other hand, in the conventional procedure, when it is determined that the document sensor 29 is completely turned on at the time (3) in FIG. 6, the time point (1) when the document sensor 29 is detected for the first time is detected. As a reference, the remaining number of steps is calculated as 16-8 and 8 steps. For this reason, image reading is started at a time point (C) 8 steps after a time point (3) in FIG. As a result, there is an error in two steps from when the document sensor 29 is turned on until the next interrupt signal is output. That is, in the conventional procedure, the maximum error in the reading start timing is the number of steps (4 steps in FIG. 6) corresponding to the period of the interrupt signal. From this, it can be seen that the reading start timing of the multifunction device 100 of the present embodiment is more accurate than the conventional one.

なお,本形態の複合機100では,ADFモータ28の1ステップが最も細かい励磁相モードである2w1−2相を例に,1ステップに付き1ずつカウントアップしているが,これに限るものではない。例えば,励磁相モードが2−2相であれば,図7に示すように,1ステップに付き8ずつカウントアップする。この他,励磁相モードがw1−2相であれば,2ずつカウントアップする。励磁相モードが1−2相であれば,4ずつカウントアップする。また,ADFモータ28が動作途中で励磁相モードを切り換える場合には,切り換えられた励磁相モードに応じてカウントアップ数を切り換える。   In the MFP 100 according to the present embodiment, one step of the ADF motor 28 is incremented by one for each step, taking the 2w1-2 phase, which is the finest excitation phase mode, as an example. Absent. For example, if the excitation phase mode is 2-2 phase, the count is incremented by 8 per step as shown in FIG. In addition, if the excitation phase mode is the w1-2 phase, the count is incremented by two. If the excitation phase mode is 1-2 phase, count up by four. Further, when the excitation phase mode is switched during the operation of the ADF motor 28, the count-up number is switched according to the switched excitation phase mode.

[原稿の読み取り終了タイミングの決定方法]
続いて,本形態の複合機100における原稿の読み取り終了タイミングの決定方法について,図8のタイミングチャートを参照しつつ説明する。
[How to determine the document reading end timing]
Next, a method of determining the document reading end timing in the multifunction peripheral 100 of the present embodiment will be described with reference to the timing chart of FIG.

原稿の読み取り終了タイミングの決定方法は,原稿の読み取り開始タイミングの決定方法とオンオフレベルが反対になっているだけで同様の手順である。すなわち,割り込み信号に同期して読み取った原稿センサ29の信号レベルが連続して3回OFFレベルであった場合に,完全にOFFしたものと判断する。さらに,原稿センサ29がOFFに変化してから16ステップ後に画像読み取りを終了するものとする。   The document reading end timing determination method is the same as the document reading start timing determination method except that the on / off level is opposite. That is, when the signal level of the document sensor 29 read in synchronism with the interrupt signal is continuously OFF three times, it is determined that the document sensor 29 is completely turned off. Further, it is assumed that the image reading is finished 16 steps after the document sensor 29 changes to OFF.

まず,OFFカウンタ305では,原稿センサ29がOFFに変化した時点(図8中の(A))から後に駆動されたモータステップ数がカウントされる。なお,OFFカウンタ305は,原稿センサ29がONレベルからOFFレベルに変化したタイミングでリセットされるため,0からカウントアップされる。一方,ONカウンタ304は,原稿センサ29がOFFに変化した時点からカウントを停止する。   First, the OFF counter 305 counts the number of motor steps driven after the time when the document sensor 29 changes to OFF ((A) in FIG. 8). Note that the OFF counter 305 is reset from 0 because the document sensor 29 is reset when the document sensor 29 changes from the ON level to the OFF level. On the other hand, the ON counter 304 stops counting from the time when the document sensor 29 changes to OFF.

その後,図8中の(3)の時点で,3回連続して原稿センサ29のOFFが検出され,原稿センサ29が完全にOFFになったと判断される。そこで,OFFカウンタ305のリードレジスタからカウンタ値が読み出される。そして,そのカウンタ値を基に,図8中の(3)の時点での画像読み取りを終了するまでの残りステップ数を算出する。図8の例では,カウンタ値が10であることから,16−10で残り6ステップとなる。これにより,図8中の(3)の時点から6ステップ後の(B)の時点で画像読み取りが終了する。   Thereafter, at time (3) in FIG. 8, the document sensor 29 is detected to be OFF three times in succession, and it is determined that the document sensor 29 is completely turned OFF. Therefore, the counter value is read from the read register of the OFF counter 305. Then, based on the counter value, the number of remaining steps until the end of image reading at the point (3) in FIG. 8 is calculated. In the example of FIG. 8, since the counter value is 10, the remaining 6 steps are 16-10. Thus, the image reading is completed at the time (B), which is six steps after the time (3) in FIG.

上述のように,ONレベル用のONカウンタ304に加え,OFFレベル用のOFFカウンタとを設けることで,原稿の読み取り終了タイミングであっても,原稿の読み取り開始タイミングと同様の手順で求めることができる。なお,カウンタが1つであっても,原稿の読み取り開始タイミングと読み取り終了タイミングとのいずれか一方のタイミングの高精度化を図ることができる。   As described above, by providing the OFF counter for the OFF level in addition to the ON counter 304 for the ON level, even if it is the document reading end timing, it can be obtained by the same procedure as the document reading start timing. it can. Even if there is only one counter, it is possible to improve the accuracy of the timing of either the document reading start timing or the reading end timing.

[第2の形態]
第2の形態の複合機は,ノイズ等に起因する原稿センサ29の出力ばらつきを考慮し,ONカウンタ304およびOFFカウンタ305をリセットするための条件として閾値を設定する。この点,第1の形態と異なる。なお,複写機のハード構成については,第1の形態と同様であるため説明を省略する。
[Second form]
The multifunction machine of the second embodiment sets a threshold value as a condition for resetting the ON counter 304 and the OFF counter 305 in consideration of output variations of the document sensor 29 caused by noise or the like. This is different from the first embodiment. Note that the hardware configuration of the copying machine is the same as that of the first embodiment, and a description thereof will be omitted.

本形態の複合機は,ONカウンタ304ないしOFFカウンタ305をリセットするか否かを判断するための閾値(以下,「リセット閾値」とする)をROM32に記憶している。そして,ONカウンタ304のカウンタ値は,原稿センサ29がOFFレベルからONレベルに変化したタイミングで,OFFカウンタ305のカウンタ値を取得し,そのカウンタ値がリセット閾値より大きい場合にリセットされる。一方,OFFカウンタ305のカウンタ値は,原稿センサ29がONレベルからOFFレベルに変化したタイミングで,ONカウンタ304のカウンタ値を取得し,そのカウンタ値がリセット閾値より大きい場合にリセットされる。   The MFP of this embodiment stores a threshold value (hereinafter referred to as “reset threshold value”) in the ROM 32 for determining whether or not to reset the ON counter 304 to the OFF counter 305. The counter value of the ON counter 304 is reset when the counter value of the OFF counter 305 is acquired at the timing when the document sensor 29 changes from the OFF level to the ON level, and the counter value is larger than the reset threshold value. On the other hand, the counter value of the OFF counter 305 is reset when the counter value of the ON counter 304 is acquired at the timing when the document sensor 29 changes from the ON level to the OFF level, and the counter value is larger than the reset threshold.

すなわち,ノイズ等の影響により,原稿センサ29が瞬間的にONレベルないしOFFレベルに変化することがある。その際,その瞬間的な変化に反応し,ONカウンタ304ないしOFFカウンタ305をリセットしてしまうと,読み取りタイミングの決定に悪影響を及ぼす。そこで,そのような瞬間的な変化であるか否かを判断し,瞬間的な変化であればリセットしないように制御する。   That is, the document sensor 29 may instantaneously change to the ON level or OFF level due to the influence of noise or the like. At this time, if the ON counter 304 or the OFF counter 305 is reset in response to the instantaneous change, the determination of the reading timing is adversely affected. Therefore, it is determined whether or not it is such an instantaneous change, and if it is an instantaneous change, control is performed so as not to reset.

以下,本形態のカウンタクリアの手順について,図9のタイミングチャートを参照しつつ説明する。なお,本形態では,リセット閾値を3とする。   Hereinafter, the counter clearing procedure of this embodiment will be described with reference to the timing chart of FIG. In this embodiment, the reset threshold is 3.

始めに,図9の(A)の時点では,原稿センサ29がOFFレベルからONレベルに変化している。そこで,OFFカウンタ305のカウンタ値は「12」であり,リセット閾値より大きい。そのため,所定期間以上連続してOFFレベルであった後の変化であると判断でき,ONカウンタ304がリセットされる。   First, at the time of FIG. 9A, the document sensor 29 changes from the OFF level to the ON level. Therefore, the counter value of the OFF counter 305 is “12”, which is larger than the reset threshold. For this reason, it can be determined that the change has occurred after being continuously at the OFF level for a predetermined period or longer, and the ON counter 304 is reset.

次に,図9の(B)の時点では,原稿センサ29がONレベルからOFFレベルに変化している。そこで,ONカウンタ304のカウンタ値は「2」であり,リセット閾値より小さい。そのため,瞬間的な変化であったと判断でき,OFFカウンタ305がリセットされない。   Next, at the time of FIG. 9B, the document sensor 29 changes from the ON level to the OFF level. Therefore, the counter value of the ON counter 304 is “2”, which is smaller than the reset threshold. Therefore, it can be determined that the change is instantaneous, and the OFF counter 305 is not reset.

次に,図9の(C)の時点では,原稿センサ29がONレベルからOFFレベルに変化している。そこで,ONカウンタ304のカウンタ値は「4」であり,リセット閾値より大きい。そのため,所定期間以上連続してONレベルであった後の変化であると判断でき,OFFカウンタ305がリセットされる。   Next, at the time of FIG. 9C, the document sensor 29 is changed from the ON level to the OFF level. Therefore, the counter value of the ON counter 304 is “4”, which is larger than the reset threshold. Therefore, it can be determined that the change has been made after the ON level has been continuously ON for a predetermined period or longer, and the OFF counter 305 is reset.

次に,図9の(D)の時点では,原稿センサ29がOFFレベルからONレベルに変化している。そこで,OFFカウンタ305のカウンタ値は「2」であり,リセット閾値より小さい。そのため,瞬間的な変化であったと判断でき,ONカウンタ304がリセットされない。   Next, at the time of FIG. 9D, the document sensor 29 is changed from the OFF level to the ON level. Therefore, the counter value of the OFF counter 305 is “2”, which is smaller than the reset threshold. Therefore, it can be determined that the change is instantaneous, and the ON counter 304 is not reset.

このように,瞬間的な変化(図9の(A)(B)間のON,(C)(D)間のOFF)の場合には,カウントされる数が少ない。そこで,カウント数が少ない場合には,リセットしないことで,ノイズ等による瞬間的な変化による影響を回避する。これにより,原稿の読み取りタイミングをより高精度に検知できる。なお,本形態では,リセット閾値がONカウンタ304とOFFカウンタ305とで共通しているが,別々にリセット閾値を設けてもよい。   Thus, in the case of an instantaneous change (ON between (A) and (B) in FIG. 9, OFF between (C) and (D)), the number counted is small. Therefore, when the number of counts is small, the influence of instantaneous changes due to noise or the like is avoided by not resetting. Thereby, the reading timing of the original can be detected with higher accuracy. In this embodiment, the reset threshold is common to the ON counter 304 and the OFF counter 305, but the reset threshold may be provided separately.

以上詳細に説明したように本形態の複合機100は,原稿センサ29の出力がONレベルの間,ADFモータ28のステップ数をカウントしている。また,割り込み信号に応じ,原稿センサ29の出力レベルを取得し,その出力レベルを基に原稿の端部の通過を判定している。そして,CCDユニット25の読み取り開始タイミングは,原稿センサ29から読取位置までのステップ数に相当する「基準ステップ数」から,「原稿の先端が通過したと判断した時点でのカウンタ値」を引いた値を基に決定している。   As described in detail above, the multifunction peripheral 100 according to the present embodiment counts the number of steps of the ADF motor 28 while the output of the document sensor 29 is ON. In response to the interrupt signal, the output level of the document sensor 29 is acquired, and passage of the end of the document is determined based on the output level. Then, the reading start timing of the CCD unit 25 is obtained by subtracting the “counter value when it is determined that the leading edge of the document has passed” from the “reference step number” corresponding to the number of steps from the document sensor 29 to the reading position. Determined based on the value.

すなわち,原稿の端部が通過した(すなわち原稿センサ29がONレベルに変化したことが確定した)時点のカウンタ304のカウント値を取得し,基準ステップ数からそのカウント値を引いた値が,読み取り位置までの残りステップ数としている。このことから,複合機100では,誤差が1ステップに相当する距離以内になる。よって,自動搬送時の原稿の読み取りタイミングが高精度になる。   That is, the count value of the counter 304 at the time when the edge of the document passes (that is, when it is determined that the document sensor 29 has changed to the ON level) is obtained, and the value obtained by subtracting the count value from the reference step number is read. The remaining number of steps to the position. Therefore, in the multi-function device 100, the error is within a distance corresponding to one step. Therefore, the document reading timing during automatic conveyance is highly accurate.

なお,本実施の形態は単なる例示にすぎず,本発明を何ら限定するものではない。したがって本発明は当然に,その要旨を逸脱しない範囲内で種々の改良,変形が可能である。例えば,複合機に限らず,複写機,スキャナ,FAX等,原稿の自動搬送機能および読み取り機能を備えるものであれば適用可能である。   Note that this embodiment is merely an example, and does not limit the present invention. Therefore, the present invention can naturally be improved and modified in various ways without departing from the gist thereof. For example, the present invention is not limited to a multi-function machine, and can be applied to any apparatus having an automatic document conveyance function and a reading function, such as a copying machine, a scanner, and a FAX.

また,実施の形態では,原稿センサ29が原稿を検知した場合にハイレベル(ONレベル),検知していない場合にはローレベル(OFFレベル)としているが,逆であってもよい。すなわち,原稿センサ29が原稿を検知した場合にローレベル,検知していない場合にはハイレベルとしてもよい。   Further, in the embodiment, the high level (ON level) is set when the document sensor 29 detects a document, and the low level (OFF level) is set when no document is detected. That is, the low level may be set when the document sensor 29 detects a document, and the high level may be set when it is not detected.

また,実施の形態では,割り込み信号を検知する度に原稿センサ29の信号レベルを読み取っているが,これに限るものではない。例えば,割り込み信号を所定回数検知することで読み取ることとしてもよい。   In the embodiment, the signal level of the document sensor 29 is read every time an interrupt signal is detected. However, the present invention is not limited to this. For example, the interrupt signal may be read by detecting a predetermined number of times.

また,実施の形態では,読み取った原稿センサ29の信号レベルが3回連続でONレベルであった場合に原稿センサ29がONしたことを判定しているが,これに限るものではない。例えば,1回のONで即時にONしたと判定してもよい。また,非連続であっても4回目以上のONレベルの検知でONしたと判定してもよい。   In the embodiment, it is determined that the document sensor 29 is turned on when the signal level of the read document sensor 29 is continuously ON three times. However, the present invention is not limited to this. For example, it may be determined that it is turned on immediately after being turned on once. Further, even if it is discontinuous, it may be determined that the signal has been turned ON by the fourth or more ON level detection.

実施の形態にかかる複合機の外観を示す図である。1 is a diagram illustrating an appearance of a multifunction machine according to an embodiment. 複合機の画像読取部の概略構成を示す断面図である。FIG. 2 is a cross-sectional view illustrating a schematic configuration of an image reading unit of a multifunction machine. 実施の形態にかかる複合機の電気的構成を示すブロック図である。1 is a block diagram showing an electrical configuration of a multifunction machine according to an embodiment. 画像読取部との関係に着目したASICの機能構成を示すブロック図である。It is a block diagram which shows the function structure of ASIC which paid its attention to the relationship with an image reading part. ADF方式での原稿読み取りの手順を示すフローチャートである。6 is a flowchart showing a procedure for reading an original in the ADF method. 原稿の読み取り開始タイミングの決定時におけるセンサ信号のオンオフ状態およびカウンタ(2w1−2相)の状態を示すタイミングチャートである。6 is a timing chart showing an on / off state of a sensor signal and a state of a counter (2w1-2 phase) at the time of determining a document reading start timing. 原稿の読み取り開始タイミングの決定時におけるセンサ信号のオンオフ状態およびカウンタ(2−2相)の状態を示すタイミングチャートである。6 is a timing chart showing an on / off state of a sensor signal and a state of a counter (2-2 phase) at the time of determining a document reading start timing. 原稿の読み取り終了タイミングの決定時におけるセンサ信号のオンオフ状態およびカウンタ(2w1−2相)の状態を示すタイミングチャートである。6 is a timing chart showing an on / off state of a sensor signal and a state of a counter (2w1-2 phase) at the time of determining a document reading end timing. カウンタクリアの決定時におけるセンサ信号のオンオフ状態およびカウンタ(2w1−2相)の状態を示すタイミングチャートである。It is a timing chart which shows the ON / OFF state of a sensor signal at the time of determination of counter clear, and the state of a counter (2w1-2 phase).

符号の説明Explanation of symbols

10 画像形成部
20 原稿読取部
22 ADF
25 CCDユニット
28 ADFモータ
29 原稿センサ
30 ASIC
304 ONカウンタ
305 OFFカウンタ
100 複合機
10 Image forming unit 20 Document reading unit 22 ADF
25 CCD unit 28 ADF motor 29 Document sensor 30 ASIC
304 ON counter 305 OFF counter 100 MFP

Claims (5)

原稿を読み取る読取手段と,
原稿を搬送する搬送ローラを駆動するステッピングモータと,
前記読取手段よりも原稿の搬送方向の上流側に位置し,原稿の通過を検知するセンサと,
前記読取手段による1ライン分の読み取り時間に相当する周期のパルス信号を出力するライン信号出力手段と,
前記パルス信号に同期する前記ステッピングモータ用の駆動信号を出力するモータ駆動信号出力手段と,
前記パルス信号の所定パルス数分に相当する周期の割り込み信号を出力する割り込み信号出力手段と,
前記センサの出力が第1レベルの間,前記駆動信号のパルス数に相当するステップ数をカウントするカウント手段と,
前記センサの出力が第2レベルの間,前記駆動信号のパルス数に相当するステップ数をカウントする第2カウント手段と,
前記カウント手段のカウント開始前に,前記センサの出力レベルが第2レベルから第1レベルに変化した時点での,前記第2カウント手段のカウンタ値が,閾値以上の場合に前記カウント手段のカウンタ値をリセットするリセット手段と,
前記第2カウント手段のカウント開始前に,前記第2カウント手段をリセットする第2リセット手段と,
前記割り込み信号に応じて前記センサの出力レベルを取得し,その出力レベルを基に原稿の端部が通過したか否かを判定する判定手段と,
前記センサの位置から前記読取手段の読取位置までの原稿の移動に必要なステップ数を規定し,当該ステップ数から前記判定手段にて原稿が通過したと判定された時点での前記カウン手段のカウンタ値を引いた値を基に前記読取手段の読み取りタイミングを決定する決定手段とを備えることを特徴とする画像読取装置。
Reading means for reading a document;
A stepping motor that drives a conveying roller that conveys the document;
A sensor located upstream of the reading means in the document conveying direction and detecting passage of the document;
Line signal output means for outputting a pulse signal having a period corresponding to a reading time for one line by the reading means;
Motor drive signal output means for outputting a drive signal for the stepping motor synchronized with the pulse signal;
Interrupt signal output means for outputting an interrupt signal having a period corresponding to a predetermined number of pulses of the pulse signal;
Counting means for counting the number of steps corresponding to the number of pulses of the drive signal while the output of the sensor is at the first level;
Second counting means for counting the number of steps corresponding to the number of pulses of the drive signal while the output of the sensor is at the second level;
If the counter value of the second counting means at the time when the output level of the sensor changes from the second level to the first level before the counting means starts counting, the counter value of the counting means Reset means for resetting
Second reset means for resetting the second count means before the second count means starts counting;
Determining means for acquiring an output level of the sensor in response to the interrupt signal and determining whether or not an end portion of the document has passed based on the output level;
It defines the number of steps required to move the document to the reading position of the reading means from the position of the sensor, of the count means when the document by said determining means from the number of steps is determined to have passed An image reading apparatus comprising: a determination unit that determines a reading timing of the reading unit based on a value obtained by subtracting a counter value.
請求項1に記載する画像読取装置において,
前記第2リセット手段は,前記センサの出力レベルが第1レベルから第2レベルに変化した時点での,前記カウント手段のカウンタ値が,閾値以上の場合に前記第2カウント手段をリセットすることを特徴とする画像読取装置。
The image reading apparatus according to claim 1 ,
The second reset means resets the second count means when the counter value of the count means is equal to or greater than a threshold value when the output level of the sensor changes from the first level to the second level. A characteristic image reading apparatus.
請求項1から請求項2のいずれか1つに記載する画像読取装置において,
前記判定手段は,前記割り込み信号が発生する度に前記センサの出力レベルを取得することを特徴とする画像読取装置
In the image reading device according to any one of claims 1 to 2 ,
The image reading apparatus according to claim 1, wherein the determination unit acquires an output level of the sensor every time the interrupt signal is generated.
請求項1から請求項3のいずれか1つに記載する画像読取装置において,
前記判定手段は,前記センサの出力レベルが所定の回数連続して第1レベルであった場合に原稿の先端が通過したと判定することを特徴とする画像読取装置。
In the image reading apparatus according to any one of claims 1 to 3 ,
The image reading apparatus according to claim 1, wherein the determination unit determines that the leading edge of the document has passed when the output level of the sensor is the first level for a predetermined number of times.
請求項1から請求項4のいずれか1つに記載する画像読取装置において,
前記判定手段は,前記センサの出力レベルが所定の回数連続して第2レベルであった場合に原稿の後端が通過したと判定することを特徴とする画像読取装置。
In the image reading device according to any one of claims 1 to 4 ,
The determination unit determines that the trailing edge of the document has passed when the output level of the sensor is the second level continuously for a predetermined number of times.
JP2008243432A 2008-09-23 2008-09-23 Image reading device Active JP4900352B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008243432A JP4900352B2 (en) 2008-09-23 2008-09-23 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008243432A JP4900352B2 (en) 2008-09-23 2008-09-23 Image reading device

Publications (2)

Publication Number Publication Date
JP2010080994A JP2010080994A (en) 2010-04-08
JP4900352B2 true JP4900352B2 (en) 2012-03-21

Family

ID=42210990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008243432A Active JP4900352B2 (en) 2008-09-23 2008-09-23 Image reading device

Country Status (1)

Country Link
JP (1) JP4900352B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101883297B1 (en) * 2014-08-18 2018-07-31 에이치피프린팅코리아 주식회사 Image scanning apparatus and method for scanning thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0648847B2 (en) * 1990-05-01 1994-06-22 株式会社ピーエフユー Offset correction method in image reading apparatus
JP2000165612A (en) * 1998-11-27 2000-06-16 Nec Eng Ltd Picture reader
JP4259928B2 (en) * 2003-06-11 2009-04-30 株式会社リコー Moving object detection device, document reading device, and image forming device

Also Published As

Publication number Publication date
JP2010080994A (en) 2010-04-08

Similar Documents

Publication Publication Date Title
US7688477B2 (en) Image reading apparatus, and method for detecting size of document
US8040577B2 (en) Image reading apparatus
US8760727B2 (en) Sheet-conveying device having opening
US8467111B2 (en) Image reading apparatus, image forming apparatus, light quantity acquisition method and computer readable medium
US8286965B2 (en) Automatic document feeder with jam determination control
JP6047528B2 (en) Image reading apparatus and image forming apparatus
US9525792B2 (en) Image reading apparatus, method for controlling image reading apparatus, and storage medium
JP4900352B2 (en) Image reading device
JP4412070B2 (en) Image reading apparatus and image data correction method
JP2012151631A (en) Image reading apparatus and image forming apparatus
US10999461B1 (en) Image reading apparatus
JP2010147966A (en) Image reader
JP5206582B2 (en) Image reading device
JP2021022847A (en) Document reading apparatus
JP7176390B2 (en) Tilt correction device, reading device, image forming device, and tilt correction method
JP6881342B2 (en) Image reader, image forming device, image reading method
JP2010278870A (en) Image reading apparatus
JP2010220115A (en) Image reader, image forming apparatus, image reading method for image reading apparatus, and image reading program
JP6245446B2 (en) Image forming apparatus
JP2020156055A (en) Image processing apparatus and blank paper document determination method
JP2015080170A (en) Document reader
JP5395588B2 (en) Image reading device
JP2001016406A (en) Image forming device and image forming method
JP2010245688A (en) Document reader
JP2018023012A (en) Image reading apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100224

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110607

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110628

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110825

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111206

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111219

R150 Certificate of patent or registration of utility model

Ref document number: 4900352

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150113

Year of fee payment: 3