JPH0773262A - Form mark detecting system - Google Patents

Form mark detecting system

Info

Publication number
JPH0773262A
JPH0773262A JP5219990A JP21999093A JPH0773262A JP H0773262 A JPH0773262 A JP H0773262A JP 5219990 A JP5219990 A JP 5219990A JP 21999093 A JP21999093 A JP 21999093A JP H0773262 A JPH0773262 A JP H0773262A
Authority
JP
Japan
Prior art keywords
bias
voltage
information
detection
adjustment
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.)
Withdrawn
Application number
JP5219990A
Other languages
Japanese (ja)
Inventor
Sumio Watanabe
寿美男 渡辺
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5219990A priority Critical patent/JPH0773262A/en
Publication of JPH0773262A publication Critical patent/JPH0773262A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To improve the recognizing rate for detection of a form mark and then to improve the mark detecting reliability by automatically control and correct the detecting sensitivity against the fluctuation of the power voltage, the fluctuation of a form medium, the fluctuation of the detecting environment caused by the processing. CONSTITUTION:The stable reference voltage Vo is generated and supplied to the photosensors 13A and 13B against the fluctuation of the power voltage VB. Meanwhile the drive information S1 and S2 are supplied to the bias control units 14-17 from a memory 11 via a control part 10. The bias currents of the photosensors 13A and 13B are automatically controlled at each optimum level in accordance with the attribute of a form bearing a mark. Then the voltage detecting circuits 18 and 19 detect the corresponding bias voltage and digitize these bias voltages to supply them to the part 10. Based on these digitized information, the optimum drive information is selected and supplied to the units 14-17.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、用紙マーク検出方式に
係り、特に、POS機器、携帯機器等の帳票上に頁区切
りのマークを有する媒体(用紙)に対して用紙の頭出し
または終了を検出するための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a paper mark detection system, and more particularly, to the beginning or end of a paper for a medium (paper) having a page break mark on a form such as a POS device or a portable device. A technique for detecting.

【0002】[0002]

【従来の技術】近年、POS機器、携帯機器等は高性能
且つ高品質化が要求され、複数のセンサによる高信頼度
の検出が要求されている。しかしその一方で、小型軽量
化に対する要求も高まってきており、これに対処するた
め、1個のセンサを用いて複数の状態を検出する方式が
提案されている。
2. Description of the Related Art In recent years, POS equipment, portable equipment and the like are required to have high performance and high quality, and highly reliable detection by a plurality of sensors is required. On the other hand, however, there is an increasing demand for reduction in size and weight, and in order to cope with this, a method of detecting a plurality of states using one sensor has been proposed.

【0003】しかしながら、以下に記述するように、使
用する用紙媒体自身も多様化しており、係る多様化に応
じた広範囲に亘るマーク検出を高信頼度で行うことが困
難となってきている。すなわち、用紙媒体には、薄手の
媒体、厚手の媒体、光沢の有る媒体、光沢の無い媒体、
プレ印刷媒体、無地媒体、白地媒体、カラー媒体、印字
面にマークの有る媒体、裏面にマークの有る媒体、綴じ
込み穴の明いた媒体、綴じ込み穴の無い媒体等、多様な
媒体が含まれる。例えば透過型センサを用いた場合、薄
手の媒体では透過性が高く、厚手の媒体では透過性が低
いことから検出レベルが変化する。よって、ユーザが任
意に媒体を選定する場合には検出レベルが変動すること
から、現調等が必要になるといった不都合がある。ま
た、反射型センサを使用する場合、光沢の有る媒体と無
い媒体とでは反射光量がそれぞれ異なることから、同様
の問題が発生する。さらに、綴じ込み穴の有る媒体と無
い媒体とでは、マーク検出部分に穴が重なる場合、穴が
外れている場合、白地部分に穴が明いている場合、マー
クに掛かって穴が明いている場合等でそれぞれ、マーク
検出位置のずれが発生する。また、媒体表面にゴミが付
着している場合には誤検出を行うといった問題もある。
このような状況から、複数の媒体に対して安定した検出
方式が要望されている。
However, as will be described below, the paper medium itself used is also diversified, and it has become difficult to perform mark detection over a wide range according to the diversification with high reliability. That is, the paper medium includes thin media, thick media, glossy media, non-glossy media,
Various media such as pre-printed media, plain media, white media, color media, media with marks on the printed surface, media with marks on the back side, media with binding holes, media without binding holes, etc. are included. For example, when a transmissive sensor is used, the detection level changes because the thin medium has high transmissivity and the thick medium has low transmissivity. Therefore, when the user arbitrarily selects the medium, the detection level varies, and there is the inconvenience that the current tone or the like is required. Further, when the reflection type sensor is used, the same problem occurs because the amount of reflected light is different between the medium having gloss and the medium having no gloss. Furthermore, for media with and without binding holes, if the holes overlap the mark detection area, if the holes are disengaged, if there is a hole in the white background, if there is a hole on the mark, etc. Therefore, the mark detection position is displaced. There is also a problem that erroneous detection is performed when dust adheres to the medium surface.
Under such circumstances, there is a demand for a stable detection method for a plurality of media.

