[go: up one dir, main page]

JPH09163077A - Scanner device - Google Patents

Scanner device

Info

Publication number
JPH09163077A
JPH09163077A JP7319288A JP31928895A JPH09163077A JP H09163077 A JPH09163077 A JP H09163077A JP 7319288 A JP7319288 A JP 7319288A JP 31928895 A JP31928895 A JP 31928895A JP H09163077 A JPH09163077 A JP H09163077A
Authority
JP
Japan
Prior art keywords
reading
scanner device
photoelectric conversion
white reference
reference data
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
JP7319288A
Other languages
Japanese (ja)
Inventor
Takahiro Atsuizumi
隆広 温泉
Atsushi Nakamura
敦 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP7319288A priority Critical patent/JPH09163077A/en
Publication of JPH09163077A publication Critical patent/JPH09163077A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】 【課題】 スキャナにおいてシェーディング補正用の
白、黒の基準値を温度に拘らず安定に得る。 【解決手段】 CCDラインセンサ904は、原稿90
1を読み取る前に、白基準面を読み取り、これを白基準
値として記憶すると共に、温度センサ908で検出した
温度を記憶する。次に原稿901を読み取り、読み取っ
た画像信号を上記白基準値を用いてシェーディング補正
する。次の原稿読み取りの前に温度を検出し、検出した
温度が最近に記憶した温度から一定量以上変化したとき
に上記白基準値の判定を再度行い、変化しないときは上
記記憶した白基準値を用いる。
(57) Abstract: It is possible to obtain a white and black reference value for shading correction stably in a scanner regardless of temperature. A CCD line sensor 904 includes a document 90.
Before reading 1, the white reference plane is read and stored as a white reference value, and the temperature detected by the temperature sensor 908 is also stored. Next, the original 901 is read, and the read image signal is subjected to shading correction using the white reference value. The temperature is detected before the next document is read.If the detected temperature has changed by more than a certain amount from the recently stored temperature, the white reference value is judged again.If it does not change, the stored white reference value is changed. To use.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、原稿を読み取るス
キャナ装置に関し、例えばシリアルプリンタのキャリッ
ジ上にスキャナヘッドカートリッジを載せることによっ
てプリンタを原稿の読み取り装置として機能させること
が可能なプリンタ/スキャナ装置に用いて好適なもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a scanner device for reading a document, and for example, a printer / scanner device capable of causing a printer to function as a document reading device by mounting a scanner head cartridge on a carriage of a serial printer. It is suitable for use.

【0002】[0002]

【従来の技術】従来の一般的なスキャナ装置において
は、スキャン対象画像に光を照射し、この光が画像に反
射してスキャナの光学部に入り、その光のレベルがアナ
ログ/デジタル変換(以下A/D変換)によってデジタ
ル値に変換されたものがスキャン画像処理として得られ
る仕組みになっている。スキャナの画質を決定する重要
な要素としてコントラストが挙げられるが、これは画像
中の最も暗い画素から最も明るい画素までの濃淡の範囲
として定義される。スキャナはこのコントラスト範囲に
基づき、取り込まれた各々の画素について光学アナログ
データをA/D変換する。このコントラスト情報は、ス
キャナ装置の個体間の光学系特性及び電気回路特性のば
らつきがあるため、個体によって異なる。そのため、ス
キャナ装置はスキャン動作を行う前に必ずこのコントラ
スト情報を規定する方法を遂行し、結果を記憶しておく
必要がある。
2. Description of the Related Art In a conventional general scanner device, an image to be scanned is irradiated with light, the light is reflected by the image and enters an optical section of the scanner, and the level of the light is converted from analog to digital (hereinafter referred to as "analog / digital conversion"). What is converted into a digital value by A / D conversion) is obtained as scan image processing. Contrast is an important factor in determining the image quality of a scanner, and it is defined as the range of shading from the darkest pixel to the brightest pixel in an image. The scanner A / D-converts the optical analog data for each captured pixel based on this contrast range. This contrast information varies depending on individuals because there are variations in optical system characteristics and electric circuit characteristics among scanner apparatuses. Therefore, the scanner device must always execute the method of defining the contrast information and store the result before performing the scanning operation.

【0003】コントラスト情報は、具体的にはそのスキ
ャナ装置が実際に読み取って得られる最も白いデータの
値を規定するための基準データ(以下白基準値)と、最
も黒いデータの値を規定するための基準データ(以下黒
基準値(黒基準データ)又はオフセット値)で構成され
る。各々の画素をA/D変換する際、この白基準値(白
基準データ)、オフセット値をレファレンスとしてA/
D変換を行う。スキャナ装置が画像や白基準値、オフセ
ット値を読み込む際、出力値は光源、光学センサ、A/
D変換回路、アンプ等ハードウェアの環境、位置精度、
個体差などに依存する。特定の画素を読み込む場合、そ
の出力を一定にし、安定した高画質を実現するためには
この依存度による変動比率が低いことが求められる。こ
れを実現するためには精度の良い部品の採用、光源の高
光量化、画素当たりの読み取り時間の増加、またA/D
変換処理のレファレンスとなる白基準値、オフセット値
の測定周期を原稿読み取り毎に行うなどの手段が取られ
ている。
Specifically, the contrast information is for defining the reference data (hereinafter referred to as white reference value) for defining the value of the whitest data obtained by actually reading by the scanner device and the value of the blackest data. Reference data (hereinafter referred to as black reference value (black reference data) or offset value). When A / D converting each pixel, the white reference value (white reference data) and the offset value are used as a reference for A / D conversion.
Perform D conversion. When the scanner device reads an image, white reference value, and offset value, the output value is the light source, optical sensor, A /
Hardware environment such as D conversion circuit, amplifier, position accuracy,
Depends on individual differences. When reading a specific pixel, it is required that the fluctuation ratio due to this dependency is low in order to make the output constant and to realize stable high image quality. In order to achieve this, use of high-precision parts, increase the amount of light from the light source, increase the reading time per pixel, and increase the A / D
For example, the white reference value and the offset value, which are references of the conversion process, are measured every time the document is read.

【0004】一方、最近ではワードプロセッサ等に用い
られるシリアルプリンタにおいて、プリント手段である
印字ヘッドカートリッジの代わりに同形状のスキャナユ
ニットを搭載することで読み取り手段としても使用可能
となるものがある。
On the other hand, recently, in a serial printer used for a word processor or the like, there is a serial printer which can be used as a reading unit by mounting a scanner unit having the same shape instead of the print head cartridge as a printing unit.

【0005】[0005]

【発明が解決しようとする課題】スキャナ装置におい
て、高画質、安定画像出力を実現するためには上記の方
法や手段が一般的であるが、これらの方法や手段は装置
の大型化、高価格化を招く。小型化、及び低価格化を行
う場合、以下の問題点が挙げられる。 (1)使用部品が制限される。例えばA/D変換の量子
化処理に入力するアナログ値が低すぎると量子化誤差が
大きくなってしまうため、アンプにより可変的にゲイン
の調整を行いアナログ値を理想的なレベルにしてやるこ
とが望ましいが、小型化、及び低価格化を行うためにゲ
インを可変できるアンプを採用できない場合がある。 (2)省電力化、または発熱対策のため、光源の高出力
化やアンプの高出力化が困難になる。 (3)小型化により、各部品が光源を始めとする電気部
品の発熱の影響を受けやすい。 (4)小型化、低価格化のために、白基準値、オフセッ
ト値を測定するための白基準面(白面/黒面)を物理的
に配置することが困難になる場合がある。その場合、白
基準値とオフセット値の測定を行う度にユーザーが白基
準値/オフセット値測定用基準原稿を原稿台に設置し、
その読み取りを行う必要がある。 (5)小型化、低価格化のために、使用できる光学部品
の大きさが制限され、結果として理想的な特性を得られ
ない場合がある。 (6)小型化、低価格化のために、使用できる光源が制
限され、結果として光源の使用回数に応じて光源が劣化
し特性が変化する。
In order to realize high image quality and stable image output in a scanner device, the above-mentioned methods and means are generally used. However, these methods and means make the apparatus large in size and expensive. Induce. There are the following problems in downsizing and price reduction. (1) The parts used are limited. For example, if the analog value input to the quantization processing of A / D conversion is too low, the quantization error will increase. Therefore, it is desirable to variably adjust the gain by the amplifier and set the analog value to an ideal level. However, it may not be possible to employ an amplifier whose gain can be changed in order to reduce the size and cost. (2) It is difficult to increase the output of the light source or the amplifier because of power saving or heat generation countermeasures. (3) Due to the miniaturization, each component is easily affected by heat generation of electric components such as a light source. (4) For downsizing and cost reduction, it may be difficult to physically arrange a white reference surface (white surface / black surface) for measuring the white reference value and the offset value. In that case, every time the user measures the white reference value and the offset value, the user sets the white reference value / offset value measurement reference document on the platen,
You need to read it. (5) For downsizing and cost reduction, the size of usable optical components is limited, and as a result, ideal characteristics may not be obtained. (6) The light sources that can be used are limited for downsizing and cost reduction, and as a result, the light sources deteriorate and their characteristics change according to the number of times the light source is used.

【0006】また、シリアルスキャナを実現する場合、
以下の問題点が挙げられる。 (7)キャリッジの往復、原稿のフィードにより、読み
取り面とスキャナのセンサ部との距離(以下紙間)が、
常に変化してしまう。 (8)フラットベッドスキャナ装置のようなラインスキ
ャナと違い、キャリッジの往復方向の走査時間が必要と
なるため、原稿のスキャン動作に要する時間を配慮する
と、画素当たりの読み取り時間の増加は困難になる。
Further, when realizing a serial scanner,
The following problems are listed. (7) The distance between the reading surface and the sensor part of the scanner (hereinafter referred to as the paper interval) is increased by the carriage reciprocation and the document feed.
It always changes. (8) Unlike a line scanner such as a flatbed scanner device, scanning time in the reciprocating direction of the carriage is required. Therefore, if the time required for scanning the document is taken into consideration, it is difficult to increase the reading time per pixel. .

【0007】本発明は上記の問題を解決するために成さ
れたもので、簡単な構成により精度の高い、かつ安定し
たコントラスト情報を得ることのできるスキャナ装置を
得ることを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to obtain a scanner device capable of obtaining highly accurate and stable contrast information with a simple structure.

【0008】[0008]

【課題を解決するための手段】第1の発明においては、
原稿及び基準面を読み取る光電変換手段と、周囲温度を
検出する検出手段と、上記光電変換手段が上記基準面を
読み取ったときに検出された上記温度を記憶する記憶手
段と、上記原稿を読み取る前に検出された温度が上記記
憶手段に記憶された最近の温度から所定量以上変化した
ときに上記光電変換手段に上記基準面の読み取りを行わ
せ、読み取った値を基準データとして記憶する制御手段
とを設けている。
Means for Solving the Problems In the first invention,
Before reading the original, photoelectric conversion means for reading the original and the reference surface, detection means for detecting the ambient temperature, storage means for storing the temperature detected when the photoelectric conversion means reads the reference surface, And a control means for causing the photoelectric conversion means to read the reference surface when the temperature detected by the temperature change from the latest temperature stored in the storage means by a predetermined amount or more, and storing the read value as reference data. Is provided.

【0009】第2の発明においては、原稿及び基準面を
読み取る光電変換手段と、周囲温度を検出する検出手段
と、上記光電変換手段が上記基準面を読み取って得られ
る基準データとこの基準データを得たときに検出された
温度とを関連付けたデータベースを作成する作成手段
と、上記データベースとを設けている。
In the second invention, the photoelectric conversion means for reading the original and the reference surface, the detection means for detecting the ambient temperature, the reference data obtained by the photoelectric conversion means reading the reference surface, and the reference data are obtained. The database is provided with a creating unit that creates a database that associates the temperature detected when it was obtained.

