Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5693285B2 - Printer - Google Patents
[go: Go Back, main page]

JP5693285B2 - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP5693285B2
JP5693285B2 JP2011032862A JP2011032862A JP5693285B2 JP 5693285 B2 JP5693285 B2 JP 5693285B2 JP 2011032862 A JP2011032862 A JP 2011032862A JP 2011032862 A JP2011032862 A JP 2011032862A JP 5693285 B2 JP5693285 B2 JP 5693285B2
Authority
JP
Japan
Prior art keywords
light
unit
control unit
recording paper
optical sensor
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.)
Expired - Fee Related
Application number
JP2011032862A
Other languages
Japanese (ja)
Other versions
JP2012171711A (en
Inventor
康男 岩▲崎▼
康男 岩▲崎▼
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011032862A priority Critical patent/JP5693285B2/en
Publication of JP2012171711A publication Critical patent/JP2012171711A/en
Application granted granted Critical
Publication of JP5693285B2 publication Critical patent/JP5693285B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controlling Sheets Or Webs (AREA)

Description

本発明は、記録紙などの被検出物を検出する光センサを備えたプリンタに関する。   The present invention relates to a printer including an optical sensor that detects an object to be detected such as recording paper.

一般に、プリンタは、記録紙などの被検出物の状態を検出するセンサとして、光センサを備えることが多い。例えば、プリンタにおいて、光センサは、記録紙などの被検出物が所定の位置に存在するか否かを検出するために用いられる。   In general, a printer often includes an optical sensor as a sensor for detecting the state of an object to be detected such as recording paper. For example, in a printer, an optical sensor is used to detect whether an object to be detected such as recording paper is present at a predetermined position.

光センサは、被検出物の位置へ光を照射する投光部及びその投光部からの光を受光する受光部とを備え、受光部の検出信号のレベルが、被検出物の有無の指標となる。なお、被検出物の位置とは、被検出物が配置されているはずの位置を意味する。   The optical sensor includes a light projecting unit that irradiates light to the position of the detected object and a light receiving unit that receives light from the light projecting unit, and the level of the detection signal of the light receiving unit is an indicator of the presence or absence of the detected object It becomes. Note that the position of the detected object means a position where the detected object is supposed to be arranged.

例えば、透過型の光センサは、被検出物の位置の両側に対向して配置された投光部及び受光部を備える。そして、被検出物が存在しない場合に、受光部が投光部から直接到達する直接光を受光し、受光部の検出信号のレベルが、所定のしきい値を超える。   For example, a transmissive optical sensor includes a light projecting unit and a light receiving unit that are arranged to face both sides of the position of the object to be detected. Then, when there is no object to be detected, the light receiving unit receives direct light directly reaching from the light projecting unit, and the level of the detection signal of the light receiving unit exceeds a predetermined threshold value.

また、反射型の光センサは、被検出物の位置から見て180度未満の角度の範囲内に配置された投光部及び受光部を備える。そして、被検出物が存在する場合に、受光部が投光部の光が被検出物で反射した反射光を受光し、受光部の検出信号のレベルが、所定のしきい値を超える。   Further, the reflection type optical sensor includes a light projecting unit and a light receiving unit disposed within an angle range of less than 180 degrees when viewed from the position of the object to be detected. When the object to be detected exists, the light receiving unit receives the reflected light that is reflected by the light detected by the light projecting unit, and the level of the detection signal of the light receiving unit exceeds a predetermined threshold value.

ところで、光センサは、投光部からの光(直接光又は反射光)以外の外乱光が受光部に到達すると、誤った検出信号を出力してしまい、それが被検出物の誤検出の原因となる場合がある。プリンタにおいては、外装を形成する筐体の外部から筐体内へ入射する太陽光又は室内照明の光などの外光が、光センサに対する外乱光となる。   By the way, when the disturbance light other than the light (direct light or reflected light) from the light projecting unit reaches the light receiving unit, the optical sensor outputs an erroneous detection signal, which is a cause of erroneous detection of the detected object. It may become. In the printer, external light such as sunlight or indoor illumination light that enters the housing from the outside of the housing forming the exterior becomes disturbance light for the optical sensor.

従来、プリンタにおいて、外光に起因する光センサの誤動作を防止する対策が提案されている。   Conventionally, in a printer, a countermeasure for preventing malfunction of an optical sensor caused by external light has been proposed.

例えば、特許文献1に示されるプリンタは、投光部が消灯されている状態での受光部の検出信号のレベルと、投光部が点灯されている状態での受光部の検出信号のレベルとの差に応じて、記録紙の有無を判定する。この判定手法は、受光部の検出信号のレベルが、外光の強度と投光部からの光の強度との加算値に相当する、ということを前提にしている。   For example, in the printer disclosed in Patent Document 1, the level of the detection signal of the light receiving unit when the light projecting unit is turned off, and the level of the detection signal of the light receiving unit when the light projecting unit is turned on, The presence or absence of recording paper is determined according to the difference. This determination method is based on the premise that the level of the detection signal of the light receiving unit corresponds to the added value of the intensity of outside light and the intensity of light from the light projecting unit.

また、特許文献2に示されるプリンタは、記録紙搬送路の開口部に、外光を遮断するひさしを備える。   In addition, the printer disclosed in Patent Document 2 includes eaves that block external light at the opening of the recording paper conveyance path.

特開2002−68529号公報JP 2002-68529 A 特開2006−298532号公報JP 2006-298532 A

しかしながら、プリンタ内に入った外光の強度が強い場合、受光部の検出信号におけるSN比が悪化し、投光部からの光の有無に応じた受光部の検出信号のレベルの変化が生じにくくなる。そのため、特許文献1に示される第一の従来技術は、外光に起因する光センサの誤動作の防止策として十分ではないという問題を有している。   However, when the intensity of outside light entering the printer is strong, the SN ratio in the detection signal of the light receiving unit deteriorates, and the level of the detection signal of the light receiving unit does not easily change according to the presence or absence of light from the light projecting unit. Become. Therefore, the first prior art disclosed in Patent Document 1 has a problem that it is not sufficient as a measure for preventing malfunction of the optical sensor due to external light.

即ち、外光に起因する光センサの誤動作を防止するためには、そもそも外光がプリンタの筐体内に極力入らない状態で、光センサを動作させることが重要である。   That is, in order to prevent malfunction of the optical sensor due to external light, it is important to operate the optical sensor in a state where external light does not enter the printer housing as much as possible.

また、特許文献2に示される第二の従来技術は、外光を十分に遮断できる大きなひさしが設けられた場合に、そのひさしが記録紙の詰まりを引き起こしやすいという問題点を有している。さらに、第二の従来技術は、記録紙の詰まりが生じない程度の比較的小さなひさしが設けられた場合に、そのような小さなひさしによって外光を十分に遮断することは難しいという問題点を有している。   Further, the second prior art disclosed in Patent Document 2 has a problem that when a large eaves capable of sufficiently blocking outside light is provided, the eaves easily cause the recording paper to be jammed. Furthermore, the second prior art has a problem that it is difficult to sufficiently block outside light by such a small eave when a relatively small eave is provided so as not to cause the recording paper to be jammed. doing.

本発明の目的は、記録紙の詰まりの原因となる遮蔽物を設けることなく、プリンタの筐体内の光センサが、外光に起因して誤動作することを防止できることである。   An object of the present invention is to prevent the optical sensor in the printer casing from malfunctioning due to external light without providing a shield that causes the recording paper to be jammed.

本発明に係るプリンタは、記録紙に画像を形成する装置であり、上記目的を達成するために以下に示される各構成要素を備える。
(1)第1の構成要素は、記録紙を、筐体内の供給部からその筐体に形成された排出口に至る搬送経路に沿って搬送する搬送部である。
(2)第2の構成要素は、筐体内において被検出物の位置へ光を照射する投光部及びその投光部からの光を受光する受光部を備えた光センサである。
(3)第3の構成要素は、搬送部に対し、記録紙をその一部が排出口から外側へはみ出す遮光位置まで搬送する動作を実行させる第一搬送制御部である。
(4)第4の構成要素は、第一搬送制御部による搬送動作が実行された後に、投光部による光の照射を実行させつつ受光部の検出信号を入力する第一光センサ制御部である。
(5)第5の構成要素は、第一光センサ制御部により得られた受光部の検出信号のレベルに応じて被検出物の状態を判定する第一判定部である。
A printer according to the present invention is an apparatus for forming an image on recording paper, and includes the following components to achieve the above object.
(1) The first component is a transport unit that transports the recording paper along a transport path from a supply unit in the housing to a discharge port formed in the housing.
(2) The second component is an optical sensor including a light projecting unit that irradiates light to the position of the object to be detected in the housing and a light receiving unit that receives light from the light projecting unit.
(3) The third component is a first transport control unit that causes the transport unit to execute an operation of transporting the recording paper to a light shielding position where a part of the recording paper protrudes outward from the discharge port.
(4) The fourth component is a first optical sensor control unit that inputs a detection signal of the light receiving unit while performing light irradiation by the light projecting unit after the transport operation by the first transport control unit is performed. is there.
(5) The fifth component is a first determination unit that determines the state of the detected object according to the level of the detection signal of the light receiving unit obtained by the first optical sensor control unit.

プリンタにおいて、記録紙は、その一部が排出口から外側へはみ出す位置(遮光位置)まで搬送されると、排出口をほぼ塞ぐ状態となる。本発明に係るプリンタは、記録紙が遮光位置に存在する状態、即ち、外光が筐体内にほぼ入らない状態で、光センサを動作させ、その動作により得られた受光部の検出信号が、被検出物の状態の判定に用いられる。その結果、外光に起因する光センサの誤動作を防止することが可能となる。しかも、記録紙そのものが外光を遮断し、記録紙の詰まりの原因となる遮蔽物を排出口又は記録紙の搬送経路に設けることは不要である。   In the printer, when a part of the recording paper is conveyed to a position (a light shielding position) that protrudes outward from the discharge port, the discharge port is almost blocked. The printer according to the present invention operates the optical sensor in a state where the recording paper is present at the light shielding position, that is, in a state where external light does not substantially enter the housing, and the detection signal of the light receiving unit obtained by the operation is Used to determine the state of the object to be detected. As a result, it is possible to prevent malfunction of the optical sensor due to external light. In addition, it is not necessary to provide a shielding object in the discharge port or the recording paper conveyance path that causes the recording paper itself to block outside light and cause the recording paper to be jammed.

本発明の実施形態に係るプリンタ1の第一の状態における概略図である。It is the schematic in the 1st state of the printer 1 which concerns on embodiment of this invention. プリンタ1の第二の状態における概略図である。FIG. 3 is a schematic diagram of the printer 1 in a second state. プリンタ1が備えるシステムコントローラのブロック図である。2 is a block diagram of a system controller provided in the printer 1. FIG. プリンタ1が実行する第一実施例に係る光センシング処理の手順を示すフローチャートである。3 is a flowchart showing a procedure of optical sensing processing according to the first embodiment executed by the printer 1; プリンタ1が実行する第二実施例に係る光センシング処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of light sensing processing according to a second embodiment executed by the printer 1; プリンタ1が備える光センサの回路図である。2 is a circuit diagram of an optical sensor provided in the printer 1. FIG.

以下、添付の図面を参照しながら、本発明の実施形態について説明する。以下の実施形態は、本発明を具体化した一例であり、本発明の技術的範囲を限定する事例ではない。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. The following embodiment is an example embodying the present invention, and is not an example of limiting the technical scope of the present invention.

本発明の実施形態に係るプリンタ1は、サーマルヘッドを備えた面順次方式の熱転写プリンタである。   A printer 1 according to an embodiment of the present invention is a frame sequential thermal transfer printer including a thermal head.

<装置の構成>
まず、図1、図2、図3及び図6を参照しつつ、本発明の実施形態に係るプリンタ1の構成について説明する。図1及び図2に示されるように、プリンタ1の画像形成部は、サーマルヘッド21、ヘッド変位装置210、プラテンローラ22、プラテンローラ駆動モータ220、ピンチローラ機構24、ピンチローラ駆動モータ240、インクシートユニット30及び切断装置23を備えている。さらに、プリンタ1は、システムコントローラ10、ペーパーロール40及び光センサ50を備えている。
<Device configuration>
First, the configuration of the printer 1 according to the embodiment of the present invention will be described with reference to FIGS. 1, 2, 3, and 6. As shown in FIGS. 1 and 2, the image forming unit of the printer 1 includes a thermal head 21, a head displacement device 210, a platen roller 22, a platen roller drive motor 220, a pinch roller mechanism 24, a pinch roller drive motor 240, and ink. A sheet unit 30 and a cutting device 23 are provided. The printer 1 further includes a system controller 10, a paper roll 40, and an optical sensor 50.

以上に示したプリンタ1の各構成要素は、プリンタ1の外装を形成する筐体60の内側に収容されている。   Each component of the printer 1 described above is housed inside a housing 60 that forms the exterior of the printer 1.

さらに、図3に示されるように、システムコントローラ10は、通信インターフェース11、マイクロコンピュータ12、操作部13、表示部14、アクチュエータ駆動回路15、メモリ16、画像処理回路17、サーマルヘッドコントローラ18を備える。通信インターフェース11、マイクロコンピュータ12、操作部13、表示部14、画像処理回路17及びサーマルヘッドコントローラ18は、例えば、バスを介して相互にデータの受け渡しが可能である。   Further, as shown in FIG. 3, the system controller 10 includes a communication interface 11, a microcomputer 12, an operation unit 13, a display unit 14, an actuator drive circuit 15, a memory 16, an image processing circuit 17, and a thermal head controller 18. . The communication interface 11, the microcomputer 12, the operation unit 13, the display unit 14, the image processing circuit 17, and the thermal head controller 18 can exchange data with each other via, for example, a bus.

<画像形成部の基本構成>
インクシートユニット30は、帯状のインクシート3がロール状に巻かれた部分である繰り出し部31と、繰り出し部31から繰り出されたインクシート3が巻き取られた部分である巻き取り部32とを備える。また、インクシート3は、帯状のフィルムからなる基材層の表面に複数の色の昇華性の染料インクの層が形成された部分であるインク形成部と、基材層の表面に透明な保護材の層が形成された部分である保護材形成部とを有している。インク形成部各々及び保護材形成部は、帯状のインクシート3の長手方向において予め定められた順番で繰り返し配列されている。
<Basic configuration of image forming unit>
The ink sheet unit 30 includes a feeding portion 31 that is a portion in which the belt-shaped ink sheet 3 is wound in a roll shape, and a winding portion 32 that is a portion in which the ink sheet 3 fed from the feeding portion 31 is wound. Prepare. Further, the ink sheet 3 includes an ink forming portion which is a portion in which a sublimable dye ink layer of a plurality of colors is formed on the surface of a base material layer made of a belt-like film, and a transparent protection on the surface of the base material layer. And a protective material forming portion which is a portion where the material layer is formed. Each of the ink forming portions and the protective material forming portion is repeatedly arranged in a predetermined order in the longitudinal direction of the strip-shaped ink sheet 3.

インクシートのインク形成部は、例えば、イエローのインク層の部分、マゼンタのインク層の部分、及びシアンのインク層の部分を含む。なお、インク形成部が、ブラックのインク層の部分を含む場合もある。   The ink forming portion of the ink sheet includes, for example, a yellow ink layer portion, a magenta ink layer portion, and a cyan ink layer portion. The ink forming unit may include a black ink layer portion.

ペーパーロール40は、帯状の記録紙4が巻き取られてロール状にまとめられた物である。昇華型熱転写プリンタ用の記録紙4は、シート状の基材層の表面に受容層が形成された構造を有している。受容層は、染料インクとの親和性の高い樹脂の層であり、インクシート3のインクは、記録紙4の受容層へ転写される。   The paper roll 40 is a roll-like recording paper 4 that is rolled up and collected into a roll. The recording paper 4 for a sublimation thermal transfer printer has a structure in which a receiving layer is formed on the surface of a sheet-like base material layer. The receiving layer is a resin layer having high affinity with the dye ink, and the ink of the ink sheet 3 is transferred to the receiving layer of the recording paper 4.

ピンチローラ機構24は、記録紙4を第1方向及びその反対の第2方向へ搬送する機構であり、記録紙4を挟み込んで回転するピンチローラ241及びグリップローラ242を備える。また、ピンチローラ駆動モータ240は、ピンチローラ241を正回転及び逆回転させるモータである。   The pinch roller mechanism 24 is a mechanism for transporting the recording paper 4 in the first direction and the second direction opposite thereto, and includes a pinch roller 241 and a grip roller 242 that rotate while sandwiching the recording paper 4. The pinch roller drive motor 240 is a motor that rotates the pinch roller 241 forward and backward.

プラテンローラ22は、被転写体である記録紙4及び現像体であるインクシート3をサーマルヘッド21との間に挟んで回転するローラである。また、プラテンローラ駆動モータ220は、プラテンローラ22を正回転及び逆回転させるモータである。   The platen roller 22 is a roller that rotates while sandwiching the recording sheet 4 as a transfer target and the ink sheet 3 as a developer between the thermal head 21. The platen roller drive motor 220 is a motor that rotates the platen roller 22 forward and backward.

プリンタ1の筐体60には、記録紙4の排出口61が形成されている。排出口61は、筐体60の内側と外側とに連通する貫通孔である。   A discharge port 61 for the recording paper 4 is formed in the housing 60 of the printer 1. The discharge port 61 is a through hole that communicates with the inside and the outside of the housing 60.

ピンチローラ機構24、ピンチローラ駆動モータ240、プラテンローラ22及びプラテンローラ駆動モータ220は、記録紙4を、筐体60内のペーパーロール40から排出口61に至る搬送経路に沿って搬送する搬送装置の一例である。以下、ピンチローラ駆動モータ240、プラテンローラ22及びプラテンローラ駆動モータ220の全体を、搬送装置(24,240,22,220)と総称する。なお、ペーパーロール40は、筐体60内における記録紙4の供給部の一例である。   The pinch roller mechanism 24, the pinch roller drive motor 240, the platen roller 22, and the platen roller drive motor 220 convey the recording paper 4 along the conveyance path from the paper roll 40 in the housing 60 to the discharge port 61. It is an example. Hereinafter, the whole of the pinch roller driving motor 240, the platen roller 22, and the platen roller driving motor 220 is collectively referred to as a conveying device (24, 240, 22, 220). The paper roll 40 is an example of a supply unit for the recording paper 4 in the housing 60.

サーマルヘッド21は、インクシート3におけるインク形成部各々及び保護材形成部を順次加熱する装置である。サーマルヘッド21におけるインクシート3との接触部にはヒータ211が設けられている。サーマルヘッド21は、画像のピクセル単位でインクシート3の加熱エネルギーを調節できる。   The thermal head 21 is a device that sequentially heats each ink forming portion and the protective material forming portion in the ink sheet 3. A heater 211 is provided at a contact portion of the thermal head 21 with the ink sheet 3. The thermal head 21 can adjust the heating energy of the ink sheet 3 in pixel units of the image.

ヘッド変位装置210は、サーマルヘッド21を移動可能に支持するアクチュエータである。サーマルヘッド21は、ヘッド変位装置210により、プラテンローラ22に近接し、プラテンローラ22との間にインクシート3を挟み込む記録位置と、プラテンローラ22から離れた待避位置との間で移動可能に支持されている。ヘッド変位装置210は、例えばソレノイドなどである。なお、図1及び図2は、サーマルヘッド21が待避位置に存在する状態を示している。   The head displacement device 210 is an actuator that movably supports the thermal head 21. The thermal head 21 is supported by the head displacement device 210 so as to be movable between a recording position where the ink sheet 3 is sandwiched between the platen roller 22 and a retracted position away from the platen roller 22. Has been. The head displacement device 210 is, for example, a solenoid. 1 and 2 show a state in which the thermal head 21 exists at the retracted position.

切断装置23は、筐体60内における排出口61の近傍に配置され、ペーパーロール40側と連なったまま排出口61から排出された記録紙4を、1ページ分ずつ切断する装置である。   The cutting device 23 is a device that is arranged near the discharge port 61 in the housing 60 and cuts the recording paper 4 discharged from the discharge port 61 one page at a time while being connected to the paper roll 40 side.

プリント処理が実行される場合、まず、サーマルヘッド21が退避位置に存在する状態において、記録紙4は、第一方向に回転するピンチローラ機構24及びプラテンローラ22によって、ペーパーロール40から繰り出されつつ、プラテンローラ22とインクシート3との間を経て排出口61へ向かう順方向へ搬送される。図1は、記録紙4が順方向へ搬送されている状態を示す。その際、インクシート3は、図1に示されるように、記録紙4から離れた状態で停止している。   When the printing process is executed, first, in a state where the thermal head 21 is in the retracted position, the recording paper 4 is being fed out from the paper roll 40 by the pinch roller mechanism 24 and the platen roller 22 that rotate in the first direction. Then, the sheet is conveyed in the forward direction toward the discharge port 61 through between the platen roller 22 and the ink sheet 3. FIG. 1 shows a state in which the recording paper 4 is conveyed in the forward direction. At that time, the ink sheet 3 is stopped in a state of being separated from the recording paper 4 as shown in FIG.

次に、サーマルヘッド21が記録位置に存在する状態において、記録紙4は、第二方向に回転するピンチローラ機構24及びプラテンローラ22により、排出口61からペーパーロール40へ向かう逆方向へ搬送される。その際、インクシート3は、記録紙4に密着した状態で繰り出し部31から巻き取り部32へ移動する。   Next, in a state where the thermal head 21 exists at the recording position, the recording paper 4 is conveyed in the reverse direction from the discharge port 61 to the paper roll 40 by the pinch roller mechanism 24 and the platen roller 22 that rotate in the second direction. The At that time, the ink sheet 3 moves from the feeding unit 31 to the winding unit 32 in a state of being in close contact with the recording paper 4.

さらに、サーマルヘッド21が、移動中のインクシート3を加熱し、画像又はオーバーコート層をインクシート3から記録紙4へ転写させる。その際、サーマルヘッド21は、画像データにおける各ピクセルの濃度に応じた加熱エネルギーでインクシート3のインク形成部を加熱する。   Further, the thermal head 21 heats the moving ink sheet 3 to transfer the image or the overcoat layer from the ink sheet 3 to the recording paper 4. At that time, the thermal head 21 heats the ink forming portion of the ink sheet 3 with heating energy corresponding to the density of each pixel in the image data.

画像が形成された記録紙4は、再び、ピンチローラ機構24及びプラテンローラ22によって順方向へ搬送され、排出口61から排出される。最後に、切断装置23が、記録紙4を切断する。   The recording paper 4 on which the image is formed is again conveyed in the forward direction by the pinch roller mechanism 24 and the platen roller 22 and is discharged from the discharge port 61. Finally, the cutting device 23 cuts the recording paper 4.

以上に示されるように、プリンタ1は、プリント処理において、サーマルヘッド21を待避位置に移動させて記録紙4を1ページ分だけ順方向へ搬送する動作と、サーマルヘッド21を記録位置に移動させてインクシート3を加熱しつつ記録紙4を逆方向へ搬送することにより画像の転写を行う動作と、を順次繰り返す。   As described above, in the printing process, the printer 1 moves the thermal head 21 to the retracted position and conveys the recording paper 4 in the forward direction by one page, and moves the thermal head 21 to the recording position. The operation of transferring the image by conveying the recording paper 4 in the reverse direction while heating the ink sheet 3 is sequentially repeated.

プリント処理により、各色のインクの画像がインクシート3から記録紙4へ順次重ねて転写される。さらに、オーバーコート層が、インクシート3から記録紙4へ、記録紙4上のカラー画像を覆うように転写される。プリント処理を実行する各機器は、マイクロコンピュータ12によって制御される。   By the printing process, the ink images of the respective colors are sequentially transferred from the ink sheet 3 to the recording paper 4 and transferred. Further, the overcoat layer is transferred from the ink sheet 3 to the recording paper 4 so as to cover the color image on the recording paper 4. Each device that executes the printing process is controlled by the microcomputer 12.

また、プリンタ1は、図2に示されるように、サーマルヘッド21が待避位置に存在する状態で、記録紙4を逆方向へ搬送することも可能である。この場合、記録紙4に対する画像形成は実行されない。   Further, as shown in FIG. 2, the printer 1 can also transport the recording paper 4 in the reverse direction with the thermal head 21 in the retracted position. In this case, image formation on the recording paper 4 is not executed.

<光センサの構成>
光センサ50は、筐体60内において被検出物の有無を検出する非接触センサである。本実施形態において、プリンタ1は2つの光センサ50を備えている。以下、一方の光センサ50を第一光センサ50A、他方の光センサ50を第二光センサ50Bと称する。
<Configuration of optical sensor>
The optical sensor 50 is a non-contact sensor that detects the presence or absence of an object to be detected in the housing 60. In the present embodiment, the printer 1 includes two optical sensors 50. Hereinafter, one optical sensor 50 is referred to as a first optical sensor 50A, and the other optical sensor 50 is referred to as a second optical sensor 50B.

第一光センサ50Aは、ペーパーロール40が適切な位置に装着されているか否かを検出するセンサである。また、第一光センサ50Aは、ペーパーロール40に予め定められた量以上の記録紙4が残っているか否かを検出するセンサとしても機能する。   The first optical sensor 50A is a sensor that detects whether or not the paper roll 40 is mounted at an appropriate position. The first optical sensor 50 </ b> A also functions as a sensor that detects whether or not a predetermined amount or more of the recording paper 4 remains on the paper roll 40.

一方、第二光センサ50Bは、記録紙4の搬送経路における画像形成位置と排出口61との間の所定位置に記録紙4が存在するか否かを検出するセンサである。   On the other hand, the second optical sensor 50 </ b> B is a sensor that detects whether or not the recording paper 4 exists at a predetermined position between the image forming position and the discharge port 61 in the conveyance path of the recording paper 4.

光センサ50は、被検出物の位置へ光を照射する投光部51と、その投光部51からの光を受光する受光部52とを備える。   The optical sensor 50 includes a light projecting unit 51 that irradiates light to the position of an object to be detected, and a light receiving unit 52 that receives light from the light projecting unit 51.

図6は、光センサ50の回路図の一例である。図6に示される例では、光センサ50の投光部51を構成する回路は、電位供給部とグランドとの間に直列接続された発光ダイオード511、トランジスタ512及び抵抗素子513を備えている。トランジスタ512は、制御入力端子514に入力される制御信号に応じて、発光ダイオード511の点灯及び消灯を切り替えるスイッチ素子である。発光ダイオード511の光は、被検出物の位置へ照射される。   FIG. 6 is an example of a circuit diagram of the optical sensor 50. In the example shown in FIG. 6, the circuit constituting the light projecting unit 51 of the optical sensor 50 includes a light emitting diode 511, a transistor 512, and a resistance element 513 connected in series between the potential supply unit and the ground. The transistor 512 is a switch element that switches on and off of the light emitting diode 511 in accordance with a control signal input to the control input terminal 514. The light of the light emitting diode 511 is irradiated to the position of the object to be detected.

また、光センサ50の受光部52を構成する回路は、電位供給部とグランドとの間に直列接続されたフォトトランジスタ521及び抵抗素子522を備えている。フォトトランジスタ521は、発光ダイオード511からの光を受光する受光素子の一例であり、受光した光の強度に応じてレベルが変化する検出信号を、信号出力端子523を通じて出力する。   The circuit constituting the light receiving unit 52 of the optical sensor 50 includes a phototransistor 521 and a resistance element 522 connected in series between the potential supply unit and the ground. The phototransistor 521 is an example of a light receiving element that receives light from the light emitting diode 511, and outputs a detection signal whose level changes according to the intensity of the received light through the signal output terminal 523.

プリンタ1が備える2つの光センサ50各々の受光部52は、筐体60内における排出口61よりも低い位置に配置されている。なお、図1及び図2に示される2つの光センサ50は、いずれも透過型の光センサであるが、反射型の光センサが採用されてもよい。   The light receiving portions 52 of the two optical sensors 50 included in the printer 1 are disposed at a position lower than the discharge port 61 in the housing 60. The two optical sensors 50 shown in FIGS. 1 and 2 are both transmissive optical sensors, but reflective optical sensors may be employed.

なお、透過型の光センサは、投光部51の光を受光部52に伝えやすいため、受光部52においてSN比の高い検出信号が得られ、検出精度が高い。さらに、透過型の光センサは、低コストであり、取り付けが容易である。   In addition, since the transmissive optical sensor easily transmits the light from the light projecting unit 51 to the light receiving unit 52, the light receiving unit 52 can obtain a detection signal with a high S / N ratio and has high detection accuracy. Furthermore, the transmissive optical sensor is low in cost and easy to install.

一方、反射型の光センサは、投光部51及び受光部52の両方を被検出物に対して一方の側に配置することができる。そのため、反射型の光センサは、それを配置するスペースの制約が大きい場合、又は被検出物が大きい場合などに適している。   On the other hand, in the reflection type optical sensor, both the light projecting unit 51 and the light receiving unit 52 can be arranged on one side with respect to the object to be detected. Therefore, the reflection type optical sensor is suitable when the space for arranging the reflection type optical sensor is large or when the object to be detected is large.

<制御関連機器の構成>
操作部13は、操作ボタン又はタッチパネルなど、ユーザによる操作に応じて情報を入力するデバイスである。
<Configuration of control-related equipment>
The operation unit 13 is a device that inputs information according to an operation by a user, such as an operation button or a touch panel.

表示部14は、LEDランプ又は液晶表示パネルなど、プリンタ1の状態又はユーザに対する操作ガイドの情報などを表示するデバイスである。   The display unit 14 is a device that displays the status of the printer 1 or information on an operation guide for the user, such as an LED lamp or a liquid crystal display panel.

通信インターフェース11は、マイクロコンピュータ12と外部のホスト装置5との間のデータ通信を中継する装置である。   The communication interface 11 is a device that relays data communication between the microcomputer 12 and the external host device 5.

マイクロコンピュータ12は、通信インターフェース11を通じてホスト装置5とデータ通信を行うとともに、画像処理回路17、サーマルヘッドコントローラ18、アクチュエータ駆動回路15及び光センサ50を制御するプロセッサである。   The microcomputer 12 is a processor that performs data communication with the host device 5 through the communication interface 11 and controls the image processing circuit 17, the thermal head controller 18, the actuator driving circuit 15, and the optical sensor 50.

マイクロコンピュータ12は、予めメモリ16に記憶されたプログラムモジュールを実行することにより、プリンタ1が備える各機器を制御する制御部として機能する。   The microcomputer 12 functions as a control unit that controls each device provided in the printer 1 by executing a program module stored in the memory 16 in advance.

例えば、マイクロコンピュータ12は、光センシング処理に関するプログラムモジュールを実行することにより、イベント検出部121、搬送制御部122、投光制御部123、受光制御部124及びレベル判定部125として機能する。光センシング処理は、光センサ50各々の投光部51の点灯及び消灯を制御しつつ受光部52の検出信号を入力し、その検出信号のレベルに応じた状態判定を行う処理である。   For example, the microcomputer 12 functions as an event detection unit 121, a conveyance control unit 122, a light projection control unit 123, a light reception control unit 124, and a level determination unit 125 by executing a program module related to optical sensing processing. The optical sensing process is a process of inputting the detection signal of the light receiving unit 52 while controlling the lighting and extinguishing of the light projecting unit 51 of each optical sensor 50 and determining the state according to the level of the detection signal.

イベント検出部121、搬送制御部122、投光制御部123、受光制御部124及びレベル判定部125が実行する処理の詳細は後に示す。なお、イベント検出部121、搬送制御部122、投光制御部123、受光制御部124及びレベル判定部125は、それぞれの機能を果たす回路として構成されてもよい。   Details of processing executed by the event detection unit 121, the conveyance control unit 122, the light projection control unit 123, the light reception control unit 124, and the level determination unit 125 will be described later. Note that the event detection unit 121, the conveyance control unit 122, the light projection control unit 123, the light reception control unit 124, and the level determination unit 125 may be configured as circuits that perform the respective functions.

メモリ16は、マイクロコンピュータ12によって実行されるプログラムモジュール及びマイクロコンピュータ12が参照する各種のパラメータを記憶する不揮発性のメモリである。   The memory 16 is a nonvolatile memory that stores program modules executed by the microcomputer 12 and various parameters referred to by the microcomputer 12.

画像処理回路17は、マイクロコンピュータ12から処理の開始指令を受けた場合に、ホスト装置5から受信した画像データに対してシャープネス演算及びガンマ変換などの各種の画像補正処理を施す演算を実行する回路である。   The image processing circuit 17, when receiving a processing start instruction from the microcomputer 12, executes a calculation for performing various image correction processes such as sharpness calculation and gamma conversion on the image data received from the host device 5. It is.

サーマルヘッドコントローラ18は、画像処理回路17によって補正された画像データに基づいて、サーマルヘッド21の加熱エネルギーをピクセルごとに調節する回路である。   The thermal head controller 18 is a circuit that adjusts the heating energy of the thermal head 21 for each pixel based on the image data corrected by the image processing circuit 17.

アクチュエータ駆動回路15は、マイクロコンピュータ12からの制御指令に従って、ヘッド変位装置210、プラテンローラ駆動モータ220及びピンチローラ駆動モータ240を含むアクチュエータに対して駆動信号及び停止信号を出力する回路である。マイクロコンピュータ12は、アクチュエータ駆動回路15を通じてヘッド変位装置210、プラテンローラ駆動モータ220及びピンチローラ駆動モータ240の動作を制御する。   The actuator drive circuit 15 is a circuit that outputs a drive signal and a stop signal to an actuator including the head displacement device 210, the platen roller drive motor 220, and the pinch roller drive motor 240 in accordance with a control command from the microcomputer 12. The microcomputer 12 controls the operations of the head displacement device 210, the platen roller drive motor 220, and the pinch roller drive motor 240 through the actuator drive circuit 15.

<第一実施例に係る光センシング処理>
続いて、図4に示されるフローチャートを参照しつつ、プリンタ1のシステムコントローラ10が実行する光センシング処理の第一実施例について説明する。
<Optical sensing processing according to the first embodiment>
Next, a first embodiment of the optical sensing process executed by the system controller 10 of the printer 1 will be described with reference to the flowchart shown in FIG.

図4に示される処理は、例えば、プリンタ1のシステムコントローラ10に対して電力が供給され、システムコントローラ10が起動したときに開始される。   The process shown in FIG. 4 is started when, for example, power is supplied to the system controller 10 of the printer 1 and the system controller 10 is activated.

第一実施例において、まず、イベント検出部121が、光センサ50を利用して光センシング処理を開始するイベントの発生を検知する処理を実行する(S1)。光センシング処理の開始イベントは、例えば、記録紙4の搬送動作の禁止条件が成立していない状態で、操作部13に対する予め定められた開始操作、又は通信インターフェース11を通じてホスト装置5から開始信号が入力されたこと、などである。   In the first embodiment, first, the event detection unit 121 uses the optical sensor 50 to execute a process for detecting the occurrence of an event for starting the optical sensing process (S1). The start event of the optical sensing process is, for example, a predetermined start operation for the operation unit 13 or a start signal from the host device 5 through the communication interface 11 in a state where the prohibition condition for the conveyance operation of the recording paper 4 is not satisfied. Entered, and so on.

また、記録紙4の搬送動作の禁止条件は、例えば、筐体60に設けられたドアが開かれていること、などである。   In addition, the prohibition condition for the conveyance operation of the recording paper 4 is, for example, that a door provided in the housing 60 is opened.

そして、光センシング処理の開始イベントが検知されると、搬送制御部122が、搬送装置(24,240,22,220)に対し、記録紙4をその一部が排出口61から外側へはみ出す遮光位置まで搬送する動作を実行させる。例えば、搬送制御部122は、記録紙4が遮光位置に至るために必要な予め定められた時間だけピンチローラ駆動モータ240及びプラテンローラ駆動モータ220を正回転させる。   When the start event of the optical sensing process is detected, the transport control unit 122 blocks the recording paper 4 from the discharge port 61 to the outside with respect to the transport device (24, 240, 22, 220). The operation of transporting to the position is executed. For example, the conveyance control unit 122 rotates the pinch roller driving motor 240 and the platen roller driving motor 220 in the forward direction only for a predetermined time necessary for the recording paper 4 to reach the light shielding position.

図1は、記録紙4が遮光位置まで搬送された状態を示す。図1に示されるように、記録紙4は、その一部が排出口から外側へはみ出す位置(遮光位置)まで搬送されると、排出口61をほぼ塞ぐ状態となる。そのため、太陽光又は室内照明の光などの外光8は、その大部分が記録紙4における排出口61からはみ出た部分によって反射され、筐体60内へはほとんど入らない。   FIG. 1 shows a state in which the recording paper 4 is conveyed to the light shielding position. As shown in FIG. 1, when a part of the recording paper 4 is conveyed to a position (a light shielding position) that protrudes outward from the discharge port, the discharge port 61 is almost blocked. For this reason, most of the external light 8 such as sunlight or light from room lighting is reflected by the portion of the recording paper 4 that protrudes from the discharge port 61, and hardly enters the housing 60.

次に、投光制御部123が、投光部51に制御信号を出力することにより、発光部である発光ダイオード511を点灯させる(S3)。   Next, the light projecting control unit 123 outputs a control signal to the light projecting unit 51, thereby turning on the light emitting diode 511 which is a light emitting unit (S3).

また、記録紙4が遮光位置に存在し、かつ、発光ダイオード511が点灯されている状態において、受光制御部124が、受光部52の検出信号を入力する処理、即ち、受光レベルの入力処理を実行する(S4)。   Further, in a state where the recording paper 4 exists at the light shielding position and the light emitting diode 511 is lit, the light reception control unit 124 performs a process of inputting a detection signal of the light receiving unit 52, that is, a light reception level input process. Execute (S4).

このように、ステップS3,S4において、投光制御部123及び受光制御部124は、記録紙4を遮光位置まで搬送する動作が実行された後に、投光部51による光の照射を実行させつつ受光部52の検出信号を入力する。なお、投光制御部123及び受光制御部124は、第一光センサ制御部の一例である。   As described above, in steps S3 and S4, the light projection control unit 123 and the light reception control unit 124 execute the light irradiation by the light projection unit 51 after the operation of transporting the recording paper 4 to the light shielding position is performed. The detection signal of the light receiving unit 52 is input. The light projection control unit 123 and the light reception control unit 124 are an example of a first light sensor control unit.

さらに、投光制御部123が、投光部51に対する制御信号の出力を停止することにより、発光部(発光ダイオード511)を消灯させる(S5)。   Furthermore, the light projection control unit 123 stops the output of the control signal to the light projection unit 51, thereby turning off the light emitting unit (light emitting diode 511) (S5).

そして、レベル判定部125が、ステップS4で得られた受光レベルに応じて被検出物の状態を判定する処理を実行する(S6〜S8)。なお、ステップS6〜S8の処理を実行するレベル判定部125は、第一判定部の一例である。   And the level determination part 125 performs the process which determines the state of a to-be-detected object according to the light reception level obtained by step S4 (S6-S8). The level determination unit 125 that executes the processes of steps S6 to S8 is an example of a first determination unit.

より具体的には、レベル判定部125は、ステップS4で得られた受光レベルが、予め設定されたしきい値未満であるか否か判定する(S6)。そして、レベル判定部125は、受光レベルがしきい値未満であると判定した場合、被検出物の状態を示すデータである検出フラグをONに設定する(S7)。また、レベル判定部125は、受光レベルがしきい値以上であると判定した場合、検出フラグをOFFに設定する(S8)。   More specifically, the level determination unit 125 determines whether or not the light reception level obtained in step S4 is less than a preset threshold value (S6). If the level determination unit 125 determines that the light reception level is less than the threshold value, the level determination unit 125 sets a detection flag, which is data indicating the state of the detected object, to ON (S7). If the level determination unit 125 determines that the received light level is equal to or higher than the threshold value, the level determination unit 125 sets the detection flag to OFF (S8).

透過型の光センサ50が採用されたプリンタ1において、検出フラグは、その値がONであるときに、被検出物が光の照射位置に存在することを表し、その値がOFFであるときに、被検出物が光の照射位置に存在しないことを表す。   In the printer 1 employing the transmissive optical sensor 50, the detection flag indicates that the detected object is present at the light irradiation position when the value is ON, and when the value is OFF. This means that the object to be detected does not exist at the light irradiation position.

また、搬送制御部122は、ステップS4において受光制御部124による受光レベルの入力が終了した後、搬送装置に対し、記録紙4をそれ全体が筐体60内に収まる待避位置まで逆搬送する動作を実行させる(S9)。なお、ステップS9の処理を行う搬送制御部122は、第二搬送制御部の一例である。   In addition, after the input of the light reception level by the light reception control unit 124 is completed in step S4, the conveyance control unit 122 reversely conveys the recording paper 4 to the retreat position where the recording paper 4 is entirely contained in the housing 60. Is executed (S9). The conveyance control unit 122 that performs the process of step S9 is an example of a second conveyance control unit.

本実施形態においては、被検出物が、記録紙4又は記録紙4の供給部であるペーパーロール40である。そのため、被検出物である記録紙4が光の照射位置に存在しない場合、記録紙4を待避位置まで逆搬送する必要がない。従って、図4に示される例において、記録紙4を待避位置まで逆搬送する処理は、検出フラグがONに設定された場合にのみ実行される(S9)。   In the present embodiment, the object to be detected is the recording paper 4 or a paper roll 40 that is a supply unit of the recording paper 4. Therefore, when the recording paper 4 that is the object to be detected does not exist at the light irradiation position, it is not necessary to reversely transport the recording paper 4 to the retracted position. Therefore, in the example shown in FIG. 4, the process of transporting the recording paper 4 back to the retracted position is executed only when the detection flag is set to ON (S9).

マイクロコンピュータ12は、以上に示されたステップS1以降の処理を定期的に繰り返す。ステップS3〜S8の処理は、プリンタ1が備える複数の光センサ50各々について実行される。光センサ50ごとに値が設定された検出フラグは、他の処理において参照される。   The microcomputer 12 periodically repeats the processing after step S1 shown above. The processes in steps S3 to S8 are executed for each of the plurality of optical sensors 50 provided in the printer 1. The detection flag whose value is set for each optical sensor 50 is referred to in other processing.

例えば、第一光センサ50Aに対応する検出フラグの値がOFFである場合、マイクロコンピュータ12は、プリント処理を禁止するとともに、表示部14を通じて、ペーパーロール40が未装着である旨のエラー表示を出力する。   For example, when the value of the detection flag corresponding to the first optical sensor 50A is OFF, the microcomputer 12 prohibits the printing process and displays an error display indicating that the paper roll 40 is not attached through the display unit 14. Output.

また、第二光センサ50Bに対応する検出フラグの値がOFFである場合、マイクロコンピュータ12は、プリント処理を禁止するとともに、表示部14を通じて、記録紙4が残っていない旨のエラー表示を出力する。   When the value of the detection flag corresponding to the second optical sensor 50B is OFF, the microcomputer 12 prohibits the printing process and outputs an error display indicating that no recording paper 4 remains through the display unit 14. To do.

<効果>
以上に示されるように、システムコントローラ10は、記録紙4が、排出口61を塞ぐ遮光位置に存在する状態、即ち、外光8が筐体60内にほぼ入らない状態で、光センサ50を動作させ、その動作により得られた受光部52の検出信号が、被検出物の状態の判定に用いられる。その結果、外光8に起因する光センサ50の誤動作を防止することが可能となる。しかも、記録紙4そのものが外光8を遮断し、記録紙4の詰まりの原因となる遮蔽物を排出口61又は記録紙4の搬送経路に設けることは不要である。
<Effect>
As described above, the system controller 10 sets the optical sensor 50 in a state where the recording paper 4 exists in a light shielding position that blocks the discharge port 61, that is, in a state where the external light 8 does not substantially enter the housing 60. The detection signal of the light receiving unit 52 obtained by the operation is used for determining the state of the detected object. As a result, it is possible to prevent malfunction of the optical sensor 50 due to the external light 8. In addition, it is not necessary to provide a shielding object in the discharge port 61 or the conveyance path of the recording paper 4 that the recording paper 4 itself blocks the external light 8 and causes the recording paper 4 to be clogged.

ところで、太陽光又は照明光などの外光8は、通常、プリンタ1に対して上方から入射する。一方、プリンタ1において、光センサ50の受光部52は、筐体60内における排出口61よりも低い位置に配置されている。即ち、プリンタ1においては、外光8のごく一部が、排出口61と遮光位置に位置する記録紙4との間の隙間から筐体60内に入る場合であっても、受光部52へ直接向かう外光8は、記録紙4によって必ず遮断される。そのため、被検出物の誤検出は、より確実に防止される。   Incidentally, external light 8 such as sunlight or illumination light normally enters the printer 1 from above. On the other hand, in the printer 1, the light receiving unit 52 of the optical sensor 50 is disposed at a position lower than the discharge port 61 in the housing 60. That is, in the printer 1, even when a small part of the external light 8 enters the housing 60 through the gap between the discharge port 61 and the recording paper 4 located at the light shielding position, the light is received by the light receiving unit 52. The direct external light 8 is always blocked by the recording paper 4. Therefore, erroneous detection of the detection object is more reliably prevented.

また、受光部52の検出信号が入力された後に、搬送制御部122が、搬送装置(24,240,22,220)に対し、記録紙4を待避位置まで逆搬送する動作を実行させる(S9)。そのため、プリンタ1が、記録紙4の一部が排出口61からはみ出して見た目の悪い状態となったまま放置されることが防止される。   Further, after the detection signal of the light receiving unit 52 is input, the conveyance control unit 122 causes the conveyance devices (24, 240, 22, 220) to perform an operation of conveying the recording paper 4 back to the retracted position (S9). ). Therefore, it is possible to prevent the printer 1 from leaving a part of the recording paper 4 protruding from the discharge port 61 in an unsightly state.