【0004】従来、上述したような媒体の変化に対して
種々の用紙マーク検出方式が提案されている。その一例
は図2に示される。図示の回路は、用紙マーク検出方式
が適用される例えばプリンタ装置におけるフォトセンサ
ブロックの構成を示す。このフォトセンサブロックは、
電源ラインVBとグランド間に直列に接続されたフォト
ダイオードD1およびバイアス用可変抵抗器R1と、同
じく電源ラインVBとグランド間に直列に接続されたフ
ォトトランジスタTR1およびバイアス用可変抵抗器R
2とを有している。なお、図示はしないが、フォトダイ
オードD1とフォトトランジスタTR1の間には検出対
象であるマークを有する用紙が介在している。この用紙
マークは、フォトトランジスタTR1のエミッタより出
力される検出電圧によりその有無、位置等が指示され
る。
Conventionally, various paper mark detection methods have been proposed for the above-mentioned changes in the medium. An example is shown in FIG. The circuit shown in the figure shows the configuration of a photo sensor block in a printer, for example, to which the paper mark detection method is applied. This photo sensor block is
Photodiode D1 and bias variable resistor R1 connected in series between power supply line VB and ground, and phototransistor TR1 and bias variable resistor R connected in series between power supply line VB and ground.
2 and. Although not shown, a sheet having a mark to be detected is interposed between the photodiode D1 and the phototransistor TR1. The presence / absence, position, etc. of this paper mark are indicated by the detection voltage output from the emitter of the phototransistor TR1.

【0005】図2の構成によれば、可変抵抗器R1を調
整することによりフォトダイオードD1の光量(つまり
発光特性)を変えることができ、また、可変抵抗器R2
を調整することによりフォトトランジスタTR1の増幅
率(つまり感度特性)を変えることができる。従って、
用紙媒体による反射光や透過光の量を調整することがで
き、当該用紙媒体の属性に応じた最適な検出電圧レベル
を設定することが可能である。
According to the configuration of FIG. 2, the light quantity (that is, the light emission characteristic) of the photodiode D1 can be changed by adjusting the variable resistor R1, and the variable resistor R2 can be changed.
Can be adjusted to change the amplification factor (that is, sensitivity characteristic) of the phototransistor TR1. Therefore,
The amount of reflected light or transmitted light from the paper medium can be adjusted, and the optimum detection voltage level can be set according to the attribute of the paper medium.

【0006】図3には用紙マーク検出方式の他の例が示
される。この従来例では、図2の方式で用いられた可変
抵抗器R1,R2の代わりに、フォトダイオードD2と
フォトトランジスタTR2に対してそれぞれ複数の抵抗
器R11〜R1nおよびR21〜R2mを並列に設け、さらに、
フォトダイオードD2とフォトトランジスタTR2に対
してそれぞれバイアス用抵抗を択一的に選択するための
ゲート回路22と、該ゲート回路を制御する手段(CP
U)21とを備えている。
FIG. 3 shows another example of the paper mark detection method. In this conventional example, instead of the variable resistors R1, R2 used in the manner of FIG. 2, respectively the photo diode D2 and the phototransistor TR2 a plurality of resistors R 11 to R 1n and R 21 to R 2m They are installed in parallel,
A gate circuit 22 for selectively selecting a bias resistor for the photodiode D2 and the phototransistor TR2, and a means (CP) for controlling the gate circuit.
U) 21.

【0007】図3の構成によれば、CPU21とゲート
回路22の協働作用により、フォトダイオードD2側の
バイアス用抵抗R11〜R1nおよびフォトトランジスタT
R2側のバイアス用抵抗R21〜R2mを可変に調整するこ
とができる。つまり、フォトダイオードD2の光量とフ
ォトトランジスタTR2の増幅率をそれぞれプログラマ
ブルに変えることが可能である。
According to the configuration shown in FIG. 3, the biasing resistors R 11 to R 1n and the phototransistor T on the side of the photodiode D2 are operated by the cooperation of the CPU 21 and the gate circuit 22.
The bias resistor R 21 to R 2m of R2 side can be variably adjusted. That is, it is possible to programmably change the light amount of the photodiode D2 and the amplification factor of the phototransistor TR2.

【0008】図4には用紙マーク検出方式の更に他の例
が示される。この従来例では、図2の方式における可変
抵抗器R1,R2を固定の抵抗器R3,R4に置き換
え、さらに、検出電圧の比較判定を行うためのコンパレ
ータ25と、該コンパレータに基準電圧を与えるための
D/Aコンバータ(DAC)24と、該D/Aコンバー
タを制御するCPU23とを備えている。
FIG. 4 shows still another example of the paper mark detection method. In this conventional example, the variable resistors R1 and R2 in the system of FIG. 2 are replaced with fixed resistors R3 and R4, and further, a comparator 25 for making a comparison judgment of the detection voltage and a reference voltage for giving the comparator. The D / A converter (DAC) 24 and the CPU 23 that controls the D / A converter.

【0009】図4の構成によれば、CPU23からD/
Aコンバータ24に適当な制御信号を供給することによ
り、コンパレータ25の入力基準電圧をプログラマブル
に変えることができる。つまり、検出対象である用紙マ
ークの有無、位置等を指示する電圧の検出のためのスラ
イスレベルをプログラマブルに変えることが可能であ
る。
According to the configuration of FIG. 4, the CPU 23 outputs D /
By supplying an appropriate control signal to the A converter 24, the input reference voltage of the comparator 25 can be programmable. That is, it is possible to programmably change the slice level for detecting the voltage indicating the presence / absence, the position, etc. of the paper mark to be detected.

【0010】[0010]