【0010】第3の発明においては、上記データベース
を参照し、上記温度に関連付けされた基準データがデー
タベースに存在すれば、その基準データを使用し、関連
付けされた基準データがデータベースに存在しなければ
基準データを再測定する制御を行う制御手段を設けてい
る。
In the third invention, referring to the above database, if the reference data associated with the temperature exists in the database, the reference data is used, and if the associated reference data does not exist in the database. A control means is provided for performing control to remeasure the reference data.

【0011】第4の発明においては、原稿及び基準面を
読み取る光電変換手段と、周囲温度を検出する検出手段
と、上記光電変換手段が上記基準面を読み取って得られ
る基準データを上記検出された温度に応じて補正する補
正手段とを設けている。
In the fourth invention, the photoelectric conversion means for reading the original and the reference surface, the detection means for detecting the ambient temperature, and the reference data obtained by the photoelectric conversion means reading the reference surface are detected. A correction unit that corrects the temperature is provided.

【0012】第5の発明においては、原稿及び基準面を
読み取る光電変換手段と、上記読み取り回数をカウント
するカウント手段と、上記光電変換手段が上記基準面を
読み取って得られる基準データを上記カウント手段のカ
ウント数が所定値を越えたとき、上記基準データを再測
定する制御を行う制御手段とを設けている。
According to a fifth aspect of the invention, photoelectric conversion means for reading the original and the reference surface, counting means for counting the number of readings, and reference data obtained by the photoelectric conversion means for reading the reference surface are counted by the counting means. And a control means for performing control for re-measurement of the reference data when the number of counts exceeds a predetermined value.

【0013】[0013]

【作用】第1の発明によれば、画像読み取り時に、周囲
環境温度を測定し、周囲環境温度が最近の白基準測定時
の周囲環境温度から所定量以上変化している場合には、
白基準データを再測定し、周囲環境温度の変化量が所定
量以下の場合には、白基準データを再測定せずに、最近
の白基準測定データを使用する。
According to the first invention, the ambient environment temperature is measured at the time of image reading, and when the ambient environment temperature has changed from the ambient environment temperature at the time of the recent white reference measurement by a predetermined amount or more,
When the white reference data is remeasured and the amount of change in ambient temperature is less than or equal to a predetermined amount, the white reference data is not measured again and the latest white reference measurement data is used.

【0014】第2の発明によれば、白基準測定時には、
白基準データと周囲環境温度を関連付けて白基準データ
ベースを作成する。
According to the second invention, during the white reference measurement,
A white reference database is created by associating the white reference data with the ambient temperature.

【0015】第3の発明によれば、画像読み込み時に
は、周囲環境温度を測定し、周囲環境温度が最近の白基
準測定時の周囲環境温度から所定量以上変化している場
合には、白基準データベースを参照し、周囲環境温度に
関連付けされた白基準データがデータベースに存在すれ
ば、その白基準データを使用する。関連付けされた白基
準データがデータベースに存在しなければ、白基準デー
タを再測定する。また、周囲環境温度の変化量周囲環境
温度の変化量が所定量以下の場合には、白基準データを
再測定せずに、最近の白基準測定データを使用する。
According to the third aspect of the invention, the ambient temperature is measured at the time of reading the image, and if the ambient temperature has changed by a predetermined amount or more from the ambient temperature at the time of the recent white reference measurement, the white reference is determined. If the white reference data associated with the ambient temperature is referenced in the database, the white reference data is used. If the associated white reference data does not exist in the database, the white reference data is remeasured. Further, when the change amount of the ambient environment temperature is less than or equal to a predetermined amount, the latest white reference measurement data is used without re-measurement of the white reference data.

【0016】第4の発明によれば、画像読み取り時に、
周囲環境温度を測定し、周囲環境温度が最近の白基準測
定時の周囲環境温度から所定量以上変化している場合に
は、白基準データを周囲環境温度の変化率に応じた補正
量で数値補正し、周囲環境温度の変化量が所定量以下の
場合には、白基準データを補正せずに、最近の白基準測
定データを使用する。
According to the fourth invention, when the image is read,
When the ambient temperature is measured and the ambient temperature has changed by more than a specified amount from the ambient temperature at the time of the recent white reference measurement, the white reference data is a numerical value with a correction amount according to the change rate of the ambient temperature. If the change amount of the ambient environment temperature is corrected and is equal to or less than the predetermined amount, the white reference data is not corrected and the latest white reference measurement data is used.

【0017】第5の発明によれば、画像読み取り回数を
カウントし、画像読み取り回数が所定量を越えた場合、
白基準データを再測定する。
According to the fifth invention, the number of image readings is counted, and when the number of image readings exceeds a predetermined amount,
Re-measure the white reference data.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態を図面
について説明する。 「ホストコンピュータープリンタ/スキャナの概略」図
1は本発明の実施の形態によるシリアルプリンタ内蔵型
携帯型パソコンの外観図を表し、図2はそのブロック図
を表わす。本装置はシリアルインクジェットプリンタの
印字ヘッドカートリッジを移動させるキャリッジ上に印
字ヘッドカートリッジと同形状のスキャナヘッドカート
リッジを載せることによって、プリンタを原稿の読み取
り装置として機能させることが可能となる。
Embodiments of the present invention will be described below with reference to the drawings. "Outline of Host Computer Printer / Scanner" FIG. 1 is an external view of a portable personal computer with a built-in serial printer according to an embodiment of the present invention, and FIG. 2 is a block diagram thereof. In this apparatus, a printer head cartridge having the same shape as the print head cartridge is placed on a carriage for moving the print head cartridge of the serial inkjet printer, so that the printer can function as a document reading apparatus.

【0019】このパソコンのホスト部において主制御を
司さどっているのが中央処理装置201(CPU)であ
り、その基本的制御を指示するのが、BIOS ROM
202である。書き込み可能な不揮発性メモリ装置であ
るフロッピーディスク(FDD)203やハードディス
ク(HDD)204からフロッピーディスクコントロー
ラ205(FDC)やハードディスクコントローラ20
6(HDC)を経由してアプリケーションプログラムを
読みだし、システムメインメモリ207に展開し、また
同メモリを利用してプログラムを実行する。このとき、
画面の表示方法としては、ビデオグラフィックアレイコ
ントローラ208(VGAC)を使って液晶(LCD)
209にビデオメモリ(VRAM)210に書き込まれ
ているキャラクタ等の表示を行ない、キーボード211
からのキー入力はキーボードコントローラ(KBC)2
12を経由して行なわれる。ここで、数値演算プロセッ
サ(FPU)213はCPU201に対して演算処理の
サポートを行なうものである。
The central processing unit 201 (CPU) controls the main control in the host unit of this personal computer, and the BIOS ROM directs the basic control.
It is 202. A floppy disk (FDD) 203 or a hard disk (HDD) 204 which is a writable nonvolatile memory device to a floppy disk controller 205 (FDC) or a hard disk controller 20.
The application program is read out via 6 (HDC), expanded in the system main memory 207, and the program is executed using the same memory. At this time,
As a screen display method, a liquid crystal (LCD) using a video graphic array controller 208 (VGAC) is used.
The characters written in the video memory (VRAM) 210 are displayed in 209, and the keyboard 211 is displayed.
Key input from the keyboard controller (KBC) 2
It is performed via 12. Here, the numerical processor (FPU) 213 supports the CPU 201 for arithmetic processing.

【0020】リアルタイムクロック(RTC)214は
現時点で経過時間を示すもので、システム全体の電源が
切られた状態においても、専用バッテリーにより動作は
行なわれる。SRAMメモリはシステムの動作状態など
システム情報が格納されている。このメモリも上記専用
バッテリーにより電源未投入時にもその内容は保持され
ている。DMAコントローラ215(DMAC)はメモ
リ−メモリ間、メモリ−I/O問、I/O−I/O問に
おいて高速にデータ転送を行なうために、CPUの介在
なしでデータ転送を行なう。割込コントローラ216
(IRQC)は各I/Oからの割り込みを受け付け、優
先順位に従って処理を行なう。タイマは数チャンネルの
フリーラニングタイマを持ち、各種時間管理を行なう。
その他外部につながるシリアルインターフェース217
(SIO)、拡張ポート218(PORT)やユーザー
に動作状況を伝えるLEDがある。
The real time clock (RTC) 214 indicates the elapsed time at the present time, and the operation is performed by the dedicated battery even when the power of the entire system is turned off. The SRAM memory stores system information such as the operating state of the system. The contents of this memory are retained by the dedicated battery even when the power is not turned on. The DMA controller 215 (DMAC) performs high-speed data transfer between memory-memory, memory-I / O question, and I / O-I / O question, so that data is transferred without intervention of the CPU. Interrupt controller 216
(IRQC) accepts interrupts from each I / O and performs processing according to the priority order. The timer has a free-running timer with several channels and manages various times.
Other serial interface 217 connected to the outside
(SIO), expansion port 218 (PORT), and LEDs for notifying the user of the operating status.

【0021】本パソコンには前述のようにシリアルプリ
ンタ・シリアルスキャナユニット219が具備されてい
る。プリンタ本体のキャリッジに脱着式の印字ヘッド及
びスキャナヘッドのいずれかを装着することにより、印
字機能もしくはスキャナ機能を実現する。プリンタはホ
スト部に対してパラレルインターフェースでつながって
いる。ホストとプリンタコントローラはI/Oポートの
レジスタレベルでステータスデータ、印字/スキャンデ
ータの送受を行う。
The personal computer is equipped with the serial printer / serial scanner unit 219 as described above. The print function or the scanner function is realized by mounting either the removable print head or the scanner head on the carriage of the printer body. The printer is connected to the host by a parallel interface. The host and the printer controller send / receive status data and print / scan data at the register level of the I / O port.

【0022】「プリンタ/スキャナ部」図3に本実施の
形態のプリンタ/スキャナ部の外観図を、図4にそのブ
ロック図を示す。尚、図3の各部分の説明は後述する。
図4において、プリンタ装置はプリンタ制御用のCPU
401、プリンタ/スキャナ制御プログラムやプリンタ
エミュレーション、印字フォントを備えたROM40
2、印字のための展開データ、スキャナにより取り込ま
れた画像データ、ホストからの受信データを蓄えておく
RAM403、プリンタ/スキャナの印字/スキャンヘ
ッド404、モータを駆動するプリンタドライバ40
5、メモリのアクセス制御やホストとのデータのやりと
りやプリンタドライバへの制御信号送出を行なうコント
ローラ406で構成される。また、本システム全体の機
体温度を管理するためにサーミスタ407が設けられて
いる。
"Printer / Scanner Section" FIG. 3 is an external view of the printer / scanner section of this embodiment, and FIG. 4 is a block diagram thereof. The description of each part in FIG. 3 will be given later.
In FIG. 4, the printer device is a CPU for controlling the printer.
401, ROM / ROM 40 including printer / scanner control program, printer emulation, and print font
2. Development data for printing, image data captured by the scanner, RAM 403 for storing received data from the host, printer / scanner print / scan head 404, printer driver 40 for driving the motor
5. The controller 406 controls access to the memory, exchanges data with the host, and sends control signals to the printer driver. Further, a thermistor 407 is provided to manage the body temperature of the entire system.

【0023】CPU401はROM402内の制御プロ
グラムにより本体のメカ的/電気的制御を行いつつ、ホ
ストからプリンタ/スキャナ部へ送られてくるエミュレ
ーションコマンドをコントローラ内のI/Oデータレジ
スタから読みだし、コマンドに対応した制御をコントロ
ーラ内のI/Oレジスタ、I/Oポートに書き込み、読
みだしを行う。
The CPU 401 reads the emulation command sent from the host to the printer / scanner section from the I / O data register in the controller while controlling the main body mechanically / electrically according to the control program stored in the ROM 402. The control corresponding to is written in and read from the I / O register and I / O port in the controller.

