JPH01268344A - Image reader - Google Patents

Image reader

Info

Publication number
JPH01268344A
JPH01268344A JP63095469A JP9546988A JPH01268344A JP H01268344 A JPH01268344 A JP H01268344A JP 63095469 A JP63095469 A JP 63095469A JP 9546988 A JP9546988 A JP 9546988A JP H01268344 A JPH01268344 A JP H01268344A
Authority
JP
Japan
Prior art keywords
signal
external device
reading
image
document
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
JP63095469A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Honma
本間 強
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63095469A priority Critical patent/JPH01268344A/en
Publication of JPH01268344A publication Critical patent/JPH01268344A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

PURPOSE:To immediately stop a read scan in accordance with a temporary stop request from an external device by providing a judging means for judging whether the external device can execute a transfer or not, and a document read stopping means. CONSTITUTION:A CPU 208 is provided with a ROM 208A in which a processing procedure, etc., have been stored and a work use RAM 208B, and executes a control of each part in accordance with the procedure stored in the ROM 208A. When document image information is being transferred, an input permitting signal of image information outputted from an external device 250 is monitored by the CPU 208 and whether the external device is in a state that the image information can be transmitted or not is judged. As a result of judgement, in case the transfer is impossible, a CCD driving circuit 203 is driven by the CPU 208, and by this CCD driving circuit 203, document read of a CCD 22 is stopped immediately. In such a way, a read scan can be stopped immediately in accordance with a temporary stop request from the external device.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、画像読取装置に関するものである。[Detailed description of the invention] (Industrial application field) The present invention relates to an image reading device.

(従来の技術) 従来の画像読み取り装置としては、CCDや光電変換素
子等を原稿に対して相対的に穆勅させて原稿を走査し、
この走査により得られる原稿画像情報や印字情報を2値
化処理または多値化処理し、これらの処理により得られ
る2値画像情報または多値画像情報をホストコンピュー
タ等の外部装置に転送するようにしたものが知られてい
る。
(Prior Art) A conventional image reading device scans a document by moving a CCD, a photoelectric conversion element, etc. relative to the document.
The document image information and print information obtained by this scanning are subjected to binarization processing or multi-value processing, and the binary image information or multi-value image information obtained by these processes is transferred to an external device such as a host computer. What has been done is known.

上述した転送方向と逆方向の転送は、外部装置から転送
方向切換え信号をインタフェースに供給して転送方向を
切り換え、外部装置からの制御命令の受信を可能にした
後に行なうようになっている。
Transfer in the opposite direction to the above-mentioned transfer direction is performed after a transfer direction switching signal is supplied from the external device to the interface to switch the transfer direction and enable reception of a control command from the external device.

画像読取装置からの2値画像情報または多値画像情報を
ホストコンピュータ等の外部装置に転送するか、あるい
は外部装置から制御命令を受容するためのインタフェー
スとしては、R5−232C準拠のシリアルのインタフ
ェースか、あるいは双方向パラレルのインタフェースが
知られている。
The interface for transferring binary image information or multi-value image information from the image reading device to an external device such as a host computer, or for receiving control commands from an external device, is an R5-232C compliant serial interface. , or bidirectional parallel interfaces are known.

シリアルのインタフェースを介してシリアルにデータ転
送を行う場合は、転送時間が長くかかるという問題点が
あった。
When data is transferred serially via a serial interface, there is a problem in that the transfer takes a long time.

この問題点を解決する方法としては、画像信号を圧縮す
る方法があるが、信号圧縮に用いる圧縮装置は、構成が
複雑である上、高価であった。
As a method for solving this problem, there is a method of compressing the image signal, but the compression device used for signal compression has a complicated structure and is expensive.

他方、双方向パラレルのインタフェースを介してデータ
転送を行う場合は、高速でしかも経済的に画像信号を転
送することができるが、ホストコンピュータとのハンド
シェークを行うのに、制御信号、例えば、ACK信号(
アクノリッジ信号)、BUSY信号(ビジー信号) 、
STB信号(ストローブ信号)等が必要であるため、イ
ンタフェースの制御手段、特に、画像信号転送中におい
てホストコンピュータ側と同期をとるための制御手段が
複雑であった。
On the other hand, when data is transferred via a bidirectional parallel interface, image signals can be transferred at high speed and economically, but control signals such as ACK signals are required for handshaking with the host computer. (
acknowledge signal), BUSY signal (busy signal),
Since STB signals (strobe signals) and the like are required, the interface control means, particularly the control means for synchronizing with the host computer during image signal transfer, are complicated.

〔発明が解決し2ようとする課題〕 従来の画像読取装置は、画像情報転送中、原稿読み取り
走査がホストコンピュータ側の都合で一時停止される場
合、まず、ホストコンピュータにより一時停止Fコマン
ドが画像読取装置側のCP IIに与えらね、ついて゛
、このCPUによりコマンドの内容が解析されて処理さ
れるので、実際に、原稿読み取り走査が停止されるまで
に、時間遅わがあった。
[Problems to be Solved by the Invention (2)] In conventional image reading devices, when document reading scanning is paused for reasons on the host computer side during image information transfer, the host computer first issues a pause F command to read the image. Since the contents of the command are not sent to the CP II on the reading device side, but the contents of the command are analyzed and processed by the CPU, there is a time delay before the document reading scan is actually stopped.

その結果、ホストコンピュータ側で一時停止を要求する
原稿の読み取り位置に対して画像読み取り装J側での実
際の走査停止位置がずれてしまい、ずれた分だけ余分な
画像信号が転送されるという問題点があった。
As a result, the actual scanning stop position on the image reading device J side deviates from the document reading position at which a temporary stop is requested on the host computer side, and an extra image signal is transferred to account for the deviation. There was a point.

本発明は、上記のような問題点を解決するためになされ
たもので、その目的は、外部装置からの一時停止要求に
応λ、−C直ちに読み取り走査を停止させることかでき
る画像読取装置を提供することにある。
The present invention has been made to solve the above-mentioned problems, and its purpose is to provide an image reading device that can immediately stop reading and scanning in response to a temporary stop request from an external device. It is about providing.

