[go: up one dir, main page]

JP2016030690A - Device and method for detecting paper existence - Google Patents

Device and method for detecting paper existence Download PDF

Info

Publication number
JP2016030690A
JP2016030690A JP2014155048A JP2014155048A JP2016030690A JP 2016030690 A JP2016030690 A JP 2016030690A JP 2014155048 A JP2014155048 A JP 2014155048A JP 2014155048 A JP2014155048 A JP 2014155048A JP 2016030690 A JP2016030690 A JP 2016030690A
Authority
JP
Japan
Prior art keywords
paper sheet
paper
absence
light
output voltage
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
JP2014155048A
Other languages
Japanese (ja)
Inventor
義昌 井上
Yoshimasa Inoue
義昌 井上
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.)
Toshiba Tec Corp
Original Assignee
Toshiba Tec Corp
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 Toshiba Tec Corp filed Critical Toshiba Tec Corp
Priority to JP2014155048A priority Critical patent/JP2016030690A/en
Publication of JP2016030690A publication Critical patent/JP2016030690A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controlling Sheets Or Webs (AREA)

Abstract

【課題】経時変化により発光素子の光が弱くなっても、紙葉類有無の適切な閾値を自動的に設定可能な紙葉類有無検知装置及び紙葉類有無検知方法を提供すること。【解決手段】一例の紙葉類有無検知装置は、紙葉類の搬送路を挟んで対向する発光素子及び受光素子と、前記搬送路における紙葉類の有無を検知する紙葉類有無検知部と、所定のタイミングにおいて、前記紙葉類有無検知部により前記搬送路内に紙葉類がないと判断される場合に、前記発光素子に動作電流を減少させていったときに前記受光素子で受光して出力される出力電圧の特性に基づき、前記受光素子の最適な出力電圧を求め、紙葉類有無の閾値として再設定する制御部と、を備える。【選択図】図1To provide a paper sheet presence / absence detection device and a paper sheet presence / absence detection method capable of automatically setting an appropriate threshold value for the presence / absence of paper sheets even when light of a light emitting element becomes weak due to a change over time. An example of a paper sheet presence / absence detection device includes a light emitting element and a light receiving element that face each other across a paper sheet conveyance path, and a paper sheet presence / absence detection unit that detects the presence or absence of paper sheets in the conveyance path. And, at a predetermined timing, when the paper sheet presence / absence detecting unit determines that there is no paper sheet in the transport path, the light receiving element reduces the operating current to the light emitting element. A control unit that obtains an optimum output voltage of the light receiving element based on characteristics of an output voltage that is received and output, and resets the threshold as the presence or absence of paper sheets. [Selection] Figure 1

Description

本発明の実施形態は、紙葉類の有無を光学的に検知する紙葉類有無検知装置及び紙葉類有無検知方法に関する。   Embodiments described herein relate generally to a paper sheet presence / absence detection apparatus and a paper sheet presence / absence detection method for optically detecting the presence or absence of paper sheets.

紙葉類へのプリントを行うプリント装置は、紙葉類がセットされたことを検知するために、紙葉類を光学的に検知する紙葉類センサを備えている。   A printing apparatus that prints on a paper sheet includes a paper sheet sensor that optically detects the paper sheet in order to detect that the paper sheet has been set.

この種の紙葉類センサは、紙葉類に搬送路を挟んで対向する発光素子と受光素子から成り、発光素子から発した光が紙葉類を透過して受光素子に届いているか否かを受光素子の出力電圧の変化を見て紙葉類の有無を検知する。   This type of paper sheet sensor is composed of a light emitting element and a light receiving element that are opposed to each other with a conveyance path interposed therebetween, and whether or not the light emitted from the light emitting element passes through the paper and reaches the light receiving element. The presence or absence of paper sheets is detected by looking at the change in the output voltage of the light receiving element.

紙葉類が発光素子と受光素子の間にある状態で、発光素子の動作電流を増加させていき、受光素子の出力電圧を調べた特性と、紙葉類がない状態で発光素子の動作電流を減少させそのときの受光素子の出力電圧の変化を調べた特性から、紙葉類有無を検知する閾値を適切に設定する紙葉類センサの調整方法は知られている。   While the paper sheet is between the light emitting element and the light receiving element, the operating current of the light emitting element is increased, and the output voltage of the light receiving element is examined, and the operating current of the light emitting element without the paper sheet A method for adjusting a paper sheet sensor is known in which a threshold value for detecting the presence or absence of a paper sheet is appropriately set based on characteristics obtained by examining the change in the output voltage of the light receiving element at that time.

特開2010−215375号公報JP 2010-215375 A

経時変化により発光素子の光が弱くなっても、紙葉類有無の適切な閾値を自動的に設定可能な紙葉類有無検知装置及び紙葉類有無検知方法を提供する。   Provided are a paper sheet presence / absence detection device and a paper sheet presence / absence detection method capable of automatically setting an appropriate threshold value for the presence / absence of paper sheets even when light of a light emitting element becomes weak due to a change with time.

本発明の一例は、紙葉類の搬送路を挟んで対向する発光素子及び受光素子と、前記搬送路における紙葉類の有無を検知する紙葉類有無検知部と、所定のタイミングにおいて、前記紙葉類有無検知部により前記搬送路内に紙葉類がないと判断される場合に、前記発光素子に動作電流を減少させていったときに前記受光素子で受光して出力される出力電圧の特性に基づき、前記受光素子の最適な出力電圧を求め、紙葉類有無の閾値として再設定する制御部と、を備える紙葉類有無検知装置である。   An example of the present invention includes a light emitting element and a light receiving element that face each other across a paper sheet conveyance path, a paper sheet presence / absence detection unit that detects the presence or absence of paper sheets in the conveyance path, and a predetermined timing, When the paper sheet presence / absence detecting unit determines that there is no paper sheet in the transport path, the output voltage received and output by the light receiving element when the operating current is reduced in the light emitting element A paper sheet presence / absence detection apparatus including a control unit that obtains an optimum output voltage of the light receiving element based on the characteristics of the light receiving element and resets the threshold as the paper sheet presence / absence threshold value.

一実施形態のプリンタ装置の構造を示す図である。It is a figure which shows the structure of the printer apparatus of one Embodiment. 一実施形態の全体の制御回路の構成例を示す図である。It is a figure which shows the structural example of the whole control circuit of one Embodiment. 用紙センサの構成例を示す図である。3 is a diagram illustrating a configuration example of a sheet sensor. FIG. 用紙センサの紙葉類有無の閾値を設定する過程を説明するための特性曲線図である。FIG. 10 is a characteristic curve diagram for explaining a process of setting a threshold value for the presence or absence of paper sheets of the paper sensor. 実施形態において、経時変化により入力電流減少出力電圧増大の特性が変化することを説明するための図である。In an embodiment, it is a figure for explaining that the characteristic of input current decrease output voltage increase changes by change with time. 一実施形態の紙葉類有無検知装置の構成例を示す図である。It is a figure which shows the structural example of the paper sheet presence or absence detection apparatus of one Embodiment. 図6に示す実施形態の装置状況検知部の構成例を示す図である。It is a figure which shows the structural example of the apparatus condition detection part of embodiment shown in FIG. 図5に示した一実施形態の動作を説明するためのフローチャートを示す図である。It is a figure which shows the flowchart for demonstrating operation | movement of one Embodiment shown in FIG.

以下、この発明の実施の形態について、図面を用いて説明する。本発明の実施形態の用紙有無検知装置についてその機械的構成を図1により、全体の制御回路構成を図2により説明する。また具体的なセンサ回路の例を図3により説明し、用紙センサの調整方法を図4により説明する。これらの説明の前に、本発明の実施形態の考え方を図4及び図5により簡単に説明する。   Embodiments of the present invention will be described below with reference to the drawings. The mechanical configuration of the sheet presence / absence detection apparatus according to the embodiment of the present invention will be described with reference to FIG. 1 and the entire control circuit configuration with reference to FIG. A specific example of the sensor circuit will be described with reference to FIG. 3, and a paper sensor adjustment method will be described with reference to FIG. Prior to these descriptions, the concept of the embodiment of the present invention will be briefly described with reference to FIGS.

図4は用紙センサの特性図であり、用紙の搬送路を挟んで対向する発光素子(例えば発光ダイオード)の動作(入力)電流(mA)と受光素子(例えばフォトトランジスタ)の出力電圧(V)を示す。この特性は、通常、装置を出荷する前に測定し、用紙の有無を検知する最適な閾値を設定しておく。   FIG. 4 is a characteristic diagram of the paper sensor. The operation (input) current (mA) of a light emitting element (for example, a light emitting diode) facing each other across the paper conveyance path and the output voltage (V) of the light receiving element (for example, phototransistor). Indicates. This characteristic is usually measured before the device is shipped, and an optimum threshold value for detecting the presence or absence of paper is set.