<第二実施例に係る光センシング処理>
次に、図5に示されるフローチャートを参照しつつ、プリンタ1のシステムコントローラ10が実行する光センシング処理の第二実施例について説明する。この第二実施例は、図4に示された第一実施例と比較して、光センサ50の受光レベルの入力処理が追加されている点、及び被検出物の状態の判定が、2つの受光レベルを用いて行われる点の二点のみが異なる。図5において、図4に示されるステップと同じ内容のステップは、同じ参照符号が付されている。以下、第二実施例における第一実施例と異なる点についてのみ説明する。
<Optical sensing processing according to the second embodiment>
Next, a second embodiment of the optical sensing process executed by the system controller 10 of the printer 1 will be described with reference to the flowchart shown in FIG. Compared with the first embodiment shown in FIG. 4, the second embodiment has an additional process of inputting the light reception level of the optical sensor 50 and two determinations of the state of the detected object. Only the two points that are performed using the received light level are different. In FIG. 5, steps having the same contents as those shown in FIG. 4 are given the same reference numerals. Hereinafter, only different points in the second embodiment from the first embodiment will be described.

プリンタ1において、記録紙4が存在しない状態である場合、ステップS2において記録紙4を遮光位置まで搬送する動作が実行されても、外光8が筐体60内へ入射することを防止できない。従って、ステップS2の搬送動作が実行された後に、投光部51による光照射を行わない状態で検出される受光レベルが高い状態は、記録紙4が存在しない状態であると考えられる。   If the recording paper 4 is not present in the printer 1, the external light 8 cannot be prevented from entering the housing 60 even if the operation of transporting the recording paper 4 to the light shielding position is executed in step S <b> 2. Therefore, it is considered that the state in which the light receiving level detected in a state where the light irradiation by the light projecting unit 51 is not performed after the carrying operation in step S2 is high is a state in which the recording paper 4 does not exist.