【0024】「プリンタ/スキャナコントローラ」図5
にプリンタコントローラの構成図を示す。コントローラ
の機能ブロックとしては、ホストとのコマンドレベルで
のデータのやり取りを行なうI/Oデータレジスタ50
1、そしてそのレジスタから受信データをRAMに直接
書き込む受信バッファコントローラ502、印字時には
RAMの記録データバッファから記録データを読みだ
し、印字ヘッドへ対してデータの送出を行ない、スキャ
ナ使用時にはスキャンヘッドから送られてくるデータを
同じくRAMの記録データバッファに書き込んで行く印
字/スキャンバッファコントローラ503、RAMに対
して3方向からのメモリアクセスを制御するメモリコン
トローラ504、プリント/スキャンシーケンスをコン
トロールするシーケンスコントローラ505、ホストと
の通信をつかさどるホストインターフェース506のブ
ロックから成る。
"Printer / Scanner Controller" FIG.
Figure 1 shows the configuration of the printer controller. As the functional block of the controller, the I / O data register 50 for exchanging data at the command level with the host is used.
1, and a reception buffer controller 502 that directly writes the reception data from the register to the RAM, reads the recording data from the recording data buffer of the RAM during printing, sends the data to the print head, and sends the data from the scan head when using the scanner. A print / scan buffer controller 503 that similarly writes the received data to the recording data buffer of the RAM, a memory controller 504 that controls memory access from three directions to the RAM, a sequence controller 505 that controls the print / scan sequence, It consists of a block of the host interface 506 which is responsible for communication with the host.

【0025】図6はプリンタ/スキャナのIOデータレ
ジスタのマップを示す。この中でモータコントロールポ
ート601はレジスタの値を直接書き換えることによ
り、ポートを制御して各モータを駆動するものである。
記録データバッファエリア602は印字、またはスキャ
ン動作に必要なデータ領域を設定するものであり、開始
アドレス6021と終了アドレス(スキャン時は開始ア
ドレスのみ)6022とを設定することにより、その範
囲内で印字/スキャンバッファコントローラによりRA
Mの開始アドレスから順番に終了アドレスに至るまで記
録データの読みだし、書き込みを行う。この時、記録デ
ータアドレスポインタは現在データ送出、または書き込
み中のデータアドレスを示している。印字モードの場
合、読み出されたデータは印字ヘッドに転送され、ヘッ
ド内のヘッドドライバは制御信号を送出する。スキャン
モードの場合、スキャンヘッドより送られてくるデータ
がこのバッファに書き込まれていく。
FIG. 6 shows a map of the IO data register of the printer / scanner. Among them, the motor control port 601 controls the port by directly rewriting the value of the register to drive each motor.
The recording data buffer area 602 sets a data area required for printing or scanning operation. By setting a start address 6021 and an end address (only the start address at the time of scanning) 6022, printing is performed within that range. / RA by scan buffer controller
The recording data is read and written from the start address of M to the end address in order. At this time, the recording data address pointer indicates the data address currently being sent out or being written. In the print mode, the read data is transferred to the print head, and the head driver in the head sends a control signal. In the case of the scan mode, data sent from the scan head is written into this buffer.

【0026】受信データバッファエリア603も同様に
受信に必要なデータ領域を設定するものであり、開始ア
ドレス6031と終了アドレス6032(スキャン時は
開始アドレスのみ)とを設定することにより、その範囲
内で受信バッファコントローラによりRAMの開始アド
レスから順番に終了アドレスに至るまで受信データの書
き込みを行う。この時、受信データアドレスポインタは
現在データ受信済みになっているデータアドレスを示し
ている。図7では上記動作におけるRAM403上の記
録データバッファと受信バッファのアドレス領域とをそ
れぞれ示している。
Similarly, the reception data buffer area 603 also sets a data area necessary for reception, and by setting a start address 6031 and an end address 6032 (only the start address at the time of scanning), the range is within that range. The reception buffer controller writes the reception data from the start address of the RAM to the end address in order. At this time, the reception data address pointer indicates the data address which has already been received. FIG. 7 shows the address areas of the recording data buffer and the receiving buffer on the RAM 403 in the above operation, respectively.

【0027】「スキャナユニット」図8にスキャナヘッ
ドカートリッジの外観を示す。以下図8、図3について
説明する。図3、図8のプリンタユニット中スキャナヘ
ッドカートリッジ800は、プリント用に用いられる図
3の印字ヘッドカートリッジ302と同形状であり、プ
リンタ部との電気的接続部も印字カートリッジと共通な
コネクタ801を持つ。図3の301はキャリッジであ
り、スキャナヘッドカートリッジ800のコネクタ80
1の接点部802を介して、本体より読取制御信号を送
受信する。また、ヘッドガイド303により、キャリッ
ジとヘッドとの連結が行われている。読取り信号、制御
信号は、接点部802及びフレキシブルケーブル304
を介して装置本体のプリンタ/スキャナコントローラへ
送られる。
"Scanner Unit" FIG. 8 shows the appearance of the scanner head cartridge. 8 and 3 will be described below. The scanner head cartridge 800 in the printer unit of FIGS. 3 and 8 has the same shape as the print head cartridge 302 of FIG. 3 used for printing, and the electrical connection portion with the printer portion also has a connector 801 common to the print cartridge. To have. Reference numeral 301 in FIG. 3 denotes a carriage, which is a connector 80 of the scanner head cartridge 800.
A read control signal is transmitted and received from the main body via the first contact portion 802. In addition, the head guide 303 connects the carriage and the head. The read signal and the control signal are the contact portion 802 and the flexible cable 304.
Via the printer to the printer / scanner controller of the apparatus main body.

【0028】図9は図8のスキャナヘッドカートリッジ
内部に配置される部品のブロック図である。カートリッ
ジ内部には図中の電気部品を実装したフレキシブル基板
が略箱形状で内部光学系部品を包み込む構成で配置され
る。図中801はプリンタ本体により読取制御信号送受
信するコネクタ部であり、802はその接点部である。
901は読み取り用原稿である。902は光源となるL
ED発光素子であり、コネクタ部を介して電源が供給さ
れることにより発光を行なう。903は光源902が照
射した光の反射光をCCDセンサ904へ方向付けるミ
ラーである。CCDセンサ904により検出された反射
光のアナログ出力はアンプ905で増幅される。906
はスキャナコントローラICである。本IC906は本
体とのデータ/コマンドの送受、本体からのコマンドに
応じたスキャナ動作のLED、CCD等の制御信号出
力、CCDからの読み取りアナログデータを増幅したデ
ータをA/D変換ブロック9061並びに本体への送出
等の制御を行う。907は白基準値、オフセット値の二
つのA/Dレファレンス値、スキャナの動作状態、読み
取りデータの展開などを行なうワーク用SRAMであ
る。908は周囲環境温度を検出する温度センサであ
る。本体からのコマンドの送受はスキャナコントローラ
906内のIOポートのレジスタレベルで行われる。図
10にこのレジスタマップを示す。
FIG. 9 is a block diagram of components arranged inside the scanner head cartridge of FIG. Inside the cartridge, a flexible board on which the electric parts shown in the figure are mounted is arranged in a substantially box shape so as to enclose the internal optical system parts. In the figure, reference numeral 801 is a connector portion for transmitting and receiving a read control signal by the printer body, and 802 is a contact portion thereof.
Reference numeral 901 is a reading original. 902 is an L light source
The ED light emitting element emits light when power is supplied through the connector portion. A mirror 903 directs the reflected light of the light emitted by the light source 902 to the CCD sensor 904. The analog output of the reflected light detected by the CCD sensor 904 is amplified by the amplifier 905. 906
Is a scanner controller IC. This IC 906 transmits / receives data / commands to / from the main body, outputs a control signal of a scanner operation LED, CCD or the like according to a command from the main body, and amplifies analog data read from the CCD to the A / D conversion block 9061 and the main body. It controls the sending to the. Reference numeral 907 denotes a work SRAM for performing two A / D reference values including a white reference value and an offset value, the operating state of the scanner, and expansion of read data. A temperature sensor 908 detects the ambient environment temperature. The sending and receiving of commands from the main body is performed at the register level of the IO port in the scanner controller 906. FIG. 10 shows this register map.

【0029】図11、12は光学系部品、読み取り反射
光の経路を表した図を示すもので、以下、概略を説明す
る。ケース2内において、光源であるLED3に近接し
て、集光手段である円筒形状のロッド・レンズ6がLE
D3の並び方向と平行に設置されている。LED3の照
射中心はロッド・レンズ6のレンズ作用面の中心を通過
し、原稿面を斜めに照射する構成となっている。原稿か
らの反射光は、光軸中心が原稿と略直角方向に設けられ
た第1の結像系レンズであるフィールド・レンズ7を通
過した反射光は、読み取り幅方向と平行に設けられたミ
ラー5により光軸の進行方向が90゜折り曲げられて原
稿と略平行な光線とされる。11はアパーチャであり、
フィールド・レンズ7の結像面はこの位置とされる。ア
パーチャ11の後方には第2の結像系レンズが設けられ
ている。結像レンズの結像位置はCCDセンサ13の位
置である。
11 and 12 are views showing the paths of the optical system components and the reading reflected light, which will be briefly described below. In the case 2, a cylindrical rod lens 6 which is a light converging means is provided in the LE in proximity to the LED 3 which is a light source.
It is installed parallel to the direction of D3. The irradiation center of the LED 3 passes through the center of the lens working surface of the rod lens 6, and the document surface is obliquely irradiated. The reflected light from the original passes through the field lens 7 which is the first image forming system lens whose optical axis center is provided in a direction substantially perpendicular to the original, and the reflected light is a mirror provided parallel to the reading width direction. The optical axis is bent 90 ° by 5 to form a light beam substantially parallel to the original. 11 is an aperture,
The image plane of the field lens 7 is at this position. A second imaging system lens is provided behind the aperture 11. The image forming position of the image forming lens is the position of the CCD sensor 13.

【0030】図13は図11、図12で示した読み取り
反射光の経路の詳細を表している。反射光の経路につい
て横方向から見た図と、上方向から見た図とで構成され
ている。1301は光の経路を示す。スキャン対象ライ
ン1302は、LED902からCCDセンサ904に
達する反射光が読み取り用原稿用紙901上で反射する
位置を示している。上方向から見た図で明らかなよう
に、一列に並べられた複数のLED902から発せられ
た光は1302のスキャン対象ラインにて反射し、90
3の受光レンズ及びミラーで集光され、一列に並べられ
た複数のCCDセンサ904に達する。各々のCCDセ
ンサ904は、読み取った画像の各々の画素に対応す
る。小型、安価な構成においては、LED902の数を
充分に多くすることができないため、列中で両端に位置
するCCDセンサ904に達する反射光は中央に比べて
少ない。
FIG. 13 shows details of the path of the reading reflected light shown in FIGS. 11 and 12. It is composed of a view of the path of the reflected light viewed from the lateral direction and a view of the path viewed from above. Reference numeral 1301 indicates a light path. The scan target line 1302 indicates the position where the reflected light reaching the CCD sensor 904 from the LED 902 is reflected on the reading original paper 901. As is apparent from the view seen from above, the light emitted from the plurality of LEDs 902 arranged in a line is reflected by the scan target line 1302,
The light is collected by the light receiving lens 3 and the mirror 3 and reaches a plurality of CCD sensors 904 arranged in a line. Each CCD sensor 904 corresponds to each pixel of the read image. In a small-sized and inexpensive structure, the number of LEDs 902 cannot be increased sufficiently, so that the reflected light reaching the CCD sensors 904 located at both ends in the row is smaller than that in the center.

