JP2005214805A - Sensor device - Google Patents

Sensor device Download PDF

Info

Publication number
JP2005214805A
JP2005214805A JP2004022000A JP2004022000A JP2005214805A JP 2005214805 A JP2005214805 A JP 2005214805A JP 2004022000 A JP2004022000 A JP 2004022000A JP 2004022000 A JP2004022000 A JP 2004022000A JP 2005214805 A JP2005214805 A JP 2005214805A
Authority
JP
Japan
Prior art keywords
voltage
amplitude
value
signal
output
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
JP2004022000A
Other languages
Japanese (ja)
Inventor
Kazunori Shibata
和則 柴田
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2004022000A priority Critical patent/JP2005214805A/en
Publication of JP2005214805A publication Critical patent/JP2005214805A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a sensor device capable of outputting a stable signal. <P>SOLUTION: A code reader 23 that is the sensor device is constituted of a photosensor 31 of a photoreception element, an I-V conversion circuit 32, a gain regulation amplifier (GCA) 33, an A/D converter 34, and a control circuit 35. A D/A converter 36 and a resistance R are provided in the I-V conversion circuit 32. An output current Ip of the photosensor 31 is converted into a voltage by the I-V conversion circuit 32, and a voltage signal is output to the A/D converter 34 through the GCA 33 to be converted into a digital signal. A control circuit 35 extracts information of the maximum value, the minimum value and an amplitude value from the voltage signal converted into the digital signal, controls an off-set voltage by controlling an output voltage Vda of the A/D converter 34, and controls the GCA 33 to control the amplitude value of the voltage signal. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、電流駆動型センサから安定した出力を得られるように制御を行うセンサ装置に関する。   The present invention relates to a sensor device that performs control so as to obtain a stable output from a current-driven sensor.

従来の技術では、フォトセンサ(電流駆動型センサ)等のセンサから安定した出力を得るために、センサからの出力をI−V(電流−電圧)変換した後に、利得調節増幅器であるGCA(Gain Control Amplifier)により、主信号の振幅を増幅・減衰させている。このような利得調節方式としては、補正パラメータを設定し、この補正パラメータにより閉ループゲインを一定に保つことにより、制御対象の利得が動作状態と共に変化しても、その影響を取り除いて一定の動特性を維持する技術が知られている(例えば、特許文献1参照)。   In the prior art, in order to obtain a stable output from a sensor such as a photosensor (current-driven sensor), the output from the sensor is converted into IV (current-voltage) and then a gain adjusting amplifier GCA (Gain). Control Amplifier) amplifies and attenuates the amplitude of the main signal. As such a gain adjustment method, by setting a correction parameter and keeping the closed loop gain constant by this correction parameter, even if the gain of the controlled object changes with the operating state, the influence is removed and a constant dynamic characteristic is obtained. Is known (see, for example, Patent Document 1).

特開平7−84604号公報JP-A-7-84604

しかしながら、上記特許文献1に記載の技術を電流駆動型センサの出力の利得調節に用いた場合、電流駆動型センサの特性によって発生するオフセット電圧も、主信号と共に増幅・減衰されてしまうため、電流駆動型センサのオフセット電圧により、主信号の電圧値が上限または下限で飽和されてしまうことがあり、安定した出力を得ることが困難である。   However, when the technique described in Patent Document 1 is used for gain adjustment of the output of the current driven sensor, the offset voltage generated due to the characteristics of the current driven sensor is also amplified and attenuated together with the main signal. Due to the offset voltage of the driving sensor, the voltage value of the main signal may be saturated at the upper limit or the lower limit, and it is difficult to obtain a stable output.

本発明は上記問題点を解決するためのもので、電流駆動型のオフセット電圧の影響を受けずに安定した出力を得ることを可能にするセンサ装置を提供することを目的とする。   The present invention has been made to solve the above problems, and an object of the present invention is to provide a sensor device that makes it possible to obtain a stable output without being affected by a current-driven offset voltage.

上記問題点を解決するために、本発明のセンサ装置は、電流駆動型センサの出力電流を電圧に変換する電流電圧変換手段と、この電圧の振幅を制御して電圧信号を出力する利得調節増幅手段と、電圧信号から最大値、最小値、振幅値を求め、これら各値に基づいて、電流電圧変換手段により電圧信号のオフセット電圧を制御し、且つ利得調節増幅手段により電圧信号の振幅を制御する制御手段とを備えることを特徴とするものである。   In order to solve the above-described problems, a sensor device according to the present invention includes a current-voltage conversion unit that converts an output current of a current-driven sensor into a voltage, and gain adjustment amplification that outputs a voltage signal by controlling the amplitude of the voltage. And the maximum value, minimum value, and amplitude value from the voltage signal, and based on these values, the offset voltage of the voltage signal is controlled by the current-voltage conversion means, and the amplitude of the voltage signal is controlled by the gain adjustment amplification means. And a control means for performing the above.

また、前述の電流電圧変換手段を、電流駆動型センサの出力に接続されるオフセット電圧調節用抵抗と、このオフセット電圧調節用抵抗にプルアップ電圧を印加するD/Aコンバータとから構成し、前述の制御手段からの電圧制御信号でプルアップ電圧を変化させ、オフセット電圧を制御することを特徴とするものである。   In addition, the current-voltage conversion means includes an offset voltage adjusting resistor connected to the output of the current-driven sensor and a D / A converter that applies a pull-up voltage to the offset voltage adjusting resistor. The offset voltage is controlled by changing the pull-up voltage with a voltage control signal from the control means.

さらに、前述の制御手段は、電圧信号をデジタル化するA/Dコンバータを備え、デジタル化された電圧信号に基づき最大値、最小値、振幅値を求めることを特徴とするものである。   Further, the control means includes an A / D converter that digitizes a voltage signal, and obtains a maximum value, a minimum value, and an amplitude value based on the digitized voltage signal.