そこで、第二実施例に係る光センシング処理においては、ステップS2において記録紙4を遮光位置まで搬送する動作が実行された後、投光部51の点灯が行われる前に、以下のステップS10,S1の処理が実行される。 Therefore, in the optical sensing process according to the second embodiment, after the operation of transporting the recording paper 4 to the light shielding position is executed in step S2, before the light projecting unit 51 is turned on, the following steps S10, S10, S1 1 processing is executed.

即ち、ステップS10において、受光制御部124は、投光部51による光の照射を実行させずに、即ち、発光ダイオード511が点灯されていない状態において、受光部52の検出信号を入力する処理、即ち、受光レベルの入力処理を実行する(S10)。以下、このステップS10で得られる受光レベルを第一受光レベルと称し、前述のステップS4で得られる受光レベルを第二受光レベルと称する。なお、ステップS10の処理を実行する受光制御部124は、第二光センサ制御部の一例である。   That is, in step S10, the light reception control unit 124 inputs the detection signal of the light receiving unit 52 without executing the light irradiation by the light projecting unit 51, that is, in a state where the light emitting diode 511 is not lit. That is, the light receiving level input process is executed (S10). Hereinafter, the light reception level obtained in step S10 is referred to as a first light reception level, and the light reception level obtained in step S4 described above is referred to as a second light reception level. The light reception control unit 124 that executes the process of step S10 is an example of a second optical sensor control unit.