まず、この用紙有無検知装置の搬送路に用紙をセットする。この状態で、発光素子の動作電流がほぼゼロ状態のときの受光素子の出力電圧を測定する。この時受光素子(例えばフォトトランジスタ)はオフ状態にあり、発光素子の動作電流を徐々に増加させていくと、所定の電流に至ったところで、出力電圧が急激に低下する、すなわち受光素子の状態がオフからオンに変化する、図4に示す特性曲線51が得られる。この特性曲線を入力電流増加出力電圧減少特性曲線51と呼ぶ。   First, a sheet is set on the conveyance path of the sheet presence / absence detection device. In this state, the output voltage of the light receiving element when the operating current of the light emitting element is almost zero is measured. At this time, the light receiving element (for example, phototransistor) is in an off state, and when the operating current of the light emitting element is gradually increased, the output voltage rapidly decreases when the predetermined current is reached, that is, the state of the light receiving element A characteristic curve 51 shown in FIG. 4 is obtained in which changes from OFF to ON. This characteristic curve is called an input current increase output voltage decrease characteristic curve 51.

次に、対向する発光素子の受光素子の間(搬送路)に用紙がない状態にする。そして発光素子の動作電流を大きい値から徐々に下げていく。発光素子の動作電流が大きいと、受光素子に十分光が届き受光素子は最初、オン状態にある。ところが、発光素子の動作電流を下げていくと、受光素子に光が届かなくなってくる。したがって受光素子は途中からオフ状態に移行し、図4において特性曲線52に示すように出力電圧が高くなっていく。この特性を入力電流減少出力電圧増大特性曲線52と呼ぶ。   Next, there is no paper between the light receiving elements of the opposing light emitting elements (conveyance path). Then, the operating current of the light emitting element is gradually decreased from a large value. When the operating current of the light emitting element is large, sufficient light reaches the light receiving element, and the light receiving element is initially in the on state. However, when the operating current of the light emitting element is lowered, light cannot reach the light receiving element. Therefore, the light receiving element shifts to the off state from the middle, and the output voltage becomes higher as shown by the characteristic curve 52 in FIG. This characteristic is called an input current decrease output voltage increase characteristic curve 52.

したがって、この2つの特性曲線51,52で発光素子の中央の動作電流値Imに対して、受光素子の出力電圧が中央となる電圧値Vmである位置の閾値により、用紙の有無を検知すれば、最も適切な用紙検知が可能となる。   Therefore, if the two characteristic curves 51 and 52 detect the presence / absence of paper based on the threshold value at the position where the output voltage of the light receiving element is the central voltage value Vm with respect to the central operating current value Im of the light emitting element. The most appropriate paper detection becomes possible.

ところで、このような用紙有無検知装置を製造し、用紙有無の閾値を設定して出荷し長年にわたって稼働させ続けると、発光素子の発光強度や受光素子の受光感度が少しずつ変化する。そこで、特性が経年変化した状態でも、適切な用紙等紙葉類の有無の閾値を設定できることが望ましい。   By the way, when such a sheet presence / absence detection device is manufactured, shipped after setting a sheet presence / absence threshold, the light emission intensity of the light emitting element and the light receiving sensitivity of the light receiving element change little by little. Therefore, it is desirable to be able to set an appropriate threshold for the presence or absence of paper such as paper even when the characteristics have changed over time.

特に、発光素子の光強度が低下するすなわち、発光素子の動作電流に対して発する光強度が劣化する。しかし工場出荷の後は、用紙有無検知装置はユーザの管理下にあり、製造出荷業者が閾値などをセットし直すことは通常、困難である。   In particular, the light intensity of the light emitting element is reduced, that is, the light intensity emitted with respect to the operating current of the light emitting element is deteriorated. However, after shipment from the factory, the sheet presence / absence detection device is under the control of the user, and it is usually difficult for the manufacturer / shipper to reset the threshold value and the like.

また、搬送路に用紙のある状態では、ユーザが装置を使っていることが考えられ、その使用中に特性を測定することはユーザの利便性を損ねることもある。一方、長時間にわたって搬送路に用紙がない場合は、装置を使っていない状態であり、この状態を検知することは比較的容易である。   Further, it is conceivable that the user is using the apparatus in a state where there is a sheet on the conveyance path, and measuring the characteristics during the use may impair the convenience of the user. On the other hand, when there is no paper in the transport path for a long time, the apparatus is not used, and it is relatively easy to detect this state.

そこで本発明の一実施形態では、ユーザが使っていない、搬送路に用紙がない状態において、上述の図4に示す入力電流減少出力電圧増大の特性曲線52を自動的に測定し直し、この特性曲線52と、出荷前に測定した入力電流増大出力電圧減少の特性曲線51とを用いて、閾値として最適な動作電流In、出力電圧Vnを自動的に設定するものである。   Therefore, in one embodiment of the present invention, the characteristic curve 52 of the input current decrease output voltage increase shown in FIG. 4 described above is automatically measured again in a state where there is no sheet in the conveyance path that is not used by the user, and this characteristic is obtained. The optimum operating current In and output voltage Vn are automatically set as thresholds using the curve 52 and the characteristic curve 51 of the input current increasing output voltage decreasing measured before shipment.

まず、本発明一実施形態を適用するプリント装置の構成を図1に基づいて説明する。図1に示すプリント装置1は、通帳Tの出入口とステートメント用紙の出口を兼ねるフェイシア部2を前面部に有し、用紙セット部3を後面部に有する。   First, the configuration of a printing apparatus to which an embodiment of the present invention is applied will be described with reference to FIG. The printing apparatus 1 shown in FIG. 1 has a fascia part 2 serving as an entrance / exit of the bankbook T and an exit of statement paper at the front part, and a paper setting part 3 at the rear part.

この用紙セット部3にロール状に巻かれたサーマル用紙がセットされる。セットされたサーマル用紙4は、先端部が第1搬送部5によって引き出され搬送路6aに導かれる。この搬送路6a上に、サーマルプリント部7及び切断部8が配設される。   Thermal paper wound in a roll shape is set on the paper setting unit 3. The set thermal paper 4 has its leading end pulled out by the first transport section 5 and guided to the transport path 6a. A thermal printing unit 7 and a cutting unit 8 are disposed on the transport path 6a.

また、第1搬送部5に続いて第2搬送部10が設けられている。第2搬送部10は搬送路6aにつながる搬送路6b、この搬送路6bに沿って配設された搬送ローラ対11a〜11e、出入ローラ対12、及びフィードローラ対15を有し、フェイシア部2に挿入される通帳Tの搬送を行うと共に、搬送路6aから送られるサーマル用紙4をフェイシア部2に向けて搬送する。   Further, a second transport unit 10 is provided following the first transport unit 5. The second transport unit 10 includes a transport path 6b connected to the transport path 6a, transport roller pairs 11a to 11e, an entrance / exit roller pair 12, and a feed roller pair 15 disposed along the transport path 6b. The passbook T inserted into the paper is transported, and the thermal paper 4 sent from the transport path 6 a is transported toward the fascia section 2.

そして、搬送路6bにおける搬送ローラ対11a,11bの相互間に、24ピンのドットマトリクスヘッド9aを有するドットプリンタ部9が配設される。出入ローラ対12は、フェイシア部2に挿入される通帳Tの取り込みを行うと共に、プリントが済んだ通帳Tやステートメント用紙をフェイシア部2の外に送り出す。   A dot printer section 9 having a 24-pin dot matrix head 9a is disposed between the transport roller pairs 11a and 11b in the transport path 6b. The pair of entrance / exit rollers 12 takes in the passbook T inserted into the fascia unit 2 and sends out the printed passbook T and statement paper out of the fascia unit 2.

更に、第2搬送部10のサーマル用紙導入側に、紙葉類センサとして用紙センサ28が設けられている。用紙センサ28は、プリント対象の紙葉類であるサーマル用紙4を光学的に検知する。   Furthermore, a paper sensor 28 is provided as a paper sheet sensor on the thermal paper introduction side of the second transport unit 10. The paper sensor 28 optically detects the thermal paper 4 that is the paper sheet to be printed.

第2搬送部10における出入ローラ対12の近傍には、紙葉類センサとして通帳センサ29が設けられている。通帳センサ29はプリント対象の紙葉類である通帳Tを光学的に検知する。   In the vicinity of the entrance / exit roller pair 12 in the second transport unit 10, a passbook sensor 29 is provided as a paper sheet sensor. The passbook sensor 29 optically detects the passbook T, which is a paper sheet to be printed.