また、前述の制御手段は、電圧信号が、0Vと所定電圧値との間の所定範囲内にあり且つ振幅が所定値以上であるときに、前記D/A変換手段の出力電圧を維持し、電圧信号が前述の所定範囲内にあり且つ振幅が所定値より小さいときに、D/A変換手段の出力電圧を高く、または低くすると共に、利得調節増幅手段により振幅を大きくし、電圧信号の最小電圧が0Vであり且つ振幅が所定値以上であるときに、D/A変換手段の出力電圧を高くし、電圧信号の最小電圧が0Vであり且つ振幅が前記所定値より小さいときに、D/A変換手段の出力電圧を高くすると共に、利得調節増幅手段により振幅を大きくし、電圧信号の最大電圧が所定電圧値であり且つ振幅が所定値以上であるときに、D/A変換手段の出力電圧を低くし、電圧信号の最大電圧が所定電圧値であり且つ振幅が所定値より小さいときに、D/A変換手段の出力電圧を低くすると共に、利得調節増幅手段により振幅を大きくすることを特徴とするものである。前述の所定電圧値は、センサ装置毎に設定されるものであり、出力信号として読取り可能な上限値である。振幅の所定値は、出力信号として読取り可能な最低振幅値であり、例えば、前述の所定電圧値の30%の値を振幅の所定値に設定する。   Further, the control means described above maintains the output voltage of the D / A conversion means when the voltage signal is within a predetermined range between 0 V and a predetermined voltage value and the amplitude is not less than the predetermined value. When the voltage signal is within the above-mentioned predetermined range and the amplitude is smaller than the predetermined value, the output voltage of the D / A conversion means is increased or decreased, and the amplitude is increased by the gain adjustment amplification means to minimize the voltage signal. When the voltage is 0 V and the amplitude is greater than or equal to a predetermined value, the output voltage of the D / A converter is increased, and when the minimum voltage of the voltage signal is 0 V and the amplitude is smaller than the predetermined value, D / When the output voltage of the A conversion means is increased and the amplitude is increased by the gain adjustment amplification means, the output of the D / A conversion means when the maximum voltage of the voltage signal is a predetermined voltage value and the amplitude is greater than or equal to the predetermined value. Reduce the voltage and the voltage signal When and amplitude large voltage is the predetermined voltage value is smaller than the predetermined value, the lower the output voltage of the D / A converting means, characterized in that to increase the amplitude by the gain adjusting amplifier means. The aforementioned predetermined voltage value is set for each sensor device and is an upper limit value that can be read as an output signal. The predetermined value of the amplitude is the lowest amplitude value that can be read as the output signal. For example, a value that is 30% of the predetermined voltage value is set as the predetermined value of the amplitude.

本発明のセンサ装置によれば、電流駆動型センサの出力信号に対して、振幅を制御すると共に、オフセット電圧も制御することにより、オフセット電圧の影響により信号電圧の下限と上限で飽和することを防止できる。また、主信号の振幅のみを増幅することが可能であるため、高品位の信号出力を得ることができる。   According to the sensor device of the present invention, it is possible to saturate at the lower limit and the upper limit of the signal voltage due to the influence of the offset voltage by controlling the amplitude and the offset voltage with respect to the output signal of the current drive type sensor. Can be prevented. In addition, since only the amplitude of the main signal can be amplified, a high-quality signal output can be obtained.

図1は、カラー感熱プリンタ10の構成を示す概略図である。このカラー感熱プリンタ10は、記録媒体として長尺のカラー感熱記録紙11が用いられている。カラー感熱記録紙11は、ロール状に巻かれた記録紙ロール12の形態でカラー感熱プリンタ10にセットされる。この記録紙ロール12のロール芯13の側面には、記録紙サイズや熱感度・定着感度に関する情報を有する記録紙識別コード14が記載されている。この記録紙ロール12は、外周に当接された給紙ローラ15によって回転され、カラー感熱記録紙10の送り出しと巻き戻しとが行われる。   FIG. 1 is a schematic diagram showing the configuration of the color thermal printer 10. The color thermal printer 10 uses a long color thermal recording paper 11 as a recording medium. The color thermal recording paper 11 is set in the color thermal printer 10 in the form of a recording paper roll 12 wound in a roll. On the side surface of the roll core 13 of the recording paper roll 12, a recording paper identification code 14 having information on the recording paper size, thermal sensitivity and fixing sensitivity is described. The recording paper roll 12 is rotated by a paper feed roller 15 in contact with the outer periphery, and the color thermal recording paper 10 is fed out and rewound.