〔課題を解決するための手段〕[Means to solve the problem]

このような目的を達成するために、本発明は、原稿画像
を読み取る読み取り手段と、読み取った原稿画像の情報
を外部装置に転送する転送手段とを有する画像読取装置
であって、前記転送手段による原稿画像情報の転送中に
、前記外部装置が転送可能か否かを判断する判断手段と
、判断した結果、転送が不可能な場合、原稿読み取りを
直ちに停止させる原稿読み取り停止手段とを備えたこと
を特徴とする。
In order to achieve such an object, the present invention provides an image reading device having a reading means for reading a document image, and a transfer means for transferring information of the read document image to an external device, the image reading device comprising: The apparatus further comprises a determination means for determining whether or not the external device can transfer the document image information during the transfer, and a document reading stop means for immediately stopping the document reading if the determination results that the transfer is not possible. It is characterized by

(作用) 本発明では、外部装置に転送手段により原稿画像情報を
転送中に、外部装置が転送可能か否かを判断手段により
判断し、判断した結果、転送が不可能な場合、原稿読み
取り停止手段により原稿読み取りを直ちに停止させる。
(Function) In the present invention, while the document image information is being transferred to the external device by the transfer device, the determining device determines whether or not the external device can transfer the information, and as a result of the determination, if the transfer is not possible, the document reading is stopped. Immediately stop reading the original by the means.

〔実施例〕〔Example〕

以下、図面を参照して本発明の実施例を詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図ないし第3図(B)は本発明の一実施例を示す。1 to 3(B) show an embodiment of the present invention.

第1図において、1は原稿画像を読み取る原稿画像読み
取り装置、15は読取りに係る原稿面を照明する照明装
置(ランプ)FLを有し、図中双方向に移動可能な原稿
照明ユニット(光学系)、16は原稿面からの反射光の
光路りを規制するための反射ミラー、14は反射光を集
束するためのレンズ、12は原稿の主走査方向の1ライ
ンに対応させてアレー状に配列し、集束された反射光を
光電変換するCCD 、 13はこのCCD12を駆動
するCCD ドライバである。11は各部を制御する制
御ユニット、17は読取りに係る原稿面を平担に規制す
るためのプラテンガラスである。
In FIG. 1, reference numeral 1 has an original image reading device that reads an original image, and 15 has a lighting device (lamp) FL that illuminates the surface of the original for reading. ), 16 is a reflection mirror for regulating the optical path of the reflected light from the document surface, 14 is a lens for focusing the reflected light, and 12 is arranged in an array corresponding to one line in the main scanning direction of the document. A CCD 13 that photoelectrically converts the focused reflected light is a CCD driver that drives this CCD 12. Reference numeral 11 represents a control unit for controlling each part, and reference numeral 17 represents a platen glass for regulating the surface of the document to be read flat.

18はプラテンガラス17上に載置された原稿、19は
プラテンカバーである。20は原稿照明ユニットを双方
向に移動させるための駆動源としてのステッピングモー
タである。
18 is a document placed on the platen glass 17, and 19 is a platen cover. Reference numeral 20 denotes a stepping motor as a driving source for bidirectionally moving the document illumination unit.

(CCDドライバ13) 第2図において、201はCCD12の出力を増幅する
増幅器、202は当該増幅出力のA/D変換を行って例
えば6ビツトのディジタル出力を得るA/D変換器、2
03は読取りタイミングを規制するために制御ユニット
11から供給されるタイミング信号に応じて、読み取り
手段としてのCCD12を駆動するCCO駆動回路であ
る。
(CCD Driver 13) In FIG. 2, 201 is an amplifier that amplifies the output of the CCD 12, 202 is an A/D converter that performs A/D conversion of the amplified output to obtain, for example, a 6-bit digital output;
03 is a CCO drive circuit that drives the CCD 12 as a reading means in accordance with a timing signal supplied from the control unit 11 to regulate the reading timing.

(制御ユニット11) 207はインタフェース回路であり、ディジタルプリン
タ、パーソナルコンピュータ等、本実施例に係る画像読
取装置のホスト装置となる外部装置250との間でコン
トロール信号の受容や画像信号の出力を行う、208は
例えばマイクロコンピュータ形態のCPt1であり、第
4図(^)および第4図(B)に示す処理手順等を格納
したROM208Aおよび作業用のRAM208Bを有
し、ROM208Aに格納された手順に従って各部の制
御を行う。
(Control unit 11) 207 is an interface circuit, which receives control signals and outputs image signals with an external device 250 that serves as a host device of the image reading device according to this embodiment, such as a digital printer or a personal computer. , 208 is a CPt1 in the form of a microcomputer, for example, and has a ROM 208A that stores the processing procedures shown in FIGS. 4(^) and 4(B), and a working RAM 208B. Controls each part.

CPO208は判断手段として、原稿画像情報を転送中
に、外部装置250が転送可能か否かを判断する。CP
O208、セレクタ206およびインタフェース回路2
07により読み取った原稿画像情報を外部装置250に
転送する転送手段が構成されている。
The CPO 208 serves as a determining means and determines whether or not the external device 250 can transfer document image information while transferring the original image information. C.P.
O208, selector 206 and interface circuit 2
A transfer unit is configured to transfer the document image information read by 07 to the external device 250.

CPU208およびCCD駆動回路203により転送が
不可能な場合、原lN読み取りを直ちに停止させる原稿
読み取り停止手段が構成されている。
If transfer is not possible by the CPU 208 and CCD drive circuit 203, an original reading stop means is configured to immediately stop reading the original IN.