【0031】図14は理想的な光学部の構成と、小型、
安価な光学部の構成とを比較する図である。上図(a)
では高価なペンタプリズム1401が採用されており、
読み取り原稿用紙901に対して垂直に光は入射する。
従って1402、1403、1404のように紙面の高
さが変化しても、受光レンズ及びミラー903に達する
反射光に変化はない。一方小型・安価な構成において
は、上記ペンタプリズムがないため下図(b)のように
光は反射角1405のような角度θを持つに至る。小型
化のため、紙面を遠ざけて角度θを小さくすることも難
しい。結果として紙面の高さが変化すると、受光レンズ
及びミラー903に達する反射光は位置ずれを起こす。
安価な受光レンズ及びミラー903は両端部分のゲイン
が低く、1402の紙面基準位置で反射した場合のゲイ
ンを最高にして、紙面が浮いても沈んでもゲインは低下
することになる。
FIG. 14 shows an ideal structure of an optical part, a small size,
It is a figure which compares with the structure of an inexpensive optical part. Above figure (a)
The expensive penta prism 1401 is adopted in
Light enters perpendicularly to the read original sheet 901.
Therefore, even if the height of the paper surface changes like 1402, 1403, and 1404, the reflected light reaching the light receiving lens and the mirror 903 does not change. On the other hand, in a compact and inexpensive structure, since the penta prism is not provided, the light reaches an angle θ such as a reflection angle 1405 as shown in FIG. Due to the miniaturization, it is difficult to reduce the angle θ by moving away from the paper surface. As a result, when the height of the paper surface changes, the reflected light reaching the light receiving lens and the mirror 903 is displaced.
The inexpensive light receiving lens and the mirror 903 have low gains at both ends, and the gain when reflected at the paper surface reference position of 1402 is maximized, and the gain decreases even if the paper surface floats or sinks.

【0032】以下、LED902の数が少数で受光レン
ズ及びミラー903の長さが短く、CCDセンサ904
のセンサ数が128個、各センサ間の距離が1/360
インチ、スキャン幅0.36インチであるスキャナヘッ
ドカートリンジ800について説明する。図15はスキ
ャナヘッドカートリッジ800を用いて読み取り用原稿
用紙901の全域をスキャンした場合の動作例について
示している。走査処理は、カラム方向にCCDセンサ9
04を128個並べたヘッドをライン方向に動かすこと
で行われるが、それだけではカラム方向のスキャン幅は
0.6インチにしかならない。従って、読み取り用原稿
用紙901の全域をスキャンするためには、1ライン走
査処理の後スキャン幅分だけ紙をフィールドし、再び同
様の走査処理を行う必要がある。従って本装置において
は、1501に示したスキャナヘッドの軌跡のようにス
キャナヘッドカートリッジ800を動かして、複数回の
走査処理を行う仕様になっている。
Below, the number of LEDs 902 is small, the length of the light receiving lens and the mirror 903 is short, and the CCD sensor 904
The number of sensors is 128 and the distance between each sensor is 1/360
A scanner head carting 800 having an inch and a scan width of 0.36 inch will be described. FIG. 15 shows an operation example when the entire area of the reading original paper 901 is scanned using the scanner head cartridge 800. The scanning process is performed by the CCD sensor 9 in the column direction.
This is performed by moving the head in which 128 04s are arranged in the line direction, but the scan width in the column direction is only 0.6 inch by itself. Therefore, in order to scan the entire area of the reading original paper 901, it is necessary to carry out the same scanning process again by fielding the paper by the scanning width after the one-line scanning process. Therefore, in this apparatus, the scanner head cartridge 800 is moved like the locus of the scanner head shown by 1501 to perform the scanning process a plurality of times.

【0033】図16は蓄積時間とキャリッジ速度、ライ
ン方向読み取り解像度の関係を示している。蓄積時間と
は1画素を読み込むために要する時間であり、キャリッ
ジ速度とはスキャナヘッドカートリッジ800がライン
方向に動く速度を示している。このときライン方向の読
み取り解像度は、以下の式で表される。
FIG. 16 shows the relationship among the accumulation time, the carriage speed, and the line-direction reading resolution. The accumulation time is the time required to read one pixel, and the carriage speed is the speed at which the scanner head cartridge 800 moves in the line direction. At this time, the reading resolution in the line direction is expressed by the following formula.

【0034】ライン方向の読み取り解像度=1/(蓄積
時間*キャリッジ速度) 以下、本実施の形態の装置において、ライン方向の読み
取り解像度が360dpiのときの蓄積時間が256マ
イクロ秒、180dpiのときの蓄積時間が512マイ
クロ秒である場合について説明する。図17はホスト2
00とプリンタ219間の情報のやり取りに使用される
専用ステータスポートについて示した図である。170
1で示されるステータスポート1は8ビットで構成され
ており、他のステータスポート及びプリンタ219の状
態に関する情報をやりとりするのに用いる。1702で
示されるステータスポート2は16ビットで構成されて
おり、コマンド及びデータをやりとりするために用い
る。1703で示されるステータスポート3は16ビッ
トで構成されており、印刷用のイメージデータをホスト
200からプリンタ219に送出するために用いる。
Reading resolution in the line direction = 1 / (accumulation time * carriage speed) Hereinafter, in the apparatus according to the present embodiment, the accumulation time is 256 microseconds when the reading resolution in the line direction is 360 dpi, and the accumulation when the accumulation time is 180 dpi. A case where the time is 512 microseconds will be described. Figure 17 shows host 2
12 is a diagram showing a dedicated status port used for exchanging information between 00 and the printer 219. FIG. 170
The status port 1 indicated by 1 is composed of 8 bits and is used for exchanging information regarding the status of the other status ports and the printer 219. The status port 2 shown by 1702 is composed of 16 bits and is used for exchanging commands and data. The status port 3 indicated by 1703 is composed of 16 bits and is used for sending image data for printing from the host 200 to the printer 219.

【0035】図18は1701のステータスポート1に
ついて説明したものである。各々のビットはホスト20
0、プリンタ219の双方から参照することができる。
1801のビット0は1702のステータスポート2を
介してホスト200からプリンタ219にデータが送ら
れているとき1、否のとき0になる。1802のビット
1は1702のステータスポート2を介してプリンタ2
19からホスト200にデータが送られているとき1、
否のとき0になる。1803のビット2は1703のス
テータスポート3介して、ホスト200からプリンタ2
19にデータを送ることができるとき0、否のとき1に
なる。1804のビット3はプリンタ219の電源が入
っているとき0、否のとき1になる。1805のビット
4はプリンタ219がbusy状態であるとき1、re
ady状態であると0になる。1806のビット5ば1
701〜1703のステータスポートが初期化中である
とき1、初期化済みであるとき0になる。
FIG. 18 illustrates the status port 1 1701. Each bit is host 20
0, the printer 219 can refer to both.
Bit 0 of 1801 is 1 when data is sent from the host 200 to the printer 219 via the status port 2 of 1702, and 0 when not. Bit 1 of 1802 is set to printer 2 via status port 2 of 1702.
When data is being sent from 19 to the host 200 1,
If not, it becomes 0. Bit 2 1803 is sent from the host 200 to the printer 2 via the status port 3 1703.
It becomes 0 when data can be sent to 19, and 1 when not. Bit 3 of 1804 is 0 when the power of the printer 219 is on, and 1 when it is not. Bit 4 of 1805 is 1 when the printer 219 is in the busy state, re
It becomes 0 in the ady state. 1806 bit 5
It becomes 1 when the status ports 701 to 1703 are being initialized, and becomes 0 when the status ports have been initialized.

【0036】図19は1702のステータスポート2を
介して、ホスト200からプリンタ219に送られるコ
マンドの一覧である。ホスト200はこれらのコマンド
を1702のステータスポート2に書き込んでから18
01のビット0を立てる。プリンタ219は1801の
ビット0が立っていることを検知次第、1702のステ
ータスポート2に書き込まれたコマンドに従って処理を
行い、1801のビット0を落とす。この処理が終了次
第、1702のステータスポート2に結果を書き込み1
802のビット1を立てる。ホスト200は1802の
ビット1が立っていることを検知次第、1702のステ
ータスポート2の内容を読み込み、読み込みが終了した
ら1802のビット1を落とす。
FIG. 19 is a list of commands sent from the host 200 to the printer 219 via the status port 2 1702. The host 200 writes these commands to the status port 2 of 1702 and then returns 18
Set bit 0 of 01. Upon detecting that bit 0 of 1801 is set, the printer 219 performs processing according to the command written in the status port 2 of 1702 and drops bit 0 of 1801. Upon completion of this processing, write the result to status port 2 of 1702 1
Set bit 1 of 802. The host 200 reads the contents of the status port 2 of 1702 as soon as it detects that bit 1 of 1802 is set, and drops bit 1 of 1802 when the reading is completed.

【0037】以下、コマンドの詳細について説明する。
1901に示した1000Hはステータスポート1、
2、3の初期化を行うものである。1902に示した4
000Hは印刷イメージの転送を行うためのコマンドで
あり、このコマンドを書き込んだ後、1703のステー
タスポート3にイメージデータ自体を書き込むことで、
印刷を行うことが可能である。1903に示した800
0H〜8F78Hはステャナ読み取り用のコマンドであ
り、以下12ビットは画像スキャン動作後のフィード量
を示す。コマンドを書き込むと読み込んだイメージデー
タが順次1702のステータスポート2を介してプリン
タ219からホスト200に送られてくる。このイメー
ジデータ転送後、下位12ビットの値で示されるフィー
ド量だけフィードして動作は終了する。ここで、フィー
ド量の単位は1/360インチである。
The details of the command will be described below.
1000H shown in 1901 is status port 1,
A few initializations are performed. 4 shown in 1902
000H is a command for transferring a print image. After writing this command, by writing the image data itself to the status port 3 of 1703,
It is possible to print. 800 shown in 1903
0H to 8F78H are commands for reading the scanner, and the following 12 bits indicate the feed amount after the image scanning operation. When the command is written, the read image data is sequentially sent from the printer 219 to the host 200 via the status port 2 of 1702. After this image data is transferred, the operation is completed after feeding the feed amount indicated by the value of the lower 12 bits. Here, the unit of the feed amount is 1/360 inch.

【0038】1904に示した9000H〜9F78H
はフィードを指示するためのコマンドであり、下位12
ビットの値でフィード量を指定する。フィード量の単位
は1/360インチである。1905に示した9FF0
Hは排紙を指示するコマンドである。1906に示した
9FF1Hは給紙を指示するコマンドである。1907
に示したA801Hは現在プリンタ219に搭載されて
いるヘッドユニットの情報を取得するためのコマンドで
あり、このコマンドを発効するとプリンタ219から図
20で示した1バイトのヘッドユニット情報が1702
のステータスポート2を介してホスト200に送られて
くる。図20の2001に示したビット0は現在プリン
タ219に搭載されているヘッドユニットの種別を示し
ており、0であればスキャナヘッドが、1であれば印字
ヘッドが搭載されていることを意味する。2002に示
したビット1は現在プリンタ219にヘッドユニットが
搭載されているか否かを示しており、0であればヘッド
ユニット無、1であればヘッドユニット有を意味する。
9000H to 9F78H shown in 1904
Is a command for instructing the feed, and the lower 12
The feed amount is specified by the bit value. The unit of feed amount is 1/360 inch. 9FF0 shown in 1905
H is a command for instructing paper discharge. 9FF1H shown in 1906 is a command for instructing paper feeding. 1907
A801H shown in FIG. 20 is a command for acquiring the information of the head unit currently installed in the printer 219. When this command is issued, the 1-byte head unit information shown in FIG.
Is sent to the host 200 via the status port 2 of. The bit 0 shown in 2001 of FIG. 20 indicates the type of the head unit currently mounted in the printer 219, and 0 means that the scanner head is mounted and 1 means that the print head is mounted. . Bit 1 shown in 2002 indicates whether or not a head unit is currently installed in the printer 219, and 0 means no head unit and 1 means head unit present.