記録紙ロール12の下流側には、カラー感熱記録紙10を挟み込んで搬送する搬送ローラ対16が配置されており、カラー感熱記録紙10を送り出し方向と巻き戻し方向とに往復搬送する。搬送ローラ対16の下流側には、サーマルヘッド17とプラテンローラ18とがカラー感熱記録紙11の搬送経路を挟むように配置されている。サーマルヘッド17の下面には、多数の発熱素子が主走査方向に沿ってライン状に配列された発熱素子アレイ19が形成されており、搬送ローラ対16によって搬送されるカラー感熱記録紙11に圧接し、発熱素子アレイ19の各発熱素子を発熱させて各感熱発色層を発色させる。また、サーマルヘッド17の下流側には、光定着器20が配置されており、カラー感熱記録紙11の記録済みエリアに定着光を照射して各感熱発色層を光定着する。定着器20の下流側には、長尺のカラー感熱記録紙11を記録エリアごとにカットするカッタ21が設けられている。カッタ21の下流側には、カットされたシート状のカラー感熱記録紙11を排出する排紙口22が配置されている。   On the downstream side of the recording paper roll 12, a pair of conveying rollers 16 that sandwich and convey the color thermosensitive recording paper 10 is disposed, and the color thermosensitive recording paper 10 is reciprocally conveyed in the feeding direction and the rewinding direction. A thermal head 17 and a platen roller 18 are arranged on the downstream side of the conveyance roller pair 16 so as to sandwich the conveyance path of the color thermal recording paper 11. A heat generating element array 19 in which a large number of heat generating elements are arranged in a line along the main scanning direction is formed on the lower surface of the thermal head 17, and is pressed against the color thermal recording paper 11 conveyed by the conveying roller pair 16. Then, each heat generating element of the heat generating element array 19 is caused to generate heat, and each heat sensitive coloring layer is colored. Further, an optical fixing device 20 is disposed on the downstream side of the thermal head 17 and irradiates fixing light to the recorded area of the color thermal recording paper 11 to optically fix each thermal coloring layer. A cutter 21 that cuts the long color thermal recording paper 11 for each recording area is provided on the downstream side of the fixing device 20. A paper discharge port 22 for discharging the cut sheet-like color thermal recording paper 11 is disposed on the downstream side of the cutter 21.

前述の記録紙識別コード14は、図2に示すように、10個の黒又は白の矩形枠F1〜F10を一列に並べて形成した、例えば10ビットのコード(b0,b1,・・・b9)で構成されている。第1の矩形枠F1はビットb0を表し、紙種類コードとして用いられる。このビットb0により、記録紙の種別が識別される。第2及び第3矩形枠F2,F3はビットb1,b2を表し、サイズコードとして用いられる。これにより、記録紙のサイズが識別される。第4〜第7の矩形枠F4〜F7はビットb3〜b6を表し、熱感度コードとして用いられる。第8〜第10の矩形枠F8〜F10はビットb7〜b9を表し、定着感度コードとして用いられる。   As shown in FIG. 2, the recording paper identification code 14 is formed by arranging 10 black or white rectangular frames F1 to F10 in a line, for example, a 10-bit code (b0, b1,... B9). It consists of The first rectangular frame F1 represents the bit b0 and is used as a paper type code. The type of recording paper is identified by this bit b0. The second and third rectangular frames F2 and F3 represent bits b1 and b2, and are used as size codes. Thereby, the size of the recording paper is identified. The fourth to seventh rectangular frames F4 to F7 represent bits b3 to b6 and are used as thermal sensitivity codes. The eighth to tenth rectangular frames F8 to F10 represent bits b7 to b9 and are used as fixing sensitivity codes.

コードの識別方法としては、例えば、第1矩形枠F1にて普通紙かシール紙かを識別する場合には、第1矩形枠F1が白枠表示のときにb0が「0」とされ、普通紙と判定される。また、黒枠表示のときにb0が「1」とされ、シール紙と判定される。また、b1,b2が、「0,0」でA5長尺サイズ、「0,1」でA6長尺サイズ、「1,0」でA5カットシートサイズ、「1,1」でA6カットシートサイズというように識別される。   As a code identification method, for example, when identifying whether plain paper or sticker paper is used in the first rectangular frame F1, b0 is set to “0” when the first rectangular frame F1 is displayed as a white frame. Judged as paper. In addition, b0 is set to “1” when the black frame is displayed, and it is determined as the sticker sheet. B1 and b2 are “0,0” for A5 long size, “0,1” for A6 long size, “1,0” for A5 cut sheet size, “1,1” for A6 cut sheet size And so on.

この記録紙識別コード14は、記録紙ロール12の側面に隣接するように設けられたコード読取装置23により読取られる。コード読取装置23は、カラー感熱プリンタ10全体を制御するシステムコントローラ24と接続されている。システムコントローラ24は、コード読取装置23から記録紙種別・サイズ・感度に関する情報を取得する。システムコントローラ24は、サーマルヘッド17と、光定着器20と、給紙ローラ15及び搬送ローラ対16を回転駆動するモータ25とに接続されており、コード読取装置23から取得した情報に基づいて、記録紙種別・サイズ・感度に適合するように各部を制御してプリント処理を実行する。   The recording paper identification code 14 is read by a code reading device 23 provided adjacent to the side surface of the recording paper roll 12. The code reading device 23 is connected to a system controller 24 that controls the entire color thermal printer 10. The system controller 24 acquires information relating to the recording paper type, size, and sensitivity from the code reading device 23. The system controller 24 is connected to the thermal head 17, the optical fixing device 20, and a motor 25 that rotationally drives the paper feed roller 15 and the conveyance roller pair 16, and based on information acquired from the code reader 23. Print processing is executed by controlling each unit so as to match the type, size, and sensitivity of the recording paper.

また、記録紙識別コード23は、ロール芯の側面ではなく、各プリントエリアに対応する裏面に、記録紙識別コード14を予め印刷しても良いし、長尺の感熱記録紙ではなく、シート状のカラー感熱記録紙を使用する場合には、記録紙識別コード14をシートの裏面に印刷しても良い。これらの場合には、コード読取装置23をカラー感熱記録紙11の搬送路の下方に配置して、記録紙識別コード14を読取る。   Further, the recording paper identification code 23 may be printed in advance on the back surface corresponding to each print area, not on the side surface of the roll core, or in the form of a sheet instead of a long thermal recording paper. When the color thermal recording paper is used, the recording paper identification code 14 may be printed on the back surface of the sheet. In these cases, the code reader 23 is arranged below the conveyance path of the color thermal recording paper 11 to read the recording paper identification code 14.