サーマルプリント部7は、サーマル用紙4の搬送方向に沿う所定間隔の位置に、裏面プリント用のサーマルヘッド17、及び表面プリント用のサーマルヘッド18を有する。これらサーマルヘッド17,18に対し、プラテンローラ20,21が回転可能に圧接されている。   The thermal printing unit 7 includes a thermal head 17 for back side printing and a thermal head 18 for front side printing at positions at predetermined intervals along the conveyance direction of the thermal paper 4. Platen rollers 20 and 21 are pressed against these thermal heads 17 and 18 so as to be rotatable.

サーマル用紙4は、サーマルヘッド17,18とプラテンローラ20,21で挟持されながら、サーマルヘッド17,18によって両面に情報がプリントされる。切断部8は、ロータリーカッタ23を有し、そのロータリーカッタ23を回転によってサーマル用紙を切断する。この切断片がステートメント用紙となる。このステートメント用紙は、フィードローラ対14により第2搬送部10に送られる。   Information is printed on both sides of the thermal paper 4 by the thermal heads 17 and 18 while being sandwiched between the thermal heads 17 and 18 and the platen rollers 20 and 21. The cutting unit 8 has a rotary cutter 23 and cuts the thermal paper by rotating the rotary cutter 23. This cut piece becomes a statement sheet. The statement sheet is sent to the second transport unit 10 by the feed roller pair 14.

プラテンローラ20,21、ロータリーカッタ23、フィードローラ対14の駆動用としてモータ25が設けられている。また、搬送ローラ対11a〜11e、出入ローラ対12、フィードローラ対15の駆動用として、モータ26が設けられている。   A motor 25 is provided for driving the platen rollers 20 and 21, the rotary cutter 23, and the feed roller pair 14. A motor 26 is provided for driving the transport roller pairs 11 a to 11 e, the entrance / exit roller pair 12, and the feed roller pair 15.

このようなプリント装置1において、用紙セット部3、第1搬送部5、及びその周辺部によりサーマル用紙4を搬送しながらそのサーマル用紙へのプリントを行うステートメントプリンタSTが構成される。   In such a printing apparatus 1, a statement printer ST that performs printing on the thermal paper while conveying the thermal paper 4 by the paper setting unit 3, the first conveyance unit 5, and its peripheral part is configured.

フィードローラ対15、第2搬送部10及びその周辺部により通帳Tを搬送しながらその通帳Tへのプリントを行いつつ、ステートメントプリンタSTのプリント時にサーマル用紙の搬送も行うパスブックプリンタPBが構成される。   A passbook printer PB is configured that performs printing on the passbook T while carrying the passbook T by the feed roller pair 15, the second transport unit 10, and its peripheral part, and also transporting thermal paper when the statement printer ST prints. The

このプリント装置1の制御回路の構成例を図2に示す。ステートメントプリンタSTの制御用及びパスブックプリンタPBの制御用として制御部30が設けられる。この制御部30にステートメントプリンタSTの構成部品及びパスブックプリンタPBの構成部品がそれぞれ接続される。更に制御部30に上位装置31が接続される。   A configuration example of the control circuit of the printing apparatus 1 is shown in FIG. A control unit 30 is provided for controlling the statement printer ST and for controlling the passbook printer PB. The control unit 30 is connected to the component parts of the statement printer ST and the component parts of the passbook printer PB. Furthermore, a host device 31 is connected to the control unit 30.

制御部30は、用紙センサ28の駆動制御用として、例えば図3に示すセンサ回路を有している。このセンサ回路では、CPU40に、制御プログラム記憶用のROM41、データ記憶用のRAM42、用紙センサ28に対する駆動信号出力用のD/A(デジタル/アナログ)コンバータ43、及び用紙センサ28に対する駆動信号を操作するための操作部44sが接続される。   The control unit 30 includes, for example, a sensor circuit shown in FIG. 3 for driving control of the paper sensor 28. In this sensor circuit, the CPU 40 operates a ROM 41 for storing a control program, a RAM 42 for storing data, a D / A (digital / analog) converter 43 for outputting a driving signal to the paper sensor 28, and a driving signal for the paper sensor 28. An operation unit 44s is connected.

D/Aコンバータ43は、用紙センサ28に対する動作電流設定用の直流電圧をCPU40からの指令に応じて出力すると共に、用紙判定用の基準電圧VsをCPU40からの指令に応じて出力する。動作電流設定用の直流電圧は、オペアンプ44で増幅され、かつ抵抗45を介して、NPN型トランジスタ46のベース・エミッタ間に印加される。   The D / A converter 43 outputs a DC voltage for setting an operating current for the paper sensor 28 in accordance with a command from the CPU 40 and outputs a reference voltage Vs for paper determination in response to a command from the CPU 40. The DC voltage for setting the operating current is amplified by the operational amplifier 44 and applied between the base and emitter of the NPN transistor 46 via the resistor 45.

用紙センサ28は、サーマル用紙4が搬送される搬送路6bを挟んで対向する発光素子、たとえば発光ダイオード28a及び受光素子たとえばフォトトランジスタ28bから成る。発光ダイオード28aのアノードは直流電圧5Vの正側端子に接続され、発光ダイオード28aのカソードは上記トランジスタ46のコレクタ・エミッタ間及び抵抗47を介してアースされる。   The paper sensor 28 includes a light emitting element, for example, a light emitting diode 28a and a light receiving element, for example, a phototransistor 28b, which face each other across the conveyance path 6b through which the thermal paper 4 is conveyed. The anode of the light emitting diode 28 a is connected to the positive terminal of the DC voltage 5 V, and the cathode of the light emitting diode 28 a is grounded between the collector and emitter of the transistor 46 and the resistor 47.

フォトトランジスタ28bのコレクタは抵抗48を介して直流電圧5Vの正側端子に接続され、フォトトランジスタ28bのエミッタはアースされる。このフォトトランジスタ28bのコレクタに生じる電圧が、フォトトランジスタ28bの出力電圧Vとして、比較器49の負側入力端に入力されると共に、CPU40に供給される。   The collector of the phototransistor 28b is connected to the positive terminal of the DC voltage 5V through the resistor 48, and the emitter of the phototransistor 28b is grounded. The voltage generated at the collector of the phototransistor 28b is input to the negative input terminal of the comparator 49 as the output voltage V of the phototransistor 28b and supplied to the CPU 40.

比較器49の正側入力端には、上記CPU40から出力される基準電圧Vsが入力される。また、比較器49の出力端が抵抗50を介して直流電圧3.5Vの正側端子に接続され、その出力端と抵抗50との相互接続点がCPU40に接続される。比較器49は、フォトトランジスタ28bの出力電圧Vと基準電圧Vsとを比較し、出力電圧Vが基準電圧Vs以下に低下したとき、サーマル用紙4がある旨の低レベルの電圧信号を出力する。   The reference voltage Vs output from the CPU 40 is input to the positive side input terminal of the comparator 49. The output terminal of the comparator 49 is connected to the positive terminal of the DC voltage 3.5V through the resistor 50, and the interconnection point between the output terminal and the resistor 50 is connected to the CPU 40. The comparator 49 compares the output voltage V of the phototransistor 28b with the reference voltage Vs, and outputs a low level voltage signal indicating that the thermal paper 4 is present when the output voltage V drops below the reference voltage Vs.

次に、用紙センサ28の調整方法について説明する。上記説明では、発光素子の入力電流と受光素子の出力電圧を所定間隔でサンプリングする例について説明したが、ここでは、図3に示す回路構成に基づいて具体的に説明する。   Next, a method for adjusting the paper sensor 28 will be described. In the above description, the example in which the input current of the light emitting element and the output voltage of the light receiving element are sampled at a predetermined interval has been described, but here, a specific description will be given based on the circuit configuration shown in FIG.