さらに、ステップS11において、レベル判定部125は、第一受光レベルに応じて、投光制御部123及び受光制御部124によるステップS3〜S5の処理、及びレベル判定部125によるステップS12,S7の処理を実行するか否かを制御する。   Furthermore, in step S11, the level determination unit 125 performs the processing of steps S3 to S5 by the light projection control unit 123 and the light reception control unit 124 and the processing of steps S12 and S7 by the level determination unit 125 according to the first light reception level. Control whether to execute.

なお、ステップS12の処理は、第一実施例におけるステップS6の処理に相当するが、その内容については後に説明する。また、ステップS11の処理を実行するレベル判定部125は、第二判定部の一例である。   Note that the processing in step S12 corresponds to the processing in step S6 in the first embodiment, and the contents will be described later. The level determination unit 125 that executes the process of step S11 is an example of a second determination unit.

より具体的には、ステップS11において、レベル判定部125は、第一受光レベルが予め定められた第一しきい値未満であるか否かを判別する。第一しきい値は、記録紙4によって外光8が遮断され、かつ、投光部51による光照射が行われていないときに、受光部52の検出レベルがとりうる最大値である。   More specifically, in step S11, the level determination unit 125 determines whether or not the first light reception level is less than a predetermined first threshold value. The first threshold value is the maximum value that the detection level of the light receiving unit 52 can take when the external light 8 is blocked by the recording paper 4 and light irradiation by the light projecting unit 51 is not performed.