図3は、センサ装置であるコード読取装置23の電気的構成を示すブロック図である。コード読取装置23は、受光素子であるフォトセンサ31と、I−V変換回路32と、利得調節増幅器(GCA)33と、A/Dコンバータ34と、制御回路35とで構成されている。I−V変換回路32内には、D/Aコンバータ36と、抵抗Rが設けられている。   FIG. 3 is a block diagram showing an electrical configuration of the code reading device 23 which is a sensor device. The code reader 23 includes a photosensor 31 that is a light receiving element, an IV conversion circuit 32, a gain adjustment amplifier (GCA) 33, an A / D converter 34, and a control circuit 35. In the IV conversion circuit 32, a D / A converter 36 and a resistor R are provided.

フォトセンサ31の出力はI−V変換回路32、GCA33を通り、A/Dコンバータ34によって数値化される。すなわち、アナログ信号からデジタル信号に変換される。制御回路35は、デジタル信号に変換された信号を取得する。制御回路35は、その信号から振幅電圧、最大電圧、及び最小電圧の情報を取得し、これに基づきD/Aコンバータ36の出力電圧Vdaを制御し、さらにGCA33を制御することにより信号の振幅を制御する。   The output of the photosensor 31 passes through the IV conversion circuit 32 and the GCA 33 and is digitized by the A / D converter 34. That is, an analog signal is converted into a digital signal. The control circuit 35 acquires a signal converted into a digital signal. The control circuit 35 acquires information on the amplitude voltage, the maximum voltage, and the minimum voltage from the signal, controls the output voltage Vda of the D / A converter 36 based on the information, and further controls the GCA 33 to control the amplitude of the signal. Control.

以下に、各信号態様と、この態様に基づいて行うオフセット電圧及び振幅の制御について説明する。フォトセンサ31を流れる電流をIp、I−V変換回路32内の抵抗をR、D/Aコンバータ36の出力電圧をVda,GCA33の入力インピーダンスは無限大で、入力電圧をVin、出力電圧をVo 、電圧利得をGとする。この時、GCA33の出力電圧Vo は[式1]で表すことができる。   Below, each signal aspect and control of the offset voltage and amplitude performed based on this aspect are demonstrated. The current flowing through the photosensor 31 is Ip, the resistance in the IV conversion circuit 32 is R, the output voltage of the D / A converter 36 is Vda, the input impedance of the GCA 33 is infinite, the input voltage is Vin, and the output voltage is Vo The voltage gain is G. At this time, the output voltage Vo of the GCA 33 can be expressed by [Equation 1].

Vo =Vmax−G(VrefーVin)・・・・[式1]     Vo = Vmax−G (Vref−Vin)... [Formula 1]

[式1]において、Vo の出力範囲は0からVmaxまでとする。また、VrefはGCA33の中で使用される比較参照用電圧で、ここではVmax≦Vrefとする。フォトセンサ31は、入力である光の強度に応じてIpを変化させる。よって、光の強弱をIpの電流変化で読取ることができる。フォトセンサ31に変調を加えた光を入力すると、変調に従ってIpは変化し、その変化はI−V変換回路32内の抵抗Rにより電圧に変換され電圧Vrは[式2]で表すことができる。   In [Formula 1], the output range of Vo is from 0 to Vmax. Vref is a comparative reference voltage used in the GCA 33, and here, Vmax ≦ Vref. The photosensor 31 changes Ip according to the intensity of light that is input. Therefore, the intensity of light can be read by the current change of Ip. When modulated light is input to the photosensor 31, Ip changes according to the modulation, and the change is converted into a voltage by the resistance R in the IV conversion circuit 32, and the voltage Vr can be expressed by [Equation 2]. .

Vr=Ip×R ・・・・・・・・・・・・[式2]     Vr = Ip × R (2)

よって、GCA33の入力電圧Vinは[式3]で表すことができる。   Therefore, the input voltage Vin of the GCA 33 can be expressed by [Equation 3].

Vin=Vda−Vr ・・・・・・・・・・・・[式3]     Vin = Vda-Vr [Equation 3]

次に、GCA33の出力電圧Voが下記に示す(1)〜(6)のように変化した場合について、オフセット電圧及び電圧利得の制御を図4及び図5の表を用いて説明する。   Next, when the output voltage Vo of the GCA 33 changes as shown in (1) to (6) below, control of the offset voltage and voltage gain will be described using the tables of FIGS.

(1) Voが0からVmax内であり、振幅電圧が所定値以上の場合。
(2)Voが0からVmax内であるが、振幅電圧所定値より小さい場合。
(3)Voの最小電圧値が0で、振幅電圧が所定値以上の場合。
(4)Voの最小電圧値が0で、振幅電圧が所定値より小さい場合。
(5)Voの最大電圧値がVmaxで、振幅電圧が所定値以上の場合。
(6)Voの最大電圧値がVmaxで、振幅電圧が所定値より小さい場合。
(1) When Vo is in the range of 0 to Vmax and the amplitude voltage is a predetermined value or more.
(2) When Vo is within 0 to Vmax, but is smaller than the predetermined amplitude voltage.
(3) When the minimum voltage value of Vo is 0 and the amplitude voltage is a predetermined value or more.
(4) When the minimum voltage value of Vo is 0 and the amplitude voltage is smaller than a predetermined value.
(5) When the maximum voltage value of Vo is Vmax and the amplitude voltage is greater than or equal to a predetermined value.
(6) When the maximum voltage value of Vo is Vmax and the amplitude voltage is smaller than a predetermined value.

ここで、Vmaxとは、出力信号として読取り可能な上限値であり、センサ装置毎に設定される値である。振幅電圧の所定値は、出力信号として読取り可能な最低振幅値であり、例えば、Vmaxの30%の値を振幅の所定値に設定する。   Here, Vmax is an upper limit value that can be read as an output signal, and is a value set for each sensor device. The predetermined value of the amplitude voltage is the lowest amplitude value that can be read as an output signal. For example, a value of 30% of Vmax is set as the predetermined value of the amplitude.