初めに、発光ダイオード28aとフォトトランジスタ28bとの間にサーマル用紙4をセットしておき、操作部44sの操作により、調整モードを設定する。すると、CPU40からD/Aコンバータ43への指令により、D/Aコンバータ43から動作電流設定用の直流電圧が出力されてその電圧レベルが徐々に増大していく。この直流電圧は、オペアンプ44で増幅されてトランジスタ46のベース・エミッタ間に印加される。トランジスタ46は、印加されるベース・エミッタ間電圧の増大に伴い、導通度が増えていく。トランジスタ46の導通度が増えていくのに伴い、発光ダイオード28aに流れる動作電流Iが零から徐々に増大していく。このときの動作電流Iの増大に伴うフォトトランジスタ28bの出力電圧Vの変化を図4の特性曲線51に示す。   First, the thermal paper 4 is set between the light emitting diode 28a and the phototransistor 28b, and the adjustment mode is set by operating the operation unit 44s. Then, in response to a command from the CPU 40 to the D / A converter 43, a DC voltage for setting an operating current is output from the D / A converter 43, and the voltage level gradually increases. This DC voltage is amplified by the operational amplifier 44 and applied between the base and emitter of the transistor 46. The conductivity of the transistor 46 increases as the applied base-emitter voltage increases. As the conductivity of the transistor 46 increases, the operating current I flowing through the light emitting diode 28a gradually increases from zero. A change in the output voltage V of the phototransistor 28b with the increase in the operating current I at this time is shown in a characteristic curve 51 in FIG.

すなわち、発光ダイオード28aに流れる動作電流I(mA)が零から徐々に増大していくのに伴い、発光ダイオード28aの発光量が増えていく。発光量が増えていくと、やがて、光がサーマル用紙4を透過し、その透過光がフォトトランジスタ28bに届くようになる。   That is, as the operating current I (mA) flowing through the light emitting diode 28a gradually increases from zero, the light emission amount of the light emitting diode 28a increases. As the amount of emitted light increases, the light eventually passes through the thermal paper 4, and the transmitted light reaches the phototransistor 28b.

光がサーマル用紙4を透過しないうちは、フォトトランジスタ28bが光を受けずにオフの状態であり、フォトトランジスタ28bの出力電圧Vは高レベルを維持する。この出力電圧Vは基準電圧Vmよりも高く、よって比較器49の出力は低レベルとなる。   While the light does not pass through the thermal paper 4, the phototransistor 28b is in an off state without receiving light, and the output voltage V of the phototransistor 28b maintains a high level. This output voltage V is higher than the reference voltage Vm, so that the output of the comparator 49 is at a low level.

サーマル用紙4を透過した光がフォトトランジスタ28bに届くと、フォトトランジスタ28bがオンの状態となり、フォトトランジスタ28bの出力電圧Vが下降していく。この出力電圧Vが基準電圧Vm以下になると、比較器49の出力が高レベルとなる。   When the light transmitted through the thermal paper 4 reaches the phototransistor 28b, the phototransistor 28b is turned on, and the output voltage V of the phototransistor 28b decreases. When the output voltage V becomes equal to or lower than the reference voltage Vm, the output of the comparator 49 becomes high level.

CPU40は、比較器49の出力電圧Vを監視しており、出力電圧Vが下降を始めて予め定められている受光レベルVx以下になると、そのときの動作電流Iを動作電流設定用の直流電圧の出力制御から把握し、把握した動作電流IをI1(図示せず)としてRAM42に記憶する(第1手順)。また、CPU40は、出力電圧Vが受光レベルVx以下となる直前の出力電圧Vを、V1としてRAM42に記憶する(第2手順)。   The CPU 40 monitors the output voltage V of the comparator 49, and when the output voltage V starts to decrease and falls below a predetermined light receiving level Vx, the operating current I at that time is converted to the DC voltage for setting the operating current. The operating current I obtained from the output control is stored in the RAM 42 as I1 (not shown) (first procedure). Further, the CPU 40 stores the output voltage V immediately before the output voltage V becomes equal to or lower than the light reception level Vx in the RAM 42 as V1 (second procedure).

続いて、発光ダイオード28aとフォトトランジスタ28bとの間からサーマル用紙4を取り除き、その状態で、操作部44sの操作により、調整モードの継続を設定する。すると、CPU40からD/Aコンバータ43に送られる指令により、D/Aコンバータ43から出力されている動作電流設定用の直流電圧が徐々に減少していく。これに伴い、トランジスタ46の導通度が減っていき、発光ダイオード28aに流れる動作電流Iが徐々に減少していく。このときの動作電流Iの減少に伴うフォトトランジスタ28bの出力電圧Vの変化(入力電流減少−出力電圧増大曲線)を図4の特性曲線52に示す。   Subsequently, the thermal paper 4 is removed from between the light emitting diode 28a and the phototransistor 28b, and in this state, the continuation of the adjustment mode is set by operating the operation unit 44s. Then, in response to a command sent from the CPU 40 to the D / A converter 43, the operating current setting DC voltage output from the D / A converter 43 gradually decreases. As a result, the conductivity of the transistor 46 decreases, and the operating current I flowing through the light emitting diode 28a gradually decreases. A change in the output voltage V of the phototransistor 28b accompanying the decrease in the operating current I at this time (input current decrease-output voltage increase curve) is shown in the characteristic curve 52 of FIG.

すなわち、発光ダイオード28aに流れる動作電流Iが徐々に減少していくのに伴い、発光ダイオード28aの発光量が減っていく。発光量が減っていくと、やがて、光がフォトトランジスタ28bに届かなくなる。   That is, as the operating current I flowing through the light emitting diode 28a gradually decreases, the light emission amount of the light emitting diode 28a decreases. As the amount of light emission decreases, the light eventually reaches the phototransistor 28b.

光がフォトトランジスタ28bに届いているうちは、フォトトランジスタ28bがオンしており、フォトトランジスタ28bの出力電圧が低レベルを維持する。   While the light reaches the phototransistor 28b, the phototransistor 28b is turned on, and the output voltage of the phototransistor 28b maintains a low level.

光がフォトトランジスタ28bに届かなくなると、フォトトランジスタ28bがオフして、フォトトランジスタ28bの出力電圧が高レベルとなる。   When the light does not reach the phototransistor 28b, the phototransistor 28b is turned off, and the output voltage of the phototransistor 28b becomes a high level.

CPU40は、出力電圧Vを監視しており、発光ダイオードの動作電流Iとその時の出力電圧Vの関係をRAM42に記憶する。   The CPU 40 monitors the output voltage V, and stores the relationship between the operating current I of the light emitting diode and the output voltage V at that time in the RAM 42.

また、出力電圧Vが予め定められている非受光レベルVy以上になると、そのときの動作電流Iを動作電流設定用の直流電圧の出力制御から把握し、把握した動作電流IをI2としてRAM42に記憶する。また、CPU40は、出力電圧Vが非受光レベルVy以上となる直前の出力電圧Vを、V2としてRAM42に記憶する。   Further, when the output voltage V becomes equal to or higher than a predetermined non-light receiving level Vy, the operating current I at that time is grasped from the output control of the direct current voltage for setting the operating current, and the grasped operating current I is set as I2 in the RAM 42. Remember. Further, the CPU 40 stores the output voltage V immediately before the output voltage V becomes equal to or higher than the non-light receiving level Vy in the RAM 42 as V2.

こうして、I1,V1,I2,V2を記憶すると、CPU40は、発光ダイオード28aの通常動作時の動作電流IをI1,I2の範囲内に設定し、かつフォトトランジスタ28bの出力電圧Vに対する用紙判定用の基準電圧VsをV1,V2の範囲内に設定する。具体的には、発光ダイオード28aの通常動作時の動作電流IをI1とI2の中間値である(I1+I2)/2に設定し、かつフォトトランジスタ28bの出力電圧Vに対する用紙判定用の基準電圧VsをV1,V2の中間値である(V1+V2)/2に設定する。   When I1, V1, I2, and V2 are stored in this way, the CPU 40 sets the operating current I during the normal operation of the light emitting diode 28a within the range of I1 and I2, and for paper determination with respect to the output voltage V of the phototransistor 28b. Is set within the range of V1 and V2. Specifically, the operating current I during normal operation of the light emitting diode 28a is set to (I1 + I2) / 2, which is an intermediate value between I1 and I2, and the reference voltage Vs for paper determination with respect to the output voltage V of the phototransistor 28b. Is set to (V1 + V2) / 2, which is an intermediate value between V1 and V2.

この設定により、発光ダイオード28aとフォトトランジスタ28bとの間にサーマル用紙4が有るか無いかを、サーマル用紙4の厚さに合わせて適正に検知することができる。   With this setting, whether or not the thermal paper 4 is present between the light emitting diode 28a and the phototransistor 28b can be properly detected according to the thickness of the thermal paper 4.

CPU40は、設定した通常動作時の動作電流I及び用紙判定用の基準電圧Vsのデータを、調整モードの設定に際してセットされたサーマル用紙4の種類・名称・型番等に対応付けて、RAM42内の用紙データベースに登録する。この登録をもって調整モードの終了となる。   The CPU 40 associates the set data of the operating current I during normal operation and the reference voltage Vs for paper determination with the type, name, model number, etc. of the thermal paper 4 set when setting the adjustment mode. Register in the paper database. With this registration, the adjustment mode ends.