【発明が解決しようとする課題】図2に示した従来の方
式では、フォトセンサの検出感度(つまりフォトダイオ
ードD1の光量およびフォトトランジスタTR1の増幅
率)を変えるためには、可変抵抗器R1,R2を適宜調
整する必要がある。つまり、フォトセンサの検出感度の
調整を行うためには、用紙媒体の属性に応じた最適な調
整、すなわちセンサ毎に一品一様の調整を行わなければ
ならないといった問題点がある。
In the conventional method shown in FIG. 2, in order to change the detection sensitivity of the photosensor (that is, the light amount of the photodiode D1 and the amplification factor of the phototransistor TR1), the variable resistor R1, R2 needs to be adjusted appropriately. That is, in order to adjust the detection sensitivity of the photosensor, there is a problem that it is necessary to perform optimum adjustment according to the attribute of the paper medium, that is, uniform adjustment for each sensor.

【0011】また、フォトセンサに電源供給を行う電源
ラインVBの電圧が変動した場合にはフォトセンサの検
出感度も変動するため、それに応じた適当な補正が必要
となる。この場合も、やはり、センサ毎に最適な調整を
行わなければならないといった煩雑さがある。図3に示
した従来の方式では、CPU21とゲート回路22を用
いて各バイアス用抵抗(R11〜R1n、R21〜R2m)を最
適値に調整することでフォトセンサの検出感度(フォト
ダイオードD2の光量、フォトトランジスタTR2の増
幅率)をプログラマブルに変えるようにしているので、
調整作業という点では図2の方式に比べて有利である
が、バイアス用抵抗として複数の抵抗器を設けているた
めに、センサ部分の回路構成が比較的大規模となり、複
雑化するといった問題点がある。また、図2の方式と同
様に、電源電圧が変動した場合、これに起因するフォト
センサの検出感度の変動を補正するために新たな調整作
業が必要になる。
Further, when the voltage of the power supply line VB for supplying power to the photo sensor fluctuates, the detection sensitivity of the photo sensor also fluctuates, and accordingly, appropriate correction is required. In this case, too, there is still the complexity that the optimum adjustment must be performed for each sensor. In the conventional method shown in FIG. 3, the CPU 21 and the gate circuit 22 are used to adjust the bias resistors (R 11 to R 1n and R 21 to R 2m ) to the optimum values to detect the detection sensitivity of the photosensor. Since the light quantity of the diode D2 and the amplification factor of the phototransistor TR2 are programmable,
Although it is more advantageous than the method shown in FIG. 2 in terms of adjustment work, since a plurality of resistors are provided as bias resistors, the circuit configuration of the sensor part becomes relatively large and complicated. There is. Further, similar to the method of FIG. 2, when the power supply voltage fluctuates, a new adjustment work is required to correct the fluctuation of the detection sensitivity of the photosensor caused by the fluctuation.

【0012】図4に示した従来の方式では、CPU23
とD/Aコンバータ24を用いてコンパレータ25の入
力基準電圧を可変に設定することで検出のスライスレベ
ルをプログラマブルに変えるようにしているので、調整
作業という点では図2の方式に比べて有利であるが、電
源電圧の変動に対しては、図2,図3の方式と同様に有
効な方式を提供するものではない。
In the conventional system shown in FIG. 4, the CPU 23
Since the input reference voltage of the comparator 25 is variably set by using the D / A converter 24 and the D / A converter 24, the slice level for detection can be changed in a programmable manner, which is advantageous in the adjustment work as compared with the method of FIG. However, it does not provide an effective method for the fluctuation of the power supply voltage as in the method shown in FIGS.

【0013】本発明は、かかる従来技術における課題に
鑑み創作されたもので、電源電圧の変動、用紙媒体の変
動、加工に応じた検出環境の変動等に対し、検出感度調
整およびその補正を自動的に行い、マーク検出の認識率
の向上、ひいては検出信頼性の向上を図ることができる
用紙マーク検出方式を提供することを目的とする。
The present invention was created in view of the above problems in the prior art, and automatically adjusts detection sensitivity and corrects it for fluctuations in power supply voltage, fluctuations in paper medium, fluctuations in detection environment due to processing, and the like. It is an object of the present invention to provide a paper mark detection method capable of improving the recognition rate of the mark detection and thus improving the detection reliability.

【0014】[0014]

【課題を解決するための手段】上記課題を解決するた
め、本発明に係る用紙マーク検出方式は、電源電圧の変
動に対し安定した基準電圧を発生する基準電圧発生回路
と、前記安定した基準電圧の供給をそれぞれ受けると共
に、マークを有する用紙を間に介在させて互いに配設さ
れたフォトダイオードおよびフォトトランジスタを有す
るフォトセンサ手段と、用紙マーク検出に係る制御を行
う制御部と、該制御部に接続され、前記フォトセンサ手
段を駆動するための駆動情報、レンジ変更情報、用紙マ
ーク検出に基づく検出情報等をディジタル量で格納する
メモリ手段と、該メモリ手段から前記制御部を介して供
給される前記駆動情報に基づいて前記フォトダイオード
およびフォトトランジスタの各バイアス電流をそれぞれ
調整するバイアス調整ユニットと、該バイアス調整ユニ
ットによるバイアス電流調整に基づく前記フォトダイオ
ードおよびフォトトランジスタの各バイアス電圧を検出
し、それぞれディジタル化して前記制御部に供給する電
圧検出回路とを具備し、前記ディジタル化されたバイア
ス電圧に基づいて前記駆動情報のうち当該用紙の属性に
応じた最適な駆動情報を選択し、前記バイアス調整ユニ
ットに供給することを特徴とする。
In order to solve the above-mentioned problems, a paper mark detecting method according to the present invention includes a reference voltage generating circuit for generating a stable reference voltage against fluctuations in power supply voltage, and the stable reference voltage. And a photosensor unit having a photodiode and a phototransistor, which are arranged with a sheet having a mark interposed therebetween, a control unit for performing control relating to the sheet mark detection, and a control unit for controlling the sheet mark. Memory means connected to store drive information for driving the photo sensor means, range change information, detection information based on paper mark detection, etc. in digital quantity; and memory means for supplying the information through the control section. Bias adjustment for adjusting each bias current of the photodiode and phototransistor based on the drive information. And a voltage detection circuit for detecting the bias voltage of each of the photodiode and the phototransistor based on the bias current adjustment by the bias adjustment unit, digitizing the bias voltage, and supplying the digitized voltage to the control unit. It is characterized in that optimum drive information according to the attribute of the paper is selected from the drive information based on the bias voltage and is supplied to the bias adjustment unit.