204は地肌濃度検出回路であり、主走査方向、すなわ
ちCCD12が配列された方向に対応した原稿の幅方向
lラインごとの最大濃度値(最も明るい点)の検出を行
う。205は画像信号の2値化を行う2値化回路であり
、その2値化のしきい値は検出回路204の検出値また
は外部装置250からの指定に応じてCPO208によ
り設定される。206はセレクタであり、CPO208
からの指令に応じ、画像信号を多値化(例えば4ビツト
)してインタフェース回路207に送出する多値化モー
ド、および2値化された画像信号をインタフェース回路
207に供給する2値化モードのいずれか一方に切換え
るものである。
A background density detection circuit 204 detects the maximum density value (brightest point) for every l line in the width direction of the document corresponding to the main scanning direction, that is, the direction in which the CCDs 12 are arranged. A binarization circuit 205 binarizes the image signal, and a threshold value for the binarization is set by the CPO 208 in accordance with a detection value of the detection circuit 204 or a designation from an external device 250. 206 is a selector, CPO208
A multi-value mode in which the image signal is multi-valued (for example, 4 bits) and sent to the interface circuit 207, and a binary mode in which the binarized image signal is supplied to the interface circuit 207 in response to a command from the interface circuit 207. It can be switched to either one.

210は例えば水晶発振器、209はCPU208の設
定に応じて発振器210の出力を分周して動作の基準と
なる各種タイミング信号を発生するタイミング信号発生
回路である。
210 is, for example, a crystal oscillator, and 209 is a timing signal generation circuit that frequency-divides the output of the oscillator 210 according to the settings of the CPU 208 to generate various timing signals that serve as operating standards.

(インタフェース回路207) インタフェース回路207は、セレクタ206によって
選択された2値もしくは多値、例えば4ビツトの画像信
号をバッキングするための制御信号VDLTCHと、画
像信号を外部装置250へ出力するための制御信号面と
を生成する回路である。
(Interface Circuit 207) The interface circuit 207 receives a control signal VDLTCH for backing the binary or multi-value, for example, 4-bit image signal selected by the selector 206, and a control signal for outputting the image signal to the external device 250. This is a circuit that generates a signal plane.