そして、レベル判定部125は、第一受光レベルが第一しきい値以上であると判定した場合、ステップS〜S7の処理が実行されないようにする。この場合、レベル判定部125は、検出フラグをOFFに設定する(S8)。
The level determining unit 125, when the first light receiving level is judged to be the first threshold value or more, the process of step S 3 ~S7 from being executed. In this case, the level determination unit 125 sets the detection flag to OFF (S8).

また、レベル判定部125は、第一受光レベルが第一しきい値未満であると判定した場合にのみ、ステップS3〜S5,S12,S7の処理が実行されるようにする。   Further, the level determination unit 125 executes the processes of steps S3 to S5, S12, and S7 only when it is determined that the first light reception level is less than the first threshold value.

さらに、第一実施例の6に相当するステップS12において、レベル判定部125は、第一受光レベルと第二受光レベルとの違いに応じて被検出物の状態を判定する。例えば、レベル判定部125は、第一受光レベルと第二受光レベルとの差が予め定められた第二しきい値未満であるか否かを判定することにより、被検出物の有無を判定する(S12)。その他、レベル判定部125が、第一受光レベルに対する第二受光レベルの比としきい値との比較により、被検出物の有無を判定することも考えられる。   Furthermore, in step S12 corresponding to 6 in the first embodiment, the level determination unit 125 determines the state of the detected object according to the difference between the first light reception level and the second light reception level. For example, the level determination unit 125 determines whether there is an object to be detected by determining whether the difference between the first light reception level and the second light reception level is less than a predetermined second threshold value. (S12). In addition, it is also conceivable that the level determination unit 125 determines the presence or absence of an object to be detected by comparing the ratio of the second light reception level to the first light reception level and a threshold value.