【0039】図19の1908に示したA805Hは現
在プリンタ219で設定されている読み取り解像度の設
定値を取得するためのコマンドであり、このコマンドを
発効するとプリンタ219から図21で示した1バイト
の読み取り解像度情報がホスト200に送られてくる。
図21の2101に示したビット0が1のとき360d
pi、2102に示したビット1が1のとき180dp
i、2103に示したビット2が1のとき90dpiを
意味する。これらのビットが2つ以上同時に1になるこ
とはない。1909に示したAD00H〜AD3FHは
蓄積時間512マイクロ秒で検出した白基準値を取得す
るためのコマンドであり、下位8ビットがヘッドのドッ
ト0〜127に順次対応している。このコマンドを受け
取ると、プリンタ219は該当するドットに設定された
1バイトの白基準値を1702のステータスポート2を
介してホスト200に送り返す。
An A805H shown at 1908 in FIG. 19 is a command for acquiring the setting value of the reading resolution currently set in the printer 219. When this command is issued, the printer 219 stores the 1-byte value shown in FIG. The reading resolution information is sent to the host 200.
When bit 0 shown in 2101 in FIG. 21 is 1, 360d
pi, when the bit 1 shown in 2102 is 1, 180 dp
When the bit 2 shown in i, 2103 is 1, it means 90 dpi. No two or more of these bits can be 1 at the same time. AD00H to AD3FH shown in 1909 are commands for acquiring the white reference value detected at the accumulation time of 512 microseconds, and the lower 8 bits correspond to dots 0 to 127 of the head in order. Upon receiving this command, the printer 219 sends back the 1-byte white reference value set to the corresponding dot to the host 200 via the status port 2 of 1702.

【0040】1910に示したAD40H〜AD7FH
は蓄積時間256マイクロ秒で検出した白基準値を取得
するためのコマンドであり、下位8ビットがヘッドのド
ット0〜127に順次対応している。このコマンドを受
け取ると、プリンタ219は該当するドットに設定され
た1バイトの白基準値を1702のステータスポート2
を介してホスト200に送り返す。1911に示したA
D80Hは搭載されているヘッドユニットのIDを取得
するためのコマンドである。このコマンドを受け取る
と、プリンタ219はそのIDを1702のステータス
ポート2を介してホスト200に送り返す。1912に
示したAD81Hはプリンタ219の機内温度情報を取
得するためのコマンドである。このコマンドを受け取る
と、プリンタ219は1バイトの上記機内温度情報を1
702のステータスポート2を介してホスト200に送
り返す。
AD40H to AD7FH shown in 1910
Is a command for acquiring the white reference value detected at the accumulation time of 256 microseconds, and the lower 8 bits correspond to dots 0 to 127 of the head in order. Upon receiving this command, the printer 219 sets the 1-byte white reference value set in the corresponding dot to the status port 2 of 1702.
It is sent back to the host 200 via. A shown in 1911
D80H is a command for acquiring the ID of the mounted head unit. Upon receiving this command, the printer 219 sends the ID back to the host 200 via the status port 2 of 1702. AD81H shown in 1912 is a command for acquiring the in-machine temperature information of the printer 219. Upon receiving this command, the printer 219 outputs 1 byte of the above-mentioned in-machine temperature information to 1
It is sent back to the host 200 via the status port 2 of 702.

【0041】1913に示したADF0Hは、白基準値
の検出実動作を行うためのコマンドである。このコマン
ドを受け取ると、プリンタ219は蓄積時間512マイ
クロ秒、256マイクロ秒各々について白基準値の検出
動作を行う。1914に示したB805Hは、プリンタ
219に新しい読み取り解像度を設定するためのコマン
ドであり、このコマンドを発効した後続けてプリンタ2
19に図21で示した1バイトの読み取り解像度情報を
送ることで、新しい読み取り解像度の設定を行うことが
できる。1915に示したBD00H〜BD3FHは蓄
積時間512マイクロ秒時の白基準値をホスト200か
らプリンタ219中のRAM403に送るためのコマン
ドであり、下位8ビットがヘッドのドット0〜127に
順次対応している。このコマンドを発効した後続けてプ
リンタ219に1バイトの白基準値を送ることで、該当
するドットの白基準値を設定することができる。RAM
403中の白基準値は実スキャン動作を行う直前にスキ
ャナヘッドに書き込まれる。
ADF0H shown at 1913 is a command for performing a white reference value detection actual operation. Upon receiving this command, the printer 219 performs the white reference value detection operation for each of the accumulation times of 512 microseconds and 256 microseconds. B805H shown in 1914 is a command for setting a new reading resolution in the printer 219, and after the command is activated, the printer 2 continues.
By sending the 1-byte read resolution information shown in FIG. 21 to 19, a new read resolution can be set. BD00H to BD3FH shown in 1915 are commands for sending the white reference value at the accumulation time of 512 microseconds from the host 200 to the RAM 403 in the printer 219, and the lower 8 bits correspond to the dots 0 to 127 of the head in order. There is. By sending a 1-byte white reference value to the printer 219 continuously after issuing this command, the white reference value of the corresponding dot can be set. RAM
The white reference value in 403 is written in the scanner head immediately before the actual scanning operation is performed.

【0042】1916に示したBD40H〜BD7FH
は蓄積時間256マイクロ秒時の白基準値をホスト20
0からプリンタ219中のRAM403に送るためのコ
マンドであり、下位8ビットがヘッドのドット0〜12
7に順次対応している。このコマンドを発効した後続け
てプリンタ219に1バイトの白基準値を送ることで、
該当するドットの白基準値を設定することができる。R
AM403中の白基準値は実スキャン動作を行う直前に
スキャナヘッドに書き込まれる。1917に示したBD
F0Hはプリンタ219中のRAM403に設定された
白基準値をスキャナヘッドに書き込むためのコマンドで
ある。1918に示したD000Hはヘッド交換位置へ
のキャリッジ移動を行うためのコマンドであり、このコ
マンドを受信するとプリンタ219はヘッドユニットの
初期化処理を行ってからホームポジションにキャリッジ
を移動させる。1919に示したD100Hはヘッド交
換位置からホームポジションにキャリッジを戻すための
コマンドであり、このコマンドを受信するとプリンタ2
19はヘッドユニットの初期化処理を行ってからホーム
ポジションにキャリッジを移動させる。
BD40H to BD7FH shown in 1916
Shows the white reference value when the storage time is 256 microseconds
0 is a command to send to the RAM 403 in the printer 219, and the lower 8 bits are head dots 0 to 12
It corresponds to 7 in sequence. By sending a 1-byte white reference value to the printer 219 continuously after issuing this command,
The white reference value of the corresponding dot can be set. R
The white reference value in AM403 is written in the scanner head immediately before the actual scanning operation is performed. BD shown in 1917
F0H is a command for writing the white reference value set in the RAM 403 in the printer 219 to the scanner head. D000H shown at 1918 is a command for moving the carriage to the head replacement position. Upon receiving this command, the printer 219 performs the initialization process of the head unit and then moves the carriage to the home position. D100H shown in 1919 is a command for returning the carriage from the head replacement position to the home position. When this command is received, the printer 2
Reference numeral 19 moves the carriage to the home position after performing initialization processing of the head unit.

【0043】図22は第1の実施の形態における専用ソ
フトウェアプログラムによるスキャナヘッド装着処理手
順を表わしたフローチャートである。図23は第1の実
施の形態における専用ソフトウェアプログラムによる画
像読み取り処理手順を表わしたフローチャートである。
図24は本実施の実態における最近周囲温度を保存して
おくVRAMワークエリアを表わした図である。図中2
4−1は最近周囲温度保存エリアである。
FIG. 22 is a flowchart showing the scanner head mounting processing procedure by the dedicated software program in the first embodiment. FIG. 23 is a flow chart showing an image reading processing procedure by the dedicated software program in the first embodiment.
FIG. 24 is a diagram showing a VRAM work area for storing the recent ambient temperature in the actual state of this embodiment. 2 in the figure
4-1 is an ambient temperature storage area recently.

【0044】次に、第1の実施の形態において、専用の
ソフトウェアプログラムを使用してスキャナヘッド80
0をキャリッジ301に装着する処理について図22を
用いて説明する。図22中の処理22−1において、プ
ログラムはコマンド1901を発行し、ステータスポー
トを初期化する。次に処理22−2において、コマンド
1918を発行し、プリンタ219のキャリッジをヘッ
ド交換位置に移動させる。次に処理22−3において、
装置使用者は手作業によりスキャナヘッド800をキャ
リッジ301に装着する。次に処理22−4において、
プログラムはコマンド1919を発行し、ヘッド交換を
終了させる。
Next, in the first embodiment, a scanner head 80 is used by using a dedicated software program.
A process of mounting 0 on the carriage 301 will be described with reference to FIG. In process 22-1 in FIG. 22, the program issues a command 1901 to initialize the status port. Next, in process 22-2, a command 1918 is issued and the carriage of the printer 219 is moved to the head replacement position. Next, in process 22-3,
The apparatus user manually mounts the scanner head 800 on the carriage 301. Next, in process 22-4,
The program issues a command 1919 to end head replacement.

【0045】次に、第1の実施の形態において、専用ソ
フトウェアプログラムを使用してスキャナ装置により、
原稿から画像データを読み取る処理について図23、図
24を用いて説明する。図23中の処理23−1におい
て、プログラムはコマンド1901を発行し、ステータ
スポートを初期化する。次に処理23−2において、コ
マンド1912を発行し、スキャナユニットの周囲環境
温度を温度センサから取得する。次に処理23−3にお
いて、図24VRAMワークエリア中の最近周囲環境温
度保存エリア24−1に最近の温度データが保存されて
いるかチェックする。最近の周囲環境温度が保存されて
いなければ、処理は23−5に進み、取得した周囲環境
温度をVRAMワークエリアに保存し、処理23−6に
進む。周囲環境温度が保存されていれば、処理は23−
4に進み、取得した周囲環境温度とVRAMワークエリ
アに保存されている最近周囲環境温度の値との差分が1
0度(許容温度変化定量)を越えているかチェックす
る。差分が10度を越えていれば、処理は23−5に進
み、取得した周囲温度をVRAMワークエリアに保存
し、次に処理23−6に進む。処理23−6において、
プログラムはコマンド1913を発行し、スキャナ装置
に白基準値の検出動作を実行させる。この時、検出され
た白基準値はスキャナコントローラIC906により自
動的にSRAM907に保存される。以後、白基準値の
検出動作を再実行しない限り、取得した白基準値はSR
AM907に保存する。次に処理は23−7に進む。
Next, in the first embodiment, by the scanner device using the dedicated software program,
A process of reading image data from a document will be described with reference to FIGS. 23 and 24. In process 23-1 in FIG. 23, the program issues a command 1901 to initialize the status port. Next, in process 23-2, the command 1912 is issued and the ambient temperature of the scanner unit is acquired from the temperature sensor. Next, in process 23-3, it is checked whether the recent ambient temperature data storage area 24-1 in the VRAM work area in FIG. 24 stores recent temperature data. If the latest ambient environment temperature is not stored, the process proceeds to 23-5, the acquired ambient environment temperature is stored in the VRAM work area, and the process proceeds to process 23-6. If the ambient temperature is stored, the process is 23-
4, the difference between the acquired ambient temperature and the value of the latest ambient temperature stored in the VRAM work area is 1
Check if it exceeds 0 degrees (permissible change in temperature). If the difference exceeds 10 degrees, the process proceeds to 23-5, the acquired ambient temperature is stored in the VRAM work area, and then the process proceeds to process 23-6. In process 23-6,
The program issues a command 1913 to cause the scanner device to perform a white reference value detection operation. At this time, the detected white reference value is automatically stored in the SRAM 907 by the scanner controller IC 906. After that, unless the white reference value detection operation is re-executed, the acquired white reference value is SR.
Save in AM907. Next, the process proceeds to 23-7.