【0015】[0015]

【作用】上述した構成によれば、電源電圧の変動に対し
常に安定した基準電圧が基準電圧発生回路から発生さ
れ、フォトセンサ手段のフォトダイオードとフォトトラ
ンジスタにそれぞれ供給される。一方、メモリ手段から
制御部を介して駆動情報をバイアス調整ユニットに供給
することにより、フォトダイオードとフォトトランジス
タの各バイアス電流がそれぞれ自動的に調整され、さら
に電圧検出回路において、係るバイアス電流調整に基づ
いたフォトダイオードおよびフォトトランジスタの各バ
イアス電圧が検出され、それぞれディジタル化される。
そして制御部は、このディジタル化されたバイアス電圧
に基づいて前記駆動情報のうち当該用紙媒体の属性に応
じた最適な駆動情報を選択し、バイアス調整ユニットに
供給する。
According to the above structure, the reference voltage generating circuit generates the reference voltage which is always stable against the fluctuation of the power supply voltage and is supplied to the photodiode and the phototransistor of the photosensor means, respectively. On the other hand, by supplying drive information from the memory means to the bias adjustment unit via the control unit, the bias currents of the photodiode and the phototransistor are automatically adjusted, and the bias current adjustment is performed in the voltage detection circuit. The respective bias voltages of the photodiode and the phototransistor based on it are detected and digitized respectively.
Then, the control unit selects the optimum drive information according to the attribute of the paper medium from the drive information based on the digitized bias voltage, and supplies it to the bias adjustment unit.

【0016】このように、バイアス調整ユニットと電圧
検出回路と制御部の協働作用によりフォトダイオードお
よびフォトトランジスタの各バイアス電流(電圧)を当
該用紙媒体の属性に応じた最適な値に自動的に調整する
ことができる。従って、用紙媒体の変動、加工に応じた
検出環境の変動等があった場合でも、フォトセンサ手段
の検出感度の調整とその補正を自動的に行うことが可能
となり、マーク検出の認識率の向上、ひいては検出信頼
性の向上を図ることができる。
As described above, the bias adjusting unit, the voltage detecting circuit, and the control section cooperate to automatically set the bias current (voltage) of each of the photodiode and the phototransistor to an optimum value according to the attribute of the paper medium. Can be adjusted. Therefore, even if there is a change in the sheet medium, a change in the detection environment according to processing, etc., the detection sensitivity of the photo sensor means can be automatically adjusted and corrected, and the recognition rate of mark detection is improved. As a result, detection reliability can be improved.

【0017】また、電源電圧が変動した場合でも、基準
電圧発生回路により、従来形に見られたような電源電圧
の変動に起因する検出感度の変動を防止することがで
き、そのための煩雑な調整作業が不要となる。なお、本
発明の他の構成上の特徴および作用の詳細については、
添付図面を参照しつつ以下に記述される実施例を用いて
説明する。
Further, even when the power supply voltage changes, the reference voltage generating circuit can prevent the change in the detection sensitivity due to the change in the power supply voltage, which has been found in the conventional type, and the complicated adjustment therefor. No work required. For details of other structural features and operations of the present invention,
The embodiments will be described with reference to the accompanying drawings.

【0018】[0018]