そして、レベル判定部125は、第一受光レベルに対する第二受光レベルの違いが第二しきい値未満である場合に、検出フラグをONに設定する(S7)。また、レベル判定部125は、それ以外の場合に検出フラグをOFFに設定する(S8)。   And the level determination part 125 sets a detection flag to ON, when the difference of the 2nd light reception level with respect to a 1st light reception level is less than a 2nd threshold value (S7). The level determination unit 125 sets the detection flag to OFF in other cases (S8).

<効果>
第二実施例に係る光センシング処理が採用された場合も、第一実施例に係る光センシング処理が採用された場合と同様の効果が得られる。
<Effect>
When the optical sensing process according to the second embodiment is employed, the same effect as that obtained when the optical sensing process according to the first embodiment is employed can be obtained.

また、第二実施例においては、レベル判定部125は、記録紙4を遮光位置へ搬送する動作の後に、投光部51による光照射なしに得られた受光部52の検出信号のレベルに応じて、ステップS3〜S5などの処理を実行するか否かを制御する(S11)。そのため、記録紙4が存在しない場合においても、外光8に起因する光センサ50の誤動作が防止される。   In the second embodiment, the level determination unit 125 responds to the level of the detection signal of the light receiving unit 52 obtained without light irradiation by the light projecting unit 51 after the operation of transporting the recording paper 4 to the light shielding position. Then, it is controlled whether or not the processes of steps S3 to S5 are executed (S11). Therefore, even when the recording paper 4 is not present, malfunction of the optical sensor 50 due to the external light 8 is prevented.