(1)の場合、すなわちVoが0からVmaxの範囲内であり、且つ振幅電圧も所定値以上の場合には、制御回路35はVoの振幅が読取り可能であると判定して、オフセット電圧及び電圧利得の制御を行わずに、現在の利得G、D/Aコンバータ36の出力電圧Vdaで出力Voを得る。   In the case of (1), that is, when Vo is in the range of 0 to Vmax and the amplitude voltage is equal to or greater than a predetermined value, the control circuit 35 determines that the amplitude of Vo can be read, and the offset voltage and Without controlling the voltage gain, the output Vo is obtained with the current gain G and the output voltage Vda of the D / A converter 36.

(2)の場合、すなわちVoが0からVmaxの範囲内であり、且つ振幅電圧が所定値より小さい場合には、制御回路35はVoの振幅が小さい為、そのままの出力から正確な信号を読取ることができないと判定する。従来技術の制御方法では、GCA33のみを制御してゲインGを大きくして振幅を増加させるだけである。しかし、ゲインGを大きくするだけでは、Voの振幅が大きくなって、電圧の下限値が0以下となって電圧の下限で飽和する可能性がある。このため、GCA33を制御してゲインGを大きくすると同時に、D/Aコンバータ36の出力電圧Vdaを制御して出力電圧Voを制御する。I−V変換回路32のVrは[式2]より一定であるため、Vinの電圧はΔVda(Vdaの変化分)だけ変化するため、出力電圧Voは、G・ΔVda分信号が増加方向にシフトされる。これにより、出力Voが0以下になることを防ぐことができる。また、ゲインGを上げたことによりVoの振幅電圧幅も適正な値へ制御することが可能となり、安定した出力を得ることができる。   In the case of (2), that is, when Vo is in the range of 0 to Vmax and the amplitude voltage is smaller than the predetermined value, the control circuit 35 reads an accurate signal from the output as it is because the amplitude of Vo is small. Judge that it is not possible. In the conventional control method, only the GCA 33 is controlled, and the gain G is increased to increase the amplitude. However, simply increasing the gain G may increase the amplitude of Vo, lower the voltage lower limit value to 0 or less, and saturate at the lower voltage limit. Therefore, the GCA 33 is controlled to increase the gain G, and at the same time, the output voltage Vda of the D / A converter 36 is controlled to control the output voltage Vo. Since Vr of the IV conversion circuit 32 is constant from [Equation 2], the voltage of Vin changes by ΔVda (the amount of change of Vda), so that the output voltage Vo is shifted in the direction of increase by G · ΔVda. Is done. This can prevent the output Vo from becoming 0 or less. Further, by increasing the gain G, the amplitude voltage width of Vo can be controlled to an appropriate value, and a stable output can be obtained.

(3)の場合、すなわちVoの最小電圧値が0で、振幅電圧が所定値以上の場合には、Voの振幅電圧は十分であるが、Voの最小電圧が0であるため電圧の下限で飽和している可能性があり、正確な信号を読取ることができないと判定する。従来技術ではゲインGを下げるだけで対応していたが、振幅が小さくなってしまうため、この場合には、ゲインGはそのままで、D/Aコンバータ36の出力電圧Vdaが高くなるように制御する。その結果Vinが高くなり、[式1]より出力Voの振幅電圧幅はそのままで、最小値を0以上に制御することが可能となる。これにより、電圧の下限で飽和されることがないので、安定した出力を得ることができる。   In the case of (3), that is, when the minimum voltage value of Vo is 0 and the amplitude voltage is greater than or equal to a predetermined value, the amplitude voltage of Vo is sufficient, but the minimum voltage of Vo is 0. It is determined that the signal may be saturated and an accurate signal cannot be read. In the prior art, this is dealt with only by reducing the gain G. However, since the amplitude becomes small, in this case, the gain G remains unchanged and the output voltage Vda of the D / A converter 36 is controlled to be high. . As a result, Vin becomes high, and it is possible to control the minimum value to 0 or more while maintaining the amplitude voltage width of the output Vo from [Equation 1]. Thereby, since it is not saturated with the minimum of a voltage, the stable output can be obtained.

(4)の場合、すなわちVoの最小電圧値が0で、振幅電圧が所定値より小さい場合には、制御回路35はVoの最小値が0で、振幅電圧が小さいため、そのままの出力では正確な信号を読取ることができないと判定する。従来技術の制御方法では、I−V変換回路32の抵抗Rの値を変更し対応していた。しかし、本発明では、GCA33を制御してゲインGを大きくし、D/Aコンバータ36の出力電圧Vdaを高く制御することにより、出力Voの最小値を0以上とし、振幅電圧幅も適正な値へ制御することが可能となる。これにより、電圧の下限で飽和されることがないので、安定した出力を得ることができる。   In the case of (4), that is, when the minimum voltage value of Vo is 0 and the amplitude voltage is smaller than the predetermined value, the control circuit 35 has a minimum value of Vo and the amplitude voltage is small. It is determined that a correct signal cannot be read. In the control method of the prior art, the value of the resistance R of the IV conversion circuit 32 is changed to cope with it. However, in the present invention, the GCA 33 is controlled to increase the gain G, and the output voltage Vda of the D / A converter 36 is controlled to be high so that the minimum value of the output Vo is 0 or more and the amplitude voltage width is also an appropriate value. Can be controlled. Thereby, since it is not saturated with the minimum of a voltage, the stable output can be obtained.