【実施例】図1には本発明に係る用紙マーク検出方式が
適用されるプリンタ装置の要部構成が示される。同図に
おいて、10は本実施例の用紙マーク検出に係る制御を
行うマイクロコンピュータ、11はマイクロコンピュー
タ10に接続され、用紙マーク検出のための処理に必要
な駆動情報、レンジ変更情報、用紙マーク検出情報等を
ディジタル量で格納する外部メモリ、12は電源ライン
(VB)の電圧変動に対し安定した基準電圧VO を発生
する基準電圧発生回路、13は基準電圧VO の供給をそ
れぞれ受けると共に、マークを有する用紙を間に介在さ
せて互いに配設されたフォトダイオード(PD)13A
およびフォトトランジスタ(PTR)13Bを有するフ
ォトセンサブロック、14は外部メモリ11からマイク
ロコンピュータ10を介して供給される駆動情報(第1
の調整信号S1)に基づいてフォトダイオード13Aの
バイアス電流を調整するPD用バイアス調整回路、15
は同じく外部メモリ11からマイクロコンピュータ10
を介して供給される駆動情報(第2の調整信号S2)に
基づいてフォトトランジスタ13Bのバイアス電流を調
整するPTR用バイアス調整回路、16はPD用バイア
ス調整回路14から出力される第1のバイアス調整信号
S3に基づいてフォトダイオード13Aの定電流制御を
行う定電流バイアス回路、17はPTR用バイアス調整
回路15から出力される第2のバイアス調整信号S4に
基づいてフォトトランジスタ13Bの検出電流により所
定電圧を発生する(つまりフォトトランジスタ13Bの
感度調整を行う)負荷回路、18は定電流バイアス回路
16によるバイアス電流調整に基づくフォトダイオード
13Aのバイアス電圧(S5)を検出し、ディジタル化
(S7)してマイクロコンピュータ10に供給する電圧
検出回路、そして、19は負荷回路17によるバイアス
電流調整に基づくフォトトランジスタ13Bのバイアス
電圧(S6)を検出し、ディジタル化(S8)してマイ
クロコンピュータ10に供給する電圧検出回路を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a main configuration of a printer to which a paper mark detection system according to the present invention is applied. In the figure, 10 is a microcomputer for controlling the paper mark detection of the present embodiment, 11 is connected to the microcomputer 10, and drive information, range change information, and paper mark detection necessary for paper mark detection processing. An external memory for storing information and the like in a digital amount, 12 is a reference voltage generating circuit for generating a stable reference voltage V O with respect to a voltage fluctuation of the power supply line (VB), and 13 is supplied with the reference voltage V O , respectively. Photodiodes (PD) 13A arranged with each other with a sheet having a mark interposed therebetween
And a photo sensor block having a phototransistor (PTR) 13B, and 14 is driving information (first drive information supplied from the external memory 11 via the microcomputer 10).
A bias adjustment circuit for PD that adjusts the bias current of the photodiode 13A based on the adjustment signal S1)
Is also the external memory 11 to the microcomputer 10
Bias adjustment circuit for PTR that adjusts the bias current of the phototransistor 13B based on the drive information (second adjustment signal S2) supplied via the first bias 16 output from the bias adjustment circuit 14 for PD. A constant current bias circuit that performs constant current control of the photodiode 13A based on the adjustment signal S3, and 17 is predetermined by the detection current of the phototransistor 13B based on the second bias adjustment signal S4 output from the PTR bias adjustment circuit 15. A load circuit 18 for generating a voltage (that is, for adjusting the sensitivity of the phototransistor 13B) detects the bias voltage (S5) of the photodiode 13A based on the bias current adjustment by the constant current bias circuit 16 and digitizes it (S7). A voltage detection circuit for supplying to the microcomputer 10, 19 detects a bias voltage (S6) of the phototransistor 13B based on the bias current adjustment by the load circuit 17, digitized (S8) and indicates the voltage detection circuit for supplying to the microcomputer 10.

【0019】PD用バイアス調整回路14およびPTR
用バイアス調整回路15は、それぞれ、第1,第2の調
整信号S1,S2(ディジタル量の駆動情報)をアナロ
グ情報に変換してそれぞれ第1,第2のバイアス調整信
号S3,S4を生成するD/A変換部(DAC)を有し
ている。また、電圧検出回路18は、定電流バイアス回
路16によるバイアス電流調整に基づくフォトダイオー
ド13Aのバイアス電圧検出信号S5をマイクロコンピ
ュータ10から供給されるしきい値調整信号S9と比較
判定してディジタル情報S7に変換するA/D変換部
(ADC)を有している。マイクロコンピュータ10
は、この変換されたディジタル情報に基づいてフォトダ
イオード13Aの発光特性を検出し調整する。
Bias adjusting circuit 14 for PD and PTR
The bias adjusting circuit 15 converts the first and second adjustment signals S1 and S2 (digital amount drive information) into analog information, and generates first and second bias adjustment signals S3 and S4, respectively. It has a D / A converter (DAC). Further, the voltage detection circuit 18 compares the bias voltage detection signal S5 of the photodiode 13A based on the bias current adjustment by the constant current bias circuit 16 with the threshold adjustment signal S9 supplied from the microcomputer 10 to make digital information S7. It has an A / D conversion unit (ADC) for converting to. Microcomputer 10
Detects and adjusts the light emission characteristic of the photodiode 13A based on the converted digital information.

【0020】一方、電圧検出回路19は、負荷回路17
によるバイアス電流調整に基づくフォトトランジスタ1
3Bのバイアス電圧検出信号S6をしきい値調整信号S
9と比較判定してディジタル情報S8に変換するA/D
変換部(ADC)を有している。マイクロコンピュータ
10は、この変換されたディジタル情報に基づいてフォ
トトランジスタ13Bの感度特性を検出し調整する。
On the other hand, the voltage detection circuit 19 includes the load circuit 17
Phototransistor 1 based on bias current adjustment by
3B bias voltage detection signal S6 is set to threshold adjustment signal S
A / D for comparing and judging with 9 and converting to digital information S8
It has a converter (ADC). The microcomputer 10 detects and adjusts the sensitivity characteristic of the phototransistor 13B based on the converted digital information.

【0021】上述した構成において、マイクロコンピュ
ータ10は、図示しないプリンタ装置の本体から調整コ
マンド等を受信し、それに応答して外部メモリ11から
駆動情報を読み出して各バイアス調整回路14,15に
供給し、定電流バイアス回路16および負荷回路17に
よりそれぞれフォトダイオード13Aおよびフォトトラ
ンジスタ13Bの各バイアス電流を調整させ、各電圧検
出回路18,19を通して出力された検出電圧の変動率
を算出して、用紙の有無(有り/無し)を初回判定す
る。そして、用紙有りを判断した場合にはステッピング
モータを駆動し、用紙送りを行い、マークに掛かった状
態での検出電圧の変動率に基づいて一次マーク検出調整
を行う。
In the above-mentioned structure, the microcomputer 10 receives the adjustment command and the like from the main body of the printer device (not shown), and in response thereto, reads the drive information from the external memory 11 and supplies it to the bias adjustment circuits 14 and 15. The bias currents of the photodiode 13A and the phototransistor 13B are adjusted by the constant current bias circuit 16 and the load circuit 17, respectively, and the fluctuation rate of the detection voltage output through the voltage detection circuits 18 and 19 is calculated to calculate Existence (presence / absence) is judged for the first time. When it is determined that there is a sheet, the stepping motor is driven to feed the sheet, and the primary mark detection adjustment is performed based on the variation rate of the detected voltage in the state of being applied to the mark.