用紙データベースには、種々のサーマル用紙4を含む複数の紙葉類に合わせた動作電流I及び基準電圧Vsのセットを登録しておくことができる。   In the paper database, a set of operating current I and reference voltage Vs can be registered according to a plurality of paper sheets including various thermal papers 4.

一方、CPU40は、通常時、上位装置31から特定の紙葉類が指定されると、その指定された紙葉類に対応する動作電流I及び基準電圧Vsを用紙データベースから読み出し、それを用紙センサ28に対し設定する。   On the other hand, when a specific paper sheet is designated from the host device 31 in a normal state, the CPU 40 reads out the operating current I and the reference voltage Vs corresponding to the designated paper sheet from the paper database, and reads them from the paper sensor. 28 is set.

次に、この用紙有無検知装置が出荷された後の特性変化について述べる。図5において特性曲線51,52は、図4に示した、入力電流増大出力電圧減少及び入力電流減少出力電圧増大の各特性曲線である。   Next, a change in characteristics after the sheet presence / absence detecting device is shipped will be described. In FIG. 5, characteristic curves 51 and 52 are characteristic curves of the input current increase output voltage decrease and the input current decrease output voltage increase shown in FIG.

出荷時には、搬送路に用紙がないときには特性曲線52が得られている。図3に示す回路例で述べると、発光素子である発光ダイオード28aと受光素子であるフォトトランジスタ28bとの特性に応じて特性曲線51,52が得られる。   At the time of shipment, the characteristic curve 52 is obtained when there is no paper in the conveyance path. In the circuit example shown in FIG. 3, characteristic curves 51 and 52 are obtained according to the characteristics of the light emitting diode 28a as a light emitting element and the phototransistor 28b as a light receiving element.

ところが、発光ダイオード28aを長期間用いていると、光強度が劣化してくる。そのため、入力電流に対する放射光が弱くなる、すなわちフォトトランジスタ28bがオンからオフへ変化する入射電流が高い方に移動する。入力電流減少−出力電圧増大の特性でみると、変化部分が右側に移動する。具体的には経時変化により特性曲線52が特性曲線52から特性曲線53、特性曲線54、特性曲線55と変化する。これにつれて最適な閾値としての動作電流ImがInへ(右側に)移動する。   However, when the light emitting diode 28a is used for a long period of time, the light intensity deteriorates. Therefore, the emitted light with respect to the input current becomes weak, that is, the incident current at which the phototransistor 28b changes from on to off moves to the higher side. In terms of the input current decrease-output voltage increase characteristic, the changed portion moves to the right. Specifically, the characteristic curve 52 changes from the characteristic curve 52 to the characteristic curve 53, the characteristic curve 54, and the characteristic curve 55 due to a change with time. Accordingly, the operating current Im as the optimum threshold value moves to In (to the right side).

一実施形態の用紙有無検知装置のブロック構成例を図6に示す。サーマル用紙4の搬送路を挟んで発光素子61aと受光素子61pが対向して設けられる。   A block configuration example of the sheet presence / absence detection apparatus according to the embodiment is shown in FIG. A light emitting element 61a and a light receiving element 61p are provided facing each other across the conveyance path of the thermal paper 4.

この用紙有無検知装置は、サーマル用紙4が搬送される搬送路を挟んで対向して設けられる発光素子61aと受光素子61pと、この搬送路にサーマル用紙4があるかないかを検知する用紙有無検知部59と、この用紙有無検知部59から用紙有無の検知制御信号を受けるなど全体の動作を制御する中央制御装置(CPU)60と、CPU60から制御され発光素子61aの動作電流を変更する動作電流変更部62と、受光素子61pの出力電圧を検知する出力電圧検知部63と、発光素子61aの動作電流(入力電流)と出力電圧検知部63で検知された受光素子の出力電圧の関係を特性として記憶し、更にこの特性から得られる適切な入力電流と出力電圧の閾値を記憶する特性閾値記憶部64と、装置設置後の入力電流の適切な閾値を算出する電流閾値算出部65と、特性閾値記憶部64に記憶されている出荷前の適切な初期入力電流閾値(又はその後で事前の入力電流閾値)と電流閾値算出部65で算出された現在入力電流閾値を比較し、両閾値の差が所定値を超えていたらその旨の閾値変更要求の制御信号をCPU60に送る電流閾値比較部66と、初期設定及びユーザが装置の操作を行う操作部67と、特性再測定のために装置の状況を検知する装置状況検知部68と、を有する。   This paper presence / absence detection device detects a light-emitting element 61a and a light-receiving element 61p that are provided to face each other across a conveyance path through which the thermal paper 4 is conveyed, and a paper presence / absence detection that detects whether or not the thermal paper 4 is present in this conveyance path. Unit 59, a central control unit (CPU) 60 that controls the overall operation such as receiving a sheet presence / absence detection control signal from sheet presence / absence detection unit 59, and an operating current that is controlled by CPU 60 and changes the operating current of light emitting element 61a. The change unit 62, the output voltage detection unit 63 for detecting the output voltage of the light receiving element 61p, and the relationship between the operating current (input current) of the light emitting element 61a and the output voltage of the light receiving element detected by the output voltage detection unit 63 are characterized. And a characteristic threshold value storage unit 64 for storing an appropriate input current and output voltage threshold value obtained from this characteristic, and an appropriate input current threshold value after installation of the device. Current threshold value calculation unit 65, appropriate initial input current threshold value before shipment stored in characteristic threshold value storage unit 64 (or prior input current threshold value after that), and current input current value calculated by current threshold value calculation unit 65 A current threshold comparing unit 66 that compares the threshold values and sends a control signal for requesting a threshold change to the CPU 60 if the difference between the two threshold values exceeds a predetermined value; and an operation unit 67 for initial setting and operation of the user by the user; A device status detection unit 68 for detecting the status of the device for characteristic remeasurement.

ここでは、CPU60、動作電流変更部62、出力電圧検知部63、特性閾値記憶部64、電流閾値算出部65、電流閾値比較部66、装置状況検知部68が、制御部を構成する。   Here, the CPU 60, the operating current change unit 62, the output voltage detection unit 63, the characteristic threshold value storage unit 64, the current threshold value calculation unit 65, the current threshold value comparison unit 66, and the device status detection unit 68 constitute a control unit.

装置状況検知部68の構成例を図7に示す。この装置状況検知部68は、用紙有無検知装置の動作していない連続時間を測定する不動作時間測定部71と、現在時刻を検知する時計72と、プリント装置の周りに人がいるかどうかを検知する人感センサ73とを有する。不動作時間測定部71は、プリント装置が動作を停止するたびに時間測定を開始するタイマーである。   A configuration example of the apparatus status detection unit 68 is shown in FIG. The device status detection unit 68 detects a non-operation time measuring unit 71 that measures a continuous time during which the sheet presence / absence detection device is not operating, a clock 72 that detects the current time, and whether or not there is a person around the printing device. And a human sensor 73. The non-operation time measuring unit 71 is a timer that starts time measurement every time the printing apparatus stops operating.

装置状況検知部68の出力はCPU60に入力されている。したがって、用紙有無検知装置の連続不動作時間、現在時刻及び装置の周りに人がいないことはCPU60が検知する。そのときの状況と用紙有無検知部59の出力から入力電流減少出力電圧増大特性を測定するかどうかをCPU60が検知して、動作電流変更部62に特性測定のために動作電流変更(減少)を指示することになる。   The output of the device status detection unit 68 is input to the CPU 60. Therefore, the CPU 60 detects the continuous non-operation time of the paper presence / absence detection device, the current time, and the absence of a person around the device. The CPU 60 detects whether or not the input current decrease output voltage increase characteristic is measured from the situation at that time and the output of the sheet presence / absence detection unit 59, and changes the operating current (decrease) to the operating current change unit 62 for characteristic measurement. I will tell you.

まず、この用紙有無検知装置が、出荷前に特性を測定されるときの動作を説明する。用紙有無検知部59により搬送路にサーマル用紙4があることが検知される。サーマル用紙4があることが用紙検知制御信号としてCPU60に送られる。   First, the operation of the paper presence / absence detection device when characteristics are measured before shipment will be described. The presence / absence detection unit 59 detects the presence of the thermal paper 4 in the conveyance path. The presence of the thermal paper 4 is sent to the CPU 60 as a paper detection control signal.

サーマル用紙4を介在させた状態で、動作電流変更部62の動作電流は、CPU60から制御される。発光素子61aに供給される電流は動作電流変更部62から制御される。   With the thermal paper 4 interposed, the operating current of the operating current changing unit 62 is controlled by the CPU 60. The current supplied to the light emitting element 61a is controlled by the operating current changing unit 62.