(5)の場合、すなわちVoの最大電圧値がVmaxで、振幅電圧が所定値以上の場合には、制御回路35はVoの最大値がVmaxで、振幅電圧が十分にあるが、電圧の上限で飽和している可能性があるため、そのままの出力では正確な信号を読取ることができないと判定する。従来技術の制御方法ではI−V変換回路32の抵抗Rの値を変更して対応していた。しかし、本発明では、制御回路35は、ゲインGはそのままで、D/Aコンバータ36の出力電圧Vdaを低くなるように制御する。この結果、Vinが低くなり、出力Voの振幅電圧幅はそのままで、最大値をVmax以下に制御することが可能となる。これにより、電圧の上限で飽和されることがないので、安定した出力を得ることができる。   In the case of (5), that is, when the maximum voltage value of Vo is Vmax and the amplitude voltage is greater than or equal to a predetermined value, the control circuit 35 has a maximum value of Vo of Vmax and the amplitude voltage is sufficient, but the upper limit of the voltage Therefore, it is determined that an accurate signal cannot be read with the output as it is. In the conventional control method, the value of the resistance R of the IV conversion circuit 32 is changed. However, in the present invention, the control circuit 35 controls the output voltage Vda of the D / A converter 36 to be low while keeping the gain G as it is. As a result, Vin becomes low, and the maximum value can be controlled to Vmax or less while the amplitude voltage width of the output Vo remains unchanged. Thereby, since it is not saturated at the upper limit of a voltage, the stable output can be obtained.

(6)の場合、すなわちVoの最大電圧値がVmaxで、振幅電圧が所定値より小さい場合には、制御回路35はVoの最大値がVmaxで、振幅電圧が小さいため、そのままの出力では正確な信号を読取ることができないと判定する。従来技術の制御方法では、制御回路35がゲインGを大きくするのみであったが、本発明では、制御回路35がゲインGを大きくすると共に、D/Aコンバータ36の出力電圧Vdaを低くなるように制御する。この結果、Vinが低くなり、出力Voは、Vmaxより低くなり、振幅電圧幅も適正な値へ制御することが可能となる。これにより、電圧の上限で飽和されることがないので、安定した出力を得ることができる。   In the case of (6), that is, when the maximum voltage value of Vo is Vmax and the amplitude voltage is smaller than the predetermined value, the control circuit 35 is accurate with the output as it is because the maximum value of Vo is Vmax and the amplitude voltage is small. It is determined that a correct signal cannot be read. In the control method of the prior art, the control circuit 35 only increases the gain G. However, in the present invention, the control circuit 35 increases the gain G and decreases the output voltage Vda of the D / A converter 36. To control. As a result, Vin becomes low, the output Vo becomes lower than Vmax, and the amplitude voltage width can be controlled to an appropriate value. Thereby, since it is not saturated at the upper limit of a voltage, the stable output can be obtained.

以上説明したように、(1)〜(6)のそれぞれの場合において、オフセット電圧を制御することにより、オフセット電圧の影響を無くして信号電圧の下限と上限での飽和を防止できる。また、主信号の振幅のみを増幅することが可能であり、高品位の信号出力を得ることができる。また、カラー感熱プリンタ10のシステムコントローラ24が、コード情報を高品位の信号で取得できるため、誤った制御を行うことなく、コード情報に対応する適正な処理を実行することが可能である。   As described above, in each of the cases (1) to (6), by controlling the offset voltage, it is possible to eliminate the influence of the offset voltage and prevent saturation at the lower limit and the upper limit of the signal voltage. In addition, only the amplitude of the main signal can be amplified, and a high-quality signal output can be obtained. Further, since the system controller 24 of the color thermal printer 10 can acquire the code information with a high-quality signal, it is possible to execute an appropriate process corresponding to the code information without performing erroneous control.

次にコード読取装置23の作用について、図6のフローチャートを用いて説明を行う。フォトセンサ31は、入力である光を受光して、光を電流信号に変換する。この電流信号は、I−V変換回路32にて電圧に変換され、GCA33を介してA/Dコンバータ34に出力される。A/Dコンバータ34は、この電圧信号をデジタル信号に変換して制御回路35に出力する。   Next, the operation of the code reading device 23 will be described using the flowchart of FIG. The photosensor 31 receives input light and converts the light into a current signal. This current signal is converted into a voltage by the IV conversion circuit 32 and output to the A / D converter 34 via the GCA 33. The A / D converter 34 converts this voltage signal into a digital signal and outputs it to the control circuit 35.

制御回路35は、取得した電圧信号から振幅電圧、最大電圧、最小電圧を抽出して補正処理を行う。最初に、信号電圧Voが0V<Vo<Vmaxの範囲内にあるか否かを判定する。0V<Vo<Vmaxの範囲内であると判定された場合には、さらに振幅電圧が所定値以上か否かの判定を行い、所定値以上であると判定された場合には、D/Aコンバータの出力であるVdaをそのまま出力して補正処理を終了する。また、所定値より小さいと判定された場合には、GCA33を制御してゲインGを大きくし、さらに、Vdaを制御して信号電圧の上限または下限で信号電圧が飽和されるのを防止して信号電圧を出力することにより補正処理を終了する。   The control circuit 35 extracts the amplitude voltage, the maximum voltage, and the minimum voltage from the acquired voltage signal and performs correction processing. First, it is determined whether or not the signal voltage Vo is within the range of 0V <Vo <Vmax. If it is determined that 0V <Vo <Vmax is within the range, it is further determined whether or not the amplitude voltage is equal to or greater than a predetermined value. If it is determined that the amplitude voltage is equal to or greater than the predetermined value, the D / A converter is determined. The output Vda is output as it is, and the correction process is terminated. If it is determined that the signal voltage is smaller than the predetermined value, the GCA 33 is controlled to increase the gain G, and the Vda is controlled to prevent the signal voltage from being saturated at the upper or lower limit of the signal voltage. The correction process is completed by outputting the signal voltage.