【0022】次いで、マイクロコンピュータ10は、検
出したマーク部分においてフォトダイオード13Aおよ
びフォトトランジスタ13Bの各バイアス調整を行い、
発光量と受光量の比率の判定を行い、発光量と受光量の
比率の最大値、最小値、平均値等を演算する。さらにマ
イクロコンピュータ10は、算出した発光量と受光量の
比率の最小値と、用紙無しの場合のレベルとの差に基づ
いて、電圧検出回路18,19内の各ADCのしきい値
電圧をバイアス調整回路14,15内の各DACの出力
により自動補正し、検出レンジの最適化を行う。
Next, the microcomputer 10 adjusts the biases of the photodiode 13A and the phototransistor 13B in the detected mark portion,
The ratio of the amount of emitted light and the amount of received light is determined, and the maximum value, the minimum value, the average value, etc. of the ratio of the amount of emitted light and the amount of received light are calculated. Further, the microcomputer 10 biases the threshold voltage of each ADC in the voltage detection circuits 18 and 19 based on the difference between the calculated minimum value of the ratio of the amount of emitted light and the amount of received light and the level when there is no paper. The output of each DAC in the adjustment circuits 14 and 15 is automatically corrected to optimize the detection range.

【0023】検出情報、レンジ変更情報等は外部メモリ
11に格納され、電源(VB)オフの状態においても記
憶が保持される。そして、再更新するまで記憶保持する
か、または電源投入と同時に上記自動補正を行う。ま
た、用紙のマーク部分に仮に丸穴が明いていた場合に
は、例えば光反射板を穴の後ろ(つまり用紙走行裏面部
分)の所定位置に設けておき、通常の検出レベルの中間
レベルに相当する検出電圧により穴部分の検出を行うこ
とで自動補正を行う。もし、穴の大きさがマーク部分の
大きさより小さい場合には、検出位置により自動補正を
行う。
The detection information, the range change information, etc. are stored in the external memory 11 and are retained even when the power (VB) is off. Then, it is stored and held until it is updated again, or the above-mentioned automatic correction is performed at the same time when the power is turned on. If a round hole is made in the mark portion of the paper, for example, a light reflection plate is provided at a predetermined position behind the hole (that is, the back surface of the paper on which the paper is traveling) to correspond to an intermediate level of the normal detection level. The automatic correction is performed by detecting the hole portion with the detection voltage. If the size of the hole is smaller than the size of the mark portion, automatic correction is performed according to the detection position.

【0024】このように本実施例の検出方式によれば、
従来の方式(図2〜図4参照)に対し、用紙媒体毎にフ
ォトダイオード13Aの光量と反射光または透過光に対
するフォトトランジスタ13Bの増幅率(感度)を自動
的に設定することができ、また、しきい値調整信号S9
により検出対象の用紙媒体の透過率または反射率を自動
判定してその結果を外部メモリ11に保持することで、
検出感度の自動調整を行うことができる。
As described above, according to the detection method of this embodiment,
Compared with the conventional method (see FIGS. 2 to 4), the light amount of the photodiode 13A and the amplification factor (sensitivity) of the phototransistor 13B with respect to reflected light or transmitted light can be automatically set for each paper medium. , Threshold adjustment signal S9
By automatically determining the transmittance or reflectance of the paper medium to be detected by using the result and holding the result in the external memory 11,
The detection sensitivity can be automatically adjusted.

【0025】また、黒レベルと白レベルの差分による増
幅率の調整も可能となる。さらに、用紙媒体毎に透過率
または反射率のレベル判定を行うことで、用紙媒体の変
更に対する用紙マークの自動認識が可能となり、また、
媒体上のゴミ、穴、マーク、その他の印刷等を解析する
ことにより、マーク検出の認識率を高めることが可能と
なる。これは、検出信頼性の向上に寄与するものであ
る。
It is also possible to adjust the amplification factor by the difference between the black level and the white level. Furthermore, by determining the level of transmittance or reflectance for each paper medium, it is possible to automatically recognize the paper mark when the paper medium is changed.
By analyzing dust, holes, marks, and other printing on the medium, the recognition rate of mark detection can be increased. This contributes to improvement in detection reliability.

【0026】また、電源電圧が変動した場合でも、基準
電圧発生回路12により、従来形に見られたような不都
合(電源電圧の変動に起因する検出感度の変動)を解消
することができる。従って、補正のための煩雑な調整作
業が不要となる。
Further, even if the power supply voltage changes, the reference voltage generating circuit 12 can eliminate the inconvenience (the change in the detection sensitivity due to the change in the power supply voltage) which has been found in the conventional type. Therefore, a complicated adjustment work for correction is unnecessary.

【0027】[0027]