サーマル用紙4を搬送路にセットした状態で、発光素子61aの動作電流を徐々に増大させる。実際には、0〜255のデジタル値を発光素子61aに送って対応する電流を流すことになる。そして、8レベルごとにこのデジタル値を加えていき、動作電流を増加させる。   With the thermal paper 4 set on the conveyance path, the operating current of the light emitting element 61a is gradually increased. In practice, a digital value of 0 to 255 is sent to the light emitting element 61a to flow a corresponding current. Then, this digital value is added every 8 levels to increase the operating current.

発光素子61aの動作電流を所定サンプリング間隔で順次、増大する方向に発光素子に61aに送られると、図4の入力電流増加−出力電圧減少の特性曲線51が得られる。   When the operating current of the light emitting element 61a is sequentially sent to the light emitting element 61a in a direction of increasing at predetermined sampling intervals, the characteristic curve 51 of input current increase-output voltage decrease shown in FIG. 4 is obtained.

出力電圧検知部63は受光素子61pで受光した光に対応する電圧を検知し、特性閾値記憶部64に送る。発光素子61aの動作電流も特性閾値記憶部64に入力されており、発光素子61aの動作電流Iと受光素子61pの出力電圧Vが特性記憶部67に記憶される。   The output voltage detection unit 63 detects a voltage corresponding to the light received by the light receiving element 61p and sends it to the characteristic threshold value storage unit 64. The operating current of the light emitting element 61 a is also input to the characteristic threshold storage unit 64, and the operating current I of the light emitting element 61 a and the output voltage V of the light receiving element 61 p are stored in the characteristic storage unit 67.

次に、発光素子61aと受光素子61pの間の搬送路内からサーマル用紙4を取り除いた状態にする。サーマル用紙4が搬送路にないことは用紙有無検知部59により検知される。CPU60は操作部67により制御される。   Next, the thermal paper 4 is removed from the conveyance path between the light emitting element 61a and the light receiving element 61p. The absence or presence of the thermal paper 4 is detected by the paper presence / absence detection unit 59. The CPU 60 is controlled by the operation unit 67.

そして、CPU65の制御のもとに、動作電流変更部62において所定のサンプリング間隔で発光素子61aの動作電流を減少させていき、受光素子61pの出力電圧を出力電圧検知部63で検知する。この時の発光素子61aと受光素子61pの出力電圧の特性は特性閾値記憶部64に記憶される。この特性は図4に示す入力電流減少出力電圧増大特性曲線52のサンプリングデータとして特性閾値記憶部64に記憶されることになる。これらの入力電流増加−出力電圧減少曲線(第1の特性曲線)51、入力電流減少出力電圧増大曲線(第2の特性曲線)52を基本特性曲線という。   Under the control of the CPU 65, the operating current changing unit 62 decreases the operating current of the light emitting element 61a at a predetermined sampling interval, and the output voltage detecting unit 63 detects the output voltage of the light receiving element 61p. The characteristics of the output voltages of the light emitting element 61a and the light receiving element 61p at this time are stored in the characteristic threshold value storage unit 64. This characteristic is stored in the characteristic threshold value storage unit 64 as sampling data of the input current decrease output voltage increase characteristic curve 52 shown in FIG. The input current increase-output voltage decrease curve (first characteristic curve) 51 and the input current decrease output voltage increase curve (second characteristic curve) 52 are referred to as basic characteristic curves.

特性曲線51と特性曲線52から入力電流閾値Imと出力電圧閾値Vmを求める。これらの閾値は、特性閾値記憶部64に記憶される。   From the characteristic curve 51 and the characteristic curve 52, the input current threshold value Im and the output voltage threshold value Vm are obtained. These threshold values are stored in the characteristic threshold value storage unit 64.

次に、出荷後にユーザのもとで自動的に入力電流減少出力電圧増大の特性を自動的に測定する場合について図8に示すフローチャートを用いて説明する。   Next, a case where the characteristics of the increase in the input current decrease and the output voltage are automatically measured under the user after shipment will be described with reference to the flowchart shown in FIG.

後述するように、後述するように特性の再測定は、時計72あるいは人感センサ73による検知状態によっても変えることがあるが、ここでは装置の不動作時間測定部71の出力測定結果によってのみ、特性再測定を行う基本的な実施形態について説明する。   As will be described later, the remeasurement of characteristics may change depending on the detection state by the clock 72 or the human sensor 73 as described later, but here, only by the output measurement result of the non-operation time measuring unit 71 of the apparatus, A basic embodiment for performing characteristic remeasurement will be described.

図8において、まずA801で、CPU60は装置が動作を開始したかどうかを検知する。装置が動作を開始していなければ、開始を検知するまで待つ。CPU60が装置の動作開始を検知すると、A802で、CPU60は装置が動作を停止したかどうかを検知する。装置が動作を停止すると、用紙有無検知部59は、A803で用紙有無検知部59によりサーマル用紙4が搬送路にないかどうかを検知する。用紙有無検知部59からサーマル用紙4が搬送路にないことを検知すると、CPU60は、装置状況検知部68の不動作時間測定部71に測定開始制御信号を送り、不動作時間の測定を開始させる(A804)。   In FIG. 8, first in A801, the CPU 60 detects whether or not the apparatus has started operation. If the device has not started operation, wait until the start is detected. When the CPU 60 detects the start of operation of the apparatus, in A802, the CPU 60 detects whether the apparatus has stopped operating. When the apparatus stops operating, the paper presence / absence detection unit 59 detects whether the thermal paper 4 is not in the transport path by the paper presence / absence detection unit 59 in A803. When it is detected from the sheet presence / absence detection unit 59 that the thermal paper 4 is not in the transport path, the CPU 60 sends a measurement start control signal to the inactivity time measurement unit 71 of the apparatus status detection unit 68 to start measurement of the inactivity time. (A804).

A805では、CPU60は装置が動作を開始したかどうかを検知する。不動作時間計測中に装置が動作を開始(A805でY)したら、A802に戻ってCPU60は装置が動作を停止したかどうかを検知する。   In A805, the CPU 60 detects whether the apparatus has started operation. If the device starts operating during the inactive time measurement (Y in A805), the process returns to A802 and the CPU 60 detects whether the device has stopped operating.

一方、不動作時間の計測中に装置が動作しない場合には、A806において不動作時間測定部71は、現在までの連続不動作時間を所定時間(特性再測定時間)と比較することにより、装置の不動作が継続してこの所定時間を超えたかどうか検知する。不動作時間測定部71は、この所定時間を超えない限りその時間の測定を継続する。   On the other hand, when the apparatus does not operate during the measurement of the inactive time, in A806, the inactive time measuring unit 71 compares the continuous inactive time up to the present time with a predetermined time (characteristic re-measurement time). It is detected whether or not the non-operation continues for a predetermined time. The non-operation time measuring unit 71 continues measuring the time unless the predetermined time is exceeded.

不動作が所定時間を超えた(A806でY)場合には、CPU60はユーザがこの装置をしばらく使用しないと判断し、A807で入力電流減少出力電圧増大の特性(図4の特性曲線52に相当する特性)を測定し直すことになる。CPU60は、動作電流変更部62に発光素子61aの動作電流を所定電流から減少させる方向に変化させる。そして用紙有無検知部59により搬送路にサーマル用紙4がないことを検知した状態で、発光素子61aから光を発射させ、受光素子61pで光を受光する。   When the non-operation exceeds the predetermined time (Y in A806), the CPU 60 determines that the user does not use the device for a while, and in A807, the characteristic of the input current decrease output voltage increase (corresponding to the characteristic curve 52 in FIG. 4). Measurement). The CPU 60 causes the operating current changing unit 62 to change the operating current of the light emitting element 61a in a direction to decrease from the predetermined current. In a state where the presence / absence detection unit 59 detects that there is no thermal paper 4 in the conveyance path, light is emitted from the light emitting element 61a and light is received by the light receiving element 61p.

このときの発光素子61aの動作電流と受光素子61pから出力される出力電圧の特性は、特性閾値記憶部64に記憶される。この特性は例えば図5で特性曲線53に示すようになる。オンからオフに変わるときの発光素子の出力光量が同じとすれば経年変化により、必要な入力電流は大きくなるので、再測定された特性曲線53は、最初の特性曲線52より変化部分が右側にくる特性曲線となる。   The characteristics of the operating current of the light emitting element 61a and the output voltage output from the light receiving element 61p at this time are stored in the characteristic threshold value storage unit 64. This characteristic is, for example, as shown by a characteristic curve 53 in FIG. If the output light amount of the light emitting element when changing from on to off is the same, the necessary input current increases due to secular change. Therefore, the re-measured characteristic curve 53 is changed to the right side from the first characteristic curve 52. It becomes a coming characteristic curve.