また、電圧Voが0V<Vo<Vmaxの範囲内ではないと判定された場合には、電圧Voの最小電圧値が0Vであるか否かの判定を行う。最小電圧値が0Vでないと判定された場合には、電圧Voの最大値がVmaxであるか否かを判定する処理に進む。最小電圧値が0Vであると判定された場合には、さらに振幅電圧が所定値以上か否かの判定を行う。所定値以上でないと判定された場合には、GCA33を制御してゲインGを大きくする。所定値以上であると判定された場合には、ゲインGの制御を行わない。その後、I−V変換回路32を制御してVdaを高くして次の処理に進む。   When it is determined that the voltage Vo is not within the range of 0V <Vo <Vmax, it is determined whether or not the minimum voltage value of the voltage Vo is 0V. When it is determined that the minimum voltage value is not 0 V, the process proceeds to a process for determining whether or not the maximum value of the voltage Vo is Vmax. When it is determined that the minimum voltage value is 0 V, it is further determined whether or not the amplitude voltage is equal to or greater than a predetermined value. If it is determined that it is not equal to or greater than the predetermined value, the gain G is increased by controlling the GCA 33. When it is determined that the value is equal to or greater than the predetermined value, the gain G is not controlled. Thereafter, the IV conversion circuit 32 is controlled to increase Vda and proceed to the next processing.

その後、電圧Voの最大値がVmaxであるか否かの判定を行う。最大値がVmaxでないと判定された場合には、信号を出力して補正処理を終了する。最大値がVmaxであると判定された場合には、振幅電圧が所定値以上であるか否かの判定を行う。振幅電圧が所定値より小さいと判定された場合には、GCA33を制御してゲインGを大きくする。振幅電圧が所定値以上であると判定された場合には、ゲインGの制御を行わない。その後、I−V変換回路32を制御してVdaを低くして出力して補正処理を終了する。   Thereafter, it is determined whether or not the maximum value of the voltage Vo is Vmax. If it is determined that the maximum value is not Vmax, a signal is output and the correction process is terminated. When it is determined that the maximum value is Vmax, it is determined whether or not the amplitude voltage is equal to or greater than a predetermined value. If it is determined that the amplitude voltage is smaller than the predetermined value, the gain G is increased by controlling the GCA 33. When it is determined that the amplitude voltage is greater than or equal to the predetermined value, the gain G is not controlled. Thereafter, the IV conversion circuit 32 is controlled to lower Vda and output, and the correction process is terminated.

このようにフォトセンサ31の出力レベル及び振幅が変動しても、これを修正して常に一定レベル及び振幅の信号を出力することができるため、記録紙識別コード14とフォトセンサ31との距離がロール芯13の回転に伴って変動する場合でも、確実に記録紙識別コード14を読取ることができる。   Thus, even if the output level and amplitude of the photosensor 31 fluctuate, it can be corrected and a signal with a constant level and amplitude can always be output, so the distance between the recording sheet identification code 14 and the photosensor 31 is Even when the roll core 13 changes as the roll core 13 rotates, the recording paper identification code 14 can be read reliably.

なお、本実施形態においては、本発明のセンサ装置をカラー感熱プリンタのコード読取装置に用いて説明したが、これに限るものではなく、他の様々な機器に適用できる。また、電流駆動型センサとしてフォトセンサを用いた場合について説明したが、他の電流駆動型センサを用いても良い。   In the present embodiment, the sensor device of the present invention is described as being used in a code reading device of a color thermal printer. However, the present invention is not limited to this and can be applied to various other devices. Further, although the case where the photosensor is used as the current drive type sensor has been described, other current drive type sensors may be used.

カラー感熱プリンタ10の構成を示す概略図である。1 is a schematic diagram illustrating a configuration of a color thermal printer 10. FIG. 記録紙識別コードを示す説明図である。It is explanatory drawing which shows a recording paper identification code. コード読取装置の構成を示すブロック図である。It is a block diagram which shows the structure of a code reader. 信号電圧の補正を説明する表である。It is a table | surface explaining correction | amendment of a signal voltage. 信号電圧の補正を説明する表である。It is a table | surface explaining correction | amendment of a signal voltage. 信号電圧の補正処理を説明するフローチャートである。It is a flowchart explaining the correction process of a signal voltage.

符号の説明Explanation of symbols

10 カラー感熱プリンタ
23 コード読取装置
24 システムコントローラ
31 フォトセンサ
32 I−V変換回路
33 GCA
34 A/Dコンバータ
35 制御回路
36 D/Aコンバータ
DESCRIPTION OF SYMBOLS 10 Color thermal printer 23 Code reader 24 System controller 31 Photo sensor 32 IV conversion circuit 33 GCA
34 A / D converter 35 Control circuit 36 D / A converter

Claims (4)