【発明の効果】以上説明したように本発明によれば、電
源電圧の変動に影響されない安定した電圧をフォトセン
サに供給し、且つ、フォトセンサのバイアス量を用紙媒
体の属性に応じた最適な値に自動調整することにより、
電源電圧の変動、用紙媒体の変動、加工に応じた検出環
境の変動等があった場合でも、フォトセンサの検出感度
の調整とその補正を自動的に行うことが可能となる。こ
れは、マーク検出の認識率の向上、ひいては検出信頼性
の向上に寄与するものである。
As described above, according to the present invention, a stable voltage that is not affected by fluctuations in the power supply voltage is supplied to the photosensor, and the bias amount of the photosensor is optimized according to the attributes of the paper medium. By automatically adjusting to the value,
Even if there is a change in the power supply voltage, a change in the paper medium, a change in the detection environment due to processing, etc., the detection sensitivity of the photosensor can be automatically adjusted and corrected. This contributes to an improvement in the recognition rate of mark detection, and in turn to an improvement in detection reliability.

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

【図1】本発明に係る用紙マーク検出方式が適用される
プリンタ装置の要部構成を示すブロック図である。
FIG. 1 is a block diagram showing a main configuration of a printer device to which a paper mark detection method according to the present invention is applied.

【図2】従来技術における用紙マーク検出方式の一例を
説明するための回路構成図である。
FIG. 2 is a circuit configuration diagram for explaining an example of a paper mark detection method in the related art.

【図3】従来技術における用紙マーク検出方式の他の例
を説明するための回路構成図である。
FIG. 3 is a circuit configuration diagram for explaining another example of the paper mark detection method in the related art.

【図4】従来技術における用紙マーク検出方式の更に他
の例を説明するための回路構成図である。
FIG. 4 is a circuit configuration diagram for explaining still another example of the paper mark detection method in the related art.

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

10…制御部(マイクロコンピュータ) 11…メモリ手段(外部メモリ) 12…基準電圧発生回路 13…フォトセンサ手段(ブロック) 13A…フォトダイオード(PD) 13B…フォトトランジスタ(PTR) 14…第1のバイアス調整回路(PD用バイアス調整回
路) 15…第2のバイアス調整回路(PTR用バイアス調整
回路) 16…定電流バイアス回路 17…負荷回路 18,19…電圧検出回路 S1,S2…バイアス調整用の駆動情報 S3,S4…PD用,PTR用バイアス調整信号 S5,S6…バイアス電圧(検出信号) S7,S8…ディジタル化されたバイアス電圧(検出信
号) S9…(バイアス電圧比較判定用の)しきい値調整信号 VB…電源電圧 VO …安定した基準電圧
DESCRIPTION OF SYMBOLS 10 ... Control part (microcomputer) 11 ... Memory means (external memory) 12 ... Reference voltage generation circuit 13 ... Photosensor means (block) 13A ... Photodiode (PD) 13B ... Phototransistor (PTR) 14 ... 1st bias Adjusting circuit (bias adjusting circuit for PD) 15 ... Second bias adjusting circuit (bias adjusting circuit for PTR) 16 ... Constant current bias circuit 17 ... Load circuit 18, 19 ... Voltage detection circuit S1, S2 ... Driving for bias adjustment Information S3, S4 ... PD and PTR bias adjustment signals S5, S6 ... Bias voltage (detection signal) S7, S8 ... Digitized bias voltage (detection signal) S9 ... (for bias voltage comparison judgment) threshold value Adjustment signal VB ... Power supply voltage V O ... Stable reference voltage

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 電源電圧(VB)の変動に対し安定した
基準電圧(VO )を発生する基準電圧発生回路(12)
と、 前記安定した基準電圧の供給をそれぞれ受けると共に、
マークを有する用紙を間に介在させて互いに配設された
フォトダイオード(13A)およびフォトトランジスタ
(13B)を有するフォトセンサ手段(13)と、 用紙マーク検出に係る制御を行う制御部(10)と、 該制御部に接続され、前記フォトセンサ手段を駆動する
ための駆動情報、レンジ変更情報、用紙マーク検出に基
づく検出情報等をディジタル量で格納するメモリ手段
(11)と、 該メモリ手段から前記制御部を介して供給される前記駆
動情報(S1,S2)に基づいて前記フォトダイオード
およびフォトトランジスタの各バイアス電流をそれぞれ
調整するバイアス調整ユニット(14〜17)と、 該バイアス調整ユニットによるバイアス電流調整に基づ
く前記フォトダイオードおよびフォトトランジスタの各
バイアス電圧(S5,S6)を検出し、それぞれディジ
タル化して前記制御部に供給する電圧検出回路(18,
19)とを具備し、 前記ディジタル化されたバイアス電圧(S7,S8)に
基づいて前記駆動情報のうち当該用紙の属性に応じた最
適な駆動情報を選択し、前記バイアス調整ユニットに供
給することを特徴とする用紙マーク検出方式。
1. A reference voltage generation circuit (12) for generating a stable reference voltage (V O ) against fluctuations in a power supply voltage (VB).
And, while receiving the supply of the stable reference voltage respectively,
A photosensor means (13) having a photodiode (13A) and a phototransistor (13B) which are arranged with a sheet having a mark interposed therebetween, and a control section (10) for performing control relating to sheet mark detection. Memory means (11) connected to the control unit for storing drive information for driving the photo sensor means, range change information, detection information based on paper mark detection, etc. in a digital amount; A bias adjusting unit (14 to 17) for adjusting each bias current of the photodiode and the phototransistor based on the drive information (S1, S2) supplied through the control unit, and a bias current by the bias adjusting unit. Each bias voltage of the photodiode and phototransistor based on the adjustment ( S5, S6) are detected, each is digitized and supplied to the control section (18,
19), and selecting optimum drive information according to the attribute of the sheet of paper from the drive information based on the digitized bias voltage (S7, S8) and supplying it to the bias adjustment unit. Paper mark detection method characterized by.
【請求項2】 前記バイアス調整ユニットは、前記駆動
情報に基づいて前記フォトダイオード用の第1のバイア
ス調整信号(S3)およびフォトトランジスタ用の第2
のバイアス調整信号(S4)をそれぞれ発生する第1お
よび第2のバイアス調整回路(14,15)と、前記第
1のバイアス調整信号に基づいて前記フォトダイオード
の定電流制御を行う定電流バイアス回路(16)と、前
記第2のバイアス調整信号に基づいて前記フォトトラン
ジスタの検出電流により所定電圧を発生する負荷回路
(17)と、を具備することを特徴とする請求項1に記
載の用紙マーク検出方式。
2. The bias adjustment unit includes a first bias adjustment signal (S3) for the photodiode and a second bias transistor for the phototransistor based on the drive information.
First and second bias adjustment circuits (14, 15) for respectively generating the bias adjustment signal (S4), and a constant current bias circuit for performing constant current control of the photodiode based on the first bias adjustment signal. The sheet mark according to claim 1, further comprising: (16); and a load circuit (17) that generates a predetermined voltage by a detection current of the phototransistor based on the second bias adjustment signal. Detection method.
【請求項3】 前記第1,第2のバイアス調整回路は、
前記ディジタル量の駆動情報をアナログ情報に変換して
それぞれ前記第1,第2のバイアス調整信号を生成する
D/A変換部を有することを特徴とする請求項2に記載
の用紙マーク検出方式。
3. The first and second bias adjustment circuits,
3. The paper mark detection method according to claim 2, further comprising a D / A converter that converts the digital amount of drive information into analog information and generates the first and second bias adjustment signals, respectively.
【請求項4】 前記電圧検出回路は、前記定電流バイア
ス回路によるバイアス電流調整に基づく前記フォトダイ
オードのバイアス電圧検出信号を前記制御部から供給さ
れるしきい値調整信号(S9)と比較判定してディジタ
ル情報に変換するA/D変換部を有し、該変換されたデ
ィジタル情報に基づいて前記フォトダイオードの発光特
性を検出し調整することを特徴とする請求項2に記載の
用紙マーク検出方式。
4. The voltage detection circuit compares the bias voltage detection signal of the photodiode based on the bias current adjustment by the constant current bias circuit with a threshold adjustment signal (S9) supplied from the controller. 3. The paper mark detection method according to claim 2, further comprising: an A / D conversion unit for converting into digital information, and detecting and adjusting a light emission characteristic of the photodiode based on the converted digital information. .
【請求項5】 前記電圧検出回路は、前記負荷回路によ
るバイアス電流調整に基づく前記フォトトランジスタの
バイアス電圧検出信号を前記制御部から供給されるしき
い値調整信号(S9)と比較判定してディジタル情報に
変換するA/D変換部を有し、該変換されたディジタル
情報に基づいて前記フォトトランジスタの感度特性を検
出し調整することを特徴とする請求項2に記載の用紙マ
ーク検出方式。
5. The voltage detection circuit compares the bias voltage detection signal of the phototransistor based on the bias current adjustment by the load circuit with a threshold adjustment signal (S9) supplied from the control unit to perform digital determination. 3. The paper mark detection method according to claim 2, further comprising an A / D conversion unit for converting the information into information, and detecting and adjusting the sensitivity characteristic of the phototransistor based on the converted digital information.
JP5219990A 1993-09-03 1993-09-03 Form mark detecting system Withdrawn JPH0773262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5219990A JPH0773262A (en) 1993-09-03 1993-09-03 Form mark detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5219990A JPH0773262A (en) 1993-09-03 1993-09-03 Form mark detecting system