また、第二実施例においては、記録紙4を遮光位置へ搬送する動作の実行後に、投光部51の光照射無しの下で得られる第一受光レベルと、投光部51の光照射有りの下で得られる第二受光レベルの違いに応じて、被検出物の状態が判定される(S12)。そのため、外光8の一部が、排出口61と遮光位置に位置する記録紙4との間の隙間から筐体60内に入る場合であっても、被検出物の誤検出は、より確実に防止される。   In the second embodiment, the first light receiving level obtained without the light irradiation of the light projecting unit 51 and the light irradiation of the light projecting unit 51 after the operation of transporting the recording paper 4 to the light shielding position is performed. The state of the object to be detected is determined according to the difference in the second light reception level obtained under (S12). Therefore, even when a part of the external light 8 enters the housing 60 through the gap between the discharge port 61 and the recording paper 4 located at the light shielding position, erroneous detection of the detection object is more reliable. To be prevented.

<その他>
以上に示された実施形態において、ステップS3〜S8,S12の処理は、プリンタ1が備える複数の光センサ50各々について実行される。しかしながら、筐体60内の光センサ50の一部が、排出口61から遠い位置に存在するなど、外光8の影響を受けにくい位置に存在することも考えられる。そのため、外光8の影響を受けにくい一部のセンサ50について、第一実施例におけるステップS2,S9を除いた残りの処理のみが実行されることも考えられる。
<Others>
In the embodiment described above, the processes of steps S3 to S8 and S12 are executed for each of the plurality of optical sensors 50 provided in the printer 1. However, it is also conceivable that a part of the optical sensor 50 in the housing 60 is present at a position that is not easily affected by the external light 8, such as being located far from the discharge port 61. For this reason, it is also conceivable that only the remaining processes except steps S2 and S9 in the first embodiment are executed for some sensors 50 that are not easily affected by the external light 8.

また、プリンタ1における光センサ50は、記録紙4又は記録紙4の供給元の有無を検出するセンサである。そのため、第二実施例のステップS11において、第一受光レベルが第一しきい値以上と判定された場合、被検出物の状態を表す検出フラグをOFFに設定する処理が行われた。   The optical sensor 50 in the printer 1 is a sensor that detects the presence or absence of the recording paper 4 or the supply source of the recording paper 4. Therefore, in step S11 of the second embodiment, when it is determined that the first light reception level is equal to or higher than the first threshold value, processing for setting the detection flag indicating the state of the detected object to OFF is performed.

しかしながら、光センサ50が、記録紙4に関連しない被検出物を検出するセンサである場合も考えられる。その場合、第二実施例のステップS11において、第一受光レベルが第一しきい値以上と判定されたときに、光センサ50を用いた検出処理そのものをスキップすることも考えられる。   However, it is also conceivable that the optical sensor 50 is a sensor that detects an object to be detected that is not related to the recording paper 4. In that case, it is also conceivable to skip the detection process using the optical sensor 50 when it is determined in step S11 of the second embodiment that the first light receiving level is equal to or higher than the first threshold value.

また、第二実施例において、ステップS11の処理が省略された光センシング処理が採用されることも考えられる。   In the second embodiment, it may be possible to employ an optical sensing process in which the process of step S11 is omitted.

また、本発明において、外光8を遮るために搬送される記録紙4が、ペーパーロール40から繰り出される記録紙の他、予め1ページ分のサイズごとにカットされた記録紙であることも考えられる。この場合、給紙カセットまたは給紙トレイなどが、記録紙4の供給部となる。また、本発明は、サーマル(感熱)プリンタ、昇華型熱転写プリンタ、溶融型熱転写プリンタ、インクジェットプリンタ及びレーザープリンタなどの各種のプリンタに適用可能である。   Further, in the present invention, the recording paper 4 conveyed to block the external light 8 may be a recording paper cut in advance for each page size in addition to the recording paper fed out from the paper roll 40. It is done. In this case, a paper feed cassette or a paper feed tray serves as a supply unit for the recording paper 4. The present invention can also be applied to various printers such as a thermal printer, a sublimation thermal transfer printer, a melt thermal transfer printer, an ink jet printer, and a laser printer.