電流駆動型センサの出力電流を電圧に変換する電流電圧変換手段と、前記電圧の振幅を制御して電圧信号を出力する利得調節増幅手段と、前記電圧信号から最大値、最小値、振幅値を求め、これら各値に基づいて、前記電流電圧変換手段により前記電圧信号のオフセット電圧を制御し、且つ前記利得調節増幅手段により前記電圧信号の振幅を制御する制御手段とを備えることを特徴とするセンサ装置。   Current-voltage conversion means for converting the output current of the current-driven sensor into voltage, gain adjustment amplification means for controlling the amplitude of the voltage and outputting a voltage signal, and the maximum value, minimum value, and amplitude value from the voltage signal And a control means for controlling the offset voltage of the voltage signal by the current-voltage converting means and controlling the amplitude of the voltage signal by the gain adjusting and amplifying means on the basis of these values. Sensor device. 前記電流電圧変換手段を、前記電流駆動型センサの出力に接続されるオフセット電圧調節用抵抗と、このオフセット電圧調節用抵抗にプルアップ電圧を印加するD/Aコンバータとから構成し、前記制御手段からの電圧制御信号で前記プルアップ電圧を変化させ、前記オフセット電圧を制御することを特徴とする請求項1記載のセンサ装置。   The current / voltage converting means comprises an offset voltage adjusting resistor connected to the output of the current drive type sensor and a D / A converter for applying a pull-up voltage to the offset voltage adjusting resistor, and the control means The sensor device according to claim 1, wherein the offset voltage is controlled by changing the pull-up voltage in accordance with a voltage control signal from. 前記制御手段は、前記電圧信号をデジタル化するA/Dコンバータを備え、デジタル化された電圧信号に基づき前記最大値、最小値、振幅値を求めることを特徴とする請求項1または請求項2記載のセンサ装置。   The said control means is equipped with the A / D converter which digitizes the said voltage signal, and calculates | requires the said maximum value, the minimum value, and an amplitude value based on the digitized voltage signal. The sensor device described. 前記制御手段は、前記電圧信号が、0Vと所定電圧値との間の所定範囲内にあり且つ振幅が所定値以上であるときに、前記D/A変換手段の出力電圧を維持し、
前記電圧信号が前記所定範囲内にあり且つ振幅が前記所定値より小さいときに、前記D/A変換手段の出力電圧を高く、または低くすると共に、前記利得調節増幅手段により振幅を大きくし、
前記電圧信号の最小電圧が0Vであり且つ振幅が前記所定値以上であるときに、前記D/A変換手段の出力電圧を高くし、
前記電圧信号の最小電圧が0Vであり且つ振幅が前記所定値より小さいときに、前記D/A変換手段の出力電圧を高くすると共に、前記利得調節増幅手段により振幅を大きくし、
前記電圧信号の最大電圧が前記所定電圧値であり且つ振幅が前記所定値以上であるときに、前記D/A変換手段の出力電圧を低くし、
前記電圧信号の最大電圧が前記所定電圧値であり且つ振幅が前記所定値より小さいときに、前記D/A変換手段の出力電圧を低くすると共に、前記利得調節増幅手段により振幅を大きくすることを特徴とする請求項2または請求項3記載のセンサ装置。
The control means maintains the output voltage of the D / A conversion means when the voltage signal is within a predetermined range between 0 V and a predetermined voltage value and the amplitude is not less than a predetermined value,
When the voltage signal is within the predetermined range and the amplitude is smaller than the predetermined value, the output voltage of the D / A conversion unit is increased or decreased, and the amplitude is increased by the gain adjustment amplification unit,
When the minimum voltage of the voltage signal is 0V and the amplitude is not less than the predetermined value, the output voltage of the D / A conversion means is increased,
When the minimum voltage of the voltage signal is 0V and the amplitude is smaller than the predetermined value, the output voltage of the D / A conversion unit is increased, and the amplitude is increased by the gain adjustment amplification unit,
When the maximum voltage of the voltage signal is the predetermined voltage value and the amplitude is not less than the predetermined value, the output voltage of the D / A conversion means is lowered,
When the maximum voltage of the voltage signal is the predetermined voltage value and the amplitude is smaller than the predetermined value, the output voltage of the D / A conversion means is lowered and the amplitude is increased by the gain adjustment amplification means. The sensor device according to claim 2 or 3, characterized in that
JP2004022000A 2004-01-29 2004-01-29 Sensor device Pending JP2005214805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004022000A JP2005214805A (en) 2004-01-29 2004-01-29 Sensor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004022000A JP2005214805A (en) 2004-01-29 2004-01-29 Sensor device

Publications (1)

Publication Number Publication Date
JP2005214805A true JP2005214805A (en) 2005-08-11

Family

ID=34905471

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004022000A Pending JP2005214805A (en) 2004-01-29 2004-01-29 Sensor device

Country Status (1)

Country Link
JP (1) JP2005214805A (en)

Similar Documents

Publication Publication Date Title
US6191873B1 (en) Image reading device, image reading apparatus, and method therefor
US7616351B2 (en) Image reading device
US6095417A (en) Apparatus and method for reading bar codes on a moving web
KR100279863B1 (en) Printer having image scanning device
JP3833788B2 (en) Calibration method for optical sensor system
JP2007314273A (en) Image forming device
JP4136124B2 (en) Method for detecting end position of recording paper using reflection type optical sensor and image forming apparatus
JP2005214805A (en) Sensor device
JP5962097B2 (en) Recording material discrimination sensor and image forming apparatus
JP5806577B2 (en) Recording apparatus, control method, and measuring apparatus
US20060151682A1 (en) Scanner and calibration method used therein
JP4072495B2 (en) Sheet detection device
JP2012225735A (en) Mark detection device, mark detection method, and image creation and cutout apparatus
JP5817312B2 (en) Image reading apparatus and image forming apparatus
US9778458B2 (en) Software control of LED illumination output for improved yield and latitude
JP2011215028A (en) Printer, method of determining light intensity and light reception sensitivity, and program
JP2007210747A (en) Edge detector, printer, edge detection method and print control method
JP2008059113A (en) Paper sheet discriminating apparatus
JPH0699638A (en) Register mark detection method
JPH054369A (en) Thermal printer
JP6992514B2 (en) Scanner control program and scanner control method
JP2005322678A (en) Device for driving light-emitting element, and optical scanner
JP2007090614A (en) Print head control method, print head control device, and printer
JP2006281450A (en) Thermal transfer printer apparatus
JP2000185431A (en) Optical scanner and method for monitoring scanning light beam

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060515

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061221

A977 Report on retrieval

Effective date: 20080311

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20080319

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080924