Publications (1)

Publication Number Publication Date
JPH0773262A true JPH0773262A (en) 1995-03-17

Family

ID=16744203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5219990A Withdrawn JPH0773262A (en) 1993-09-03 1993-09-03 Form mark detecting system

Country Status (1)

Country Link
JP (1) JPH0773262A (en)

Similar Documents

Publication Publication Date Title
US4769532A (en) Apparatus for adjusting optical sensors with threshold memory
US5105078A (en) Apparatus and method for detecting overlapped paper sheet feed
US4958069A (en) Apparatus for detecting presence or absence of recording medium in printer
JP2562087Y2 (en) Laser power adjustment device
JPH0773262A (en) Form mark detecting system
JP3426317B2 (en) Printer
JP2001175799A (en) Photodetector device, brightness/darkness information code reader and its adjusting method
JP2551344B2 (en) Photo sensor circuit for medium detection
US4613873A (en) Printer with supply voltage control circuit
JP3440401B2 (en) Sensor automatic adjustment device
JP2866400B2 (en) Automatic adjustment device for transmitted light detection circuit
JP3400603B2 (en) Printer device
JPH07291523A (en) Device for detecting program searching mark of roll paper
JP4717394B2 (en) Method for automatically adjusting photodetection device and photodetection device
KR940003119B1 (en) Circuit and method for adjusting automatic exposure
JP2656649B2 (en) Medium detection device
JP2001281014A (en) Circuit and means for correcting sensor
JPH08301485A (en) Printer
JP2644608B2 (en) Medium detection device
JPH05149786A (en) Optical sensor device
JPH1120990A (en) Medium detecting device
JPH04339203A (en) Control of optical sensor
JPH07119932B2 (en) Document detector
JP2007127591A (en) Optical sensor controller and optical sensor control method
JPH0732660A (en) Printing device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001107