第3図(A)において、例えばLSI61等のバイナリ
−カウンタ4011 およびゲート402.403はC
Pt1208からの2値または多値、例えば4ビツトの
選択を示す選択信号2V/16Vに従って、タイミング
発生回路209より得られた画像信号サンプリングクロ
ック[■を用いて8クロツクもしくは2クロツクに一度
キヤリーを出力するものである。そのキャリーはDフリ
ップフロップ405により信号[Hの立上がりでラッチ
され、ゲート406,407゜408によって信号VD
LTCHおよび信号VSTBが出力される。
In FIG. 3(A), a binary counter 4011 such as LSI 61 and gates 402 and 403 are connected to C
According to the selection signal 2V/16V indicating the selection of binary or multi-value, for example 4 bits, from the Pt1208, a carry is output once every 8 clocks or 2 clocks using the image signal sampling clock [■] obtained from the timing generation circuit 209. It is something to do. The carry is latched by the D flip-flop 405 at the rising edge of the signal [H, and the gate 406, 407° 408 latches the signal VD.
LTCH and signal VSTB are output.

Dフリップフロップ409,410およびゲート411
゜412は、タイミング発生回路209より得られるC
CO画像信号区間信号)IENBと、CPO20Bから
の画像信号出力信号VTRN5とによって、画像信号を
外部装置250に出力するときのストローブ信号を制御
する信号面を生成する。
D flip-flops 409, 410 and gate 411
°412 is C obtained from the timing generation circuit 209
A signal surface for controlling a strobe signal when outputting an image signal to the external device 250 is generated using the CO image signal section signal) IENB and the image signal output signal VTRN5 from the CPO 20B.

例えば、画像信号転送中に外部装置250より信号AC
にが供給されなかった場合、CPU208は信号11 
E N Dの立下りで信号VTRN5を消勢することに
よって画像信号の転送を停止させるとともに、走査系駆
動ステッピングモータ20を停止させることによって、
原稿読取りシーケンスの一時停止を可能にする。
For example, during image signal transfer, a signal AC is sent from the external device 250.
If the signal 11 is not supplied, the CPU 208
By deactivating the signal VTRN5 at the falling edge of END, the transfer of the image signal is stopped, and the scanning system drive stepping motor 20 is stopped.
Enables pausing of document reading sequence.

(双方向のインタフェース回路) 第3図(B)において、LS374等のトライステート
Dフリップフロップ501は、外部装置250からのコ
マンドを信号用の立上りでラッチする。
(Bidirectional Interface Circuit) In FIG. 3B, a tristate D flip-flop 501 such as LS374 latches a command from an external device 250 at the rising edge of the signal.

CPU208は信号FDIRがアクティブのときそのコ
マンドデータを受は取り、非アクティブのときその出力
をハイインピーダンスにし、CI” 11208からの
ステータスイエ号出力を可能にする。ケート504およ
び505は外部装置250に画像信号もしくはステータ
ス信号を転送するとぎの制御信号を発生するものであり
、画像信号を転送するときには、CP 020 Bは信
号FDI口をアクティブにしてステータスデータの出力
を可能にする。また、CPU208は信号V[l/ST
を“H′にすることにより、LS242等のトライステ
ート出力バッファ503の出力をハイインピーダンスに
し、LS374等のトライステート出力のDフリップフ
ロップ502から、信号VDLTCI+の立上りにより
ラッチされた8ビツトの画像信号を出力させる。ステー
タス信号を出力するときには、信号VD/蒼を“し”に
することによって画像信号の出力をハイインピーダンス
にし、 CPU28からのステータスデータ出力を可能
にする。
The CPU 208 receives command data when the signal FDIR is active, makes its output high impedance when the signal FDIR is inactive, and enables the output of a status yes signal from the CI'' 11208. The CPU 208 generates a control signal for transferring an image signal or a status signal, and when transferring an image signal, the CPU 208 activates the signal FDI port to enable the output of status data. V[l/ST
By setting "H", the output of the tri-state output buffer 503 such as LS242 becomes high impedance, and the 8-bit image signal latched by the rising edge of the signal VDLTCI+ is output from the tri-state output D flip-flop 502 such as LS374. When outputting the status signal, the output of the image signal is made high impedance by setting the signal VD/Blue to "off", thereby enabling the status data to be output from the CPU 28.

J−にフリップフロップ508,509およびゲート5
06.507,510は、インタフェース回路の制御信
号BIJSY、ACKおよび■を発生するものである。
J- to flip-flops 508, 509 and gate 5
06, 507, and 510 generate control signals BIJSY, ACK, and ■ for the interface circuit.

LS38等のオーブンコレクタ(O、C、)出力のゲー
ト511は、インタフェースのデータ出力を制御するも
のであり、外部装置250からの信号DIRのレベルを
“し”とすることにより原稿画像読取装置からの転送を
可能にする。
The oven collector (O, C,) output gate 511 of the LS38 etc. controls the data output of the interface, and by setting the level of the signal DIR from the external device 250 to "Yes", the gate 511 outputs the data from the document image reading device. enables the transfer of

第4図(八)および第4図(B)はCPU208による
画像読み取り処理手順の一例を示すフローチャートであ
る。
FIG. 4(8) and FIG. 4(B) are flowcharts showing an example of an image reading processing procedure by the CPU 208.

まず、外部装置250より、第6図につき後述するよう
な態様で、画素密度の指定、2値モードと多値モードの
指定等の制御データが受信されると、ステップSlにて
、これら制御データが例えばRAM208Bの作業領域
に展開される。
First, when control data such as designation of pixel density, designation of binary mode and multi-value mode, etc. is received from the external device 250 in a manner described later with reference to FIG. is developed, for example, in the work area of the RAM 208B.

次に、ステップS3にて、指定された画素密度、例えば
、400dpi、300dpi 、200dpiまたは
100dpi等が判別され、判別結果に応じてタイミン
グ信号発生回路209に発生する各種タイミング信号が
設定される。
Next, in step S3, the specified pixel density, for example, 400 dpi, 300 dpi, 200 dpi, or 100 dpi, is determined, and various timing signals generated in the timing signal generation circuit 209 are set according to the determination result.

ステップS9では、外部装置250からの読取りモード
の指定内容が多値化モードであるか2値化モートである
かを判別する。判別した結果、2値化モードである場合
には、セレクタ206にその旨の設定を行うとともに、
ステップ511に進んで、2値化モードでの設定内容の
指示、すなわち2値化のしきい値の指定があるか否かの
判定を行い、判定した結果、指定がある場合はステップ
513にて2値化回路205に当該指定されたしきい僅
を設定し、ステップS15に進む。また、ステップSl
lにて、2値化のしきい値が指定されていない場合には
、ステップ515に進む。さらに、ステップS9で、多
値化モードと判定された場合には、セレクタ206にそ
の旨の設定を行った後にステップ515に進む。
In step S9, it is determined whether the reading mode specified by the external device 250 is multilevel mode or binary mode. As a result of the determination, if it is the binarization mode, the selector 206 is set to that effect, and
Proceeding to step 511, it is determined whether or not there is an instruction for setting contents in the binarization mode, that is, a threshold value for binarization is specified.As a result of the judgment, if there is a specification, the process proceeds to step 513. The specified threshold value is set in the binarization circuit 205, and the process advances to step S15. Also, step Sl
If the binarization threshold is not specified in step 1, the process advances to step 515. Furthermore, if it is determined in step S9 that the mode is multilevel mode, the process proceeds to step 515 after setting the selector 206 to that effect.

ステップ51.5では、外部装置250から読取り開始
の指令の有無を判定し、判定した結果、指令があった場
合は第4図(B)の読取り処理に移行する。
In step 51.5, it is determined whether or not there is a command to start reading from the external device 250. If the result of the determination is that there is a command, the process moves to the reading process shown in FIG. 4(B).

読取りに先立ち、まず、原稿18をプラテンガラス17
上に第1図中左端が原稿先端となるように置く。光学系
の原稿照明ユニット15は第1図において左端が走査開
始位置(初期位置)となり、その付近に配設した光学位
置センサにより位置が確認される。
Prior to reading, first place the original 18 on the platen glass 17.
Place the document on top so that the left edge in Figure 1 is the leading edge of the document. The left end of the optical original illumination unit 15 in FIG. 1 is the scanning start position (initial position), and the position is confirmed by an optical position sensor disposed near the left end.

外部装置250より原稿読取り開始指令が人力されると
、ステップSBI にて、CPU28は非読取り時の停
止位置、例えば第1図示の位置にある原稿照明ユニット
15を読取り時の初期位置まで13動じ、その後、ラン
プ制御信号を出力してステップSB3にてランプFLを
点灯させる。ランプFLが点灯されても、原稿読取りの
走査は直ちに開始されず、ステップSB4にて、ランプ
PLの光量が安定するまで、例えば300m5ec 〜
50011sec待機する。この間、インタフェース回
路207に画像信号が入力されるが、この画像信号は読
取りに係る正規の画像情報ではないので、CPU208
の制御信号によりインタフェース回路207から外部装
置250への出力はなされない。
When a manual reading start command is input from the external device 250, in step SBI, the CPU 28 moves the original illumination unit 15, which is at the stop position during non-reading, for example, the position shown in the first figure, to the initial position during reading. Thereafter, a lamp control signal is output to turn on the lamp FL in step SB3. Even if the lamp FL is turned on, scanning for reading the document is not started immediately, and in step SB4, the scanning is continued for example from 300 m5ec to 300 m5ec until the light amount of the lamp PL becomes stable.
Waits for 50011 seconds. During this time, an image signal is input to the interface circuit 207, but since this image signal is not regular image information related to reading, the CPU 208
According to the control signal, no output is made from the interface circuit 207 to the external device 250.

そして、待機時間が経過すると、ステップSB5にて、
モータ20にドライブ信号を送出し、こわにより原稿照
明ユニット15が第1図に示す矢印層の方向に走査を開
始する。モータによる光学系の走査速度は、原稿照明ユ
ニット15の初期位置からプラテンガラス27上に載置
される原稿の先端を合せる位置までの約2〜3IllI
I+の間に、安定するように制御される。
Then, when the waiting time has elapsed, in step SB5,
A drive signal is sent to the motor 20, and the document illumination unit 15 starts scanning in the direction of the arrow layer shown in FIG. 1 due to the stiffness. The scanning speed of the optical system by the motor is approximately 2 to 3 IllI from the initial position of the original illumination unit 15 to the position where the leading edge of the original placed on the platen glass 27 is aligned.
It is controlled to be stable during I+.

そして、原稿照明ユニット15が原稿先端位置に到達し
たとぎ、CPO20Bはインタフェース回路207を介
して画像信号出力可の制御信号を出力し、これにより、
ステップSB7にて、1ラインごとの読み取りが行われ
、画素密度や、2値モードにあっては2値化のしきい値
により2値化処理された画像信号が順次1ラインごとに
外部装置250に送出される。また、この1ラインの読
取りに関連して外部装置250からの信号ACHの人力
の有無を監視し、その信号へCHの人力がない場合には
画像信号の送出を直ちに停止するとともに、モータ20
の駆動を停止する。
Then, when the original illumination unit 15 reaches the leading edge position of the original, the CPO 20B outputs a control signal to enable image signal output via the interface circuit 207, and thereby,
In step SB7, each line is read, and the image signal, which has been binarized based on the pixel density and the binarization threshold in binary mode, is sequentially sent to the external device 250 line by line. will be sent to. In addition, in connection with the reading of this one line, the presence or absence of human power on the signal ACH from the external device 250 is monitored, and if there is no human power on the signal CH for that signal, the transmission of the image signal is immediately stopped, and the motor 20
Stops driving.

信号ACHの入力がない場合の動作は、第6図の説明時
に詳説する。
The operation when the signal ACH is not input will be explained in detail when FIG. 6 is explained.

そして、モータ20が停止すると同時に、CP 112
08は図示しない内部タイマをスタートさせ、次の外部
装置250からのACK信号の人力するまでの時間をス
テップ5B18で計時し、その計時時間が10secを
越えた時にのみ、ステップ5B19に進んでランプF1
.を消灯させ、モータ20への電力の供給を停止させる
。ステップ5820において、外部装置250からのへ
GK信号を監視して八〇に信号が人力されたら、ステッ
プSB21でランプFLを再び点灯し、さらに、モータ
20への電源の供給を再開しステップ5B22で光源か
安定するまでの時間、例えば300m5ec〜500a
+sec待機した後に、ステップ5823で光学系の駆
動を再開させ、ステップSB9へ進む。
Then, at the same time as the motor 20 stops, the CP 112
08 starts an internal timer (not shown) and measures the time until the next ACK signal is input from the external device 250 in step 5B18, and only when the measured time exceeds 10 seconds, proceeds to step 5B19 and ramps F1.
.. is turned off, and the supply of electric power to the motor 20 is stopped. In step 5820, the GK signal from the external device 250 is monitored, and when the signal is input manually, the lamp FL is turned on again in step SB21, and the power supply to the motor 20 is restarted, and in step 5B22. The time it takes for the light source to stabilize, e.g. 300m5ec~500a
After waiting +sec, the optical system is restarted in step 5823, and the process proceeds to step SB9.

ステップ589において、光学系の走査長は、本実施例
で用いたステッピングモータを駆動するだめのパルス数
によって一義的に決定できるので、(:PU208は必
要なパルス数をモータに出力した時点で1頁分の原稿読
取り終了と判断する。判断した結果、原稿読取りが終了
された場合は、ステップSBI lにて、ランプFLを
消灯し、画像信号出力不可指令を送出し、ステップ5B
12にてモータ反転の制御を行うとともに、原稿読取り
終了信号を外部装置250に出力する。
In step 589, the scanning length of the optical system can be uniquely determined by the number of pulses used to drive the stepping motor used in this embodiment. It is determined that reading of the original page has been completed.If the reading of the original is completed as a result of the judgment, the lamp FL is turned off in step SBI l, an image signal output disable command is sent, and step 5B
At step 12, the motor is reversed and a document reading end signal is output to the external device 250.

このCPU208のモータ反転制御により、原稿照明ユ
ニット15を含む光学系は第2図の矢印層方向に移動さ
れ、光学位置センサにより初期位置に達したことが検出
されたときに停止される。ステップ5B13において、
この光学系が初期位置に戻るまでの間に、外部装置25
0より次の原稿読取り開始指令が供給されたか否かを判
断し、診断した結果、開始指令が供給されなかった場合
は、ステップ5B17にて原稿照明ユニット15を非読
取り時の停止位置まで移動させて動作を終了する。
By this motor reversal control of the CPU 208, the optical system including the original illumination unit 15 is moved in the direction of the arrow in FIG. 2, and is stopped when the optical position sensor detects that it has reached the initial position. In step 5B13,
Until this optical system returns to its initial position, the external device 25
If the start command is not supplied as a result of the diagnosis, the document illumination unit 15 is moved to the non-reading stop position in step 5B17. to end the operation.

上述した原稿画像情報の転送中には、外部装置250か
ら出力される画像情報の人力許可信号をCPt1208
により監視して外部装置250が画像情報の転送が可能
状態か否かを判断している。判断した結果、転送が不可
能な場合、CPO20BによりCG[+駆動回路203
が駆動され、このCCD駆動回路203によりCCD2
2の原稿読み取りが直ちに停止される。
During the transfer of the above-mentioned document image information, the manual permission signal of the image information output from the external device 250 is transmitted to the CPt1208.
The external device 250 monitors and determines whether or not it is possible to transfer image information. As a result of the judgment, if transfer is not possible, the CPO 20B transfers the CG [+ drive circuit 203
is driven, and this CCD drive circuit 203 drives the CCD2.
Reading of the second document is immediately stopped.

次に、上述したステップSB7の画像読取り動作時にお
ける第2図示の回路の動作を説明する。
Next, the operation of the circuit shown in the second diagram during the image reading operation of step SB7 mentioned above will be explained.

11:cD22がタイミング信号発生回路209からの
第5図示のタイミング信号φl、φ2.φBおよびφS
++に同期してCCD駆動回路203により駆動される
と、CCD22からアナログ画像信号が出力され、この
画像信号は、増幅器201によって増幅され、増幅後、
増幅信号VIDEOAがA/Dコンバータ202に人力
される。A/Dコンバータ202ではタイミング信号発
生回路209で生成されたタイミング信号φへりにより
、例えば6ビツトのディジタル信号VIDEODに変換
され、この信号が制御ユニット11に供給される。
11: cD22 receives the timing signals φl, φ2 . φB and φS
When driven by the CCD drive circuit 203 in synchronization with ++, an analog image signal is output from the CCD 22, this image signal is amplified by the amplifier 201, and after amplification,
The amplified signal VIDEOA is input to the A/D converter 202 . In the A/D converter 202, the timing signal φ generated by the timing signal generation circuit 209 is converted into, for example, a 6-bit digital signal VIDEOD, and this signal is supplied to the control unit 11.

そして、このディジタル信号VIDEODは制御ユニッ
ト11により先に述べた2値化モードまたは多値化モー
ドのいずれか一方のモードで外部装置250に出力され
る。2値化モードおよび多値化モードの設定は、外部装
置250により設定され、外部装置250からの指令に
応してCPO20Bによりセレクタ206にモード選択
の制t311 (X号が出力される。
This digital signal VIDEOD is outputted by the control unit 11 to the external device 250 in either the binary mode or the multilevel mode described above. The binary mode and the multilevel mode are set by the external device 250, and the CPO 20B outputs a mode selection control t311 (No.

多値化モードの場合は、6ビツトの画像信号を1画素に
つき4ビツト、例えば上位4ビツトを受容し、これをイ
ンタフェース回路207に供給する。インタフェース回
路207では、2画素分をバッキングして8ビツトの信
号と17て外部装置250に出力する。
In the case of multi-value mode, 4 bits of a 6-bit image signal per pixel, for example, the upper 4 bits, are received and supplied to the interface circuit 207. The interface circuit 207 backs up two pixels and outputs it as an 8-bit signal 17 to the external device 250.

一方、2値化モードでは、1画素につき6ビツトの画像
信号が(:PII208により設定された2値化のしき
い値に応じて、2値化回路205により1ビツトの48
号に変換され、セレクタ206に供給される。
On the other hand, in the binarization mode, the 6-bit image signal per pixel is converted into 1-bit 48-bit image signal by the binarization circuit 205 according to the binarization threshold set by the PII 208.
It is converted into a code and supplied to the selector 206.

ここで、2値化のしきい値は上述した2通りの方法で設
定される。
Here, the threshold value for binarization is set using the two methods described above.

1つの方法は、第4図(^)のステップS 1.3で述
べたように、外部装置250によって指定された2値化
のしきい値をCPU208により2値化回路205に設
定する方法である。
One method is to set the binarization threshold specified by the external device 250 in the binarization circuit 205 by the CPU 208, as described in step S1.3 of FIG. 4(^). be.

もう1つの方法は、第4図(B)のステップSB7で述
べたように、地肌濃度検出回路204により画像主走査
方向1ラインごとに検出した最大濃度値を数ライン部C
PII208により平均して2値化のしきい値を算出し
、算出した2値化のしきい値を2値化回路205に設定
する方法である。
Another method is to calculate the maximum density value detected by the background density detection circuit 204 for each line in the main scanning direction of the image, as described in step SB7 of FIG.
This is a method in which a binarization threshold is calculated on average using the PII 208 and the calculated binarization threshold is set in the binarization circuit 205.

これらの方法のいずれかにより設定された2値化のしき
い値で2値化処理された画像情報は、セレクタ206に
人力され、これが選択されてインタフェース回路207
 に人力される。インタフェース回路207では、2値
化モードの場合、8画素分まとめて8ビツトの信号とし
、外部装置250に出力する。
Image information that has been binarized using a binarization threshold set by one of these methods is input to the selector 206, which selects it and sends it to the interface circuit 207.
is man-powered. In the case of the binarization mode, the interface circuit 207 generates an 8-bit signal for 8 pixels and outputs it to the external device 250.

第6図は本実施例に係る画像読取処理時における第2図
示の信号のタイムチャートである。
FIG. 6 is a time chart of the signals shown in the second diagram during the image reading process according to this embodiment.

RESETは外部装置250より与えられるイニシャラ
イズ要求信号であり、この信号の立上りによって原稿読
取装置lが初期化される。DIRは外部装置250から
の信号であり、双方向のデータラインDATA1〜8の
人出力を制御するものである。すなわち、この信号のレ
ベルが“L”の場合、信号の流れは読取装置1−外部装
置250となり、“H”の場合、外部装置25〇−読取
装置lどなる。■。
RESET is an initialization request signal given from the external device 250, and the document reading device 1 is initialized by the rise of this signal. DIR is a signal from the external device 250, which controls the outputs of the bidirectional data lines DATA1 to DATA8. That is, when the level of this signal is "L", the signal flow is from the reading device 1 to the external device 250, and when it is "H", the signal flow is from the external device 250 to the reading device l, etc. ■.

BUSYおよび菫は外部装置250とのハンドシェーク
制御を行うための信号である。11εNBおよびVTn
NSは、前述のように、それぞれ、タイミング信号発生
回路209およびCPU208からの48号である。
BUSY and violet are signals for performing handshake control with the external device 250. 11εNB and VTn
NS is No. 48 from the timing signal generation circuit 209 and CPU 208, respectively, as described above.

原稿読取り処理の開始に先だって、外部装置250は信
号■丁nによりて読取装置lを初期化し、その後、信号
DIRを立ち一トげて読取り動作モードを決定するため
のパラメータ、例えば、読取り画像密度、2値化モード
もしくは多値化モード、領域指定などを示すデータPI
−P3を送信する(第4図(A)のステップSl)。そ
の後、読取装置は外部装置250から読取り指令C1を
受信すると(第4図(A)のステップ515)、ランプ
F1.を点灯し、ランプFLの光量が飽和するまでの時
間、例えば、300m5ec 〜500m5ec待機す
る。そして待機時間経過後(第4図(B)のステップ5
B4)、信号へCKを送信する。
Prior to starting the document reading process, the external device 250 initializes the reading device 1 with a signal DIR, and then raises the signal DIR to set a parameter for determining the reading operation mode, such as read image density. , data PI indicating binarization mode or multi-value mode, area designation, etc.
- P3 is transmitted (step Sl in FIG. 4(A)). Thereafter, when the reading device receives the reading command C1 from the external device 250 (step 515 in FIG. 4(A)), the reading device receives the reading command C1 from the external device 250 (step 515 in FIG. 4(A)). is turned on, and waits for a period of time, for example, 300 m5 ec to 500 m5 ec, until the light amount of the lamp FL is saturated. After the waiting time has elapsed (step 5 in Fig. 4 (B))
B4), send CK to the signal.

外部装置250は信号=を受信した後、信号DIRを立
上げるので、CPU208はその時点で走査系駆動ステ
ッピングモータ20を駆動しく第4図<8)のステップ
5B5)、ユニット15が原稿先端検知センサを通過し
た後に、信号+(E N Bの立下りの時点で信号VT
Rll5をアクティブにして画像信号の転送を開始する
。1ラインの転送は信号BUSYに関係なく、データD
ATA1〜0八TA8および°STBによって行なわれ
る。また、1ラインの画像信号が転送された後、読取装
置1はライン同期のためにEOL (エンド・オブ・ラ
イン)コードを送信する。外部装置250はEOLコー
ドの検出後、1ライン人力済もしくは次のラインの転送
許可を示す信号としてACに信号を返答する。以下、上
述したシーケンスに従って最終ラインまでの読み取りを
行なう(第4図(B)のステップSB7,5B9)。
After receiving the signal =, the external device 250 raises the signal DIR, so the CPU 208 drives the scanning system drive stepping motor 20 at that point. In step 5B5) of FIG. After passing through the signal +(E N B, the signal VT
Activate Rll5 and start transferring the image signal. Transfer of one line is based on data D regardless of signal BUSY.
Performed by ATA1-08TA8 and °STB. Further, after one line of image signals is transferred, the reading device 1 transmits an EOL (end of line) code for line synchronization. After detecting the EOL code, the external device 250 returns a signal to the AC as a signal indicating that one line has been manually operated or that transfer of the next line is permitted. Thereafter, reading up to the final line is performed according to the above-described sequence (steps SB7 and 5B9 in FIG. 4(B)).

原稿読取り走査中に、読取装置1に一時停止コマントを
与える場合は、EOLコードの検出後、信号前を送信せ
ず、信号DIRを立上げて転送の方向を外部装置250
−読取装置1に切換え、その後、新たなコマンドC2を
与えれば良い。しかし、前述のように、読取装置1が一
時停止コマントを受信してCPO28がコマンドの内容
を処理して読取り走査を停止させるまでには時間がかか
るので、余分な画像信号を転送してしまうことが考えら
れる。
When giving a pause command to the reading device 1 during document reading scanning, after detecting the EOL code, do not send the signal before, but raise the signal DIR to change the direction of transfer to the external device 250.
- Just switch to the reading device 1 and then give a new command C2. However, as described above, since it takes time for the reading device 1 to receive the pause command and for the CPO 28 to process the contents of the command and stop the reading scan, unnecessary image signals may be transferred. is possible.

本実施例においては、読取装置1は信号11EN[lの
立下がりにおいて外部装置250からの信号■の人力の
有無を監視し、信号車が人力されなかった場合には、直
ちに、ユニット15の走査を停止させるとともに信号V
TRN5を消勢し、画像信号の転送を中断させる。従っ
て、CP 11208は画像信号転送中に、単に、外部
装置250からの信号mを監視するのみで、外部装置2
50との同期をとることが可能となり、−時′停止の要
求に対してはライン単位で直ちに対応することが可能と
なる。
In this embodiment, the reading device 1 monitors the presence or absence of human power from the external device 250 at the falling edge of the signal 11EN[l, and if the signal car is not human powered, the reading device 1 immediately scans the unit 15. and stop the signal V.
TRN5 is deenergized and image signal transfer is interrupted. Therefore, during image signal transfer, the CP 11208 simply monitors the signal m from the external device 250 and monitors the signal m from the external device 250.
It becomes possible to synchronize with 50, and it becomes possible to immediately respond to a request for stopping at -' on a line-by-line basis.

すなわち、本実施例に係るインタフェース207は、画
像信号転送時、外部装置250との主走査方向の同期を
とるには、外部装置250からの信号lの返答を監視す
るだけで足りる。従って、インタフェースの制御態様が
簡単となり、かつ、読取りの一時停止要求に対してもラ
イン単位で直ちに対応することが可能となるので、正確
な画像信号をより高速に転送することができるようにな
る。
That is, the interface 207 according to the present embodiment only needs to monitor the response of the signal l from the external device 250 in order to synchronize with the external device 250 in the main scanning direction during image signal transfer. Therefore, the interface control method becomes simple, and it becomes possible to immediately respond to a reading pause request on a line-by-line basis, making it possible to transfer accurate image signals at higher speeds. .

本実施例では、原稿画像の読み取り停止状態が10se
c続く場合、ランプFLを消灯し、かつ、モータ20へ
の電力供給を停止させるようにしたから、ランプFLの
熱に起因する原稿ガラスの損壊や、電力供給に起因する
モータ20の巻線の損焼がなく、長時間の待機が可能で
ある。
In this embodiment, the reading of the original image is stopped for 10 seconds.
If c continues, the lamp FL is turned off and the power supply to the motor 20 is stopped. This prevents damage to the original glass due to the heat of the lamp FL and damage to the windings of the motor 20 due to the power supply. There is no burnout and it can stand by for a long time.

なお、本実施例では、原稿に対して光学系を移動させて
原稿読み取りを行なう例を説明したが、光学系に対して
原稿を8勅させて原稿読み取りを行なうようにしてもよ
い。
In this embodiment, an example has been described in which the optical system is moved relative to the original to read the original, but the original may be read by moving the optical system eight times.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、上記のように構
成したので、外部装置からの一時停止要求に応えて直ち
に読み取り走査を停止させることができる画像読取装置
を提供することができるという効果がある。
As explained above, according to the present invention, since it is configured as described above, it is possible to provide an image reading device that can immediately stop reading scanning in response to a temporary stop request from an external device. There is.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明実施例の構造を示す断面図、第2図は本
発明実2if!ii例の構成の一例を示すブロック図、 第3図(A)は本発明実施例のインタフェース回路20
7の構成の一例を示す回路図、 第3図([l)は本発明実施例の双方向のインタフェー
ス回路の構成の一例を示す回路図、第4図(八)および
第4図(B)はCPU208による画像読み取り処理手
順の一例を示すフローチャート、 第5図は第3図(A)および第3図(B)に示す信号の
タイムチャート、 第6図は画像読取処理時における第2図示の信号のタイ
ムチャートである。 12・・・CC01 206・・・セレクタ、 207・・・インタフェース回路、 208・・・CPU、 250・・・外部装置。 1′1 1 臀も托み藍鷺工 11   掃り1叩ニー・ト +2  ’  CCD 13   CCD ト・ライハ゛ 14゛  レソズ 15  1、精只日月フーニー・ト 16   及村ミう− 17゛ ブラーr′7カ′ラス 18 1精 19   フ゛′5う2ン力バ− 20プヤプビング′モータ 第1図 第4図(A)
FIG. 1 is a cross-sectional view showing the structure of an embodiment of the present invention, and FIG. 2 is an actual 2if! of the present invention! A block diagram showing an example of the configuration of example ii, FIG. 3(A) is an interface circuit 20 according to an embodiment of the present invention.
7. FIG. 3 ([l) is a circuit diagram showing an example of the configuration of a bidirectional interface circuit according to an embodiment of the present invention. FIG. 4 (8) and FIG. 4 (B) 5 is a time chart of the signals shown in FIGS. 3(A) and 3(B), and FIG. 6 is a flowchart showing an example of the image reading processing procedure by the CPU 208. FIG. It is a time chart of the signal. 12...CC01 206...Selector, 207...Interface circuit, 208...CPU, 250...External device. 1'1 1 Massage the buttocks too Aisagi 11 Sweep 1 hit NEET + 2' CCD 13 CCD 14゛ Resoz 15 1, Seijizuki Hoonie 16 Oimura Miu- 17゛ Blur r '7 Glass 18 1 Separate 19 Figure 5 2 Force bar 20 Pulling Motor Figure 1 Figure 4 (A)

Claims (1)

【特許請求の範囲】 1)原稿画像を読み取る読み取り手段と、 読み取った原稿画像の情報を外部装置に転送する転送手
段と を有する画像読取装置であって、 前記転送手段による原稿画像情報の転送中に、前記外部
装置が転送可能か否かを判断する判断手段と、 判断した結果、転送が不可能な場合、原稿読み取りを直
ちに停止させる原稿読み取り停止手段と を備えたことを特徴とする画像読取装置。
[Scope of Claims] 1) An image reading device comprising: a reading means for reading a document image; and a transfer means for transmitting information on the read document image to an external device, wherein the image reading device comprises: a reading means for reading a document image; and a transfer means for transmitting information on the read document image to an external device; An image reading apparatus characterized in that the image reading apparatus further comprises a judgment means for judging whether or not the external device can transfer the image, and a document reading stop means for immediately stopping reading the document if the result of the judgment is that the transfer is not possible. Device.
JP63095469A 1988-04-20 1988-04-20 Image reader Pending JPH01268344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63095469A JPH01268344A (en) 1988-04-20 1988-04-20 Image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63095469A JPH01268344A (en) 1988-04-20 1988-04-20 Image reader

Publications (1)

Publication Number Publication Date
JPH01268344A true JPH01268344A (en) 1989-10-26

Family

ID=14138508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63095469A Pending JPH01268344A (en) 1988-04-20 1988-04-20 Image reader

Country Status (1)

Country Link
JP (1) JPH01268344A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62144465A (en) * 1985-12-19 1987-06-27 Matsushita Electric Ind Co Ltd Original reader
JPS62202663A (en) * 1986-02-28 1987-09-07 Canon Inc Picture reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62144465A (en) * 1985-12-19 1987-06-27 Matsushita Electric Ind Co Ltd Original reader
JPS62202663A (en) * 1986-02-28 1987-09-07 Canon Inc Picture reader

Similar Documents

Publication Publication Date Title
JPH01268344A (en) Image reader
JPS62202663A (en) Picture reader
JPH0535645Y2 (en)
JP2672826B2 (en) Image reading device
JP3143462B2 (en) Image reading device
JPH01181381A (en) Picture reader
JPH02179165A (en) Picture reader
JPH02291763A (en) Scanner device
JPH03177156A (en) Picture reader
JPH02109460A (en) Picture reader
JPS63280571A (en) Image reader
JP2683110B2 (en) Image reading device
JPH048199A (en) Image reader
JPS63280563A (en) Picture reader
JPH02218261A (en) Picture processor and picture reader
JPH0413908B2 (en)
JPS6373768A (en) Picture processor
JPS62202656A (en) Picture reader
JPH0423561A (en) Picture reading system
JPH02218270A (en) Binarizing processing system in picture reader
JPS61296853A (en) Image read and transfer system
JPH04257979A (en) Color image reader
JPS63172570A (en) Image reader
JPS63228871A (en) Reader
JPH04142864A (en) Picture reader