1 プリンタ、3 インクシート、4 記録紙、5 ホスト装置、8 外光、10 システムコントローラ、11 通信インターフェース、12 マイクロコンピュータ、13 操作部、14 表示部、15 アクチュエータ駆動回路、16 メモリ、17 画像処理回路、18 サーマルヘッドコントローラ、21 サーマルヘッド、22 プラテンローラ、23 切断装置、24 ピンチローラ機構、30 インクシートユニット、31 繰り出し部、32 巻き取り部、40 ペーパーロール、50 光センサ、50A 第一光センサ、50B 第二光センサ、51 投光部、52 受光部、60 筐体、61 排出口、121 イベント検出部、122 搬送制御部、123 投光制御部、124 受光制御部、125 レベル判定部、210 ヘッド変位装置、211 ヒータ、220 プラテンローラ駆動モータ、240 ピンチローラ駆動モータ、241 ピンチローラ、242 グリップローラ、511 発光ダイオード、512 トランジスタ、513 抵抗素子、514 制御入力端子、521 フォトトランジスタ、522 抵抗素子、523 信号出力端子。   DESCRIPTION OF SYMBOLS 1 Printer, 3 Ink sheet, 4 Recording paper, 5 Host apparatus, 8 External light, 10 System controller, 11 Communication interface, 12 Microcomputer, 13 Operation part, 14 Display part, 15 Actuator drive circuit, 16 Memory, 17 Image processing Circuit, 18 Thermal head controller, 21 Thermal head, 22 Platen roller, 23 Cutting device, 24 Pinch roller mechanism, 30 Ink sheet unit, 31 Feeding unit, 32 Winding unit, 40 Paper roll, 50 Optical sensor, 50A First light Sensor, 50B second light sensor, 51 light projecting unit, 52 light receiving unit, 60 housing, 61 discharge port, 121 event detection unit, 122 transport control unit, 123 light projecting control unit, 124 light receiving control unit, 125 level determination unit 210 Head displacement equipment , 211 heater, 220 platen roller drive motor, 240 pinch roller drive motor, 241 pinch roller, 242 grip roller, 511 light emitting diode, 512 transistor, 513 resistance element, 514 control input terminal, 521 phototransistor, 522 resistance element, 523 Signal output terminal.

Claims (7)

記録紙に画像を形成するプリンタであって、
前記記録紙を、筐体内の供給部から前記筐体に形成された排出口に至る搬送経路に沿って搬送する搬送部と、
前記筐体内において被検出物の位置へ光を照射する投光部及び該投光部からの光を受光する受光部を備えた光センサと、
前記搬送部に対し、前記記録紙をその一部が前記排出口から外側へはみ出す遮光位置まで搬送する動作を実行させる第一搬送制御部と、
前記第一搬送制御部による搬送動作が実行された後に、前記投光部による光の照射を実行させつつ前記受光部の検出信号を入力する第一光センサ制御部と、
前記第一光センサ制御部により得られた前記受光部の検出信号のレベルに応じて前記被検出物の状態を判定する第一判定部と、を備えることを特徴とするプリンタ。
A printer for forming an image on recording paper,
A transport unit that transports the recording paper along a transport path from a supply unit in the housing to a discharge port formed in the housing;
An optical sensor including a light projecting unit that irradiates light to the position of an object to be detected in the housing and a light receiving unit that receives light from the light projecting unit;
A first conveyance control unit that causes the conveyance unit to perform an operation of conveying the recording paper to a light shielding position where a part of the recording sheet protrudes outward from the discharge port;
A first optical sensor control unit that inputs a detection signal of the light receiving unit while performing light irradiation by the light projecting unit after the transport operation by the first transport control unit is performed;
A printer comprising: a first determination unit that determines a state of the detected object according to a level of a detection signal of the light receiving unit obtained by the first light sensor control unit.
前記光センサの前記受光部は、前記筐体内における前記排出口よりも低い位置に配置されている、請求項1に記載のプリンタ。   The printer according to claim 1, wherein the light receiving unit of the optical sensor is disposed at a position lower than the discharge port in the housing. 前記第一光センサ制御部によって前記受光部の検出信号が入力された後に、前記搬送部に対し、前記記録紙をそれ全体が前記筐体内に収まる待避位置まで逆搬送する動作を実行させる第二搬送制御部をさらに備える、請求項1又は請求項2に記載のプリンタ。   After the detection signal of the light receiving unit is input by the first photosensor control unit, the transport unit performs a second operation of transporting the recording paper back to a retracted position where the recording paper is entirely contained in the housing. The printer according to claim 1, further comprising a conveyance control unit. 前記第一搬送制御部による搬送動作が実行された後に、前記投光部による光の照射を実行させずに前記受光部の検出信号を入力する第二光センサ制御部と、
前記第光センサ制御部により得られた前記受光部の検出信号のレベルに応じて前記第一光センサ制御部及び前記第一判定部の処理を実行するか否かを制御する第二判定部と、をさらに備える請求項1から請求項3のいずれかに記載のプリンタ。
A second optical sensor control unit that inputs a detection signal of the light receiving unit without performing light irradiation by the light projecting unit after the transport operation by the first transport control unit is performed;
A second determination unit that controls whether or not the processes of the first light sensor control unit and the first determination unit are executed according to the level of the detection signal of the light receiving unit obtained by the second photosensor control unit. The printer according to any one of claims 1 to 3, further comprising:
前記第一搬送制御部による搬送動作が実行された後に、前記投光部による光の照射を実行させずに前記受光部の検出信号を入力する第二光センサ制御部をさらに備え、
前記第一判定部は、前記第一光センサ制御部及び前記第二光センサ制御部により得られた前記受光部の検出信号のレベルの違いに応じて前記被検出物の状態を判定する、請求項1から請求項3のいずれかに記載のプリンタ。
A second optical sensor control unit that inputs a detection signal of the light receiving unit without performing light irradiation by the light projecting unit after the transport operation by the first transport control unit is performed;
The first determination unit determines the state of the detected object according to a difference in detection signal level of the light receiving unit obtained by the first light sensor control unit and the second light sensor control unit. The printer according to any one of claims 1 to 3.
前記光センサは、前記受光部が前記投光部からの直接光を受光する透過型の光センサである、請求項1から請求項5のいずれかに記載のプリンタ。   The printer according to claim 1, wherein the optical sensor is a transmissive optical sensor in which the light receiving unit receives direct light from the light projecting unit. 前記光センサは、前記受光部が前記投光部の光が前記被検出物で反射した反射光を受光する反射型の光センサである、請求項1から請求項5のいずれかに記載のプリンタ。   The printer according to claim 1, wherein the light sensor is a reflection-type light sensor in which the light receiving unit receives reflected light obtained by reflecting light from the light projecting unit on the object to be detected. .
JP2011032862A 2011-02-18 2011-02-18 Printer Expired - Fee Related JP5693285B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011032862A JP5693285B2 (en) 2011-02-18 2011-02-18 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011032862A JP5693285B2 (en) 2011-02-18 2011-02-18 Printer

Publications (2)

Publication Number Publication Date
JP2012171711A JP2012171711A (en) 2012-09-10
JP5693285B2 true JP5693285B2 (en) 2015-04-01

Family

ID=46974967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011032862A Expired - Fee Related JP5693285B2 (en) 2011-02-18 2011-02-18 Printer

Country Status (1)

Country Link
JP (1) JP5693285B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7747497B2 (en) 2021-11-17 2025-10-01 東芝テック株式会社 Printer device

Also Published As

Publication number Publication date
JP2012171711A (en) 2012-09-10

Similar Documents

Publication Publication Date Title
JP5117329B2 (en) Thermal printer and control method thereof
US20100074635A1 (en) Printer
US10048630B2 (en) Printer
JP5693285B2 (en) Printer
JP7350681B2 (en) Printer, printer control method and program
JP2012131165A (en) Thermal printer, and method for detecting label sheet in thermal printer
JP4244719B2 (en) Error recovery method for printing apparatus, program, and printing apparatus
JP6680164B2 (en) Printing equipment
JP4784330B2 (en) Printing device
US8537189B2 (en) Thermal printer and driving method thereof
JP6194663B2 (en) Printing apparatus and medium detection method
JP5253931B2 (en) Paper jam handling method for printer and printer
JP6203529B2 (en) Printer, print position setting method, print position setting program
JP2018065674A (en) Medium conveyance device and image formation apparatus
JP2010202307A (en) Method for detecting recording paper and printer
JP5177047B2 (en) Printing device
JP2005001887A (en) Printing apparatus, printing apparatus control method, and program
JP2017061095A (en) Printing apparatus, printing method, and printing program
JP6324473B2 (en) Printer and printer paper loading method
JP2012128268A (en) Paper end detection part and image forming apparatus
JP5417362B2 (en) Image forming apparatus and method of controlling image forming apparatus
JP6058567B2 (en) Printer device
JP2014061683A (en) Image forming device and image forming method
KR200319128Y1 (en) Paper misprinting prevention device
JP2010173157A (en) Printer, method for correcting printing position, and printing position correcting program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140812

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140819

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141009

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150106

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150203

R150 Certificate of patent or registration of utility model

Ref document number: 5693285

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees