JP2018002459A - Medium detection device, medium conveyance device and image formation apparatus - Google Patents

Medium detection device, medium conveyance device and image formation apparatus Download PDF

Info

Publication number
JP2018002459A
JP2018002459A JP2016135174A JP2016135174A JP2018002459A JP 2018002459 A JP2018002459 A JP 2018002459A JP 2016135174 A JP2016135174 A JP 2016135174A JP 2016135174 A JP2016135174 A JP 2016135174A JP 2018002459 A JP2018002459 A JP 2018002459A
Authority
JP
Japan
Prior art keywords
paper
medium
processing unit
absence
unit
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.)
Granted
Application number
JP2016135174A
Other languages
Japanese (ja)
Other versions
JP6833368B2 (en
Inventor
康宏 片平
Yasuhiro Katahira
康宏 片平
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2016135174A priority Critical patent/JP6833368B2/en
Priority to CN201710536436.6A priority patent/CN107584908B/en
Publication of JP2018002459A publication Critical patent/JP2018002459A/en
Application granted granted Critical
Publication of JP6833368B2 publication Critical patent/JP6833368B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controlling Sheets Or Webs (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Handling Of Sheets (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent erroneous determination of the presence/absence of a medium set in an image formation apparatus.SOLUTION: A medium detection device includes: a medium arrangement unit which sets a medium in an image formation apparatus; a medium detection unit which generates sensor output in accordance with the presence/absence of the medium set in the image formation apparatus; a storage device which records a plurality of slice levels set in accordance with the light emission output of a light emission unit; and a medium presence determination processing unit which determines the presence/absence of the medium set in the image formation apparatus by comparing the sensor output of the medium detection unit with the slice level at the time when the light emission output of light emission unit is increased in a case where the medium detection unit detects the presence of the medium. With this configuration, erroneous determination of the presence/absence of the medium can be prevented even if extraneous matters such as sheet piece, sheet powder and dust adhere to the medium detection unit.SELECTED DRAWING: Figure 1

Description

本発明は、媒体検出装置、媒体搬送装置及び画像形成装置に関するものである。   The present invention relates to a medium detection device, a medium conveyance device, and an image forming apparatus.

従来、プリンタ、複写機、ファクシミリ、複合機等の画像形成装置、例えば、ドットインパクト式のプリンタには、媒体としての用紙を搬送するための媒体搬送装置としての用紙搬送装置が配設される。該用紙搬送装置は、用紙をセットするためのテーブルを備え、例えば、用紙がテーブル上に載置されることによってプリンタにセットされ、印字を開始するための操作スイッチが押下されるか、ホストコンピュータからプリンタに印字データが送られるかすると、用紙が印字ヘッドとプラテンとの間、すなわち、印字部に給紙され、印字ヘッドによって印字が行われ、用紙に画像が形成されるようになっている。   2. Description of the Related Art Conventionally, an image forming apparatus such as a printer, a copier, a facsimile machine, or a multifunction machine, for example, a dot impact type printer, is provided with a paper transport device as a medium transport device for transporting paper as a medium. The paper transport device includes a table for setting paper. For example, the paper is set on the printer by placing the paper on the table, and an operation switch for starting printing is pressed, or a host computer When print data is sent from the printer to the printer, the paper is fed between the print head and the platen, that is, the paper is fed to the printing unit, and printing is performed by the print head, so that an image is formed on the paper. .

また、前記プリンタには媒体検出装置としての用紙検出装置が配設され、該用紙検出装置によって、プリンタに用紙がセットされたかどうか、すなわち、プリンタにセットされた用紙の有無が判断されるようになっている。   Further, the printer is provided with a paper detection device as a medium detection device, and the paper detection device determines whether paper is set in the printer, that is, whether or not there is paper set in the printer. It has become.

すなわち、前記プリンタにおいて、用紙検出装置は、プリンタにセットされた用紙を検出するための用紙セット検出センサから送られたセンサ出力とスライスレベルとを比較し、センサ出力がスライスレベル以下である場合、セットされた用紙が無いと判断し、センサ出力がスライスレベルより大きい場合、セットされた用紙が有ると判断する(例えば、特許文献1参照。)。   That is, in the printer, the paper detection device compares the sensor output sent from the paper set detection sensor for detecting the paper set in the printer with the slice level, and if the sensor output is below the slice level, It is determined that there is no set paper, and if the sensor output is larger than the slice level, it is determined that there is a set paper (see, for example, Patent Document 1).

特開2005−96991号公報JP 2005-96991 A

しかしながら、前記従来のプリンタにおいては、用紙セット検出センサとして透過型のセンサが使用されている場合、用紙セット検出センサに紙片、紙粉、埃等の付着物が付着し、発光部で発光させられた光が受光部によって受光されにくくなると、センサ出力がスライスレベルより大きくなることがあり、その場合、用紙検出装置が用紙の有無を誤って判断してしまう。   However, in the conventional printer, when a transmissive sensor is used as a paper set detection sensor, a paper piece, paper dust, dust or other adhering matter adheres to the paper set detection sensor, and light is emitted from the light emitting unit. If the received light is less likely to be received by the light receiving unit, the sensor output may become larger than the slice level, and in this case, the paper detection device erroneously determines the presence or absence of paper.

本発明は、前記従来のプリンタの問題点を解決して、画像形成装置にセットされた媒体の有無を誤って判断することがない媒体検出装置、媒体搬送装置及び画像形成装置を提供することを目的とする。   The present invention provides a medium detection device, a medium conveyance device, and an image forming apparatus that solve the problems of the conventional printer and do not erroneously determine the presence or absence of a medium set in the image forming apparatus. Objective.

そのために、本発明の媒体検出装置においては、画像形成装置に媒体をセットするための媒体配置部と、該媒体配置部に配設され、発光部及び受光部を備えた光学センサから成り、画像形成装置にセットされた媒体の有無に応じてセンサ出力を発生させる媒体検出部と、媒体の有無を検出するための、発光部の発光出力に応じて設定された複数のスライスレベルが記録された記憶装置と、前記媒体検出部によって媒体有りが検出された場合に、媒体検出部のセンサ出力と、発光部の発光出力が大きくされたときのスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断する媒体有無判断処理部とを有する。   For this purpose, the medium detection device according to the present invention includes a medium placement unit for setting a medium in the image forming apparatus, and an optical sensor disposed in the medium placement unit and including a light emitting unit and a light receiving unit. A medium detection unit that generates a sensor output according to the presence or absence of a medium set in the forming apparatus, and a plurality of slice levels set according to the light emission output of the light emission unit for detecting the presence or absence of the medium are recorded When the presence of a medium is detected by the storage device and the medium detection unit, the sensor output of the medium detection unit is compared with the slice level when the light emission output of the light emitting unit is increased, thereby allowing the image forming apparatus to A medium presence / absence determination processing unit for determining the presence / absence of the set medium.

本発明によれば、媒体検出装置においては、画像形成装置に媒体をセットするための媒体配置部と、該媒体配置部に配設され、発光部及び受光部を備えた光学センサから成り、画像形成装置にセットされた媒体の有無に応じてセンサ出力を発生させる媒体検出部と、媒体の有無を検出するための、発光部の発光出力に応じて設定された複数のスライスレベルが記録された記憶装置と、前記媒体検出部によって媒体有りが検出された場合に、媒体検出部のセンサ出力と、発光部の発光出力が大きくされたときのスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断する媒体有無判断処理部とを有する。   According to the present invention, the medium detection device includes a medium placement unit for setting a medium in the image forming apparatus, and an optical sensor disposed in the medium placement unit and including a light emitting unit and a light receiving unit. A medium detection unit that generates a sensor output according to the presence or absence of a medium set in the forming apparatus, and a plurality of slice levels set according to the light emission output of the light emission unit for detecting the presence or absence of the medium are recorded When the presence of a medium is detected by the storage device and the medium detection unit, the sensor output of the medium detection unit is compared with the slice level when the light emission output of the light emitting unit is increased, thereby allowing the image forming apparatus to A medium presence / absence determination processing unit for determining the presence / absence of the set medium.

この場合、媒体検出部によって媒体有りが検出された場合に、媒体有無判断処理部が、媒体検出部のセンサ出力と、発光部の発光出力が大きくされたときのスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断するので、媒体検出部に紙片、紙粉、埃等の付着物が付着していても、媒体の有無を誤って判断することがない。   In this case, when the presence of the medium is detected by the medium detection unit, the medium presence / absence determination processing unit compares the sensor output of the medium detection unit with the slice level when the light emission output of the light emitting unit is increased. Since the presence / absence of the medium set in the image forming apparatus is determined, the presence / absence of the medium is not erroneously determined even if an adhering material such as a piece of paper, paper dust, or dust adheres to the medium detection unit.

本発明の第1の実施の形態におけるプリンタの制御ブロック図である。FIG. 3 is a control block diagram of the printer in the first embodiment of the present invention. 本発明の第1の実施の形態におけるプリンタの要部を示す断面図である。FIG. 2 is a cross-sectional view illustrating a main part of the printer according to the first embodiment of the present invention. 本発明の第1の実施の形態におけるプリンタの要部を示す平面図である。FIG. 2 is a plan view illustrating a main part of the printer according to the first embodiment of the present invention. 本発明の第1の実施の形態におけるスライスレベル生成処理部の動作を示す第1のフローチャートである。It is a 1st flowchart which shows operation | movement of the slice level production | generation process part in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるスライスレベル生成処理部の動作を示す第2のフローチャートである。It is a 2nd flowchart which shows the operation | movement of the slice level production | generation process part in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるスライスレベル生成処理部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the slice level production | generation process part in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるCPUの動作を示す第1のフローチャートである。It is a 1st flowchart which shows operation | movement of CPU in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるCPUの動作を示す第2のフローチャートである。It is a 2nd flowchart which shows operation | movement of CPU in the 1st Embodiment of this invention. 本発明の第1の実施の形態における用紙有無判断処理のサブルーチンを示す第1の図である。FIG. 10 is a first diagram illustrating a subroutine of paper presence / absence determination processing according to the first embodiment of the present invention. 本発明の第1の実施の形態における用紙有無判断処理のサブルーチンを示す第2の図である。FIG. 10 is a second diagram illustrating a subroutine of paper presence / absence determination processing according to the first embodiment of the present invention. 本発明の第1の実施の形態における排紙処理部の動作を示すフローチャートである。4 is a flowchart illustrating an operation of a paper discharge processing unit according to the first embodiment of the present invention. 本発明の第2の実施の形態における排紙処理部の動作を示す第1のフローチャートである。6 is a first flowchart illustrating an operation of a paper discharge processing unit according to the second embodiment of the present invention. 本発明の第2の実施の形態における排紙処理部の動作を示す第2のフローチャートである。It is a 2nd flowchart which shows operation | movement of the paper discharge process part in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における排紙処理部の動作を説明するための第1の図である。FIG. 10 is a first diagram for explaining an operation of a paper discharge processing unit according to a second embodiment of the present invention. 本発明の第2の実施の形態における排紙処理部の動作を説明するための第2の図である。FIG. 10 is a second diagram for explaining the operation of the paper discharge processing unit in the second embodiment of the present invention.

以下、本発明の実施の形態について図面を参照しながら詳細に説明する。この場合、画像形成装置としてのドットインパクト式のプリンタについて説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In this case, a dot impact type printer as an image forming apparatus will be described.

図2は本発明の第1の実施の形態におけるプリンタの要部を示す断面図、図3は本発明の第1の実施の形態におけるプリンタの要部を示す平面図である。   FIG. 2 is a cross-sectional view showing the main part of the printer according to the first embodiment of the present invention, and FIG. 3 is a plan view showing the main part of the printer according to the first embodiment of the present invention.

図において、Pは媒体としての用紙、Rt1は用紙Pを案内し、矢印方向に搬送するための媒体搬送路、10は用紙Pに対して印字を行うプリンタ、11は該プリンタ10に用紙Pをセットするための媒体配置部としてのテーブル、12は印字ヘッドである。該印字ヘッド12は、プリンタ10の左右方向、すなわち、主走査方向(図3における左右方向)に移動自在に配設された図示されないキャリッジに搭載され、該キャリッジと共に移動させられる。   In the figure, P is a sheet as a medium, Rt1 is a medium conveyance path for guiding the sheet P and conveyed in the direction of the arrow, 10 is a printer for printing on the sheet P, 11 is a sheet P on the printer 10. A table 12 as a medium arrangement unit for setting is a print head. The print head 12 is mounted on a carriage (not shown) movably arranged in the left-right direction of the printer 10, that is, the main scanning direction (left-right direction in FIG. 3), and is moved together with the carriage.

また、13は、前記印字ヘッド12の下方において、印字ヘッド12と対向させて、かつ、主走査方向に延在させて配設された媒体支持部材としてのプラテンであり、印字ヘッド12とプラテン13との間に印字部が形成される。   Reference numeral 13 denotes a platen as a medium support member disposed below the print head 12 so as to face the print head 12 and extend in the main scanning direction. A printing portion is formed between the two.

そして、15は、テーブル11において用紙Pの搬送方向における印字部より上流側に回転自在に配設され、回転に伴い、用紙Pを副走査方向に搬送し、印字部に給紙するための第1の搬送部材としてのフロントフィードローラ対であり、該フロントフィードローラ対15は、軸sh1に複数のローラr1を取り付けることによって形成され、媒体搬送路Rt1の上側及び下側に配設された一対のフィードローラ15a、15bから成る。また、17は、テーブル11において用紙Pの搬送方向における印字部より下流側に回転自在に配設され、回転に伴い、用紙Pを印字部から排出するための第2の搬送部材としてのリヤフィードローラ対であり、該リヤフィードローラ対17は、軸sh2に複数のローラr2を取り付けることによって形成され、媒体搬送路Rt1の上側及び下側に配設された一対のフィードローラ17a、17bから成る。   A table 15 is rotatably disposed upstream of the printing unit in the conveyance direction of the paper P in the table 11, and is rotated to convey the paper P in the sub-scanning direction and feed the paper P to the printing unit. A pair of front feed rollers as one transport member, and the pair of front feed rollers 15 is formed by attaching a plurality of rollers r1 to the shaft sh1, and is disposed on the upper side and the lower side of the medium transport path Rt1. Feed rollers 15a and 15b. Reference numeral 17 denotes a rear feed serving as a second transport member for discharging the paper P from the printing unit along with the rotation. The rear feed roller pair 17 is a pair of rollers, and is formed by attaching a plurality of rollers r2 to the shaft sh2, and includes a pair of feed rollers 17a and 17b disposed on the upper side and the lower side of the medium transport path Rt1. .

そして、21は、テーブル11において用紙Pの搬送方向(矢印方向)におけるフロントフィードローラ対15の各フィードローラ15a、15bの噛込み部より上流側に配設された第1の媒体検出部としての用紙セット検出センサであり、該用紙セット検出センサ21は、各ローラr1に近接させて、用紙Pの搬送方向に対して直交する方向において複数配設され、プリンタ10にセットされた用紙Pの有無を検出し、用紙Pの有無に応じてセンサ出力を発生させる。そのために、用紙セット検出センサ21は、透過型の光学センサから成り、媒体搬送路Rt1の下側に配設されたLED等から成る発光部21e、及び媒体搬送路Rt1の上側に配設されたフォトトランジスタ等から成る受光部21rを備え、発光部21eによって発生させられ、用紙Pを透過した赤外線等の光を受光部21rが受光すると、用紙Pの透過率に応じた、また、受光部21rの受光量に応じた検出電圧をセンサ出力として発生させる。   Reference numeral 21 denotes a first medium detection unit disposed on the upstream side of the biting portion of each of the feed rollers 15a and 15b of the front feed roller pair 15 in the conveyance direction (arrow direction) of the paper P in the table 11. A paper set detection sensor, a plurality of the paper set detection sensors 21 being arranged in the direction orthogonal to the conveyance direction of the paper P in the vicinity of each roller r1, and the presence or absence of the paper P set in the printer 10 Is detected, and a sensor output is generated according to the presence or absence of the paper P. For this purpose, the paper set detection sensor 21 is composed of a transmissive optical sensor, and is disposed above the medium conveyance path Rt1 and the light emitting unit 21e composed of LEDs and the like disposed below the medium conveyance path Rt1. When the light receiving portion 21r receives light such as infrared light generated by the light emitting portion 21e and transmitted through the paper P, the light receiving portion 21r according to the transmittance of the paper P is provided. A detection voltage corresponding to the amount of received light is generated as a sensor output.

本実施の形態において、用紙セット検出センサ21の検出回路は、発光部21eの発光出力が大きくなり、受光部21rの受光量が多くなると、用紙セット検出センサ21のセンサ出力が小さくなり、発光部21eの発光出力が小さくなり、受光部21rの受光量が少なくなると、用紙セット検出センサ21のセンサ出力が大きくなるように形成される。   In the present embodiment, the detection circuit of the paper set detection sensor 21 is configured such that when the light emission output of the light emitting unit 21e increases and the amount of light received by the light receiving unit 21r increases, the sensor output of the paper set detection sensor 21 decreases and the light emission unit. When the light emission output of 21e decreases and the amount of light received by the light receiving portion 21r decreases, the sensor output of the paper set detection sensor 21 is increased.

また、23は、テーブル11において用紙Pの搬送方向におけるフロントフィードローラ対15の各フィードローラ15a、15bの噛込み部より下流側に配設された第2の媒体検出部としての用紙斜行検出センサであり、該用紙斜行検出センサ23は、各ローラr2に近接させて、用紙Pの搬送方向に対して直交する方向において複数配設され、プリンタ10にセットされた用紙Pの有無及び斜行を検出するとともに、用紙Pの有無に応じてセンサ出力を発生させる。そのために、用紙斜行検出センサ23は、透過型の光学センサであり、媒体搬送路Rt1の下側に配設されたLED等から成る発光部23e、及び媒体搬送路Rt1の上側に配設されたフォトトランジスタ等から成る受光部23rを備え、発光部23eによって発生させられ、用紙Pを透過した赤外線等の光を受光部23rが受光すると、用紙Pの透過率に応じた、また、受光部23rの受光量に応じた検出電圧をセンサ出力として発生させる。   Further, reference numeral 23 denotes a sheet skew detection as a second medium detection unit disposed downstream of the biting portions of the feed rollers 15a and 15b of the front feed roller pair 15 in the conveyance direction of the sheet P in the table 11. A plurality of paper skew detection sensors 23 are arranged in the direction orthogonal to the conveyance direction of the paper P in the vicinity of each roller r2, and the presence or absence of the paper P set in the printer 10 and the skew. A line is detected and a sensor output is generated according to the presence or absence of the paper P. For this purpose, the sheet skew detection sensor 23 is a transmissive optical sensor, and is disposed above the medium transport path Rt1 and the light emitting unit 23e composed of LEDs and the like disposed below the medium transport path Rt1. When the light receiving unit 23r receives light such as infrared light generated by the light emitting unit 23e and transmitted through the paper P, the light receiving unit 23r corresponds to the transmittance of the paper P. A detection voltage corresponding to the received light amount of 23r is generated as a sensor output.

本実施の形態において、用紙斜行検出センサ23の検出回路は、用紙セット検出センサ21と同様に、発光部23eの発光出力が大きくなり、受光部23rの受光量が多くなると、用紙斜行検出センサ23のセンサ出力が小さくなり、発光部23eの発光出力が小さくなり、受光部23rの受光量が少なくなると、用紙斜行検出センサ23のセンサ出力が大きくなるように形成される。   In the present embodiment, the detection circuit of the paper skew detection sensor 23 detects the paper skew detection when the light emission output of the light emitting unit 23e increases and the amount of light received by the light receiving unit 23r increases, similarly to the paper set detection sensor 21. When the sensor output of the sensor 23 decreases, the light emission output of the light emitting unit 23e decreases, and the amount of light received by the light receiving unit 23r decreases, the sensor output of the paper skew detection sensor 23 is increased.

各用紙斜行検出センサ23と各用紙斜行検出センサ23とは互いに対応させて、前記主走査方向における同じ位置に配設される。   Each paper skew detection sensor 23 and each paper skew detection sensor 23 correspond to each other and are disposed at the same position in the main scanning direction.

なお、用紙Pの搬送方向における用紙斜行検出センサ23より下流側で、かつ、印字部より上流側に、用紙Pの斜行を矯正するシャッタ等の図示されない斜行矯正機構が配設される。   A skew correction mechanism (not shown) such as a shutter for correcting the skew of the paper P is disposed downstream of the paper skew detection sensor 23 in the transport direction of the paper P and upstream of the printing unit. .

また、25は、印字ヘッド12に近接させて、かつ、プラテン13と対向させてキャリッジに取り付けられ、印字部に給紙された用紙Pの幅、すなわち、用紙幅を算出するためのセンサ出力を発生させる第3の媒体検出部としての用紙幅検出センサである。   Reference numeral 25 denotes a sensor output for calculating the width of the paper P, which is attached to the carriage so as to be close to the print head 12 and opposed to the platen 13, and is fed to the printing unit, that is, the paper width. It is a paper width detection sensor as a third medium detection unit to be generated.

該用紙幅検出センサ25は、反射型の光学センサであり、LED等から成る図示されない発光部及びフォトトランジスタ等から成る図示されない受光部を備え、発光部によって発生させられ、プラテン13及び用紙Pに照射された赤外線等の光が、プラテン13及び用紙Pにおいて反射され、受光部によって受光されると、プラテン13及び用紙Pの反射率に応じた検出電圧をセンサ出力として発生させる。   The paper width detection sensor 25 is a reflection type optical sensor, and includes a light emitting portion (not shown) made of an LED and a light receiving portion (not shown) made of a phototransistor. The paper width detection sensor 25 is generated by the light emitting portion and is applied to the platen 13 and the paper P. When the irradiated light such as infrared rays is reflected by the platen 13 and the paper P and received by the light receiving unit, a detection voltage corresponding to the reflectance of the platen 13 and the paper P is generated as a sensor output.

前記印字ヘッド12は、複数の印字ワイヤを備え、キャリッジを主走査方向に往復移動させながら印字ヘッド12を駆動すると、前記印字ワイヤが選択的に前進させられて、図示されないインクリボンに打ち付けられ、インクリボンのインクがプラテン上の用紙Pに転写され、ドット列による印字が行われる。   The print head 12 includes a plurality of print wires, and when the print head 12 is driven while reciprocating the carriage in the main scanning direction, the print wire is selectively advanced and applied to an ink ribbon (not shown). The ink on the ink ribbon is transferred to the paper P on the platen, and printing is performed using dot rows.

次に、プリンタ10の制御装置について説明する。   Next, the control device of the printer 10 will be described.

図1は本発明の第1の実施の形態におけるプリンタの制御ブロック図である。   FIG. 1 is a control block diagram of the printer according to the first embodiment of the present invention.

図において、30は上位装置としてのホストコンピュータ、31はプリンタ10の全体の制御を行う中央処理装置としての、かつ、制御部としてのCPUであり、該CPU31には、第1の記憶装置としての揮発性メモリであるRAM32、第2の記憶装置としての不揮発性メモリであるROM33、及び集積回路から成るI/Oインタフェース35が接続される。   In the figure, 30 is a host computer as a host device, 31 is a CPU as a central processing unit for controlling the entire printer 10 and as a control unit, and the CPU 31 has a first storage device. A RAM 32 that is a volatile memory, a ROM 33 that is a non-volatile memory as a second storage device, and an I / O interface 35 including an integrated circuit are connected.

該I/Oインタフェース35は、プリンタ10の状態を検出するための入出力I/Oとして機能するとともに、用紙セット検出センサ21、用紙斜行検出センサ23及び用紙幅検出センサ25に接続されてプリンタ10の制御を行うための入出力I/Oとして機能し、インタフェース基板34に接続されるとともに、印字ヘッド12を駆動するための印字ヘッド駆動回路37、第1の駆動部としてのスペースモータMsを駆動するためのスペースモータ駆動回路38、及び第2の駆動部としてのフィードモータMfを駆動するためのフィードモータ駆動回路39に接続される。   The I / O interface 35 functions as an input / output I / O for detecting the state of the printer 10 and is connected to the paper set detection sensor 21, the paper skew detection sensor 23, and the paper width detection sensor 25. A print head drive circuit 37 for driving the print head 12 and a space motor Ms as a first drive unit are connected to the interface board 34 and function as an input / output I / O for performing control 10. It is connected to a space motor drive circuit 38 for driving and a feed motor drive circuit 39 for driving a feed motor Mf as a second drive unit.

前記スペースモータMsは、キャリッジ及び印字ヘッド12を主走査方向に移動させるためのモータであり、スペースモータMsを駆動することによって発生させられた回転は、図示されないプーリ及びタイミングベルトを介して往復運動に変換され、往復運動がキャリッジに伝達される。   The space motor Ms is a motor for moving the carriage and the print head 12 in the main scanning direction. The rotation generated by driving the space motor Ms reciprocates via a pulley and a timing belt (not shown). And the reciprocating motion is transmitted to the carriage.

また、前記フィードモータMfは、用紙Pを副走査方向に移動させるためのモータであり、フィードモータMfを駆動することによって、フロントフィードローラ対15(図2)及びリヤフィードローラ対17が回転させられる。   The feed motor Mf is a motor for moving the paper P in the sub-scanning direction, and the front feed roller pair 15 (FIG. 2) and the rear feed roller pair 17 are rotated by driving the feed motor Mf. It is done.

前記ホストコンピュータ30には、オペレーティングシステム、アプリケーション等がインストールされていて、印字を行う際に、ホストコンピュータ30は印字データをプリンタ10に送信する。   The host computer 30 is installed with an operating system, applications, and the like. When printing is performed, the host computer 30 transmits print data to the printer 10.

前記CPU31は、ROM33に記録されたプログラムを実行することによって動作させられる各制御処理部、本実施の形態においては、用紙セット検出センサ21がプリンタ10にセットされた用紙Pの有無を検出するために使用される判断値(用紙有無判断値)、すなわち、スライスレベルを生成するスライスレベル生成処理部Pr1、用紙セット検出センサ21のセンサ出力に基づいて、プリンタ10に用紙Pがセットされたかどうか、すなわち、プリンタ10にセットされた用紙Pの有無を判断する媒体有無判断処理部としての用紙有無判断処理部Pr2、プリンタ10にセットされた用紙Pを印字部に給紙することによって印字の準備を整える給紙処理部Pr3、用紙幅検出センサ25のセンサ出力に基づいて、給紙された用紙Pの用紙幅を算出する媒体幅算出処理部としての用紙幅算出処理部P4、印字部から用紙Pを排出する排紙処理部Pr5等を備える。   The CPU 31 is a control processing unit that is operated by executing a program recorded in the ROM 33. In this embodiment, the paper set detection sensor 21 detects the presence or absence of the paper P set in the printer 10. Whether or not the paper P is set in the printer 10 based on the determination value (paper presence / absence determination value) used in the above, that is, the slice level generation processing unit Pr1 that generates the slice level, and the sensor output of the paper set detection sensor 21; That is, a sheet presence / absence determination processing unit Pr2 as a medium presence / absence determination processing unit that determines the presence / absence of the sheet P set in the printer 10 and the sheet P set in the printer 10 are fed to the printing unit to prepare for printing. Based on the sensor output of the paper feed processing unit Pr3 and the paper width detection sensor 25 to be arranged, the fed paper P Paper width calculation processing section P4 of the medium width calculation processing unit for calculating a sheet width, and a discharge process unit Pr5 like that discharges the paper P from the printing unit.

また、前記RAM32には、各種のデータ、本実施の形態においては、CPU31の各制御処理部において処理を実施するための制御情報、ホストコンピュータ30から送信された印字データ等が記録される。   The RAM 32 records various types of data, in the present embodiment, control information for executing processing in each control processing unit of the CPU 31, print data transmitted from the host computer 30, and the like.

そして、ROM33には、プリンタ10の動作を制御するためのプログラムが記録される。   The ROM 33 records a program for controlling the operation of the printer 10.

なお、前記テーブル11、用紙セット検出センサ21、用紙斜行検出センサ23、CPU31、RAM32、ROM33等によって媒体検出装置が、該媒体検出装置及び媒体搬送路Rt1、フロントフィードローラ対15、リヤフィードローラ対17等によって媒体搬送装置が構成される。   The table 11, paper set detection sensor 21, paper skew detection sensor 23, CPU 31, RAM 32, ROM 33 and the like are used as a medium detection device, the medium detection device and medium conveyance path Rt1, front feed roller pair 15, rear feed roller. A medium transporting device is configured by the pair 17 and the like.

ところで、本実施の形態においては、印字を行う用紙Pとして薄紙、通常用紙及び厚紙を使用することができ、操作者は、プリンタ10の操作部を操作することによって、印字モードを設定し、薄紙を使用して薄紙モードで、通常用紙を使用して通常モードで、厚紙を使用して厚紙モードで印字を行うことができる。   By the way, in the present embodiment, thin paper, normal paper, and thick paper can be used as the paper P to be printed, and the operator sets the print mode by operating the operation unit of the printer 10, and the thin paper Can be printed in thin paper mode, normal paper can be used in normal mode, and thick paper can be used in thick paper mode.

この場合、前記用紙有無判断処理部Pr2によって、プリンタ10にセットされた用紙Pの有無を判断するに当たり、用紙セット検出センサ21において用紙Pの透過率に応じたセンサ出力が発生させられるので、発光部21eの発光出力は、薄紙モードが設定されたときに最も小さく、通常モードが設定されたとき及び厚紙モードが設定されたときの順にセンサの出力が大きくなるように設定される。   In this case, when the paper presence / absence determination processing unit Pr2 determines the presence / absence of the paper P set in the printer 10, the paper set detection sensor 21 generates a sensor output corresponding to the transmittance of the paper P. The light emission output of the unit 21e is the smallest when the thin paper mode is set, and is set so that the output of the sensor increases in the order when the normal mode is set and when the thick paper mode is set.

すなわち、薄紙を使用して薄紙モードで印字を行う場合、薄紙の用紙厚が極めて小さいので、発光出力を大きくすると、発光部21rで発光させられた光のほとんどが用紙Pを透過し、用紙セット検出センサ21においてセンサ出力が大きくなりすぎ、用紙Pの有無を検出することができなくなってしまう。そこで、本実施の形態において、薄紙モードが設定された場合の発光部21eの発光出力は小さく設定される。   That is, when printing in thin paper mode using thin paper, the paper thickness of the thin paper is extremely small. Therefore, when the light emission output is increased, most of the light emitted by the light emitting unit 21r is transmitted through the paper P, and the paper set In the detection sensor 21, the sensor output becomes too large, and the presence or absence of the paper P cannot be detected. Therefore, in the present embodiment, the light emission output of the light emitting unit 21e when the thin paper mode is set is set small.

これに対して、通常用紙を使用して通常モードで印字を行う場合、通常用紙の用紙厚が小さくないので、発光出力を大きくしても、発光部21eで発光させられた光のほとんどが用紙Pを透過せず、用紙セット検出センサ21においてセンサ出力が大きくならない。そこで、本実施の形態において、通常モードが設定された場合の発光部21eの発光出力は薄紙と比較して大きく設定される。なお、トレーシングペーパーのような比較的透過率の高い用紙Pにおいては、通常モードが設定されても用紙Pを検出することができるので、発光出力は小さくされる。   On the other hand, when printing is performed in the normal mode using the normal paper, the paper thickness of the normal paper is not small. Therefore, even if the light emission output is increased, most of the light emitted by the light emitting unit 21e is the paper. P does not pass through, and the sensor output at the paper set detection sensor 21 does not increase. Therefore, in the present embodiment, the light emission output of the light emitting unit 21e when the normal mode is set is set larger than that of thin paper. Note that, in the paper P having a relatively high transmittance such as tracing paper, the paper P can be detected even when the normal mode is set, and thus the light emission output is reduced.

また、厚紙を使用して厚紙モードで印字を行う場合、厚紙の用紙厚が大きいので、発光出力を大きくしても、発光部21eで発光させられた光は用紙Pを透過せず、用紙セット検出センサ21においてセンサ出力が大きくならない。そこで、本実施の形態において、通常モードが設定された場合の発光部21eの発光出力は通常モードより大きく設定される。   Further, when printing in thick paper mode using thick paper, since the paper thickness of the thick paper is large, even if the light emission output is increased, the light emitted by the light emitting unit 21e does not pass through the paper P, and the paper is set. The sensor output does not increase in the detection sensor 21. Therefore, in the present embodiment, the light emission output of the light emitting unit 21e when the normal mode is set is set larger than that in the normal mode.

そして、ROM33には、用紙Pの有無を検出するための、用紙セット検出センサ21の発光部21eにおける発光出力に応じて設定され、用紙セット検出センサ21のセンサ出力と比較するための複数のスライスレベルが記録されたスライスレベル記録エリアが形成され、該スライスレベル記録エリアに、用紙Pの厚さに応じて設定された印字モードごとに異ならせて設定された、第1の閾値としての薄紙用のスライスレベルth1、第2の閾値としての通常用のスライスレベルth2及び第3の閾値としての厚紙用のスライスレベルth3が記録される。   In the ROM 33, a plurality of slices are set according to the light emission output of the light emitting unit 21e of the paper set detection sensor 21 for detecting the presence or absence of the paper P, and are compared with the sensor output of the paper set detection sensor 21. A slice level recording area in which the level is recorded is formed, and the slice level recording area is used for thin paper as a first threshold value set differently for each print mode set according to the thickness of the paper P. Slice level th1, normal slice level th2 as the second threshold, and thick paper slice level th3 as the third threshold are recorded.

前記薄紙用のスライスレベルth1は、薄紙モードで印字を行う際に用紙セット検出センサ21のセンサ出力と比較するためのスライスレベルであり、通常用のスライスレベルth2は、通常モードで印字を行う際に用紙セット検出センサ21のセンサ出力と比較するためのスライスレベルであり、厚紙用のスライスレベルth3は、厚紙モードで印字を行う際に用紙セット検出センサ21のセンサ出力と比較するためのスライスレベルである。   The slice level th1 for thin paper is a slice level for comparison with the sensor output of the paper set detection sensor 21 when printing in the thin paper mode, and the slice level th2 for normal paper is used when printing in the normal mode. The slice level th3 for comparison with the sensor output of the paper set detection sensor 21 is a slice level for comparing with the sensor output of the paper set detection sensor 21 when printing in the thick paper mode. It is.

ところで、前記用紙セット検出センサ21においては、プリンタ10に用紙Pがセットされると、発光部21eと受光部21rとが用紙Pによって遮られ、センサ出力が大きくなり、前記用紙有無判断処理部Pr2が、プリンタ10にセットされた用紙Pが有ると判断するが、用紙セット検出センサ21に紙片、紙粉、埃等の付着物が付着し、発光部21eで発光させられた光が受光部21rによって受光されにくくなることがあり、その場合、センサ出力がスライスレベルより大きくなると、用紙有無判断処理部Pr2が用紙Pの有無を誤って判断してしまう。   By the way, in the paper set detection sensor 21, when the paper P is set in the printer 10, the light emitting unit 21e and the light receiving unit 21r are blocked by the paper P, the sensor output becomes large, and the paper presence determination processing unit Pr2 However, it is determined that there is the paper P set in the printer 10, but the paper set detection sensor 21 is attached with paper, paper dust, dust or other adhering matter, and the light emitted from the light emitting portion 21e is received by the light receiving portion 21r. In this case, if the sensor output becomes larger than the slice level, the paper presence / absence determination processing unit Pr2 erroneously determines the presence / absence of the paper P.

そこで、本実施の形態においては、前述されたように、ROM33のスライスレベル記録エリアに、互いに値が異なる薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3が記録されるようになっている。   Therefore, in the present embodiment, as described above, the slice level th1 for thin paper, the slice level th2 for normal paper, and the slice level th3 for thick paper having different values are recorded in the slice level recording area of the ROM 33. It has become so.

なお、ROM33は、不揮発性メモリであり、記録されたデータを変更することはできない。したがって、前記薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3は、スライスレベル生成処理部Pr1によって、プリンタ10の製造時に設定され、記録されるか、又はプリンタ10の修理時等においてプリンタ10の操作部において所定の方法でスイッチ操作を行うことによって、再設定され、記録される。   The ROM 33 is a non-volatile memory, and recorded data cannot be changed. Therefore, the slice level th1 for thin paper, the slice level th2 for normal paper, and the slice level th3 for thick paper are set and recorded by the slice level generation processing unit Pr1 when the printer 10 is manufactured, or By performing a switch operation in a predetermined method in the operation unit of the printer 10 at the time of repair or the like, it is reset and recorded.

次に、薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を生成するためのスライスレベル生成処理部Pr1の動作について説明する。   Next, the operation of the slice level generation processing unit Pr1 for generating the slice level th1 for thin paper, the slice level th2 for normal paper, and the slice level th3 for thick paper will be described.

図4は本発明の第1の実施の形態におけるスライスレベル生成処理部の動作を示す第1のフローチャート、図5は本発明の第1の実施の形態におけるスライスレベル生成処理部の動作を示す第2のフローチャート、図6は本発明の第1の実施の形態におけるスライスレベル生成処理部の動作を説明するための図である。   FIG. 4 is a first flowchart showing an operation of the slice level generation processing unit in the first embodiment of the present invention, and FIG. 5 is a first flowchart showing an operation of the slice level generation processing unit in the first embodiment of the present invention. FIG. 6 is a flowchart for explaining the operation of the slice level generation processing unit according to the first embodiment of the present invention.

まず、スライスレベル生成処理部Pr1は、各用紙セット検出センサ21のゲイン値、すなわち、各用紙セット検出センサ21において発光部21eを発光させるときの発光出力のゲイン値を最小ゲイン値にする。   First, the slice level generation processing unit Pr1 sets the gain value of each paper set detection sensor 21, that is, the gain value of the light output when the light emitting unit 21e emits light in each paper set detection sensor 21, to the minimum gain value.

次に、スライスレベル生成処理部Pr1は、薄紙用のスライスレベルth1を生成するための変数V1及びあらかじめ設定された加算値αをセットする。   Next, the slice level generation processing unit Pr1 sets a variable V1 for generating a slice level th1 for thin paper and a preset addition value α.

続いて、スライスレベル生成処理部Pr1は、薄紙用のスライスレベルth1を生成するかどうかを判断し、薄紙用のスライスレベルth1を生成する場合、発光部21eを発光させ、用紙セット検出センサ21のセンサ出力Vを読み込む。   Subsequently, the slice level generation processing unit Pr1 determines whether or not to generate the slice level th1 for thin paper. When the slice level th1 for thin paper is generated, the light emitting unit 21e is caused to emit light and the paper set detection sensor 21 Read the sensor output V.

一方、薄紙用のスライスレベルth1を生成しない場合、スライスレベル生成処理部Pr1は、通常用のスライスレベルth2を生成するための変数V2及び前記加算値αをセットし、通常用のスライスレベルth2を生成するかどうかを判断し、通常用のスライスレベルth2を生成する場合、発光部21eを発光させ、用紙セット検出センサ21のセンサ出力Vを読み込む。   On the other hand, when the slice level th1 for thin paper is not generated, the slice level generation processing unit Pr1 sets the variable V2 for generating the normal slice level th2 and the addition value α, and sets the normal slice level th2 When it is determined whether or not to generate the normal slice level th2, the light emitting unit 21e is caused to emit light, and the sensor output V of the paper set detection sensor 21 is read.

また、通常用のスライスレベルth2を生成しない場合、スライスレベル生成処理部Pr1は、厚紙用のスライスレベルth3を生成するための変数V3及び前記加算値αをセットし、発光部21eを発光させ、用紙セット検出センサ21のセンサ出力Vを読み込む。   When the normal slice level th2 is not generated, the slice level generation processing unit Pr1 sets the variable V3 and the added value α for generating the slice level th3 for cardboard, and causes the light emitting unit 21e to emit light. The sensor output V of the paper set detection sensor 21 is read.

このようにして、発光部21eを発光させ、用紙セット検出センサ21のセンサ出力Vを読み込むと、スライスレベル生成処理部Pr1は、用紙セット検出センサ21のセンサ出力Vが、あらかじめ設定された値、すなわち、XX〔V〕未満であるかどうかを判断し、用紙セット検出センサ21のセンサ出力VがXX〔V〕未満である場合、現在の発光出力のゲイン値を用紙Pの有無を検出するときのゲイン値にするとともに、現在の変数V1〜V3に加算値αを加算した値を薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3にする。なお、XX〔V〕はセンサ出力Vが最大値Vmax(=3.3〔V〕)にならないように設定される。   In this way, when the light emitting unit 21e is caused to emit light and the sensor output V of the paper set detection sensor 21 is read, the slice level generation processing unit Pr1 sets the sensor output V of the paper set detection sensor 21 to a preset value, That is, it is determined whether or not it is less than XX [V], and when the sensor output V of the paper set detection sensor 21 is less than XX [V], the gain value of the current light emission output is detected for the presence or absence of the paper P And a value obtained by adding the addition value α to the current variables V1 to V3 are set to a thin paper slice level th1, a normal slice level th2, and a thick paper slice level th3. XX [V] is set so that the sensor output V does not reach the maximum value Vmax (= 3.3 [V]).

そして、スライスレベル生成処理部Pr1は、すべての用紙セット検出センサ21の薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を生成したかどうかを判断し、すべての用紙セット検出センサ21の薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を生成した場合、薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3並びに発光出力のゲイン値をROM33に記録する。   Then, the slice level generation processing unit Pr1 determines whether or not the slice level th1 for thin paper, the slice level th2 for normal paper, and the slice level th3 for thick paper of all the paper set detection sensors 21 have been generated. When the slice detection level th1, the normal slice level th2, and the thick paper slice level th3 of the set detection sensor 21 are generated, the thin paper slice level th1, the normal slice level th2, and the thick paper slice level th3. In addition, the gain value of the light emission output is recorded in the ROM 33.

また、すべての用紙セット検出センサ21の薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を生成してはいない場合、スライスレベル生成処理部Pr1は、次の用紙セット検出センサ21のゲイン値を最小ゲイン値にする。   If the slice level th1 for thin paper, the slice level th2 for normal paper, and the slice level th3 for thick paper are not generated by all the paper set detection sensors 21, the slice level generation processing unit Pr1 determines the next paper set. The gain value of the detection sensor 21 is set to the minimum gain value.

そして、発光部21eを発光させたときの用紙セット検出センサ21のセンサ出力Vが、XX〔V〕以上である場合、スライスレベル生成処理部Pr1は、用紙セット検出センサ21のすべてのゲイン値でセンサ出力VがXX〔V〕以上であるかどうかを判断し、用紙セット検出センサ21のすべてのゲイン値でセンサ出力VがXX〔V〕以上である場合、エラーを発生させる。   When the sensor output V of the paper set detection sensor 21 when the light emitting unit 21e emits light is XX [V] or more, the slice level generation processing unit Pr1 uses all the gain values of the paper set detection sensor 21. It is determined whether or not the sensor output V is XX [V] or more. If the sensor output V is XX [V] or more for all the gain values of the paper set detection sensor 21, an error is generated.

一方、用紙セット検出センサ21のすべてのゲイン値でセンサ出力VがXX〔V〕以上ではない場合、スライスレベル生成処理部Pr1は、ゲイン値を一つ上げ、用紙セット検出センサ21のセンサ出力VがXX〔V〕未満になるまで、各用紙セット検出センサ21の発光部21eの発光出力を大きくする。   On the other hand, when the sensor output V is not equal to or higher than XX [V] at all the gain values of the paper set detection sensor 21, the slice level generation processing unit Pr1 increases the gain value by one and the sensor output V of the paper set detection sensor 21 is increased. Until the value becomes less than XX [V], the light emission output of the light emitting portion 21e of each paper set detection sensor 21 is increased.

次に、図4及び5のフローチャートについて説明する。
ステップS1 スライスレベル生成処理部Pr1は各用紙セット検出センサ21のゲイン値を最小ゲイン値にする。
ステップS2 スライスレベル生成処理部Pr1は変数V1及び加算値αをセットする。
ステップS3 スライスレベル生成処理部Pr1は薄紙用のスライスレベルth1を生成するかどうかを判断する。薄紙用のスライスレベルth1を生成する場合はステップS7に、薄紙用のスライスレベルth1を生成しない場合はステップS4に進む。
ステップS4 スライスレベル生成処理部Pr1は変数V2及び加算値αをセットする。
ステップS5 スライスレベル生成処理部Pr1は通常用のスライスレベルth2を生成するかどうかを判断する。通常用のスライスレベルth2を生成する場合はステップS7に、通常用のスライスレベルth2を生成しない場合はステップS6に進む。
ステップS6 スライスレベル生成処理部Pr1は変数V3及び加算値αをセットする。
ステップS7 スライスレベル生成処理部Pr1はセンサ出力Vを読み込む。
ステップS8 スライスレベル生成処理部Pr1はセンサ出力VがXX〔V〕未満であるかどうかを判断する。センサ出力VがXX〔V〕未満である場合はステップS9に、センサ出力VがXX〔V〕以上である場合はステップS14に進む。
ステップS9 スライスレベル生成処理部Pr1は現在の発光出力のゲイン値を用紙Pの有無を検出するときのゲイン値にする。
ステップS10 スライスレベル生成処理部Pr1は現在の変数V1〜V3に加算値αを加算した値を薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3にする。
ステップS11 スライスレベル生成処理部Pr1はすべての用紙セット検出センサ21のスライスレベルを生成したかどうかを判断する。すべての用紙セット検出センサ21のスライスレベルを生成した場合はステップS12に、すべての用紙セット検出センサ21のスライスレベルを生成してはいない場合はステップS13に進む。
ステップS12 スライスレベル生成処理部Pr1は薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3並びに発光出力のゲイン値をROM33に記録し、処理を終了する。
ステップS13 スライスレベル生成処理部Pr1は次の用紙セット検出センサ21のゲイン値を最小ゲイン値にし、ステップS2に戻る。
ステップS14 スライスレベル生成処理部Pr1は用紙セット検出センサ21のすべてのゲイン値でセンサ出力VがXX〔V〕以上であるかどうかを判断する。用紙セット検出センサ21のすべてのゲイン値でセンサ出力VがXX〔V〕以上である場合はステップS15に進み、用紙セット検出センサ21のすべてのゲイン値でセンサ出力VがXX〔V〕以上ではない場合はステップS16に進む。
ステップS15 スライスレベル生成処理部Pr1はエラーを発生させる。
ステップS16 スライスレベル生成処理部Pr1はゲイン値を一つ上げ、ステップS2に戻る。
Next, the flowcharts of FIGS. 4 and 5 will be described.
Step S1 The slice level generation processing unit Pr1 sets the gain value of each paper set detection sensor 21 to the minimum gain value.
Step S2: The slice level generation processing unit Pr1 sets the variable V1 and the addition value α.
Step S3: The slice level generation processing unit Pr1 determines whether to generate a slice level th1 for thin paper. If the slice level th1 for thin paper is generated, the process proceeds to step S7. If the slice level th1 for thin paper is not generated, the process proceeds to step S4.
Step S4: The slice level generation processing unit Pr1 sets the variable V2 and the addition value α.
Step S5: The slice level generation processing unit Pr1 determines whether or not to generate a normal slice level th2. If the normal slice level th2 is to be generated, the process proceeds to step S7. If the normal slice level th2 is not to be generated, the process proceeds to step S6.
Step S6: The slice level generation processing unit Pr1 sets the variable V3 and the addition value α.
Step S7 The slice level generation processing unit Pr1 reads the sensor output V.
Step S8: The slice level generation processing unit Pr1 determines whether or not the sensor output V is less than XX [V]. If the sensor output V is less than XX [V], the process proceeds to step S9. If the sensor output V is greater than or equal to XX [V], the process proceeds to step S14.
Step S9: The slice level generation processing unit Pr1 sets the gain value of the current light emission output to the gain value when detecting the presence or absence of the paper P.
Step S10 The slice level generation processing unit Pr1 sets the values obtained by adding the addition value α to the current variables V1 to V3 to the thin paper slice level th1, the normal slice level th2, and the thick paper slice level th3.
Step S11: The slice level generation processing unit Pr1 determines whether the slice levels of all the paper set detection sensors 21 have been generated. If the slice levels of all the paper set detection sensors 21 have been generated, the process proceeds to step S12, and if not, the process proceeds to step S13.
Step S12 The slice level generation processing unit Pr1 records the slice level th1 for thin paper, the slice level th2 for normal paper, the slice level th3 for thick paper, and the gain value of the light emission output in the ROM 33, and the process is terminated.
Step S13: The slice level generation processing unit Pr1 sets the gain value of the next paper set detection sensor 21 to the minimum gain value, and returns to step S2.
Step S14 The slice level generation processing unit Pr1 determines whether or not the sensor output V is XX [V] or more for all the gain values of the paper set detection sensor 21. If the sensor output V is XX [V] or more for all the gain values of the paper set detection sensor 21, the process proceeds to step S15, and if the sensor output V is XX [V] or more for all the gain values of the paper set detection sensor 21. If not, the process proceeds to step S16.
Step S15: The slice level generation processing unit Pr1 generates an error.
Step S16: The slice level generation processing unit Pr1 increases the gain value by one and returns to step S2.

次に、単票の用紙Pを使用して印字を行うときのCPU31の動作について説明する。   Next, the operation of the CPU 31 when performing printing using a single sheet of paper P will be described.

図7は本発明の第1の実施の形態におけるCPUの動作を示す第1のフローチャート、図8は本発明の第1の実施の形態におけるCPUの動作を示す第2のフローチャートである。   FIG. 7 is a first flowchart showing the operation of the CPU in the first embodiment of the present invention, and FIG. 8 is a second flowchart showing the operation of the CPU in the first embodiment of the present invention.

まず、CPU31の用紙有無判断処理部Pr2は、用紙有無判断処理を行い、プリンタ10に用紙Pがセットされたかどうかを判断する。   First, the paper presence / absence determination processing unit Pr2 of the CPU 31 performs a paper presence / absence determination process to determine whether or not the paper P is set in the printer 10.

そのために、前記用紙有無判断処理部Pr2は、用紙セット検出センサ21のセンサ出力Vを定期的に監視することによって、用紙Pのプリンタ10へのセット状態の変化を把握する。   For this purpose, the paper presence / absence determination processing unit Pr2 periodically monitors the sensor output V of the paper set detection sensor 21, thereby grasping the change in the setting state of the paper P to the printer 10.

用紙有無判断処理部Pr2によって、プリンタ10に用紙Pがセットされたと判断されると、給紙処理部Pr3は、まず、用紙Pの現在のセットされた位置から、媒体搬送路Rt1上における用紙幅検出センサ25の位置、すなわち、用紙幅検出位置までの用紙Pの搬送量であるフィード量を算出する。   When the paper presence / absence determination processing unit Pr2 determines that the paper P is set in the printer 10, the paper supply processing unit Pr3 first starts from the current set position of the paper P to the paper width on the medium transport path Rt1. The feed amount that is the transport amount of the paper P up to the position of the detection sensor 25, that is, the paper width detection position is calculated.

続いて、給紙処理部Pr3は、各用紙斜行検出センサ23のセンサ出力をチェックし、センサ出力が閾値より大きく、用紙Pを検出している用紙斜行検出センサ23のうちの、最左端の用紙斜行検出センサ23の位置、及び最右端の用紙斜行検出センサ23の位置を算出する。このように、用紙Pを検出している用紙斜行検出センサ23のうちの、最左端の用紙斜行検出センサ23の位置及び最右端の用紙斜行検出センサ23の位置を算出することによって、主走査方向における用紙Pの位置をほぼ特定することができる。   Subsequently, the paper feed processing unit Pr3 checks the sensor output of each paper skew detection sensor 23, and the leftmost end of the paper skew detection sensors 23 that detect the paper P because the sensor output is larger than the threshold value. The position of the sheet skew detection sensor 23 and the position of the rightmost sheet skew detection sensor 23 are calculated. Thus, by calculating the position of the leftmost paper skew detection sensor 23 and the position of the rightmost paper skew detection sensor 23 among the paper skew detection sensors 23 detecting the paper P, The position of the paper P in the main scanning direction can be almost specified.

次に、給紙処理部Pr3は、用紙Pの用紙幅検出位置までの給紙を開始し、用紙Pの用紙幅検出位置までの給紙を終了すると、印字ヘッド12を最左端の用紙斜行検出センサ23の次の用紙斜行検出センサ23(最左端の用紙斜行検出センサ23より一つ左の用紙斜行検出センサ23)の位置まで移動させ、用紙幅検出センサ25のセンサ出力に基づいて、用紙Pの左端部及び右端部の判定を開始する。   Next, the paper feed processing unit Pr3 starts feeding the paper P to the paper width detection position, and when the paper P is fed to the paper width detection position, the print head 12 is skewed to the leftmost side. Based on the sensor output of the sheet width detection sensor 25, the sheet is moved to the position of the next sheet skew detection sensor 23 (the sheet skew detection sensor 23 one left from the leftmost sheet skew detection sensor 23). Thus, the determination of the left end and the right end of the paper P is started.

なお、用紙幅検出センサ25は反射型の光学センサであるので、用紙幅検出センサ25の検出回路は、プラテン13上に用紙Pがなく、反射率が低い場合、発光部によって発生させられ、プラテン13で反射された光を受光部が受光したときのセンサ出力が小さく、プラテン13上に用紙Pがあり、反射率が高い場合、発光部によって発生させられ、プラテン13で反射された光を受光部が受光したときのセンサ出力が大きくなるように形成される。したがって、印字ヘッド12を最左端の用紙斜行検出センサ23の次の用紙斜行検出センサ23の位置から右方に移動させたときの用紙幅検出センサ25のセンサ出力が、小から大に変化したときに用紙Pの左端部を判定することができ、大から小に変化したときに用紙Pの右端部を判定することができる。   Since the paper width detection sensor 25 is a reflection type optical sensor, the detection circuit of the paper width detection sensor 25 is generated by the light emitting unit when there is no paper P on the platen 13 and the reflectance is low. When the light receiving unit receives the light reflected by the light receiving unit 13, the sensor output is small, the sheet P is on the platen 13, and the reflectance is high, the light generated by the light emitting unit and reflected by the platen 13 is received. It is formed so that the sensor output when the part receives light increases. Therefore, the sensor output of the paper width detection sensor 25 when the print head 12 is moved rightward from the position of the paper skew detection sensor 23 next to the leftmost paper skew detection sensor 23 changes from small to large. The left edge of the paper P can be determined, and the right edge of the paper P can be determined when it changes from large to small.

このようにして、用紙Pの左端部及び右端部の判定が行われ、用紙Pの左端部及び右端部の判定が終了すると、給紙処理部Pr3は、用紙Pの左端部の位置及び右端部の位置に基づいて用紙幅を算出する。   In this way, the determination of the left end portion and the right end portion of the sheet P is performed, and when the determination of the left end portion and the right end portion of the sheet P is completed, the paper feed processing unit Pr3 determines the position of the left end portion and the right end portion of the sheet P. The paper width is calculated based on the position of.

続いて、給紙処理部Pr3は、用紙Pの左端部の位置及び右端部の位置に基づいて、用紙Pの主走査方向における印字ヘッド12による印字の開始位置及び終了位置を算出するとともに、用紙Pの中央位置を算出し、印字ヘッド12を用紙Pの中央位置へ移動させる。   Subsequently, the paper feed processing unit Pr3 calculates the start position and the end position of printing by the print head 12 in the main scanning direction of the paper P based on the position of the left end portion and the right end portion of the paper P, and the paper The central position of P is calculated, and the print head 12 is moved to the central position of the paper P.

そして、給紙処理部Pr3は、媒体搬送路Rt1上における用紙幅検出位置から、印字ヘッド12によって用紙Pに対して印字を実行する位置、すなわち、印字実行位置までのフィード量を算出し、用紙Pの印字実行位置までの給紙を開始する。なお、印字実行位置は、用紙Pの搬送方向における用紙幅検出位置より上流側であっても、下流側であってもよい。   The paper feed processing unit Pr3 calculates the feed amount from the paper width detection position on the medium conveyance path Rt1 to the position where the print head 12 performs printing on the paper P, that is, the print execution position. Paper feeding to the print execution position of P is started. The print execution position may be upstream or downstream of the paper width detection position in the conveyance direction of the paper P.

用紙Pの印字実行位置までの給紙が終了すると、給紙処理部Pr3は、給紙処理を終了する。   When the paper supply to the print execution position of the paper P is completed, the paper supply processing unit Pr3 ends the paper supply process.

次に、図7及び8のフローチャートについて説明する。
ステップS21 用紙有無判断処理部Pr2は用紙有無判断処理を行う。
ステップS22 用紙有無判断処理部Pr2はプリンタ10に用紙Pがセットされたかどうかを判断する。プリンタ10に用紙Pがセットされた場合はステップS23に進む。
ステップS23 給紙処理部Pr3は用紙幅検出位置までの用紙Pのフィード量を算出する。
ステップS24 給紙処理部Pr3は最左端の用紙斜行検出センサ23の位置を算出する。
ステップS25 給紙処理部Pr3は最右端の用紙斜行検出センサ23の位置を算出する。
ステップS26 給紙処理部Pr3は用紙幅検出位置までの給紙を開始する。
ステップS27 給紙処理部Pr3は用紙幅検出位置までの給紙が終了したかどうかを判断する。用紙幅検出位置までの給紙が終了した場合はステップS28に進む。
ステップS28 給紙処理部Pr3は印字ヘッド12を最左端の用紙斜行検出センサ23の次の用紙斜行検出センサ23の位置まで移動させる。
ステップS29 給紙処理部Pr3は用紙Pの左端部及び右端部の判定を開始する。
ステップS30 給紙処理部Pr3は用紙Pの左端部及び右端部の判定が終了するのを待機する。
ステップS31 給紙処理部Pr3は印字の開始位置及び終了位置を算出する。
ステップS32 給紙処理部Pr3は用紙Pの中央位置を算出する。
ステップS33 給紙処理部Pr3は印字ヘッド12を用紙Pの中央位置へ移動させる。
ステップS34 給紙処理部Pr3は印字実行位置までのフィード量を算出する。
ステップS35 給紙処理部Pr3は印字実行位置までの給紙を開始する。
ステップS36 給紙処理部Pr3は印字実行位置までの給紙が終了するのを待機する。
Next, the flowcharts of FIGS. 7 and 8 will be described.
Step S21 The paper presence / absence determination processing unit Pr2 performs paper presence / absence determination processing.
Step S22 The paper presence / absence determination processing unit Pr2 determines whether or not the paper P is set in the printer 10. If the paper P is set in the printer 10, the process proceeds to step S23.
Step S23 The paper feed processing unit Pr3 calculates the feed amount of the paper P up to the paper width detection position.
Step S24 The paper feed processing unit Pr3 calculates the position of the leftmost paper skew detection sensor 23.
Step S25 The paper feed processing unit Pr3 calculates the position of the rightmost sheet skew detection sensor 23.
Step S26 The paper feed processing unit Pr3 starts paper feed up to the paper width detection position.
Step S27 The paper feed processing unit Pr3 determines whether or not the paper feed up to the paper width detection position has been completed. If the paper feed to the paper width detection position is completed, the process proceeds to step S28.
Step S28 The paper feed processing unit Pr3 moves the print head 12 to the position of the paper skew detection sensor 23 next to the leftmost paper skew detection sensor 23.
Step S29 The paper feed processing unit Pr3 starts the determination of the left end and the right end of the paper P.
Step S30 The paper feed processing unit Pr3 waits for the determination of the left end and the right end of the paper P to be completed.
Step S31 The paper feed processing unit Pr3 calculates the print start position and end position.
Step S32 The paper feed processing unit Pr3 calculates the center position of the paper P.
Step S33 The paper feed processing unit Pr3 moves the print head 12 to the center position of the paper P.
Step S34 The paper feed processing unit Pr3 calculates the feed amount up to the print execution position.
Step S35 The paper feed processing unit Pr3 starts paper feed to the print execution position.
Step S36 The paper feed processing unit Pr3 waits for completion of paper feed to the print execution position.

次に、用紙有無判断処理のサブルーチンについて説明する。   Next, a subroutine for paper presence / absence determination processing will be described.

図9は本発明の第1の実施の形態における用紙有無判断処理のサブルーチンを示す第1の図、図10は本発明の第1の実施の形態における用紙有無判断処理のサブルーチンを示す第2の図である。   FIG. 9 is a first diagram showing a subroutine for paper presence / absence determination processing according to the first embodiment of the present invention, and FIG. 10 is a second flowchart showing a subroutine for paper presence / absence determination processing according to the first embodiment of the present invention. FIG.

まず、用紙有無判断処理部Pr2は、前回、単票の用紙Pがプリンタ10にセットされたときに読み込んだすべての用紙セット検出センサ21のセンサ出力VをRAM32に記録する。また、用紙有無判断処理部Pr2は、現時点におけるすべての用紙セット検出センサ21のセンサ出力VをRAM32に記録する。   First, the paper presence / absence determination processing unit Pr2 records in the RAM 32 the sensor outputs V of all the paper set detection sensors 21 read when the single-sheet paper P is set in the printer 10 last time. Further, the paper presence / absence determination processing unit Pr2 records the sensor outputs V of all the paper set detection sensors 21 at the current time in the RAM 32.

そして、用紙有無判断処理部Pr2は、現時点におけるすべての用紙セット検出センサ21のセンサ出力VをRAM32から読み出すとともに、現在、プリンタ10に薄紙モードが設定されているかどうかを判断し、薄紙モードが設定されている場合、すべての用紙セット検出センサ21のセンサ出力Vと薄紙用のスライスレベルth1とを比較し、薄紙モードが設定されていない場合、すべての用紙セット検出センサ21のセンサ出力Vと通常用のスライスレベルth2とを比較し、センサ出力が薄紙用のスライスレベルth1及び通常用のスライスレベルth2より大きい用紙セット検出センサ21、すなわち、媒体有り(以下、「用紙有り」という。)を検出した用紙セット検出センサ21が存在するかどうかを判断し、用紙有りを検出した用紙セット検出センサ21が存在しない場合、プリンタ10に用紙Pがセットされなかった旨を操作者に通知する。   Then, the paper presence / absence determination processing unit Pr2 reads the sensor outputs V of all the paper set detection sensors 21 at the present time from the RAM 32, determines whether the thin paper mode is currently set in the printer 10, and sets the thin paper mode. If the thin paper mode is not set, the sensor outputs V of all the paper set detection sensors 21 and the slice level th1 for thin paper are compared. Is compared with the slice level th2 for use, and the sensor output is greater than the slice level th1 for thin paper and the slice level th2 for normal use, that is, the presence of a medium (hereinafter referred to as “paper present”) is detected. It is determined whether the detected paper set detection sensor 21 exists, and the presence of paper is detected. If the paper set detection sensor 21 which does not exist, the paper P in the printer 10 to notify the operator that it has not been set.

一方、用紙有りを検出した用紙セット検出センサ21が存在する場合、プリンタ10に用紙Pがセットされていて用紙有りが検出されたのか、又は用紙セット検出センサ21に紙片、紙粉、埃等の付着物が付着してセンサ出力が大きくなり、用紙有りが検出されたのかを判断するために、用紙有無判断処理部Pr2は、すべての用紙セット検出センサ21が用紙有りを検出したかどうかを判断する。   On the other hand, when there is a paper set detection sensor 21 that detects the presence of paper, whether the paper P is set in the printer 10 and the presence of paper is detected, or the paper set detection sensor 21 detects a piece of paper, paper dust, dust, or the like. In order to determine whether or not the presence of paper has been detected due to the adhering matter adhering, the paper presence / absence determination processing unit Pr2 determines whether or not all the paper set detection sensors 21 have detected the presence of paper. To do.

すべての用紙セット検出センサ21が用紙有りを検出した場合、印字モードの設定によって用紙有りが検出された可能性があるので、用紙有無判断処理部Pr2は、用紙セット検出センサ21のセンサ出力Vと、発光部21eの発光出力が大きくされたときのスライスレベルとを比較することによって、プリンタ10に用紙Pがセットされたかどうかを判断する。そのために、用紙有無判断処理部Pr2は、印字モードの設定の状況を確認し、現在設定されている印字モードに比べて、用紙Pの厚さが大きい印字モード、本実施の形態においては、発光部21eの発光出力が一段階上の印字モードを設定し、発光出力が一段階上の印字モードで用紙セット検出センサ21が用紙有りを検出するかどうかを判断し、用紙セット検出センサ21による用紙Pの検出結果が変化したかどうかを判断する。   When all the paper set detection sensors 21 detect the presence of paper, the paper presence determination processing unit Pr2 may detect the sensor output V of the paper set detection sensor 21 because there is a possibility that the paper presence is detected by the print mode setting. By comparing the slice level when the light emission output of the light emitting unit 21e is increased, it is determined whether or not the paper P is set in the printer 10. Therefore, the paper presence / absence determination processing unit Pr2 confirms the setting state of the print mode, and in the print mode in which the thickness of the paper P is larger than the currently set print mode, in the present embodiment, the light emission The light emission output of the unit 21e sets the print mode one level higher, the paper output detection sensor 21 determines whether or not the paper set detection sensor 21 detects the presence of paper in the print mode higher than the first level. It is determined whether the detection result of P has changed.

すなわち、用紙有無判断処理部Pr2は、現在、薄紙モードが設定されているかどうかを判断し、薄紙モードが設定されている場合、通常モードを設定し、すべての用紙セット検出センサ21のセンサ出力Vと通常用のスライスレベルth2とを比較し、薄紙モードが設定されていない場合、厚紙モードを設定し、すべての用紙セット検出センサ21のセンサ出力Vと厚紙用のスライスレベルth3とを比較し、媒体無し(以下、「用紙無し」という。)を検出した用紙セット検出センサ21が存在するかどうかを判断する。   That is, the paper presence / absence determination processing unit Pr2 determines whether or not the thin paper mode is currently set. If the thin paper mode is set, the normal mode is set and the sensor outputs V of all the paper set detection sensors 21 are set. And the normal slice level th2, if the thin paper mode is not set, the thick paper mode is set, the sensor outputs V of all the paper set detection sensors 21 are compared with the slice level th3 for thick paper, It is determined whether or not there is a paper set detection sensor 21 that detects no medium (hereinafter referred to as “no paper”).

用紙無しを検出した用紙セット検出センサ21が存在しない場合、用紙有無判断処理部Pr2は、プリンタ10に用紙がセットされなかったと判断し、プリンタ10に用紙がセットされなかった旨を操作者に通知する。   When there is no paper set detection sensor 21 that detects the absence of paper, the paper presence / absence determination processing unit Pr2 determines that no paper is set in the printer 10 and notifies the operator that no paper is set in the printer 10. To do.

また、用紙無しを検出した用紙セット検出センサ21が存在する場合、用紙セット検出センサ21による用紙Pの検出結果が変化したので、薄紙モード又は通常モードで、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことにより、すべての用紙セット検出センサ21が用紙有りを検出した可能性がある。   In addition, when the paper set detection sensor 21 that detects the absence of paper is present, the detection result of the paper P by the paper set detection sensor 21 has changed, and therefore, in the thin paper mode or the normal mode, adhered matter such as paper pieces, paper dust, and dust. May have adhered to the paper set detection sensor 21, all the paper set detection sensors 21 may have detected the presence of paper.

そこで、用紙有無判断処理部Pr2は、スライスレベルの設定を要求し、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルを、発光出力が一段階上の印字モードのスライスレベルに変更する。   Therefore, the paper presence / absence determination processing unit Pr2 requests the setting of the slice level, and changes the slice level for comparison with the sensor output V of the paper set detection sensor 21 to the slice level of the print mode in which the light emission output is one level higher. To do.

そして、一般に、用紙Pの両端で紙片、紙粉、埃等の付着物が発生し、用紙セット検出センサ21に付着しやすいことから、用紙有無判断処理部Pr2は、用紙Pの搬送によって紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着しやすい領域を予測し、予測した領域の近傍にある用紙セット検出センサ21が用紙有りを検出した場合に、用紙セット検出センサ21のセンサ出力Vが紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことによる影響を受けていると判断して、用紙セット検出センサ21の検出結果を用紙有無判断処理の対象から外す。   In general, adhering material such as paper pieces, paper dust, and dust is generated at both ends of the paper P and easily adheres to the paper set detection sensor 21. Therefore, the paper presence / absence determination processing unit Pr2 When an area where deposits such as paper dust and dust are likely to adhere to the paper set detection sensor 21 is predicted, and the paper set detection sensor 21 in the vicinity of the predicted area detects the presence of paper, the paper set detection sensor 21 It is determined that the sensor output V is affected by the adhering matter such as paper pieces, paper dust, and dust adhering to the paper set detection sensor 21, and the detection result of the paper set detection sensor 21 is subjected to the paper presence / absence determination processing. Remove from.

そのために、用紙有無判断処理部Pr2は、用紙Pの左端部及び右端部の判定履歴、並びに用紙セット検出センサ21の検出結果を確認し、用紙Pの左端部及び右端部の位置と、用紙有りを検出した用紙セット検出センサ21の位置とが近いかどうかによって、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことによる用紙セット検出センサ21のセンサ出力への影響があるかどうかを判断する。   For this purpose, the paper presence / absence determination processing unit Pr2 confirms the determination history of the left and right edges of the paper P and the detection result of the paper set detection sensor 21, and determines the positions of the left and right edges of the paper P and the presence of paper. Depending on whether or not the position of the paper set detection sensor 21 that detects the ink is close, the attachment of paper pieces, paper dust, dust or the like to the paper set detection sensor 21 may affect the sensor output of the paper set detection sensor 21. Determine if there is.

用紙セット検出センサ21のセンサ出力への影響がある場合、用紙有無判断処理部Pr2は、用紙有りを検出した用紙セット検出センサ21以外の用紙セット検出センサ21の検出結果を用紙有無判断処理の対象とし、用紙セット検出センサ21のセンサ出力への影響がない場合、用紙無しを検出したすべての用紙セット検出センサ21の検出結果を用紙有無判断処理の対象とし、用紙有無判断処理の対象とした用紙セット検出センサ21における前回のセンサ出力VをRAM32から読み出し、前回のセンサ出力Vと今回のセンサ出力Vとの変化を確認し、用紙セット検出センサ21による用紙Pの検出結果が、用紙無しから用紙有りになったかどうかを判断する。   When there is an influence on the sensor output of the paper set detection sensor 21, the paper presence / absence determination processing unit Pr2 uses the detection result of the paper set detection sensors 21 other than the paper set detection sensor 21 that detected the presence of paper as a target of the paper presence / absence determination processing. If there is no effect on the sensor output of the paper set detection sensor 21, the detection results of all the paper set detection sensors 21 that have detected the absence of paper are the targets of the paper presence / absence determination processing, and the papers that are the targets of the paper presence / absence determination processing The previous sensor output V in the set detection sensor 21 is read from the RAM 32, the change between the previous sensor output V and the current sensor output V is confirmed, and the detection result of the paper P by the paper set detection sensor 21 is from no paper to paper. Judge whether or not there is.

そして、用紙有無判断処理部Pr2は、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りになった場合、プリンタ10に用紙Pがセットされたと判断し、プリンタ10に用紙Pがセットされた旨を操作者に通知し、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りにならなかった場合、プリンタ10に用紙Pがセットされなかったと判断し、プリンタ10に用紙Pがセットされなかった旨を操作者に通知する。   Then, the paper presence / absence determination processing unit Pr2 determines that the paper P is set in the printer 10 when the detection result of the paper P by the paper set detection sensor 21 changes from no paper to paper, and the paper P is loaded in the printer 10. The operator is notified that the paper has been set, and when the detection result of the paper P by the paper set detection sensor 21 is not from paper to paper, it is determined that the paper P has not been set in the printer 10, and the printer 10 The operator is notified that the paper P has not been set.

また、用紙有りを検出した用紙セット検出センサ21が存在する場合において、すべての用紙セット検出センサ21が用紙有りを検出してはおらず、特定の用紙セット検出センサ21が用紙有りを検出した場合は、すべての用紙セット検出センサ21が用紙有りを検出した場合と同様に、用紙セット検出センサ21に紙片、紙粉、埃等の付着物が付着して、特定の用紙セット検出センサ21において用紙有りが検出された可能性がある。   Further, when there is a paper set detection sensor 21 that detects the presence of paper, not all paper set detection sensors 21 detect the presence of paper, and when a specific paper set detection sensor 21 detects the presence of paper. As in the case where all the paper set detection sensors 21 detect the presence of paper, the paper set detection sensor 21 is attached with a paper piece, paper dust, dust or other adhering material, and the specific paper set detection sensor 21 has paper. May have been detected.

そこで、用紙有無判断処理部Pr2は、用紙Pの左端部及び右端部の判定履歴、並びに用紙セット検出センサ21の検出結果を確認し、用紙Pの左端部及び右端部の位置と、用紙有りを検出した用紙セット検出センサ21の位置とが近いかどうかによって、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことによる用紙セット検出センサ21のセンサ出力への影響があるかどうかを判断する。   Therefore, the paper presence / absence determination processing unit Pr2 confirms the determination history of the left and right edges of the paper P and the detection result of the paper set detection sensor 21, and determines the positions of the left and right edges of the paper P and the presence of paper. Depending on whether or not the detected position of the paper set detection sensor 21 is close, there is an influence on the sensor output of the paper set detection sensor 21 due to attachment of paper pieces, paper dust, dust or the like to the paper set detection sensor 21. Determine whether or not.

用紙セット検出センサ21のセンサ出力への影響がある場合、用紙有無判断処理部Pr2は、用紙有りを検出した用紙セット検出センサ21以外の用紙セット検出センサ21の検出結果を用紙有無判断処理の対象とし、用紙セット検出センサ21のセンサ出力への影響がない場合、用紙無しを検出したすべての用紙セット検出センサ21の検出結果を用紙有無判断処理の対象とし、用紙有無判断処理の対象とした用紙セット検出センサ21における前回のセンサ出力VをRAM32から読み出し、前回のセンサ出力Vと今回のセンサ出力Vとの変化を確認し、用紙セット検出センサ21による用紙Pの検出結果が、用紙無しから用紙有りになったかどうかを判断する。   When there is an influence on the sensor output of the paper set detection sensor 21, the paper presence / absence determination processing unit Pr2 uses the detection result of the paper set detection sensors 21 other than the paper set detection sensor 21 that detected the presence of paper as a target of the paper presence / absence determination processing. If there is no effect on the sensor output of the paper set detection sensor 21, the detection results of all the paper set detection sensors 21 that have detected the absence of paper are the targets of the paper presence / absence determination processing, and the papers that are the targets of the paper presence / absence determination processing The previous sensor output V in the set detection sensor 21 is read from the RAM 32, the change between the previous sensor output V and the current sensor output V is confirmed, and the detection result of the paper P by the paper set detection sensor 21 is from no paper to paper. Judge whether or not there is.

そして、用紙有無判断処理部Pr2は、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りになった場合、プリンタ10に用紙Pがセットされたと判断し、プリンタ10に用紙Pがセットされた旨を操作者に通知し、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りにならなかった場合、プリンタ10に用紙Pがセットされなかったと判断し、プリンタ10に用紙Pがセットされなかった旨を操作者に通知する。   Then, the paper presence / absence determination processing unit Pr2 determines that the paper P is set in the printer 10 when the detection result of the paper P by the paper set detection sensor 21 changes from no paper to paper, and the paper P is loaded in the printer 10. The operator is notified that the paper has been set, and when the detection result of the paper P by the paper set detection sensor 21 is not from paper to paper, it is determined that the paper P has not been set in the printer 10, and the printer 10 The operator is notified that the paper P has not been set.

次に、図9及び10のフローチャートについて説明する。
ステップS21−1 用紙有無判断処理部Pr2は前回読み込んだすべての用紙セット検出センサ21のセンサ出力VをRAM32に記録する。
ステップS21−2 用紙有無判断処理部Pr2は現時点におけるすべての用紙セット検出センサ21のセンサ出力VをRAM32に記録する。
ステップS21−3 用紙有無判断処理部Pr2は薄紙モードが設定されているかどうかを判断する。薄紙モードが設定されている場合はステップS21−4に、薄紙モードが設定されていない場合はステップS21−5に進む。
ステップS21−4 用紙有無判断処理部Pr2はセンサ出力Vと薄紙用のスライスレベルth1とを比較する。
ステップS21−5 用紙有無判断処理部Pr2はセンサ出力Vと通常用のスライスレベルth2とを比較する。
ステップS21−6 用紙有無判断処理部Pr2は用紙有りを検出した用紙セット検出センサ21が存在するかどうかを判断する。用紙有りを検出した用紙セット検出センサ21が存在する場合はステップS21−7に、用紙有りを検出した用紙セット検出センサ21が存在しない場合はステップS21−20に進む。
ステップS21−7 用紙有無判断処理部Pr2はすべての用紙セット検出センサ21が用紙有りを検出したかどうかを判断する。すべての用紙セット検出センサ21が用紙有りを検出した場合はステップS21−8に、すべての用紙セット検出センサ21が用紙有りを検出しなかった場合はステップS21−13に進む。
ステップS21−8 用紙有無判断処理部Pr2は薄紙モードが設定されているかどうかを判断する。薄紙モードが設定されている場合はステップS21−9に、薄紙モードが設定されていない場合はステップS21−10に進む。
ステップS21−9 用紙有無判断処理部Pr2はセンサ出力Vと通常用のスライスレベルth2とを比較する。
ステップS21−10 用紙有無判断処理部Pr2はセンサ出力Vと厚紙用のスライスレベルth3とを比較する。
ステップS21−11 用紙有無判断処理部Pr2は用紙無しを検出した用紙セット検出センサ21が存在するかどうかを判断する。用紙無しを検出した用紙セット検出センサ21が存在する場合はステップS21−12に、用紙無しを検出した用紙セット検出センサ21が存在しない場合はステップS21−20に進む。
ステップS21−12 用紙有無判断処理部Pr2はスライスレベルの設定を要求する。
ステップS21−13 用紙有無判断処理部Pr2は用紙Pの左端部及び右端部の判定履歴、並びに用紙セット検出センサ21の検出結果を確認する。
ステップS21−14 用紙有無判断処理部Pr2はセンサ出力への影響があるかどうかを判断する。センサ出力への影響がある場合はステップS21−15に、センサ出力への影響がない場合はステップS21−19に進む。
ステップS21−15 用紙有無判断処理部Pr2は用紙有りを検出した用紙セット検出センサ21以外の用紙セット検出センサ21の検出結果を用紙有無判断処理の対象とする。
ステップS21−16 用紙有無判断処理部Pr2は前回のセンサ出力Vと今回のセンサ出力Vとの変化を確認する。
ステップS21−17 用紙有無判断処理部Pr2は検出結果が用紙無しから用紙有りになったかどうかを判断する。検出結果が用紙無しから用紙有りになった場合はステップS21−18に、検出結果が用紙無しから用紙有りにならなかった場合はステップS21−20に進む。
ステップS21−18 用紙有無判断処理部Pr2はプリンタ10に用紙Pがセットされた旨を通知し、リターンする。
ステップS21−19 用紙有無判断処理部Pr2は用紙無しを検出したすべての用紙セット検出センサ21の検出結果を用紙有無判断処理の対象とする。
ステップS21−20 用紙有無判断処理部Pr2はプリンタ10に用紙Pがセットされなかった旨を通知し、リターンする。
Next, the flowcharts of FIGS. 9 and 10 will be described.
Step S21-1 The paper presence / absence determination processing unit Pr2 records the sensor outputs V of all the paper set detection sensors 21 read in the previous time in the RAM 32.
Step S21-2 The paper presence / absence determination processing unit Pr2 records the sensor outputs V of all the paper set detection sensors 21 at the current time in the RAM 32.
Step S21-3: The paper presence / absence determination processing unit Pr2 determines whether the thin paper mode is set. If the thin paper mode is set, the process proceeds to step S21-4. If the thin paper mode is not set, the process proceeds to step S21-5.
Step S21-4 The paper presence / absence determination processing unit Pr2 compares the sensor output V with the slice level th1 for thin paper.
Step S21-5 The paper presence / absence determination processing unit Pr2 compares the sensor output V with the normal slice level th2.
Step S21-6 The paper presence / absence determination processing unit Pr2 determines whether or not there is a paper set detection sensor 21 that has detected the presence of paper. If there is a paper set detection sensor 21 that detects the presence of paper, the process proceeds to step S21-7. If there is no paper set detection sensor 21 that detects the presence of paper, the process proceeds to step S21-20.
Step S21-7: Paper presence / absence determination processing unit Pr2 determines whether all the paper set detection sensors 21 have detected the presence of paper. If all the paper set detection sensors 21 detect the presence of paper, the process proceeds to step S21-8. If all the paper set detection sensors 21 do not detect the presence of paper, the process proceeds to step S21-13.
Step S21-8: The paper presence / absence determination processing unit Pr2 determines whether or not the thin paper mode is set. If the thin paper mode is set, the process proceeds to step S21-9. If the thin paper mode is not set, the process proceeds to step S21-10.
Step S21-9 The paper presence / absence determination processing unit Pr2 compares the sensor output V with the normal slice level th2.
Step S21-10 The paper presence / absence determination processing unit Pr2 compares the sensor output V with the thick paper slice level th3.
Step S21-11: The paper presence / absence determination processing unit Pr2 determines whether there is a paper set detection sensor 21 that has detected the absence of paper. If there is a paper set detection sensor 21 that detects the absence of paper, the process proceeds to step S21-12. If there is no paper set detection sensor 21 that detects the absence of paper, the process proceeds to step S21-20.
Step S21-12 The paper presence / absence determination processing unit Pr2 requests the setting of the slice level.
Step S21-13 The sheet presence / absence determination processing unit Pr2 confirms the determination history of the left and right ends of the sheet P and the detection result of the sheet set detection sensor 21.
Step S21-14 The paper presence / absence determination processing unit Pr2 determines whether there is an influence on the sensor output. If there is an influence on the sensor output, the process proceeds to step S21-15, and if there is no influence on the sensor output, the process proceeds to step S21-19.
Step S21-15 The paper presence / absence determination processing unit Pr2 sets the detection result of the paper set detection sensors 21 other than the paper set detection sensor 21 that has detected the presence of paper as a target of the paper presence / absence determination processing.
Step S21-16 The paper presence / absence determination processing unit Pr2 confirms a change between the previous sensor output V and the current sensor output V.
Step S21-17 The sheet presence / absence determination processing unit Pr2 determines whether the detection result is from the absence of sheets to the presence of sheets. If the detection result is from the absence of paper to the presence of paper, the process proceeds to step S21-18. If the detection result is not from the absence of paper, the process proceeds to step S21-20.
Step S21-18 The paper presence / absence determination processing unit Pr2 notifies the printer 10 that the paper P has been set, and then returns.
Step S21-19 The paper presence / absence determination processing unit Pr2 sets the detection results of all the paper set detection sensors 21 that have detected the absence of paper as objects of the paper presence / absence determination processing.
Step S21-20 The paper presence / absence determination processing unit Pr2 notifies the printer 10 that the paper P has not been set, and then returns.

ところで、前記用紙有無判断処理部Pr2による用紙有無判断処理においては、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着して、用紙セット検出センサ21のセンサ出力Vがスライスレベルより大きくなると、発光部21rの発光出力が一段階上の印字モードが設定されるようになっているが、用紙セット検出センサ21の使用状況によって、紙片、紙粉、埃等の付着物の付着に関係なく、用紙セット検出センサ21のセンサ出力Vがスライスレベルより大きくなることがある。   By the way, in the paper presence / absence determination processing by the paper presence / absence determination processing unit Pr2, adhering substances such as paper pieces, paper dust, and dust adhere to the paper set detection sensor 21, and the sensor output V of the paper set detection sensor 21 is the slice level. When the value is larger, the print mode is set so that the light emission output of the light emitting unit 21r is one step higher. However, depending on the use state of the paper set detection sensor 21, the adhering matter such as paper pieces, paper dust, dust and the like adheres. Regardless of the case, the sensor output V of the paper set detection sensor 21 may be larger than the slice level.

そこで、本実施の形態においては、印字が終了し、用紙Pが印字部から排出されたときに、排紙処理部Pr5によって薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3が設定されるようになっている。   Therefore, in the present embodiment, when printing is completed and the paper P is discharged from the printing unit, the paper discharge processing unit Pr5 performs the thin paper slice level th1, the normal slice level th2, and the thick paper slice. Level th3 is set.

次に、排紙処理部Pr5の動作について説明する。   Next, the operation of the paper discharge processing unit Pr5 will be described.

図11は本発明の第1の実施の形態における排紙処理部の動作を示すフローチャートである。   FIG. 11 is a flowchart showing the operation of the paper discharge processing unit in the first embodiment of the present invention.

まず、排紙処理部Pr5は、例えば、印字が終了したときのように、用紙Pが印字部に給紙されたかどうかを判断し、用紙Pが印字部に給紙された場合、用紙Pを排出するための搬送量である最大のフィード量を算出する。   First, the paper discharge processing unit Pr5 determines whether or not the paper P has been fed to the printing unit, for example, when printing is finished, and if the paper P is fed to the printing unit, the paper P is removed. The maximum feed amount that is the transport amount for discharging is calculated.

続いて、排紙処理部Pr5は、スペースモータMsを駆動して、印字ヘッド12を用紙Pの中央位置に移動させ、フィードモータMfを駆動して排紙を開始する。   Subsequently, the paper discharge processing unit Pr5 drives the space motor Ms to move the print head 12 to the center position of the paper P, and drives the feed motor Mf to start paper discharge.

そして、排紙処理部Pr5は、用紙セット検出センサ21のセンサ出力Vを読み込み、用紙セット検出センサ21によって用紙無しが検出されたかどうかを判断し、用紙無しが検出されると、排紙を終了する。   Then, the paper discharge processing unit Pr5 reads the sensor output V of the paper set detection sensor 21, determines whether the paper set detection sensor 21 detects the absence of paper, and terminates the paper discharge when the absence of paper is detected. To do.

次に、排紙処理部Pr5は、前記用紙有無判断処理部Pr2による用紙有無判断処理において用紙セット検出センサ21によって発生させられたセンサ出力Vに応じて薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定を変更する。そのために、排紙処理部Pr5は、用紙セット検出センサ21のセンサ出力が小さくなったかどうかを、前記用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが、発光出力が一段階上の印字モードのスライスレベルに変更されたかどうかによって判断する。   Next, the paper discharge processing unit Pr5 determines the slice level th1 for thin paper and the normal slice according to the sensor output V generated by the paper set detection sensor 21 in the paper presence determination processing by the paper presence determination processing unit Pr2. The settings of level th2 and slice level th3 for cardboard are changed. Therefore, the paper discharge processing unit Pr5 has a slice level for comparing whether or not the sensor output of the paper set detection sensor 21 is small with the sensor output V of the paper set detection sensor 21 in the paper presence / absence determination process. Judgment is made based on whether or not the light emission output has been changed to the slice level of the print mode one level higher.

用紙セット検出センサ21のセンサ出力Vが大きくなり、用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが発光出力が一段階上の印字モードのスライスレベルに変更された場合、排紙処理部Pr5は、ROM33のスライスレベル記録エリアを更新し、薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定を変更する。   The sensor output V of the paper set detection sensor 21 is increased, and the slice level for comparison with the sensor output V of the paper set detection sensor 21 is changed to the slice level of the print mode in which the light emission output is one step higher in the paper presence / absence determination process. In this case, the paper discharge processing unit Pr5 updates the slice level recording area of the ROM 33, and changes the settings of the slice level th1, the normal slice level th2, and the thick paper slice level th3.

次に、フローチャートについて説明する。
ステップS41 排紙処理部Pr5は用紙Pが印字部に給紙されたかどうかを判断する。用紙Pが印字部に給紙された場合はステップS42に進み、用紙Pが印字部に給紙されなかった場合は処理を終了する。
ステップS42 排紙処理部Pr5は用紙Pを排出するための最大のフィード量を算出する。
ステップS43 排紙処理部Pr5は印字ヘッド12を用紙Pの中央位置に移動させる。
ステップS44 排紙処理部Pr5は排紙を開始する。
ステップS45 排紙処理部Pr5は用紙無しが検出されたかどうかを判断する。用紙無しが検出された場合はステップS46に進む。
ステップS46 排紙処理部Pr5はセンサ出力Vが小さくなったかどうかを判断する。センサ出力Vが小さくなった場合はステップS47に進み、センサ出力Vが小さくならなかった場合は処理を終了する。
ステップS47 排紙処理部Pr5は薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定を変更する。
Next, a flowchart will be described.
Step S41 The paper discharge processing unit Pr5 determines whether or not the paper P is fed to the printing unit. When the paper P is fed to the printing unit, the process proceeds to step S42, and when the paper P is not fed to the printing unit, the process ends.
Step S42 The paper discharge processing unit Pr5 calculates the maximum feed amount for discharging the paper P.
Step S43 The paper discharge processing unit Pr5 moves the print head 12 to the center position of the paper P.
Step S44 The paper discharge processing unit Pr5 starts paper discharge.
Step S45: The paper discharge processing unit Pr5 determines whether or not paper is detected. If no paper is detected, the process proceeds to step S46.
Step S46 The paper discharge processing unit Pr5 determines whether or not the sensor output V has decreased. If the sensor output V has decreased, the process proceeds to step S47, and if the sensor output V has not decreased, the process ends.
Step S47 The paper discharge processing section Pr5 changes the settings of the thin paper slice level th1, the normal slice level th2, and the thick paper slice level th3.

このように、本実施の形態においては、用紙セット検出センサ21によって用紙有りが検出された場合に、用紙有無判断処理部Pr2が、用紙セット検出センサ21のセンサ出力Vと、発光部21eの発光出力が大きくされたときのスライスレベルとを比較することによって、プリンタ10にセットされた用紙Pの有無を判断するので、用紙セット検出センサ21に紙片、紙粉、埃等の付着物が付着していても、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。   As described above, in the present embodiment, when the presence of a sheet is detected by the sheet set detection sensor 21, the sheet presence / absence determination processing unit Pr2 performs the sensor output V of the sheet set detection sensor 21 and the light emission of the light emitting unit 21e. Since the presence or absence of the paper P set in the printer 10 is determined by comparing the slice level when the output is increased, adhering substances such as paper pieces, paper dust, and dust adhere to the paper set detection sensor 21. Even if it is, the presence or absence of the paper P set in the printer 10 is not erroneously determined.

また、給紙処理部Pr3によって給紙処理が行われているときに、用紙Pの左端部及び右端部が判定され、用紙Pの左端部及び右端部の判定履歴、及び用紙セット検出センサ21による用紙Pの有無の検出結果が確認され、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことによる用紙セット検出センサ21のセンサ出力Vへの影響がある場合に、用紙有りを検出した用紙セット検出センサ21以外の用紙セット検出センサ21の検出結果が用紙有無判断処理の対象にされるので、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。   Further, when the paper feed process is performed by the paper feed processing unit Pr3, the left end portion and the right end portion of the paper P are determined, the determination history of the left end portion and the right end portion of the paper P, and the paper set detection sensor 21. When the detection result of the presence / absence of the paper P is confirmed, and there is an influence on the sensor output V of the paper set detection sensor 21 due to attachment of paper pieces, paper dust, dust and the like to the paper set detection sensor 21, the paper Since the detection result of the paper set detection sensors 21 other than the paper set detection sensor 21 that has detected the presence is the target of the paper presence / absence determination process, the presence / absence of the paper P set in the printer 10 is not erroneously determined.

そして、用紙Pがプリンタ10外に排紙されたときに、用紙有無判断処理において用紙セット検出センサ21によって発生させられたセンサ出力Vに応じて薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定が変更されるので、用紙セット検出センサ21のセンサ出力Vに最も適した薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を設定することができ、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。   When the paper P is discharged out of the printer 10, the slice level th1 for thin paper and the slice level th2 for normal paper according to the sensor output V generated by the paper set detection sensor 21 in the paper presence determination process. Since the setting of the slice level th3 for thick paper is changed, the slice level th1 for thin paper, the slice level th2 for normal paper, and the slice level th3 for thick paper most suitable for the sensor output V of the paper set detection sensor 21 are set. Therefore, the presence or absence of the paper P set in the printer 10 is not erroneously determined.

ところで、用紙Pが印字部に給紙されてから、印字部において印字が行われ、用紙Pが印字部からプリンタ10外に排紙されるまでの用紙Pの搬送、印字等によって、プリンタ10における用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に紙片、紙粉、埃等が落下して付着物として付着すると、次の用紙Pに対する給紙処理及び用紙幅算出処理等を正常に行うことができなくなってしまう。   By the way, printing is performed in the printing unit after the paper P is fed to the printing unit, and the printing in the printer 10 is performed by transporting, printing, and the like of the paper P until the paper P is discharged from the printing unit to the outside of the printer 10. When a piece of paper, paper dust, dust, or the like falls on the paper set detection sensor 21, the paper skew detection sensor 23, the line for detecting the paper width, the print area, etc. and adheres as an adhering substance, it is supplied to the next paper P. Paper processing, paper width calculation processing, and the like cannot be normally performed.

次に、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に付着した紙片、紙粉、埃等の付着物を除去することができるようにした本発明の第2の実施の形態について説明する。   Next, on the paper set detection sensor 21, on the paper skew detection sensor 23, on the line for detecting the paper width, and the adhering matter such as paper pieces, paper dust, and dust adhering to the print area can be removed. A second embodiment of the present invention will be described.

図12は本発明の第2の実施の形態における排紙処理部の動作を示す第1のフローチャート、図13は本発明の第2の実施の形態における排紙処理部の動作を示す第2のフローチャート、図14は本発明の第2の実施の形態における排紙処理部の動作を説明するための第1の図、図15は本発明の第2の実施の形態における排紙処理部の動作を説明するための第2の図である。   FIG. 12 is a first flowchart showing the operation of the paper discharge processing unit in the second embodiment of the present invention, and FIG. 13 is a second flowchart showing the operation of the paper discharge processing unit in the second embodiment of the present invention. FIG. 14 is a flowchart for explaining the operation of the paper discharge processing unit according to the second embodiment of the present invention. FIG. 15 shows the operation of the paper discharge processing unit according to the second embodiment of the present invention. It is the 2nd figure for demonstrating.

まず、排紙処理部Pr5は、例えば、印字が終了したときのように、媒体としての用紙Pが印字部に給紙されたかどうかを判断し、用紙Pが印字部に給紙された場合、用紙Pを排出するための搬送量である最大のフィード量を算出する。   First, the paper discharge processing unit Pr5 determines whether or not the paper P as a medium is fed to the printing unit, for example, when printing is finished, and when the paper P is fed to the printing unit, The maximum feed amount that is the transport amount for discharging the paper P is calculated.

続いて、排紙処理部Pr5は、第1の駆動部としてのスペースモータMsを駆動して、印字ヘッド12を用紙Pの中央位置に移動させる。   Subsequently, the paper discharge processing unit Pr5 drives the space motor Ms as the first drive unit to move the print head 12 to the center position of the paper P.

次に、排紙処理部Pr5は、用紙Pが給紙される前に、第1の媒体検出部としての用紙セット検出センサ21、及び第2の媒体検出部としての用紙斜行検出センサ23のうちの少なくとも一方によって用紙有りが検出されたかどうかを判断する。   Next, before the paper P is fed, the paper discharge processing unit Pr5 includes a paper set detection sensor 21 as a first medium detection unit and a paper skew detection sensor 23 as a second medium detection unit. It is determined whether or not the presence of paper is detected by at least one of them.

用紙有りが検出された場合、排紙処理部Pr5は、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に紙片、紙粉、埃等の付着物が付着していると判断し、第2の駆動部としてのフィードモータMfを駆動して排紙を開始し、用紙Pの端部、本実施の形態においては、後端Pbを利用して、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に付着した紙片、紙粉、埃等の付着物を除去する。   When the presence of paper is detected, the paper discharge processing unit Pr5 detects a piece of paper, paper dust, dust, etc. on the paper set detection sensor 21, on the paper skew detection sensor 23, on the line for detecting the paper width, on the print area, etc. It is determined that the adhering matter has adhered, and the feed motor Mf as the second driving unit is driven to start the paper discharge, and the end portion of the paper P, in this embodiment, the rear end Pb is used. Thus, the paper set detection sensor 21, the paper skew detection sensor 23, the line for detecting the paper width, and adhering substances such as paper pieces, paper dust, and dust attached to the print area are removed.

そのために、排紙処理部Pr5は、用紙Pを前方及び後方に移動させることによって、複数回にわたりフィード動作を行う。すなわち、排紙処理部Pr5は、フィードモータMfを正方向に駆動し、印字部に給紙された用紙Pを、フォワードフィードして搬送方向における下流側に向けて搬送し、用紙Pの後端Pbを、用紙斜行検出センサ23が配設された位置より距離L1だけ下流側に置き、続いて、フィードモータMfを逆方向に駆動し、用紙Pをリバースフィードして搬送方向における上流側に向けて搬送し、用紙Pの後端Pbを、用紙セット検出センサ21が配設された位置より距離L2だけ上流側に置き、さらに、フィードモータMfを正方向に駆動し、用紙Pをフォワードフィードして搬送方向における下流側に向けて搬送し、用紙Pの後端Pbを、用紙斜行検出センサ23が配設された位置より距離L1だけ下流側に置く。   For this purpose, the paper discharge processing unit Pr5 performs the feed operation a plurality of times by moving the paper P forward and backward. That is, the paper discharge processing unit Pr5 drives the feed motor Mf in the forward direction to forward feed the paper P fed to the printing unit and transport it downstream in the transport direction. Pb is placed on the downstream side by a distance L1 from the position where the paper skew detection sensor 23 is disposed, and then the feed motor Mf is driven in the reverse direction to reverse feed the paper P to the upstream side in the transport direction. The rear end Pb of the paper P is placed on the upstream side by a distance L2 from the position where the paper set detection sensor 21 is disposed, and the feed motor Mf is driven in the forward direction to feed the paper P forward. Then, the sheet P is conveyed toward the downstream side in the conveyance direction, and the rear end Pb of the sheet P is placed on the downstream side by a distance L1 from the position where the sheet skew detection sensor 23 is disposed.

続いて、排紙処理部Pr5は、紙片、紙粉、埃等の付着物を除去することができたかどうかを、用紙セット検出センサ21及び用紙斜行検出センサ23によって用紙有りが検出されたかどうかにより判断する。   Subsequently, the paper discharge processing unit Pr5 determines whether or not an adhering matter such as a piece of paper, paper dust, or dust has been removed, and whether or not the paper is detected by the paper set detection sensor 21 and the paper skew detection sensor 23. Judgment by.

排紙処理部Pr5は、用紙セット検出センサ21及び用紙斜行検出センサ23によって用紙有りが検出されず、紙片、紙粉、埃等の付着物を除去することができた場合、排紙を開始し、用紙セット検出センサ21及び用紙斜行検出センサ23のうちの少なくとも一方によって用紙有りが検出され、紙片、紙粉、埃等の付着物を除去することができなかった場合、プリンタ10のLEDランプ、LCD等の表示部にメッセージを表示することによって、操作者に、用紙Pを搬送する上で不具合がある旨を通知し、プリンタ10内部を確認し、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等を清掃し、紙片、紙粉、埃等の付着物を除去するように促す。   The paper discharge processing unit Pr5 starts paper discharge when the paper set detection sensor 21 and the paper skew detection sensor 23 do not detect the presence of paper and can remove adhering matters such as paper pieces, paper dust, and dust. If the presence of paper is detected by at least one of the paper set detection sensor 21 and the paper skew detection sensor 23 and the adhered matter such as paper pieces, paper dust, and dust cannot be removed, the LED of the printer 10 By displaying a message on a display unit such as a lamp or LCD, the operator is notified that there is a problem in transporting the paper P, the inside of the printer 10 is confirmed, and the paper skew is detected on the paper set detection sensor 21. The line detection sensor 23, the line for detecting the paper width, the printing area, etc. are cleaned, and urged to remove deposits such as paper pieces, paper dust, and dust.

排紙が開始されると、排紙処理部Pr5は、用紙セット検出センサ21の状態を監視し、用紙セット検出センサ21によって用紙無しが検出されると、排紙を終了する。   When the paper discharge is started, the paper discharge processing unit Pr5 monitors the state of the paper set detection sensor 21, and ends the paper discharge when the paper set detection sensor 21 detects the absence of paper.

次に、排紙処理部Pr5は、用紙セット検出センサ21のセンサ出力Vが小さくなったかどうかを、媒体有無判断処理部としての用紙有無判断処理部Pr2による用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが、発光出力が一段階上の印字モードのスライスレベルに変更されたかどうかによって判断する。   Next, the paper discharge processing unit Pr5 determines whether or not the sensor output V of the paper set detection sensor 21 has decreased in the paper presence / absence determination processing by the paper presence / absence determination processing unit Pr2 as the medium presence / absence determination processing unit. The slice level for comparison with the sensor output V of 21 is determined based on whether or not the light emission output has been changed to the slice level of the print mode one level higher.

用紙セット検出センサ21のセンサ出力Vが大きくなり、用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが、発光出力が一段階上の印字モードのスライスレベルに変更された場合、ROM33のスライスレベル記録エリアを更新し、変更されたスライスレベルを設定する。   The sensor output V of the paper set detection sensor 21 is increased, and the slice level for comparison with the sensor output V of the paper set detection sensor 21 in the paper presence / absence determination processing is the slice level of the print mode in which the light emission output is one level higher. When changed, the slice level recording area of the ROM 33 is updated, and the changed slice level is set.

次に、図12及び13のフローチャートについて説明する。
ステップS51 排紙処理部Pr5は用紙Pが印字部に給紙されたかどうかを判断する。用紙Pが印字部に給紙された場合はステップS52に進み、用紙Pが印字部に給紙されなかった場合は処理を終了する。
ステップS52 排紙処理部Pr5は用紙Pを排出するための最大のフィード量を算出する。
ステップS53 排紙処理部Pr5は印字ヘッド12を用紙Pの中央位置に移動させる。
ステップS54 排紙処理部Pr5は用紙有りが検出されたかどうかを判断する。用紙有りが検出された場合はステップS55に、用紙有りが検出されなかった場合はステップS60に進む。
ステップS55 排紙処理部Pr5は用紙Pをフォワードフィードする。
ステップS56 排紙処理部Pr5は用紙Pをリバースフィードする。
ステップS57 排紙処理部Pr5は用紙Pをフォワードフィードする。
ステップS58 排紙処理部Pr5は用紙有りが検出されたかどうかを判断する。用紙有りが検出された場合はステップS59に、用紙有りが検出されなかった場合はステップS60に進む。
ステップS59 排紙処理部Pr5は操作者に用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等を清掃し、紙片、紙粉、埃を除去するように促す。
ステップS60 排紙処理部Pr5は排紙を開始する。
ステップS61 排紙処理部Pr5は用紙無しが検出されるのを待機する。
ステップS62 排紙処理部Pr5は排紙を終了する。
ステップS63 排紙処理部Pr5はセンサ出力Vが小さくなったかどうかを判断する。センサ出力が小さくなった場合はステップS64に進み、センサ出力が小さくならなかった場合は処理を終了する。
ステップS64 排紙処理部Pr5はスライスレベルを設定し、処理を終了する。
Next, the flowcharts of FIGS. 12 and 13 will be described.
Step S51 The paper discharge processing unit Pr5 determines whether or not the paper P is fed to the printing unit. If the paper P has been fed to the printing unit, the process proceeds to step S52. If the paper P has not been fed to the printing unit, the process ends.
Step S52 The paper discharge processing unit Pr5 calculates the maximum feed amount for discharging the paper P.
Step S53 The paper discharge processing unit Pr5 moves the print head 12 to the center position of the paper P.
Step S54 The paper discharge processing section Pr5 determines whether or not the presence of paper is detected. If the presence of paper is detected, the process proceeds to step S55. If the presence of paper is not detected, the process proceeds to step S60.
Step S55 The paper discharge processing section Pr5 feeds the paper P forward.
Step S56 The paper discharge processing unit Pr5 reverse feeds the paper P.
Step S57 The paper discharge processing section Pr5 feeds the paper P forward.
Step S58: The paper discharge processing unit Pr5 determines whether the presence of paper is detected. If the presence of paper is detected, the process proceeds to step S59. If the presence of paper is not detected, the process proceeds to step S60.
Step S59 The paper discharge processing unit Pr5 cleans the print area and the like on the paper set detection sensor 21, the paper skew detection sensor 23, the paper width detection line, and removes a piece of paper, paper dust, and dust. Encourage you to.
Step S60 The paper discharge processing unit Pr5 starts paper discharge.
Step S61 The paper discharge processing unit Pr5 waits for detection of the absence of paper.
Step S62 The paper discharge processing unit Pr5 ends the paper discharge.
Step S63: The paper discharge processor Pr5 determines whether or not the sensor output V has become small. If the sensor output has decreased, the process proceeds to step S64. If the sensor output has not decreased, the process ends.
Step S64 The paper discharge processing unit Pr5 sets the slice level and ends the process.

このように、本実施の形態においては、用紙Pが給紙される前に、用紙セット検出センサ21及び用紙斜行検出センサ23のうちの少なくとも一方によって用紙有りが検出されたかどうかが判断され、用紙有りが検出された場合、用紙Pが前方及び後方に移動させられるので、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に付着している紙片、紙粉、埃等の付着物を除去することができる。したがって、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。   Thus, in the present embodiment, before the paper P is fed, it is determined whether or not the presence of paper is detected by at least one of the paper set detection sensor 21 and the paper skew detection sensor 23. When the presence of paper is detected, the paper P is moved forward and backward, so that it adheres to the paper set detection sensor 21, the paper skew detection sensor 23, the line for detecting the paper width, the print area, and the like. Deposits such as paper pieces, paper dust, and dust can be removed. Therefore, the presence or absence of the paper P set in the printer 10 is not erroneously determined.

また、用紙Pを前方及び後方に移動させても、紙粉、埃等の付着物を除去することができなかった場合、操作者に、用紙Pを搬送する上で不具合がある旨が通知され、プリンタ10内部を確認し、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等を清掃することが促されるので、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。   In addition, when the paper P is moved forward and backward and the adhered matter such as paper dust and dust cannot be removed, the operator is notified that there is a problem in transporting the paper P. The inside of the printer 10 is checked, and the paper set detection sensor 21, the paper skew detection sensor 23, the line for detecting the paper width, the print area, etc. are urged to be cleaned. The presence or absence of P is not erroneously determined.

前記各実施の形態においては、ドットインパクト式のプリンタについて説明しているが、本発明を、インクジェットプリンタ等の他のプリンタに適用することができるだけでなく、複写機、ファクシミリ、複合機等の画像形成装置に適用することができる。   In each of the above embodiments, a dot impact type printer has been described. However, the present invention can be applied not only to other printers such as an ink jet printer, but also to an image of a copying machine, a facsimile machine, a multifunction machine, etc. It can be applied to a forming apparatus.

なお、本発明は前記各実施の形態に限定されるものではなく、本発明の趣旨に基づいて種々変形させることが可能であり、それらを本発明の範囲から排除するものではない。   The present invention is not limited to the above embodiments, and various modifications can be made based on the gist of the present invention, and they are not excluded from the scope of the present invention.

10 プリンタ
11 テーブル
15 フロントフィードローラ対
17 リヤフィードローラ対
21 用紙セット検出センサ
21e、23e 発光部
21r、23r 受光部
23 用紙斜行検出センサ
31 CPU
32 RAM
33 ROM
P 用紙 Pr2 用紙有無判断処理部
Rt1 媒体搬送路
th1 薄紙用のスライスレベル
th2 通常用のスライスレベル
th3 厚紙用のスライスレベル
V センサ出力
DESCRIPTION OF SYMBOLS 10 Printer 11 Table 15 Front feed roller pair 17 Rear feed roller pair 21 Paper set detection sensor 21e, 23e Light emission part 21r, 23r Light reception part 23 Paper skew detection sensor 31 CPU
32 RAM
33 ROM
P Paper Pr2 Paper presence / absence determination processing unit Rt1 Medium conveyance path th1 Thin paper slice level th2 Normal slice level th3 Thick paper slice level V Sensor output

Claims (10)

(a)画像形成装置に媒体をセットするための媒体配置部と、
(b)該媒体配置部に配設され、発光部及び受光部を備えた光学センサから成り、画像形成装置にセットされた媒体の有無に応じてセンサ出力を発生させる媒体検出部と、
(c)媒体の有無を検出するための、発光部の発光出力に応じて設定された複数のスライスレベルが記録された記憶装置と、
(d)前記媒体検出部によって媒体有りが検出された場合に、媒体検出部のセンサ出力と、発光部の発光出力が大きくされたときのスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断する媒体有無判断処理部とを有することを特徴とする媒体検出装置。
(A) a medium placement unit for setting a medium in the image forming apparatus;
(B) a medium detection unit that is disposed in the medium arrangement unit and includes an optical sensor including a light emitting unit and a light receiving unit, and generates a sensor output according to the presence or absence of a medium set in the image forming apparatus;
(C) a storage device in which a plurality of slice levels set according to the light emission output of the light emitting unit for detecting the presence or absence of a medium are recorded;
(D) When the presence of the medium is detected by the medium detection unit, the sensor output of the medium detection unit is set in the image forming apparatus by comparing the slice level when the light emission output of the light emitting unit is increased. A medium detection apparatus comprising: a medium presence / absence determination processing unit that determines the presence / absence of a recorded medium.
(a)前記媒体検出部は、媒体の搬送方向に対して直交する方向において複数配設され、
(b)前記媒体有無判断処理部は、すべての媒体検出部が媒体有りを検出した場合に、各媒体検出部のセンサ出力と、発光部の発光出力が大きくされたときのスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断する請求項1に記載の媒体検出装置。
(A) A plurality of the medium detection units are arranged in a direction orthogonal to the medium conveyance direction,
(B) The medium presence / absence determination processing unit compares the sensor output of each medium detection unit with the slice level when the light emission output of the light emitting unit is increased when all the medium detection units detect the presence of the medium. The medium detection apparatus according to claim 1, wherein the presence or absence of a medium set in the image forming apparatus is determined.
(a)各スライスレベルは、媒体の厚さに応じて設定された印字モードごとに異ならせて設定され、
(b)前記媒体有無判断処理部は、媒体検出部によって媒体有りが検出された場合に、各媒体検出部のセンサ出力と、媒体の厚さが大きい印字モードにおいて設定されたスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断する請求項1又は2に記載の媒体検出装置。
(A) Each slice level is set differently for each print mode set according to the thickness of the medium,
(B) When the medium detection unit detects the presence of a medium, the medium presence / absence determination processing unit compares the sensor output of each medium detection unit with the slice level set in the print mode in which the medium thickness is large. The medium detection device according to claim 1, wherein the presence / absence of a medium set in the image forming apparatus is determined.
(a)前記媒体検出部は、媒体の搬送方向に対して直交する方向において複数配設され、
(b)前記媒体有無判断処理部は、特定の媒体検出部が媒体有りを検出した場合に、特定の媒体検出部の前回のセンサ出力と今回のセンサ出力とを比較し、特定の媒体検出部による媒体の検出結果が、媒体無しから媒体有りになったかどうかによって、画像形成装置にセットされた媒体の有無を判断する請求項1又は2に記載の媒体検出装置。
(A) A plurality of the medium detection units are arranged in a direction orthogonal to the medium conveyance direction,
(B) When the specific medium detection unit detects the presence of the medium, the medium presence / absence determination processing unit compares the previous sensor output of the specific medium detection unit with the current sensor output, and determines the specific medium detection unit. The medium detection device according to claim 1, wherein the presence / absence of a medium set in the image forming apparatus is determined based on whether the medium detection result of the medium is changed from the absence of the medium to the presence of the medium.
印字部の媒体を画像形成装置外に排紙したときに媒体検出部によって媒体無しが検出された場合に、前記媒体有無判断処理部による媒体有無判断処理において発生させられたセンサ出力に応じてスライスレベルの設定を変更する排紙処理部を有する請求項1〜4のいずれか1項に記載の媒体検出装置。   When the medium detection unit detects the absence of the medium when the medium of the printing unit is discharged out of the image forming apparatus, the slice is determined according to the sensor output generated in the medium presence determination processing by the medium presence determination processing unit. The medium detection device according to claim 1, further comprising a paper discharge processing unit that changes a level setting. 前記排紙処理部は、媒体検出部によって媒体有りが検出された場合に、媒体を前方及び後方に移動させ、媒体検出部に付着した付着物を媒体の端部を利用して除去する請求項5に記載の媒体検出装置。   The paper discharge processing unit moves the medium forward and backward when the medium detection unit detects the presence of the medium, and removes the adhering matter adhering to the medium detection unit by using an end portion of the medium. 5. The medium detection device according to 5. 前記排紙処理部は、媒体を前方及び後方に移動させた後、媒体検出部によって媒体有りが検出された場合に、操作者に付着物を除去するよう促す請求項6に記載の媒体検出装置。   The medium detection device according to claim 6, wherein after the medium is moved forward and backward, the paper discharge processing unit prompts an operator to remove the deposit when the medium detection unit detects the presence of the medium. . (a)媒体の搬送方向に対して直交する方向において複数配設され、画像形成装置にセットされた媒体の有無を検出する第1の媒体検出部と、
(b)媒体の搬送方向に対して直交する方向において複数配設され、画像形成装置にセットされた媒体の有無を検出する第2の媒体検出部と、
(c)該第2の媒体検出部による媒体の有無の検出結果に基づいて、媒体の左端部及び右端部を判定する給紙処理部と、
(d)該給紙処理部による媒体の左端部及び右端部の判定履歴、及び第1の媒体検出部による媒体の検出結果を確認し、媒体有りを検出した第1の媒体検出部以外の第1の媒体検出部による媒体の検出結果に基づいて、画像形成装置にセットされた媒体の有無を判断する媒体有無判断処理部とを有することを特徴とする媒体検出装置。
(A) a first medium detection unit that is provided in a plurality in a direction orthogonal to the medium conveyance direction and detects the presence or absence of a medium set in the image forming apparatus;
(B) a second medium detection unit that is arranged in a direction orthogonal to the medium conveyance direction and detects the presence or absence of the medium set in the image forming apparatus;
(C) a paper feed processing unit that determines a left end portion and a right end portion of the medium based on the detection result of the presence or absence of the medium by the second medium detection unit;
(D) Confirmation history of the left and right edges of the medium by the paper feed processing unit and the detection result of the medium by the first medium detection unit, and the first medium detection unit other than the first medium detection unit detecting the presence of the medium A medium detection apparatus comprising: a medium presence / absence determination processing section that determines the presence / absence of a medium set in an image forming apparatus based on a medium detection result by one medium detection section.
請求項1〜8のいずれか1項に記載の媒体検出装置を有する媒体搬送装置。   A medium transport apparatus comprising the medium detection apparatus according to claim 1. 請求項9に記載の媒体搬送装置を有する画像形成装置。   An image forming apparatus comprising the medium conveying device according to claim 9.
JP2016135174A 2016-07-07 2016-07-07 Medium detection device, medium transfer device and image forming device Active JP6833368B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016135174A JP6833368B2 (en) 2016-07-07 2016-07-07 Medium detection device, medium transfer device and image forming device
CN201710536436.6A CN107584908B (en) 2016-07-07 2017-07-04 Medium detection device, medium conveyance device, and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016135174A JP6833368B2 (en) 2016-07-07 2016-07-07 Medium detection device, medium transfer device and image forming device

Publications (2)

Publication Number Publication Date
JP2018002459A true JP2018002459A (en) 2018-01-11
JP6833368B2 JP6833368B2 (en) 2021-02-24

Family

ID=60948327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016135174A Active JP6833368B2 (en) 2016-07-07 2016-07-07 Medium detection device, medium transfer device and image forming device

Country Status (2)

Country Link
JP (1) JP6833368B2 (en)
CN (1) CN107584908B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110202956B (en) * 2019-04-15 2021-11-02 厦门汉印电子技术有限公司 Light emitting unit brightness configuration method and device in printer and printer
CN110614856B (en) * 2019-09-04 2021-05-25 广州洛图终端技术有限公司 Printing medium detection device and method and printer

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62198783A (en) * 1986-02-27 1987-09-02 Oki Electric Ind Co Ltd Optical medium monitoring system
US4785295A (en) * 1986-02-27 1988-11-15 Oki Electric Industry Co., Ltd. Optical media monitoring device
JPH05213485A (en) * 1991-12-13 1993-08-24 Nec Corp Object detection device
JPH0713854U (en) * 1993-08-16 1995-03-10 株式会社三協精機製作所 Optical sensor of card reader
JPH0797097A (en) * 1993-09-24 1995-04-11 Toshiba Corp Recording medium processing device
JPH0836064A (en) * 1994-07-21 1996-02-06 Hitachi Ltd Optical sensor controlling method
JPH1120990A (en) * 1997-07-02 1999-01-26 Tec Corp Medium detecting device
JP2005096991A (en) * 2003-08-27 2005-04-14 Oki Data Corp Medium width detection device
JP2007003734A (en) * 2005-06-22 2007-01-11 Ricoh Co Ltd Image forming apparatus
JP2009155013A (en) * 2007-12-26 2009-07-16 Seiko Epson Corp Recording device and control method of recording device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62198783A (en) * 1986-02-27 1987-09-02 Oki Electric Ind Co Ltd Optical medium monitoring system
US4785295A (en) * 1986-02-27 1988-11-15 Oki Electric Industry Co., Ltd. Optical media monitoring device
JPH05213485A (en) * 1991-12-13 1993-08-24 Nec Corp Object detection device
JPH0713854U (en) * 1993-08-16 1995-03-10 株式会社三協精機製作所 Optical sensor of card reader
JPH0797097A (en) * 1993-09-24 1995-04-11 Toshiba Corp Recording medium processing device
JPH0836064A (en) * 1994-07-21 1996-02-06 Hitachi Ltd Optical sensor controlling method
JPH1120990A (en) * 1997-07-02 1999-01-26 Tec Corp Medium detecting device
JP2005096991A (en) * 2003-08-27 2005-04-14 Oki Data Corp Medium width detection device
JP2007003734A (en) * 2005-06-22 2007-01-11 Ricoh Co Ltd Image forming apparatus
JP2009155013A (en) * 2007-12-26 2009-07-16 Seiko Epson Corp Recording device and control method of recording device

Also Published As

Publication number Publication date
CN107584908A (en) 2018-01-16
CN107584908B (en) 2020-12-25
JP6833368B2 (en) 2021-02-24

Similar Documents

Publication Publication Date Title
JP6624039B2 (en) Inkjet recording device
JP6000194B2 (en) Sheet detection apparatus and image forming apparatus
US9764568B2 (en) Inkjet printer, sheet discriminating device and inkjet printing method
JP2007261136A (en) Printer
JP6833368B2 (en) Medium detection device, medium transfer device and image forming device
JP5668280B2 (en) Printing apparatus and edge detection method of printing medium
JP2009196752A (en) Image forming device
JP6357404B2 (en) Paper detection apparatus, image forming apparatus, and paper detection method
JP5862173B2 (en) Image recording device
JP4496840B2 (en) Medium detection apparatus and medium detection method
JP2019130755A (en) Double-sided printing system
JP6350125B2 (en) Inkjet recording apparatus, program, and image recording method
JP6361574B2 (en) Image forming apparatus and recording medium edge position detection method of image forming apparatus
JP2008126452A (en) Recorder and method of detecting presence/absence of recording medium
JP2019018493A (en) Detection device and image formation apparatus
JP6241307B2 (en) Printing device
JP5278478B2 (en) Image forming apparatus, program thereof, and recording medium conveyance monitoring method in image forming apparatus
JP2018001537A (en) Image formation apparatus
JP2016204100A (en) Image formation apparatus
JP4858606B2 (en) Medium detection apparatus and medium detection method
JP2006076293A (en) Recording apparatus and recording method
JP2019093608A (en) Image recording device
JP5907840B2 (en) Image forming apparatus and medium detection method
JP2023108262A (en) Recording device and recording device control method
JP2014019093A (en) Recording device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191004

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191029

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200805

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: 20210112

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210203

R150 Certificate of patent or registration of utility model

Ref document number: 6833368

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350