このようにして、特性曲線53が得られると、その特性曲線53と出荷時に測定された入力電流増大出力電圧減少の特性曲線51(図4)から適切な入力電流閾値及び出力電圧閾値が求められる。   When the characteristic curve 53 is obtained in this way, appropriate input current threshold and output voltage threshold are obtained from the characteristic curve 53 and the characteristic curve 51 (FIG. 4) of the input current increasing output voltage decreasing measured at the time of shipment. .

このときの入力電流閾値は電流閾値算出部65が計算する(A808)。このときの適切な閾値を先の入力電流閾値と電流閾値比較部66において比較される(A809)。   The input current threshold value at this time is calculated by the current threshold value calculation unit 65 (A808). The appropriate threshold value at this time is compared with the previous input current threshold value in the current threshold value comparison unit 66 (A809).

閾値差が所定値を超えたときには、A811で、CPUの制御の下でこの現在の入力電流閾値を新しく入力電流閾値に設定し、特性閾値記憶部64に記憶する。これが完了すると、再びA801に戻る。   When the threshold difference exceeds the predetermined value, in A811, the current input current threshold is newly set as the input current threshold under the control of the CPU, and stored in the characteristic threshold storage unit 64. When this is completed, the process returns to A801 again.

一方、A810で、電流閾値比較部66においてこの両閾値の差が予め定められた所定値と比較されこの差が小さいこと(A810でN)検知されたときには、もとに戻ってA801で装置の動作開始を検知する。このように、閾値差が所定値を超えたときに閾値を再設定するのは、この閾値差が小さいときは、それほど頻繁に閾値を変えても効果が少ないためである。勿論、特性曲線を測定するたびごとに閾値を再設定するようにしてもよい。   On the other hand, when the difference between the two thresholds is compared with a predetermined value in A810 and detected that the difference is small (N in A810), the process returns to the original and the apparatus returns to A801. Detects the start of operation. As described above, the threshold is reset when the threshold difference exceeds the predetermined value because the effect is small even if the threshold is changed so frequently when the threshold difference is small. Of course, the threshold value may be reset every time the characteristic curve is measured.

なお、経年変化により発光素子の入力電流に対する発光量が少なくなると、特性曲線は図5の特性曲線53,54,55に示すように変化する。これらの閾値が徐々に大きくなるので、例えば特性曲線55に示すように閾値が大きくなったときに閾値を更新するようにできる。   Note that when the light emission amount with respect to the input current of the light emitting element decreases due to secular change, the characteristic curve changes as shown by characteristic curves 53, 54, and 55 in FIG. Since these threshold values gradually increase, the threshold values can be updated when the threshold value increases, for example, as shown by the characteristic curve 55.

また、用紙がないことを検知したときの特性曲線を求め、閾値(電圧値)を求めて記憶し、この閾値を予め定めた所定回数記憶してその平均を求めてその平均値を計算する。この平均値が現在の閾値と一定以上かい離しているときに、今回算出された、用紙なしのときの電圧値をもとに閾値の算出を行い以後の用紙有無の判別に使用する。そして、今回閾値を算出した平均化された用紙なしの電圧値を次回の比較用に記憶しておくようにすることもできる。   Further, a characteristic curve when it is detected that there is no paper is obtained, a threshold value (voltage value) is obtained and stored, this threshold value is stored a predetermined number of times, an average is obtained, and an average value is calculated. When the average value is more than a certain value from the current threshold value, the threshold value is calculated based on the voltage value calculated when there is no paper, and is used to determine the presence of paper thereafter. Then, it is possible to store the averaged voltage value without a sheet for which the threshold value is calculated for the next comparison.

本実施形態によれば、装置がユーザのもとで使用されて経年変化を起こした場合にも自動的に入力電流の適切な閾値を再設定することが可能となり、用紙有無の検知は従来に比べて正確さを維持することが可能となる。   According to the present embodiment, it is possible to automatically reset an appropriate threshold value of the input current even when the apparatus is used under the user and causes a secular change. It is possible to maintain accuracy compared to the above.

なお、上記実施形態では、図7に示す装置状況検知部68内の不動作時間測定部71により装置が動作していない時間のみにより特性を測定し再設定する場合について述べた。   In the above embodiment, the case has been described in which the characteristics are measured and reset only by the time during which the apparatus is not operating by the non-operation time measuring section 71 in the apparatus status detecting section 68 shown in FIG.

しかし本発明は、これだけでなく、例えば現在時刻と組み合わせて、現在時刻が夜であり、その時に不動作時間が所定時間続いたときに上述のように特性曲線を求めるようにすることができる。現在時刻は、時計72により検知することができ、CPU60は、不動作時間測定部71で装置が所定時間経ったことと、現在時刻範囲、例えば夜23時以降でかつ朝の5時前であることを検知し、さらに、現在用紙有無検知部59によって搬送路に用紙がないことを検知して、入力電流減少出力電圧増大の特性を測定する。そして現在の適切な入力電流閾値を求める。   However, the present invention is not limited to this, and the characteristic curve can be obtained as described above when the current time is night, for example, in combination with the current time, and the non-operation time continues for a predetermined time at that time. The current time can be detected by the clock 72, and the CPU 60 determines that the device has passed a predetermined time in the inactive time measuring unit 71 and that the current time range is, for example, after 23:00 and before 5:00 in the morning. In addition, the current sheet presence / absence detection unit 59 detects that there is no sheet in the conveyance path, and measures the characteristics of the increase in the input current decrease and the output voltage. Then, a current appropriate input current threshold value is obtained.

また、人感センサ73により装置の周りに人がいないことを検知し、その状態で装置の不動作時間が所定時間経過した場合にのみ、特性測定をし直すようにすることもできる。   It is also possible to detect the presence of a person around the device by the human sensor 73 and perform the characteristic measurement again only when a predetermined time has elapsed in the device in that state.

この実施形態では、人感センサ73により装置の周辺に人(動くもの)がいないことを検知し、その時に不動作時間測定部71で所定時間、装置が動作していないことを検知する。このような装置状況の情報は装置状況検知部68からCPU60に送られる。一方、搬送路に用紙がないことは用紙有無検知部59で検知され、この情報もCPU60に送られる。   In this embodiment, the presence sensor 73 detects that there is no person (moving thing) around the device, and the non-operation time measuring unit 71 detects that the device has not been operated for a predetermined time. Such device status information is sent from the device status detection unit 68 to the CPU 60. On the other hand, the absence of paper in the transport path is detected by the paper presence / absence detection unit 59, and this information is also sent to the CPU 60.

CPU60では、これらの情報に基づいて入力電流減少出力電圧増大の特性を求めるための動作を動作電流変更部62などに指示して特性を測定することができる。   The CPU 60 can measure the characteristics by instructing the operation current changing unit 62 or the like to perform an operation for obtaining the characteristics of the input current decrease output voltage increase based on the information.

上記実施形態では、入力電流減少出力電圧増大特性における経年変化による入力電流閾値の変化について述べた。しかしこれだけでなく、出力電圧の適切な閾値も変化する場合があり、このときに入力電流閾値の再設定だけでなく、出力電圧の再設定を行うことも可能であり、この閾値も再設定すれば、更に正確に紙葉類有無検知を行うことができる利点がある。この場合も、連続不動作時間のみでなく、現在時刻が所定時刻範囲内にあること、あるいは、装置の周りに人がいないことを条件とすることができる。   In the above embodiment, the change in the input current threshold value due to the secular change in the input current decrease output voltage increase characteristic has been described. However, not only this, but also the appropriate threshold of the output voltage may change.At this time, it is possible not only to reset the input current threshold, but also to reset the output voltage. For example, there is an advantage that paper sheet presence / absence can be detected more accurately. In this case as well, not only the continuous non-operation time but also the condition that the current time is within a predetermined time range or that there is no person around the device can be used.

なお、上記実施形態では、用紙センサの調整についてのみ説明したが、通帳センサの調整についても同様に実施可能である。   Although only the adjustment of the paper sensor has been described in the above embodiment, the adjustment of the passbook sensor can be similarly performed.