【0046】一方、処理23−4において温度の差分が
10度を越えていなければ処理は、23−7進む。処理
23−7において、プログラムはコマンド1906を発
行し、原稿を給紙する。次に処理23−8において、コ
マンド1914を発行し、読み取り解像度の設定を行
う。次に処理23−9、23−10、23−11におい
て、プログラムはコマンド1903を発行してスキャナ
装置に画像読み取り処理を実行させ、画像データを取得
する。この時、スキャン装置は、A/D変換処理のレフ
ァレンスとしてSRAM907に保存されている白基準
値を使用する。そして、取得したデータをハードディス
ク204上に存在するファイルに保存し、必要なすべて
の画像読み込みが終了するまで、この処理をくり返し実
行する。最後に処理23−12においてプログラムは、
コマンド1906を発行し原稿を排紙し、原稿読み取り
処理を終了させる。
On the other hand, if the temperature difference does not exceed 10 degrees in the process 23-4, the process proceeds to 23-7. In process 23-7, the program issues the command 1906 to feed the document. Next, in process 23-8, the command 1914 is issued to set the reading resolution. Next, in processing 23-9, 23-10, 23-11, the program issues the command 1903 to cause the scanner device to execute the image reading processing, and acquires the image data. At this time, the scanning device uses the white reference value stored in the SRAM 907 as a reference for the A / D conversion process. Then, the acquired data is saved in a file existing on the hard disk 204, and this processing is repeatedly executed until all necessary image reading is completed. Finally, in process 23-12, the program
The command 1906 is issued, the original is ejected, and the original reading process is ended.

【0047】次に第2の実施の形態について説明する。
図25は第2の実施の形態における専用ソフトウェアプ
ログラムによる画像読み取り処理手順を表わしたフロー
チャートである。図26は第2の実施の形態における、
ハードディスク204上に存在するファイルに含まれ
る、白基準値と周囲環境温度とスキャンカウント(光源
劣化指標)とを関連付けて作成された白基準データベー
スの内容を表わした図である。図中26−1は、トータ
ルスキャンカウントエリア、26−2は、白基準値取得
時スキャンカウントエリア、26−3は白基準値保存エ
リア、26−4〜は、対温度データエリアである。
Next, a second embodiment will be described.
FIG. 25 is a flow chart showing an image reading processing procedure by the dedicated software program in the second embodiment. FIG. 26 shows the second embodiment.
It is a figure showing the content of the white reference database created by associating the white reference value, the ambient environment temperature, and the scan count (light source deterioration index) contained in the file existing on the hard disk 204. In the figure, 26-1 is a total scan count area, 26-2 is a white reference value acquisition scan count area, 26-3 is a white reference value storage area, and 26-4 to are temperature data areas.

【0048】白基準データベースは、周囲環境温度を1
の位で切り捨てられて計算される簡易周囲環境温度ごと
に対温度データエリアを持ち、対温度データエリアは、
白基準値取得時スキャンカウントエリア26−2、白基
準値保存エリア26−3を持つ。すなわち、画像読み取
り時の周囲環境温度が0〜9度の場合、簡易周囲環境温
度は0度になり、この値に関連付けられる0度エリア2
6−4が存在し。同様に周囲環境温度が0〜19度の場
合、簡易周囲環境温度は10度になり、この値に関連付
けられて10度エリア26−5が存在する。また、これ
以上の温度においても同様に簡易周囲環境温度に関連付
けらたエリアが存在し、各エリアは、白基準値取得時ス
キャンカウントエリア26−2、白基準値保存エリア2
6−3を持つ。
The white reference database sets the ambient temperature to 1
There is a temperature data area for each simple ambient temperature calculated by rounding down to
It has a white reference value acquisition scan count area 26-2 and a white reference value storage area 26-3. That is, when the ambient environment temperature at the time of reading an image is 0 to 9 degrees, the simple ambient environment temperature is 0 degree, and the 0 degree area 2 associated with this value.
There are 6-4. Similarly, when the ambient environment temperature is 0 to 19 degrees, the simple ambient environment temperature is 10 degrees, and the 10 degree area 26-5 is associated with this value. Further, even at temperatures higher than this, there are areas similarly associated with the simple ambient temperature, and each area has a white reference value acquisition scan count area 26-2 and a white reference value storage area 2
Have 6-3.

【0049】次に、他の実施の形態において、専用ソフ
トウェアプログラムを使用してスキャナ装置により、原
稿から画像データを読み取る処理について図25、図2
6を用いて説明する。図25中の処理25−1におい
て、プログラムはコマンド1901を発行し、ステータ
スポートを初期化する。次に処理25−2において、コ
マンド1912を発行し、スキャナ装置の周囲環境温度
を取得する。次に処理25−3において、取得した周囲
環境温度を1の位で切り捨て簡易周囲環境温度を計算す
る。
Next, in another embodiment, a process of reading image data from a document by a scanner device using a dedicated software program will be described with reference to FIGS.
6 will be described. In process 25-1 in FIG. 25, the program issues a command 1901 to initialize the status port. Next, in process 25-2, the command 1912 is issued to acquire the ambient temperature of the scanner device. Next, in process 25-3, the acquired ambient environment temperature is rounded down to the nearest unit and the simple ambient environment temperature is calculated.

【0050】次に処理25−4において、図26白基準
データベースに、処理25−3において計算した簡易周
囲環境温度に対応する対温度エリアの白基準値取得時ス
キャンカウントエリア26−2を読み出しデータが保存
されているかチェックする。データが保存されていれば
処理は25−5に進み、データが保存されていなければ
処理は25−8に進む。次に処理25−5において、プ
ログラムはトータルスキャンカウントエリア26−1に
保存されているトータルスキャンカウントを読み出し、
処理25−4で読み出した白基準値取得時スキャンカウ
ントとの差分を計算する。この差分が100(許容光源
劣化定量)を越えていなければ処理は25−6に進み、
この差分が100(許容光源劣化定量)を越えていれば
処理は25−8に進む。
Next, in process 25-4, the white reference value acquisition scan count area 26-2 for the temperature reference area corresponding to the simple ambient temperature calculated in process 25-3 is read out from the white reference database shown in FIG. Check if is saved. If the data is saved, the process proceeds to 25-5, and if the data is not saved, the process proceeds to 25-8. Next, in process 25-5, the program reads the total scan count stored in the total scan count area 26-1,
The difference from the scan count at the time of acquiring the white reference value read in the process 25-4 is calculated. If this difference does not exceed 100 (permissible light source deterioration fixed amount), the process proceeds to 25-6,
If this difference exceeds 100 (allowable light source deterioration fixed amount), the process proceeds to 25-8.

【0051】次に処理25−6において、プログラムは
処理25−3において計算した簡易周囲温度に対応する
対温度データエリアの白基準値保存エリア26−3から
白基準値を読み出す。そして、次に処理25−7におい
てコマンド1915、1916、1917を発行し処理
25−6において読み出された白基準値をスキャナヘッ
ドのSRAM907に書き込む。この後、処理は25−
11に進む。
Next, in process 25-6, the program reads the white reference value from the white reference value storage area 26-3 of the temperature data area corresponding to the simple ambient temperature calculated in process 25-3. Then, in processing 25-7, commands 1915, 1916, and 1917 are issued, and the white reference value read in processing 25-6 is written in the SRAM 907 of the scanner head. After this, the process is 25-
Proceed to 11.

【0052】処理25−8において、プログラムはコマ
ンド1913を発行し、スキャナ装置に白基準値の検出
動作を実行させる。この時、検出された白基準値はスキ
ャナコントローラIC906により自動的にSRAM9
07に保存される。以後、白基準値の検出動作を再実行
しない限り、白基準値はSRAM907に保存され続け
る。次に処理25−9において、プログラムはコマンド
1909、1910発行し、SRAM907に保存され
ている白基準値を読み出す。次に処理25−10で読み
出した白基準値を、処理25−3において計算した簡易
周囲温度に対応する対温度データエリアの白基準値保存
エリア26−3に保存する。次に処理25−11におい
て、プログラムはトータルスキャンカウントエリア26
−1に保存されているトータルスキャンカウントを読み
出し、それを、処理25−3において計算した簡易周囲
温度に対応する対温度データエリアの白基準値取得時ス
キャンカウントエリア26−2に保存する。次に処理は
25−12に進む。
In process 25-8, the program issues a command 1913 to cause the scanner device to perform the white reference value detection operation. At this time, the white reference value detected is automatically transferred to the SRAM 9 by the scanner controller IC 906.
It is stored in 07. After that, the white reference value continues to be stored in the SRAM 907 unless the white reference value detection operation is performed again. Next, in process 25-9, the program issues commands 1909 and 1910 to read the white reference value stored in the SRAM 907. Next, the white reference value read in the process 25-10 is stored in the white reference value storage area 26-3 of the temperature data area corresponding to the simple ambient temperature calculated in the process 25-3. Next, in processing 25-11, the program executes the total scan count area 26.
The total scan count stored in -1 is read out and stored in the white reference value acquisition scan count area 26-2 of the temperature data area corresponding to the simple ambient temperature calculated in the processing 25-3. Next, the process proceeds to 25-12.

【0053】処理25−12において、プログラムはコ
マンド1906を発行し、原稿を給紙する。次に処理2
5−13において、コマンド1914を発行し読み取り
解像度の設定を行う。次に処理25−14、25−1
5、25−16において、プログラムはコマンド190
3を発行してスキャナ装置に画像読み取り処理を実行さ
せ、画像データを取得する。この時、スキャン装置は、
A/D変換処理のレファレンスとしてSRAM907に
保存されている白基準値を使用する。そして、取得した
データをハードディスク204上に存在するファイルに
保存し、必要なすべての画像読み込みが終了するまで、
この処理をくり返し実行する。次に処理25−17にお
いて、コマンド1906を発行し原稿を排紙する。最後
に処理25−18において、プログラムはトータルスキ
ャンカウントエリア26−1に保存されているトータル
スキャンカウントの値を1増加させ原稿読み取り処理を
終了させる。
In process 25-12, the program issues a command 1906 to feed the original. Next process 2
In 5-13, the command 1914 is issued and the reading resolution is set. Next, processing 25-14, 25-1
5, 25-16, the program is command 190
3 is issued and the scanner device is caused to execute the image reading processing, and the image data is acquired. At this time, the scanning device
The white reference value stored in the SRAM 907 is used as a reference for the A / D conversion process. Then, the acquired data is saved in a file existing on the hard disk 204, and until all necessary image reading is completed,
This process is repeated. Next, in process 25-17, the command 1906 is issued and the document is ejected. Finally, in process 25-18, the program increments the value of the total scan count stored in the total scan count area 26-1 by 1 and ends the document reading process.

【0054】次に第3の実施の形態について説明する。
図27は第3の実施の形態における、専用ソフトウェア
プログラムによる画像読み取り処理手順を表わしたフロ
ーチャートである。図28は第3の実施の形態におけ
る、ハードディスク204上に存在するファイルに含ま
れる、周囲環境温度の変化量と白基準値の補正量を関連
付けて作成された白基準データベースの内容を表わした
図である。図28中、28−1は最近周囲温度保存エリ
アである。28−2は周囲環境温度変化量エリア、28
−3は白基準値補正量エリアである。白基準データベー
スには、それぞれの周囲環境温度の変化量に対応した白
基準値の補正量が保存されている。すなわち、図28
中、周囲環境温度変化量エリア28−2に保存されてい
る周囲環境温度変化量1には、白基準値補正量エリア2
8−3に保存されている白基準補正量1が、周囲環境温
度変化量2には、白基準値補正量エリア28−3に保存
されている白基準補正量2が対応し、以下、他の値につ
いても同様である。実際には、周囲環境温度変化量5〜
10度に対応して白基準補正量+0.1(+10%)と
いう形でデータが保存されている。
Next, a third embodiment will be described.
FIG. 27 is a flowchart showing an image reading processing procedure by the dedicated software program in the third embodiment. FIG. 28 is a diagram showing the contents of a white reference database created by associating an amount of change in ambient environment temperature with a correction amount of a white reference value, which is included in a file existing on the hard disk 204 in the third embodiment. Is. In FIG. 28, 28-1 is a recent ambient temperature storage area. 28-2 is an ambient temperature change amount area, 28
-3 is a white reference value correction amount area. The white reference database stores the correction amount of the white reference value corresponding to the change amount of each ambient environment temperature. That is, FIG.
The white reference value correction amount area 2 is included in the ambient environment temperature change amount 1 stored in the middle and ambient environment temperature change amount area 28-2.
8-3 corresponds to the white reference correction amount 1 stored in 8-3, the ambient environment temperature change amount 2 corresponds to the white reference correction amount 2 stored in the white reference value correction amount area 28-3, and so on. The same applies to the value of. Actually, the ambient temperature change amount 5 to
Data is stored in the form of a white reference correction amount +0.1 (+ 10%) corresponding to 10 degrees.

【0055】次に、第3の実施の形態において、専用ソ
フトウェアプログラムを使用してスキャナ装置により、
原稿から画像データを読み取る処理について図27、図
28を用いて説明する。図27中の処理27−1におい
て、プログラムはコマンド1901を発行し、ステータ
スポートを初期化する。次に処理27−2において、コ
マンド1912を発行し、スキャナ装置の周囲環境温度
を取得する。
Next, in the third embodiment, the scanner apparatus uses a dedicated software program,
A process of reading image data from a document will be described with reference to FIGS. 27 and 28. In process 27-1 in FIG. 27, the program issues a command 1901 to initialize the status port. Next, in process 27-2, the command 1912 is issued to acquire the ambient temperature of the scanner device.

【0056】次に処理27−3において、図28白基準
データベースの最近周囲環境温度保存エリア28−1に
温度データが保存されているかチェックする。最近周囲
環境温度が保存されていなければ、処理は27−4進
み、取得した周囲環境温度を最近周囲環境温度保存エリ
アに保存し、処理27−5に進む。処理27ー5におい
て、プログラムは、コマンド1913を発行しスキャナ
装置に白基準値の検出動作を実行させる。この時、検出
された白基準値はスキャナコントローラIC906によ
り自動的にSRAM907に保存される。以後、白基準
値の検出動作を再実行しない限り、取得した白基準値は
SRAM907に保存される。次に処理は27−11に
進む。
Next, in process 27-3, it is checked whether or not temperature data is recently stored in the ambient temperature storage area 28-1 of the white reference database in FIG. If the ambient environment temperature has not been recently stored, the process proceeds to 27-4, the acquired ambient environment temperature is recently stored in the ambient environment temperature storage area, and the process proceeds to process 27-5. In process 27-5, the program issues a command 1913 to cause the scanner device to perform the white reference value detection operation. At this time, the detected white reference value is automatically stored in the SRAM 907 by the scanner controller IC 906. Thereafter, the acquired white reference value is stored in the SRAM 907 unless the white reference value detection operation is performed again. Next, the processing advances to 27-11.

【0057】一方、処理27−3において最近周囲環境
保存エリア28−1に最近周囲環境温度が保存されてい
れば、処理は27−6に進み、プログラムは、取得した
周囲環境温度と最近周囲環境温度エリア28ー1に保存
されている最近周囲環境温度の値の差分(周囲環境温度
の変化量)を計算する。次に処理27−7において、プ
ログラムは、図28白基準データベースの周囲環境温度
変化エリア28−2、白基準値補正量エリア28ー3か
らを参照し、処理27−6で計算した周囲環境温度変化
量に対応する、白基準値補正量を読み出す。
On the other hand, if the ambient environment temperature has been recently stored in the ambient environment storage area 28-1 in the process 27-3, the process proceeds to 27-6, and the program causes the acquired ambient environment temperature and the latest ambient environment to be stored. The difference between the values of the recent ambient environment temperature (the amount of change in the ambient environment temperature) stored in the temperature area 28-1 is calculated. Next, in process 27-7, the program refers to the ambient environment temperature change area 28-2 and the white reference value correction amount area 28-3 of the white reference database in FIG. 28, and calculates the ambient environment temperature in process 27-6. The white reference value correction amount corresponding to the change amount is read.

【0058】次に処理27−8において、プログラム
は、コマンド1909、1910発行し、SRAM90
7に保存されている白基準値を読みだす。次に処理27
−9で読み出した白基準値を、処理27−7において読
み出した白基準補正量に従い補正する。実際は以下の計
算式で補正値が求められる。 白基準補正値=白基準値×(1+白基準補正量)
Next, in processing 27-8, the program issues the commands 1909 and 1910, and the SRAM 90
Read the white standard value stored in 7. Next, process 27
The white reference value read in -9 is corrected according to the white reference correction amount read in process 27-7. Actually, the correction value is obtained by the following calculation formula. White reference correction value = White reference value x (1 + White reference correction amount)

【0059】次に処理27−10においてプログラム
は、コマンド1915、1916、1917を発行し処
理27−9において補正した白基準値をスキャナヘッド
のSRAM907に書き込む。この後、処理は27−1
1に進む。処理27−11においてプログラムは、コマ
ンド1906を発行し原稿を給紙する。次に処理27−
12においてコマンド1914を発行し読み取り解像度
の設定を行う。次に処理27−13、27−14、27
−15においてプログラムは、コマンド1903を発行
してスキャナ装置に画像読み取り処理を実行させ、画像
データを取得する。この時、スキャン装置は、A/D変
換処理のレファレンスとしてSRAM907に保存され
ている白基準値を使用する。そして、取得したデータを
ハードディスク204上に存在するファイルに保存し、
必要なすべての画像読み込みが終了するまで、この処理
をくり返し実行する。最後に、処理27−16において
プログラムは、コマンド1905を発行し原稿を排紙し
原稿読み取り処理を終了させる。
Next, in process 27-10, the program issues commands 1915, 1916, 1917 and writes the white reference value corrected in process 27-9 in the SRAM 907 of the scanner head. After this, the process is 27-1.
Proceed to 1. In process 27-11, the program issues a command 1906 and feeds a document. Next, process 27-
In 12, the command 1914 is issued to set the reading resolution. Next, processing 27-13, 27-14, 27
In -15, the program issues a command 1903 to cause the scanner device to execute an image reading process, and acquires image data. At this time, the scanning device uses the white reference value stored in the SRAM 907 as a reference for the A / D conversion process. Then, the acquired data is saved in a file existing on the hard disk 204,
This process is repeated until all necessary images have been read. Finally, in process 27-16, the program issues a command 1905, ejects the document, and ends the document reading process.

【0060】以上説明したように、シリアルプリンタの
キャリッジ上に着脱自在なスキャナヘッドカートリッジ
を載せることによって原稿画像を読み取る機能を備え
た、小型、低価格なプリンタ/スキャナ装置において、
周囲環境温度か許容温度変化量を越えた場合、あるい
は、光源の劣化が許容光源劣化量をこえた場合には、白
基準値を再取得することにより、出力を一定にし、安定
した高画質を実現することが可能となる。
As described above, in a small and low-priced printer / scanner device having a function of reading a document image by mounting a detachable scanner head cartridge on the carriage of a serial printer,
If the ambient temperature exceeds the permissible temperature change amount, or if the deterioration of the light source exceeds the permissible light source deterioration amount, the white reference value is re-acquired to make the output constant and provide stable high image quality. It can be realized.

【0061】[0061]

【発明の効果】以上説明したように、第1の発明によれ
ば、基準データの再取得を、画像読み込み時に必ず行う
のではなく、周囲環境温度か許容温度変化量を越えた場
合に限定することによりユーザーの負荷、時間を軽減す
ることが可能となる。
As described above, according to the first invention, the reacquisition of the reference data is not necessarily performed at the time of reading the image, but is limited to the case where the ambient temperature or the allowable temperature change amount is exceeded. This makes it possible to reduce the load on the user and the time.

【0062】また、第2の発明、第3の発明によれば、
基準データの再取得を、画像読み込み時に必ず行うので
はなく、基準データベースにデータが存在しない場合に
限定することによりユーザーの負荷、時間を軽減するこ
とが可能となる。
According to the second and third inventions,
Re-acquisition of the reference data is not necessarily performed when the image is read, but it is possible to reduce the user's load and time by limiting the case where the data does not exist in the reference database.

【0063】また、第4の発明によれば、基準データの
再取得を、画像読み込み時に必ず行うのではなく、基準
データが1度も取得されていない場合に限定することに
よりユーザーの負荷、時間を軽減することが可能とな
る。
According to the fourth aspect of the present invention, the re-acquisition of the reference data is not necessarily performed at the time of reading the image, but is limited to the case where the reference data has not been acquired even once. Can be reduced.

【0064】また、第5発明によれば、基準データの再
取得を、画像読み込み時に必ず行うのではなく、光源の
劣化が許容光源劣化量をこえた場合、基準データベース
にデータが存在しない場合に限定することによりユーザ
ーの負荷、時間を軽減することが可能となる。
Further, according to the fifth aspect of the invention, the reacquisition of the reference data is not always performed at the time of reading the image, but when the deterioration of the light source exceeds the allowable light source deterioration amount, and when the data does not exist in the reference database. By limiting, it becomes possible to reduce the load and time of the user.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態によるシリアルプリンタ/
スキャナ装置内蔵型パソコンの外観図である。
FIG. 1 is a serial printer / according to an embodiment of the invention.
It is an external view of a personal computer with a built-in scanner device.

【図2】シリアルプリンタ/スキャナ装置内蔵型パソコ
ンのブロック図である。
FIG. 2 is a block diagram of a personal computer with a built-in serial printer / scanner device.

【図3】シリアルプリンタ/スキャナ装置の外観図であ
る。
FIG. 3 is an external view of a serial printer / scanner device.

【図4】シリアルプリンタ/スキャナ装置のブロック図
である。
FIG. 4 is a block diagram of a serial printer / scanner device.

【図5】シリアルプリンタ/スキャナコントローラの構
成図である。
FIG. 5 is a configuration diagram of a serial printer / scanner controller.

【図6】シリアルプリンタ/スキャナ装置のIOデータ
レジスタのマップを示す構成図である。
FIG. 6 is a configuration diagram showing a map of an IO data register of the serial printer / scanner device.

【図7】RAM403上の記録データバッファと受信バ
ッファのアドレス領域を示す構成図である。
7 is a configuration diagram showing address areas of a recording data buffer and a receiving buffer on a RAM 403. FIG.

【図8】スキャナヘッドカートリッジの外観図である。FIG. 8 is an external view of a scanner head cartridge.

【図9】スキャナヘッドカートリッジの内部構成を示す
ブロック図である。
FIG. 9 is a block diagram showing an internal configuration of a scanner head cartridge.

【図10】スキャナヘッドカートリッジのスキャンコン
トローラ906内のIOポートレジスタマップの構成図
である。
FIG. 10 is a configuration diagram of an IO port register map in the scan controller 906 of the scanner head cartridge.

【図11】スキャナヘッドカートリッジの光学系部品及
び読み取り反射光の経路を表わした斜視図である。
FIG. 11 is a perspective view showing an optical system component of a scanner head cartridge and a path of read reflected light.

【図12】スキャナヘッドカートリッジの光学系部品及
び読み取り反射光の経路を表わした側面図である。
FIG. 12 is a side view showing an optical system component of a scanner head cartridge and a path of reflected light for reading.

【図13】スキャナヘッドカートリッジの読み取り反射
光の経路の構成図である。
FIG. 13 is a configuration diagram of a path of read reflected light of the scanner head cartridge.

【図14】理想的な光学部の構成と、スキャナヘッドカ
ートリッジの光学部を比較するための構成図である。
FIG. 14 is a configuration diagram for comparing an ideal configuration of an optical section with an optical section of a scanner head cartridge.

【図15】スキャナヘッドカートリッジを用いて画像読
み取りを実行した場合のヘッド動作を示す構成図であ
る。
FIG. 15 is a configuration diagram showing a head operation when an image is read using a scanner head cartridge.

【図16】スキャナ装置の蓄積時間とキャリッジ速度、
及び、ライン方向の読み取り解像度を示す構成図であ
る。
FIG. 16 shows the accumulation time and carriage speed of the scanner device,
FIG. 6 is a configuration diagram showing a reading resolution in the line direction.