また、ステートメントプリンタST及びパスブックプリンタPBからなるプリント装置でサーマル用紙に印字する例について説明した。しかし、サーマル用紙に限られず、複写機やファクシミリ装置など、一般的には紙葉類を光学的に検知する紙葉類センサを有するものであれば、他の装置や機器にも同様に適用可能である。   Further, an example in which printing is performed on thermal paper by a printing apparatus including the statement printer ST and the passbook printer PB has been described. However, it is not limited to thermal paper, but can be applied to other devices and devices as long as it has a paper sheet sensor that optically detects paper sheets, such as copying machines and facsimile machines. It is.

実施形態によれば、経年変化により発光素子の光が弱くなっても、紙葉類有無の適切な閾値を自動的に設定可能な紙葉類有無検知装置及び紙葉類有無検知方法が得られる。   According to the embodiment, there is obtained a paper sheet presence / absence detection device and a paper sheet presence / absence detection method capable of automatically setting an appropriate threshold value for the presence / absence of paper sheets even when light of a light emitting element becomes weak due to secular change. .

本発明のいくつかの実施形態を説明したが、これらの実施形態は例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although several embodiments of the present invention have been described, these embodiments have been presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

61a・・・・発光素子
61p・・・・受光素子
63・・・・・出力電圧検知部
62・・・・・動作電流変更部
64・・・・・特性閾値記憶部
60・・・・・CPU
65・・・・電流閾値算出部
66・・・・・電流閾値比較部
67・・・・・操作部
68・・・・・装置状況検知部
71・・・・不動作時間測定部
61a... Light emitting element 61p... Light receiving element 63... Output voltage detection unit 62... Operation current changing unit 64. CPU
65... Current threshold calculation unit 66... Current threshold comparison unit 67 .. Operation unit 68... Device status detection unit 71.

Claims (5)

紙葉類の搬送路を挟んで対向する発光素子及び受光素子と、
前記搬送路における紙葉類の有無を検知する紙葉類有無検知部と、
所定のタイミングにおいて、前記紙葉類有無検知部により前記搬送路内に紙葉類がないと判断される場合に、前記発光素子に動作電流を減少させていったときに前記受光素子で受光して出力される出力電圧の特性に基づき、前記受光素子の最適な出力電圧を求め、紙葉類有無の閾値として再設定する制御部と、
を備える紙葉類有無検知装置。
A light-emitting element and a light-receiving element that face each other across the conveyance path of the paper,
A paper sheet presence / absence detection unit for detecting the presence or absence of paper sheets in the conveyance path;
When the paper sheet presence / absence detection unit determines that there is no paper sheet in the transport path at a predetermined timing, the light receiving element receives light when the operating current is reduced in the light emitting element. A control unit that obtains the optimum output voltage of the light receiving element based on the characteristics of the output voltage that is output, and resets it as a threshold for the presence or absence of paper sheets;
Paper sheet presence / absence detection device.
前記制御部は、前記最適な出力電圧と再設定する前の前記閾値との閾値差が所定値を超えた場合に、前記再設定を行う請求項1に記載の紙葉類有無検知装置。   The paper sheet presence / absence detection device according to claim 1, wherein the control unit performs the resetting when a threshold difference between the optimum output voltage and the threshold before resetting exceeds a predetermined value. 紙葉類の搬送路を挟んで対向する発光素子及び受光素子と、
前記搬送路における紙葉類の有無を検知する紙葉類有無検知部と、
所定のタイミングにおいて、前記紙葉類有無検知部により前記搬送路内に紙葉類がないと判断される場合に、前記発光素子の動作電流を減少させていったときに前記受光素子で受光して出力される出力電圧の特性に基づき前記発光素子の最適な入力電流を求める制御部と、
を備える紙葉類有無検知装置
A light-emitting element and a light-receiving element that face each other across the conveyance path of the paper,
A paper sheet presence / absence detection unit for detecting the presence or absence of paper sheets in the conveyance path;
When the paper sheet presence / absence detection unit determines that there is no paper sheet in the transport path at a predetermined timing, the light receiving element receives light when the operating current of the light emitting element is reduced. A control unit for obtaining an optimum input current of the light emitting element based on the characteristics of the output voltage output
Paper sheet presence / absence detection device
この紙葉類有無検知装置が動作していない連続時間を測定する不動作時間測定部を更に有し、前記所定のタイミングは、前記不動作時間測定部により測定される連続不動作時間が所定時間を超えたタイミングである請求項1乃至請求項3のいずれか1項に記載の紙葉類有無検知装置。   The paper sheet presence / absence detection device further includes a non-operation time measurement unit that measures a continuous time during which the paper sheet presence / absence detection device is not operating, and the predetermined timing is a predetermined time during which the non-operation time is measured by the non-operation time measurement unit. The paper sheet presence / absence detection device according to any one of claims 1 to 3, wherein the timing of the paper sheet is exceeded. 対向する発光素子と受光素子の間に設けられた紙葉類の搬送路における紙葉類の有無を紙葉類有無検知部により検知し、
所定のタイミングにおいて、前記紙葉類有無検知部により前記搬送路内に紙葉類がないと判断される場合に、前記発光素子に動作電流を減少させていったときに前記受光素子で受光して出力される出力電圧の特性に基づき、制御部により前記受光素子の最適な出力電圧を求め、紙葉類有無の閾値として再設定する、
紙葉類有無検知方法。
The paper sheet presence / absence detection unit detects the presence or absence of paper sheets in the paper sheet conveyance path provided between the opposing light emitting element and light receiving element,
When the paper sheet presence / absence detection unit determines that there is no paper sheet in the transport path at a predetermined timing, the light receiving element receives light when the operating current is reduced in the light emitting element. The optimal output voltage of the light receiving element is obtained by the control unit based on the characteristics of the output voltage that is output, and is reset as a threshold for the presence or absence of paper sheets,
Paper sheet presence / absence detection method.
JP2014155048A 2014-07-30 2014-07-30 Device and method for detecting paper existence Pending JP2016030690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014155048A JP2016030690A (en) 2014-07-30 2014-07-30 Device and method for detecting paper existence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014155048A JP2016030690A (en) 2014-07-30 2014-07-30 Device and method for detecting paper existence

Publications (1)

Publication Number Publication Date
JP2016030690A true JP2016030690A (en) 2016-03-07

Family

ID=55441297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014155048A Pending JP2016030690A (en) 2014-07-30 2014-07-30 Device and method for detecting paper existence

Country Status (1)

Country Link
JP (1) JP2016030690A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002351281A (en) * 2001-05-29 2002-12-06 Canon Inc Image forming device
JP2010189075A (en) * 2009-02-16 2010-09-02 Seiko Epson Corp Recorder, control method of recorder and control program
JP2010215375A (en) * 2009-03-17 2010-09-30 Toshiba Tec Corp Method for adjusting sensor for paper sheet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002351281A (en) * 2001-05-29 2002-12-06 Canon Inc Image forming device
JP2010189075A (en) * 2009-02-16 2010-09-02 Seiko Epson Corp Recorder, control method of recorder and control program
JP2010215375A (en) * 2009-03-17 2010-09-30 Toshiba Tec Corp Method for adjusting sensor for paper sheet

Similar Documents

Publication Publication Date Title
US9906668B2 (en) Image forming apparatus, front-back magnification correction method, and computer program product
JP2011178487A (en) Sheet thickness detection device, image forming apparatus and sheet feeder
JP2010215375A (en) Method for adjusting sensor for paper sheet
JP7207929B2 (en) Detection device, control method and program
JP2000109243A (en) Recording-paper edge position detection method using reflective optical sensor, and image forming device
JP2016030690A (en) Device and method for detecting paper existence
US9181053B2 (en) Paper-feeding device and image forming apparatus
JP6181008B2 (en) Paper sheet presence / absence detection device and paper sheet presence / absence detection method
JP2016084226A (en) Paper detection apparatus, image forming apparatus, and paper detection method
JP2012183671A (en) Printer and its control program
EP3112103B1 (en) Control device and control method
JP5030288B2 (en) Printer
JP2001139189A (en) Paper thickness detection device and printing device
JP6257981B2 (en) Near-end detection device, printer
US12220907B2 (en) Printing apparatus, control method, program, information processing apparatus, and printing system
JP2019034815A (en) Medium physical property detection device, image forming apparatus and medium physical property detection program
JP4280884B2 (en) Recording apparatus and threshold setting method in recording apparatus
US10319169B2 (en) Medium processing apparatus and method of controlling the medium processing apparatus
JP2012179859A (en) Electrical apparatus and control program for the same
JP4692302B2 (en) Image forming apparatus and control method thereof
JP2019150959A (en) Detection device, control method and program
JP4248439B2 (en) Paper edge detection device and printer using the same
JP2020023385A (en) Image forming device
JP2020019595A (en) Printing apparatus
JP6672928B2 (en) Image forming device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170616

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170620

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170809

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20180123