【図17】シリアルプリンタ/スキャナ装置内蔵型パソ
コンのホスト200とプリンタ219の情報のやり取り
に私用される専用ステータスポートを示すブロック図で
あ。
FIG. 17 is a block diagram showing a dedicated status port used for exchanging information between the host 200 of the personal computer with a built-in serial printer / scanner device and the printer 219.

【図18】シリアルプリンタ/スキャナ装置内蔵型パソ
コンのホスト200とプリンタ219の情報のやり取り
に私用される専用ステータスポート1を説明する構成図
である。
FIG. 18 is a configuration diagram illustrating a dedicated status port 1 used for exchanging information between a host 200 of a personal computer with a built-in serial printer / scanner device and a printer 219.

【図19】シリアルプリンタ/スキャナ装置における種
々の制御コマンドを示す構成図である。
FIG. 19 is a configuration diagram showing various control commands in the serial printer / scanner apparatus.

【図20】シリアルプリンタ/スキャナ装置内蔵型パソ
コンのホスト200とプリンタ219の情報のやり取り
に私用される専用ステータスポート2を説明する構成図
である。
20 is a configuration diagram illustrating a dedicated status port 2 used for exchanging information between a host 200 of a personal computer with a built-in serial printer / scanner device and a printer 219. FIG.

【図21】シリアルプリンタ/スキャナ装置内蔵型パソ
コンのホスト200とプリンタ219の情報のやり取り
に私用される専用ステータスポート3を説明する構成図
である。
FIG. 21 is a configuration diagram illustrating a dedicated status port 3 used for exchanging information between a host 200 of a personal computer with a built-in serial printer / scanner device and a printer 219.

【図22】 本発明の第1の実施の形態におけるスキャ
ナヘッド装着手順を表わしたフローチャートである。
FIG. 22 is a flowchart showing a scanner head mounting procedure according to the first embodiment of the present invention.

【図23】 本発明の第1の実施の形態における画像読
み取り処理手順を表わしたフローチャートである。
FIG. 23 is a flowchart showing an image reading processing procedure according to the first embodiment of the present invention.

【図24】 本発明の第1の実施の形態におけるVRA
Mワークエリアを説明する構成図である。
FIG. 24 is a VRA according to the first embodiment of the present invention.
It is a block diagram explaining M work area.

【図25】 本発明の第2の実施の形態における画像読
み取り処理手順を表わしたフローチャートである。
FIG. 25 is a flowchart showing an image reading processing procedure according to the second embodiment of the present invention.

【図26】 本発明の第2の実施の形態における白基準
データベースを説明する構成図である。
FIG. 26 is a configuration diagram illustrating a white reference database according to the second embodiment of the present invention.

【図27】 本発明の第3の実施の形態における画像読
み取り処理手順を表わしたフローチャートである。
FIG. 27 is a flowchart showing an image reading processing procedure according to the third embodiment of the present invention.

【図28】 本発明の第3の実施の形態における白基準
データベースを説明する構成図である。
FIG. 28 is a configuration diagram illustrating a white reference database according to the third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

901 原稿 904 CCDセンサ 906 スキャナコントローラIC 908 温度センサ 301 キャリッジ 800 スキャナヘッドカートリッジ 901 Document 904 CCD Sensor 906 Scanner Controller IC 908 Temperature Sensor 301 Carriage 800 Scanner Head Cartridge

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 原稿及び基準面を読み取る光電変換手段
と、 周囲温度を検出する検出手段と、 上記光電変換手段が上記基準面を読み取ったときに検出
された上記温度を記憶する記憶手段と、 上記原稿を読み取る前に検出された温度が上記記憶手段
に記憶された最近の温度から所定量以上変化したときに
上記光電変換手段に上記基準面の読み取りを行わせ、読
み取った値を基準データとして記憶する制御手段とを備
えたスキャナ装置。
1. A photoelectric conversion means for reading a document and a reference surface, a detection means for detecting an ambient temperature, a storage means for storing the temperature detected when the photoelectric conversion means reads the reference surface, When the temperature detected before reading the original changes from the recent temperature stored in the storage means by a predetermined amount or more, the photoelectric conversion means is caused to read the reference surface, and the read value is used as reference data. A scanner device having a control means for storing.
【請求項2】 原稿及び基準面を読み取る光電変換手段
と、 周囲温度を検出する検出手段と、 上記光電変換手段が上記基準面を読み取って得られる基
準データとこの基準データを得たときに検出された温度
とを関連付けたデータベースを作成する作成手段と、 上記データベースとを備えたスキャナ装置。
2. A photoelectric conversion means for reading a document and a reference surface, a detection means for detecting an ambient temperature, reference data obtained by the photoelectric conversion means reading the reference surface, and detection when the reference data is obtained. A scanner device comprising: a creating unit that creates a database that associates the obtained temperature with the database; and the database.
【請求項3】 上記データベースを参照し、上記温度に
関連付けされた基準データがデータベースに存在すれ
ば、その基準データを使用し、関連付けされた基準デー
タがデータベースに存在しなければ基準データを再測定
する制御を行う制御手段を設けた請求項2記載のスキャ
ナ装置。
3. The database is referred to, if reference data associated with the temperature exists in the database, the reference data is used, and the reference data is remeasured if the associated reference data does not exist in the database. The scanner device according to claim 2, further comprising a control unit that performs control for performing.
【請求項4】 原稿及び基準面を読み取る光電変換手段
と、 周囲温度を検出する検出手段と、 上記光電変換手段が上記基準面を読み取って得られる基
準データを上記検出された温度に応じて補正する補正手
段とを備えたスキャナ装置。
4. A photoelectric conversion means for reading a document and a reference surface, a detection means for detecting an ambient temperature, and reference data obtained by reading the reference surface by the photoelectric conversion means is corrected according to the detected temperature. A scanner device including a correction unit for
【請求項5】 原稿及び基準面を読み取る光電変換手段
と、 上記読み取り回数をカウントするカウント手段と、 上記光電変換手段が上記基準面を読み取って得られる基
準データを上記カウント手段のカウント数が所定値を越
えたとき、上記基準データを再測定する制御を行う制御
手段とを備えたスキャナ装置。
5. A photoelectric conversion means for reading a document and a reference surface, a counting means for counting the number of times of reading, reference data obtained by the photoelectric conversion means for reading the reference surface, and a count number of the counting means is predetermined. A scanner device comprising: a control unit that controls to re-measure the reference data when the value exceeds a value.
【請求項6】 上記基準面が白基準面であり、上記基準
データが白基準データである請求項1〜5の何れか1項
に記載のスキャナ装置。
6. The scanner device according to claim 1, wherein the reference surface is a white reference surface, and the reference data is white reference data.
【請求項7】 上記基準面が黒基準面であり、上記基準
データが黒基準データである請求項1〜5の何れか1項
に記載のスキャナ装置。
7. The scanner device according to claim 1, wherein the reference surface is a black reference surface, and the reference data is black reference data.
【請求項8】 上記黒基準面は上記原稿を照明する光源
を消灯したときの面である請求項7記載のスキャナ装
置。
8. The scanner device according to claim 7, wherein the black reference surface is a surface when a light source for illuminating the original is turned off.
【請求項9】 上記光電変換手段がCCDラインセンサ
である請求項1〜5の何れか1項に記載のスキャナ装
置。
9. The scanner device according to claim 1, wherein the photoelectric conversion means is a CCD line sensor.
【請求項10】 上記各手段がカートリッジに収納さ
れ、このカートリッジをプリンタに移動自在に設けられ
たキャリッジに着脱自在に装着する装着手段を設けた請
求項1〜5の何れか1項に記載のスキャナ装置。
10. The cartridge according to claim 1, further comprising mounting means for accommodating the respective means in a cartridge and detachably mounting the cartridge on a carriage movably provided on the printer. Scanner device.
【請求項11】 上記光電変換手段から得られる信号を
デジタル信号に変換するA/D変換手段を設け、上記基
準データに応じて上記A/D変換手段のレファレンス値
を制御するようにした請求項1〜5の何れか1項に記載
のスキャナ装置。
11. An A / D conversion means for converting a signal obtained from the photoelectric conversion means into a digital signal is provided, and a reference value of the A / D conversion means is controlled according to the reference data. The scanner device according to any one of 1 to 5.
【請求項12】 上記原稿及び基準面を照明する光源
と、その反射光を上記光電変換手段に導くレンズとを含
む光学系手段を設けた請求項1〜5の何れか1項に記載
のスキャナ装置。
12. The scanner according to claim 1, further comprising optical system means including a light source for illuminating the original and the reference surface, and a lens for guiding the reflected light to the photoelectric conversion means. apparatus.
【請求項13】 上記光電変換手段から得られる信号を
増幅する増幅手段を設けた請求項1〜5の何れか1項に
記載のスキャナ装置。
13. The scanner device according to claim 1, further comprising amplification means for amplifying a signal obtained from the photoelectric conversion means.
【請求項14】 上記装着手段は上記プリンタと電気的
な接続を行うコンタクト手段を有する請求項10記載の
スキャナ装置。
14. The scanner device according to claim 10, wherein said mounting means includes contact means for electrically connecting with said printer.
【請求項15】 上記カートリッジは、上記キャリッジ
に上記プリンタで用いる印字ヘッドと択一的に装着され
るように成されている請求項10記載のスキャナ装置。
15. The scanner device according to claim 10, wherein the cartridge is mounted on the carriage in an alternative manner to a print head used in the printer.
JP7319288A 1995-12-07 1995-12-07 Scanner device Pending JPH09163077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7319288A JPH09163077A (en) 1995-12-07 1995-12-07 Scanner device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7319288A JPH09163077A (en) 1995-12-07 1995-12-07 Scanner device

Publications (1)

Publication Number Publication Date
JPH09163077A true JPH09163077A (en) 1997-06-20

Family

ID=18108539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7319288A Pending JPH09163077A (en) 1995-12-07 1995-12-07 Scanner device

Country Status (1)

Country Link
JP (1) JPH09163077A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0844784A3 (en) * 1996-11-25 2001-07-18 Canon Kabushiki Kaisha Image reading device, image reading apparatus, and method therefor
US7236265B2 (en) 2001-11-27 2007-06-26 Canon Kabushiki Kaisha Image reading apparatus, image forming system, image reading method, and program therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0844784A3 (en) * 1996-11-25 2001-07-18 Canon Kabushiki Kaisha Image reading device, image reading apparatus, and method therefor
US6958829B2 (en) 1996-11-25 2005-10-25 Canon Kabushiki Kaisha Image reading device, image reading apparatus, and method therefor
US7236265B2 (en) 2001-11-27 2007-06-26 Canon Kabushiki Kaisha Image reading apparatus, image forming system, image reading method, and program therefor

Similar Documents

Publication Publication Date Title
EP0641114B1 (en) Low cost scanner for existing ink jet printer
US4684998A (en) Image reader suitable for manual scanning
US5595445A (en) Hand-held optical scanner
JPH09163136A (en) Scanner device
JP3423532B2 (en) Image reading device
EP0641115A1 (en) Image scanning head for a thermal ink-jet printer
US6648226B2 (en) Image reading apparatus and method
US20050248532A1 (en) Apparatus and method for implementing mouse function and scanner function alternatively
JPH09163077A (en) Scanner device
JPH11344311A (en) Digital camera
JP3478683B2 (en) Image reading apparatus and control method thereof
JPH09163132A (en) Scanner device
JPH09163131A (en) Scanner device
JP3535708B2 (en) Printer / scanner device
JPH11215327A (en) Reading method and reading system
JPH09305740A (en) Scanner device, scanner device control device, scanner device scan method, scanner device scan control method, and storage medium
JP3017713B2 (en) Digital copying method
JP3774550B2 (en) Printer / scanner device
JPH09163076A (en) Image reading device
JPH07283910A (en) Image input device
JP2000295441A (en) Image reader
JPS6132183A (en) Picture data input and output common use device
JP3542443B2 (en) Host computer and data transfer method
JPH09305739A (en) Scanner device, scanner device control device, scanner device scan method, scanner device scan control method, and storage medium
JPS61164367A (en) Portable copying machine