JP6833368B2 - Medium detection device, medium transfer device and image forming device - Google Patents

Medium detection device, medium transfer device and image forming device Download PDF

Info

Publication number
JP6833368B2
JP6833368B2 JP2016135174A JP2016135174A JP6833368B2 JP 6833368 B2 JP6833368 B2 JP 6833368B2 JP 2016135174 A JP2016135174 A JP 2016135174A JP 2016135174 A JP2016135174 A JP 2016135174A JP 6833368 B2 JP6833368 B2 JP 6833368B2
Authority
JP
Japan
Prior art keywords
paper
medium
slice level
processing unit
detection sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016135174A
Other languages
Japanese (ja)
Other versions
JP2018002459A (en
Inventor
康宏 片平
康宏 片平
Original Assignee
株式会社沖データ
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 株式会社沖データ filed Critical 株式会社沖データ
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)

Description

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

従来、プリンタ、複写機、ファクシミリ、複合機等の画像形成装置、例えば、ドットインパクト式のプリンタには、媒体としての用紙を搬送するための媒体搬送装置としての用紙搬送装置が配設される。該用紙搬送装置は、用紙をセットするためのテーブルを備え、例えば、用紙がテーブル上に載置されることによってプリンタにセットされ、印字を開始するための操作スイッチが押下されるか、ホストコンピュータからプリンタに印字データが送られるかすると、用紙が印字ヘッドとプラテンとの間、すなわち、印字部に給紙され、印字ヘッドによって印字が行われ、用紙に画像が形成されるようになっている。 Conventionally, an image forming apparatus such as a printer, a copying machine, a facsimile, or a multifunction device, for example, a dot impact type printer, is provided with a paper conveying device as a medium conveying device for conveying paper as a medium. The paper transport device includes a table for loading paper, for example, when the paper is placed on the table, the paper is set in the printer and the operation switch for starting printing is pressed or the host computer. When the print data is sent from the printer to the printer, the paper is fed between the print head and the platen, that is, to the printing unit, and the printing is performed by the printing head to form an image 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 or not paper is loaded in the printer, that is, whether or not there is paper loaded 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 loaded in the printer with the slice level, and when the sensor output is equal to or lower than the slice level, If it is determined that there is no loaded paper and the sensor output is larger than the slice level, it is determined that there is loaded paper (see, for example, Patent Document 1).

特開2005−96991号公報Japanese Unexamined Patent Publication No. 2005-96991

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

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

そのために、本発明の媒体検出装置においては、媒体を載置するための媒体配置部と、該媒体配置部に配設され、発光部及び受光部を備えた光学センサから成り、媒体配置部に載置された媒体の媒体有り及び媒体無しを検出し、媒体有り及び媒体無しに応じてセンサ出力を発生させる複数の媒体検出部と、媒体の厚さに応じて異ならせて設定された複数のスライスレベルが記録された記憶装置と、媒体に応じた、前記発光部の発光出力及びスライスレベルによって媒体検出部により媒体有りが検出された場合に、発光部の発光出力及びスライスレベルを、使用される媒体よりも厚い媒体を検出するための発光出力及びスライスレベルに変更し、媒体検出部のセンサ出力と変更後のスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断するとともに、付着物が媒体検出部に付着したかどうかを判断する媒体有無判断処理部とを有する。
そして、該媒体有無判断処理部は、媒体検出部のセンサ出力と変更後のスライスレベルとを比較したときに、媒体検出部によって媒体無しが検出されたかどうかを判断し、媒体無しが検出された場合、画像形成装置にセットされた媒体がなかったと判断し、媒体無しが検出されなかった場合、付着物が媒体検出部に付着したと判断する。
Therefore, in the medium detection device of the present invention, the medium placement section comprises a medium placement section for mounting the medium and an optical sensor arranged in the medium placement section and provided with a light emitting section and a light receiving section. A plurality of media detectors that detect the presence or absence of a medium and generate a sensor output depending on whether the medium is placed or not, and a plurality of media detectors set differently according to the thickness of the medium. The light emitting output and slice level of the light emitting unit are used when the presence or absence of the medium is detected by the medium detection unit by the storage device in which the slice level is recorded and the light emitting output and slice level of the light emitting unit according to the medium. By changing to the light emission output and slice level for detecting a medium thicker than the medium, and comparing the sensor output of the medium detection unit with the changed slice level, the presence or absence of the medium set in the image forming apparatus can be determined. It also has a medium presence / absence determination processing unit that determines whether or not deposits have adhered to the medium detection unit.
Then, when the sensor output of the medium detection unit is compared with the slice level after the change, the medium presence / absence determination processing unit determines whether or not no medium is detected by the medium detection unit, and no medium is detected. In this case, it is determined that there is no medium set in the image forming apparatus, and if no medium is detected, it is determined that deposits have adhered to the medium detection unit.

本発明によれば、媒体検出装置においては、媒体を載置するための媒体配置部と、該媒体配置部に配設され、発光部及び受光部を備えた光学センサから成り、媒体配置部に載置された媒体の媒体有り及び媒体無しを検出し、媒体有り及び媒体無しに応じてセンサ出力を発生させる複数の媒体検出部と、媒体の厚さに応じて異ならせて設定された複数のスライスレベルが記録された記憶装置と、媒体に応じた、前記発光部の発光出力及びスライスレベルによって媒体検出部により媒体有りが検出された場合に、発光部の発光出力及びスライスレベルを、使用される媒体よりも厚い媒体を検出するための発光出力及びスライスレベルに変更し、媒体検出部のセンサ出力と変更後のスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断するとともに、付着物が媒体検出部に付着したかどうかを判断する媒体有無判断処理部とを有する。
そして、該媒体有無判断処理部は、媒体検出部のセンサ出力と変更後のスライスレベルとを比較したときに、媒体検出部によって媒体無しが検出されたかどうかを判断し、媒体無しが検出された場合、画像形成装置にセットされた媒体がなかったと判断し、媒体無しが検出されなかった場合、付着物が媒体検出部に付着したと判断する。
According to the present invention, the medium detection device comprises a medium placement section for mounting a medium and an optical sensor arranged in the medium placement section and provided with a light emitting section and a light receiving section, and the medium placement section. A plurality of media detectors that detect the presence or absence of a medium and generate a sensor output depending on whether the medium is placed or not, and a plurality of media detectors set differently according to the thickness of the medium. The light emitting output and slice level of the light emitting unit are used when the presence or absence of the medium is detected by the medium detection unit by the storage device in which the slice level is recorded and the light emitting output and slice level of the light emitting unit according to the medium. By changing to the light emission output and slice level for detecting a medium thicker than the medium, and comparing the sensor output of the medium detection unit with the changed slice level, the presence or absence of the medium set in the image forming apparatus can be determined. It also has a medium presence / absence determination processing unit that determines whether or not deposits have adhered to the medium detection unit.
Then, when the sensor output of the medium detection unit is compared with the slice level after the change, the medium presence / absence determination processing unit determines whether or not no medium is detected by the medium detection unit, and no medium is detected. In this case, it is determined that there is no medium set in the image forming apparatus, and if no medium is detected, it is determined that deposits have adhered to the medium detection unit.

この場合、媒体検出部によって媒体有りが検出された場合に、媒体有無判断処理部が、使用される媒体に応じて発光部の発光出力を大きくし、スライスレベルを使用される媒体に対応するスライスレベルに変更し、媒体検出部のセンサ出力と変更後のスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断するとともに、付着物が媒体検出部に付着したかどうかを判断するので、媒体検出部に紙片、紙粉、埃等の付着物が付着していても、媒体の有無を誤って判断することがない。 In this case, when the presence or absence of the medium is detected by the medium detection unit, the medium presence / absence determination processing unit increases the light emission output of the light emitting unit according to the medium used, and slices the slice level corresponding to the medium to be used. By changing to the level and comparing the sensor output of the medium detection unit with the slice level after the change, it is determined whether or not there is a medium set in the image forming apparatus, and whether or not deposits have adhered to the medium detection unit. Therefore, even if a piece of paper, dust, dust, or other deposits adhere to the medium detection unit, the presence or absence of the medium is not erroneously determined.

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

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

図2は本発明の第1の実施の形態におけるプリンタの要部を示す断面図、図3は本発明の第1の実施の形態におけるプリンタの要部を示す平面図である。 FIG. 2 is a cross-sectional view showing a 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 paper as a medium, Rt1 is a medium transport path for guiding the paper P and carrying it in the direction of an arrow, 10 is a printer for printing on the paper P, and 11 is a paper P on the printer 10. A table and 12 as a medium arrangement unit for setting are print heads. The print head 12 is mounted on a carriage (not shown) movably arranged in the left-right direction of the printer 10, that is, in 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 arranged below the print head 12 so as to face the print head 12 and extend in the main scanning direction, and the print head 12 and the platen 13 A printed portion is formed between the and.

そして、15は、テーブル11において用紙Pの搬送方向における印字部より上流側に回転自在に配設され、回転に伴い、用紙Pを副走査方向に搬送し、印字部に給紙するための第1の搬送部材としてのフロントフィードローラ対であり、該フロントフィードローラ対15は、軸sh1に複数のローラr1を取り付けることによって形成され、媒体搬送路Rt1の上側及び下側に配設された一対のフィードローラ15a、15bから成る。また、17は、テーブル11において用紙Pの搬送方向における印字部より下流側に回転自在に配設され、回転に伴い、用紙Pを印字部から排出するための第2の搬送部材としてのリヤフィードローラ対であり、該リヤフィードローラ対17は、軸sh2に複数のローラr2を取り付けることによって形成され、媒体搬送路Rt1の上側及び下側に配設された一対のフィードローラ17a、17bから成る。 The 15 is rotatably arranged upstream of the printing portion in the transport direction of the paper P on the table 11, and is a number for transporting the paper P in the sub-scanning direction and feeding the paper P to the printing portion as the table 11 rotates. 1 is a pair of front feed rollers as a transport member, and the front feed roller pair 15 is formed by attaching a plurality of rollers r1 to a shaft sh1 and is arranged on the upper side and the lower side of the medium transport path Rt1. It is composed of feed rollers 15a and 15b. Further, the 17 is rotatably arranged on the table 11 on the downstream side of the printing portion in the conveying direction of the paper P, and the rear feed as a second conveying member for discharging the paper P from the printing portion with the rotation. A pair of rollers, the rear feed roller pair 17 is formed by attaching a plurality of rollers r2 to the shaft sh2, and is composed of a pair of feed rollers 17a and 17b arranged 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の受光量に応じた検出電圧をセンサ出力として発生させる。 Then, 21 serves as a first medium detection unit arranged on the table 11 on the upstream side of the engaging portions of the front feed rollers 15a and 15b of the front feed rollers 15 in the transport direction (arrow direction) of the paper P. It is a paper set detection sensor, and a plurality of the paper set detection sensors 21 are arranged close to each roller r1 in a direction orthogonal to the transport direction of the paper P, 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 paper P. Therefore, the paper set detection sensor 21 is composed of a transmissive optical sensor, a light emitting portion 21e composed of LEDs or the like arranged on the lower side of the medium transport path Rt1, and arranged on the upper side of the medium transport path Rt1. A light receiving unit 21r composed of a phototransistor or the like is provided, and when the light receiving unit 21r receives light such as infrared rays generated by the light emitting unit 21e and transmitted through the paper P, the light receiving unit 21r responds to the transmittance of the paper P and also receives light. A detection voltage corresponding to the amount of light received is generated as a sensor output.

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

また、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, 23 is a paper skew detection as a second medium detection unit arranged on the table 11 on the downstream side of the biting portions of the front feed rollers 15a and 15b of the front feed rollers 15 in the transport direction of the paper P. A plurality of sensors, the paper skew detection sensor 23, are arranged close to each roller r2 in a direction orthogonal to the transport direction of the paper P, and the presence / absence and skew of the paper P set in the printer 10. A line is detected and a sensor output is generated depending on the presence or absence of paper P. Therefore, the paper skew detection sensor 23 is a transmissive optical sensor, and is arranged above the light emitting portion 23e composed of LEDs and the like arranged below the medium transport path Rt1 and above the medium transport path Rt1. A light receiving unit 23r composed of a phototransistor or the like is provided, and when the light receiving unit 23r receives light such as infrared rays 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 and also receives light. A detection voltage corresponding to the amount of light received by 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 when the light emitting output of the light emitting unit 23e increases and the light receiving amount of the light receiving unit 23r increases, similarly to the paper set detection sensor 21. When the sensor output of the sensor 23 becomes small, the light emitting output of the light emitting unit 23e becomes small, and the light receiving amount of the light receiving unit 23r becomes small, the sensor output of the paper skew detection sensor 23 is formed to be large.

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

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

また、25は、印字ヘッド12に近接させて、かつ、プラテン13と対向させてキャリッジに取り付けられ、印字部に給紙された用紙Pの幅、すなわち、用紙幅を算出するためのセンサ出力を発生させる第3の媒体検出部としての用紙幅検出センサである。 Further, 25 is attached to the carriage close to the print head 12 and facing the platen 13, and outputs a sensor output for calculating the width of the paper P fed into 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, includes a light emitting portion (not shown) made of an LED or the like and a light receiving portion (not shown) made of a phototransistor or the like, and is generated by the light emitting portion on 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 wires are selectively advanced and hit against an ink ribbon (not shown). The ink of the ink ribbon is transferred to the paper P on the platen, and printing is performed by a dot sequence.

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

図1は本発明の第1の実施の形態におけるプリンタの制御ブロック図である。 FIG. 1 is a control block diagram of a 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 higher-level device, 31 is a CPU as a central processing unit that controls the entire printer 10 and as a control unit, and the CPU 31 is used as a first storage device. A RAM 32, which is a volatile memory, a ROM 33, which 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 a paper set detection sensor 21, a paper skew detection sensor 23, and a paper width detection sensor 25 for a printer. It functions as an input / output I / O for controlling 10 and is connected to an interface board 34, a print head drive circuit 37 for driving the print head 12, and a space motor Ms as a first drive unit. 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, and the rotation generated by driving the space motor Ms reciprocates via a pulley and a timing belt (not shown). Is converted to, and the reciprocating motion is transmitted to the carriage.

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

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

前記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 the present 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 judgment value (paper presence / absence judgment value) used for, that is, the sensor output of the slice level generation processing unit Pr1 for generating the slice level and the paper set detection sensor 21. That is, the paper presence / absence determination processing unit Pr2 as the medium presence / absence determination processing unit for determining the presence / absence of the paper P set in the printer 10 and the paper P set in the printer 10 are fed to the printing unit to prepare for printing. Paper width calculation processing unit P4 as a medium width calculation processing unit that calculates the paper width of the fed paper P based on the sensor output of the paper feed processing unit Pr3 and the paper width detection sensor 25, and the paper P from the printing unit. It is provided with a paper discharge processing unit Pr5 or the like for discharging.

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

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

なお、前記テーブル11、用紙セット検出センサ21、用紙斜行検出センサ23、CPU31、RAM32、ROM33等によって媒体検出装置が、該媒体検出装置及び媒体搬送路Rt1、フロントフィードローラ対15、リヤフィードローラ対17等によって媒体搬送装置が構成される。 In addition, the medium detection device by the table 11, the paper set detection sensor 21, the paper skew detection sensor 23, the CPU 31, the RAM 32, the ROM 33, etc., is the medium detection device, the medium transport path Rt1, the front feed roller pair 15, and the rear feed roller. The medium transfer device is configured by 17 or 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 for printing, and the operator sets the printing mode by operating the operation unit of the printer 10 and thin paper. You can print in thin paper mode using, in normal mode using normal paper, and in thick paper mode using thick paper.

この場合、前記用紙有無判断処理部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 according to the transmittance of the paper P, so that light is emitted. The light emitting output of the unit 21e is set to be the smallest when the thin paper mode is set, and the output of the sensor is set to increase in the order of when the normal mode is set and when the thick paper mode is set.

すなわち、薄紙を使用して薄紙モードで印字を行う場合、薄紙の用紙厚が極めて小さいので、発光出力を大きくすると、発光部21rで発光させられた光のほとんどが用紙Pを透過し、用紙セット検出センサ21においてセンサ出力が大きくなりすぎ、用紙Pの有無を検出することができなくなってしまう。そこで、本実施の形態において、薄紙モードが設定された場合の発光部21eの発光出力は小さく設定される。 That is, when printing is performed in the 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. The sensor output of the detection sensor 21 becomes too large, and it becomes impossible to detect the presence or absence of the paper P. Therefore, in the present embodiment, the light emitting 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 normal paper, the paper thickness of the normal paper is not small, so even if the light emission output is increased, most of the light emitted by the light emitting unit 21e is paper. It does not transmit P, and the sensor output of the paper set detection sensor 21 does not increase. Therefore, in the present embodiment, the light emitting output of the light emitting unit 21e when the normal mode is set is set larger than that of the thin paper. 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, so that the light emission output is reduced.

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

そして、ROM33には、用紙Pの有無を検出するための、用紙セット検出センサ21の発光部21eにおける発光出力に応じて設定され、用紙セット検出センサ21のセンサ出力と比較するための複数のスライスレベルが記録されたスライスレベル記録エリアが形成され、該スライスレベル記録エリアに、用紙Pの厚さに応じて設定された印字モードごとに異ならせて設定された、第1の閾値としての薄紙用のスライスレベルth1、第2の閾値としての通常用のスライスレベルth2及び第3の閾値としての厚紙用のスライスレベルth3が記録される。 Then, a plurality of slices are set in the ROM 33 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 on which the level is recorded is formed, and the slice level recording area is set differently for each print mode set according to the thickness of the paper P, and is used for thin paper as a first threshold value. Slice level th1 of the above, normal slice level th2 as a second threshold, and slice level th3 for thick paper as a 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 use is when printing in the normal mode. It is a slice level for comparison with the sensor output of the paper set detection sensor 21, and the slice level th3 for thick paper is a slice level for comparison with the sensor output of the paper set detection sensor 21 when printing in the thick paper mode. 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 / absence determination processing unit Pr2 However, it is determined that there is paper P set in the printer 10, but deposits such as a piece of paper, paper dust, and dust adhere to the paper set detection sensor 21, and the light emitted by the light emitting unit 21e is emitted by the light receiving unit 21r. In that 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 use, and the slice level th3 for thick paper 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 the recorded data cannot be changed. Therefore, the slice level th1 for thin paper, the slice level th2 for normal use, and the slice level th3 for thick paper are set and recorded at the time of manufacture of the printer 10 by the slice level generation processing unit Pr1, or are recorded by the printer 10. It is reset and recorded by operating the switch in the operation unit of the printer 10 by a predetermined method at the time of repair or the like.

次に、薄紙用のスライスレベル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 use, 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 the operation of the slice level generation processing unit according to the first embodiment of the present invention, and FIG. 5 shows the operation of the slice level generation processing unit according to the first embodiment of the present invention. The flowchart of FIG. 6 and FIG. 6 are diagrams 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 emission output when the light emitting unit 21e is made to emit light by 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, and when generating the slice level th1 for thin paper, the light emitting unit 21e is made 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 slice level th2 for normal use and the addition value α, and sets the slice level th2 for normal use. When it is determined whether or not to generate and the normal slice level th2 is generated, the light emitting unit 21e is made 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 for generating the slice level th3 for thick paper and the addition value α, 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 made 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, when 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 current gain value of the light emission output is used to detect the presence or absence of paper P. And the value obtained by adding the added value α to the current variables V1 to V3 are set to the slice level th1 for thin paper, the slice level th2 for normal use, and the slice level th3 for thick paper. Note that 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 use, and the slice level th3 for thick paper of all the paper set detection sensors 21 have been generated, and all the papers. When the set detection sensor 21 generates slice level th1 for thin paper, slice level th2 for normal use, and slice level th3 for thick paper, slice level th1 for thin paper, slice level th2 for normal use, and slice level th3 for thick paper are generated. In addition, the gain value of the light emission output is recorded in the ROM 33.

また、すべての用紙セット検出センサ21の薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を生成してはいない場合、スライスレベル生成処理部Pr1は、次の用紙セット検出センサ21のゲイン値を最小ゲイン値にする。 Further, when the slice level th1 for thin paper, the slice level th2 for normal use, and the slice level th3 for thick paper are not generated in all the paper set detection sensors 21, the slice level generation processing unit Pr1 uses 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 is made to emit light is XX [V] or more, the slice level generation processing unit Pr1 determines 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, and if the sensor output V is XX [V] or more at 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] in all the gain values of the paper set detection sensor 21, the slice level generation processing unit Pr1 raises the gain value by one and the sensor output V of the paper set detection sensor 21. The light emitting output of the light emitting unit 21e of each paper set detection sensor 21 is increased until is less than XX [V].

次に、図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 or not to generate the 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 the normal slice level th2. If the normal slice level th2 is generated, the process proceeds to step S7. If the normal slice level th2 is not 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, and 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 value obtained by adding the addition value α to the current variables V1 to V3 to the slice level th1 for thin paper, the slice level th2 for normal use, and the slice level th3 for thick paper.
Step S11 The slice level generation processing unit Pr1 determines whether or not 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 are generated, the process proceeds to step S12. If the slice levels of all the paper set detection sensors 21 are not generated, 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 use, the slice level th3 for thick paper, and the gain value of the light emission output in the ROM 33, and ends the process.
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 at all the gain values of the paper set detection sensor 21. If the sensor output V is XX [V] or more at 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 at 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 causes an error.
Step S16 The slice level generation processing unit Pr1 raises the gain value by one and returns to step S2.

次に、単票の用紙Pを使用して印字を行うときのCPU31の動作について説明する。 Next, the operation of the CPU 31 when printing is performed using the single-cut 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 according to the first embodiment of the present invention, and FIG. 8 is a second flowchart showing the operation of the CPU according to 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 the paper presence / absence determination processing, and determines whether or not the paper P is set in the printer 10.

そのために、前記用紙有無判断処理部Pr2は、用紙セット検出センサ21のセンサ出力Vを定期的に監視することによって、用紙Pのプリンタ10へのセット状態の変化を把握する。 Therefore, the paper presence / absence determination processing unit Pr2 periodically monitors the sensor output V of the paper set detection sensor 21 to grasp the change in the set state of the paper P in 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 has been set in the printer 10, the paper feed processing unit Pr3 first determines the paper width on the medium transport path Rt1 from the current set position of the paper P. The position of the detection sensor 25, that is, the feed amount, which is the amount of paper P conveyed to 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 sensor 23 whose sensor output is larger than the threshold value and detects the paper P. The position of the paper skew detection sensor 23 and the position of the rightmost paper skew detection sensor 23 are calculated. In this way, among the paper skew detection sensors 23 that detect the paper P, the position of the leftmost paper skew detection sensor 23 and the position of the rightmost paper skew detection sensor 23 are calculated. The position of the paper P in the main scanning direction can be substantially specified.

次に、給紙処理部Pr3は、用紙Pの用紙幅検出位置までの給紙を開始し、用紙Pの用紙幅検出位置までの給紙を終了すると、印字ヘッド12を最左端の用紙斜行検出センサ23の次の用紙斜行検出センサ23(最左端の用紙斜行検出センサ23より一つ左の用紙斜行検出センサ23)の位置まで移動させ、用紙幅検出センサ25のセンサ出力に基づいて、用紙Pの左端部及び右端部の判定を開始する。 Next, the paper feed processing unit Pr3 starts paper feeding to the paper width detection position of the paper P, and when the paper feeding to the paper width detection position of the paper P is completed, the print head 12 is skewed to the leftmost paper. Move to the position of the paper skew detection sensor 23 next to the detection sensor 23 (paper skew detection sensor 23 to the left of the leftmost paper skew detection sensor 23), and based on the sensor output of the paper width detection sensor 25. Then, the determination of the left end portion and the right end portion 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, and the platen When the sensor output when the light receiving unit receives the light reflected by 13 is small, the paper P is on the platen 13, and the reflectance is high, the light is generated by the light emitting unit and receives the light reflected by the platen 13. It is formed so that the sensor output when the unit receives light is increased. Therefore, the sensor output of the paper width detection sensor 25 changes from small to large when the print head 12 is moved to the right from the position of the paper skew detection sensor 23 next to the leftmost paper skew detection sensor 23. The left edge of the paper P can be determined when the paper P is used, and the right edge of the paper P can be determined when the size changes from large to small.

このようにして、用紙Pの左端部及び右端部の判定が行われ、用紙Pの左端部及び右端部の判定が終了すると、給紙処理部Pr3は、用紙Pの左端部の位置及び右端部の位置に基づいて用紙幅を算出する。 In this way, the left end portion and the right end portion of the paper P are determined, and when the determination of the left end portion and the right end portion of the paper P is completed, the paper feed processing unit Pr3 positions the left end portion and the right end portion of the paper 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 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 center position of P is calculated, and the print head 12 is moved to the center position of the paper P.

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

用紙Pの印字実行位置までの給紙が終了すると、給紙処理部Pr3は、給紙処理を終了する。 When the paper feeding to the print execution position of the paper P is completed, the paper feeding processing unit Pr3 finishes the paper feeding 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 the 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 loaded 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 paper skew detection sensor 23.
Step S26 The paper feed processing unit Pr3 starts feeding paper to the paper width detection position.
Step S27 The paper feed processing unit Pr3 determines whether or not the paper feed to the paper width detection position is completed. When the paper feeding 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 paper skew detection sensor 23 at the leftmost end.
Step S29 The paper feed processing unit Pr3 starts determining the left end portion and the right end portion of the paper P.
Step S30 The paper feed processing unit Pr3 waits for the determination of the left end portion and the right end portion of the paper P to be completed.
Step S31 The paper feed processing unit Pr3 calculates the start position and the end position of printing.
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 feeding paper to the print execution position.
Step S36 The paper feed processing unit Pr3 waits for the paper feed to the print execution position to be completed.

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

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

まず、用紙有無判断処理部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 paper P of the single sheet was 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 present 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 or not the thin paper mode is currently set in the printer 10, and sets the thin paper mode. If so, the sensor output V of all the paper set detection sensors 21 is compared with the slice level th1 for thin paper, and if the thin paper mode is not set, the sensor output V of all the paper set detection sensors 21 and the normal A paper set detection sensor 21 whose sensor output is larger 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 "with paper") is detected by comparing with the slice level th2 for use. It is determined whether or not the paper set detection sensor 21 is present, and if the paper set detection sensor 21 that detects the presence of paper does not exist, the operator is notified that the paper P has not been set in the printer 10.

一方、用紙有りを検出した用紙セット検出センサ21が存在する場合、プリンタ10に用紙Pがセットされていて用紙有りが検出されたのか、又は用紙セット検出センサ21に紙片、紙粉、埃等の付着物が付着してセンサ出力が大きくなり、用紙有りが検出されたのかを判断するために、用紙有無判断処理部Pr2は、すべての用紙セット検出センサ21が用紙有りを検出したかどうかを判断する。 On the other hand, if there is a paper set detection sensor 21 that detects the presence of paper, it may be that the paper P is set in the printer 10 and the presence of paper is detected, or the paper set detection sensor 21 contains a piece of paper, paper dust, dust, or the like. 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 in order to determine whether or not the presence of paper has been detected due to the adhesion of deposits and the increase in the sensor output. 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, it is possible that the presence of paper is detected by setting the print mode. Therefore, the paper presence / absence determination processing unit Pr2 sets the sensor output V of the paper set detection sensor 21. By comparing with the slice level when the light emitting 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 status of the print mode, and the print mode in which the thickness of the paper P is larger than the currently set print mode, in the present embodiment, emits light. The print mode in which the light emission output of unit 21e is one step higher is set, and in the print mode in which the light emission output is one step higher, it is determined whether or not the paper set detection sensor 21 detects the presence of paper, and the paper set detection sensor 21 determines whether or not there is paper. It is determined whether or not 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, and if the thin paper mode is set, sets the normal mode and the sensor output V of all the paper set detection sensors 21. And the normal slice level th2, and if the thin paper mode is not set, set the thick paper mode, compare the sensor output V of all the paper set detection sensors 21 with the slice level th3 for thick paper, and compare. It is determined whether or not the paper set detection sensor 21 that has detected no medium (hereinafter referred to as “no paper”) exists.

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

また、用紙無しを検出した用紙セット検出センサ21が存在する場合、用紙セット検出センサ21による用紙Pの検出結果が変化したので、薄紙モード又は通常モードで、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことにより、すべての用紙セット検出センサ21が用紙有りを検出した可能性がある。 Further, 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. Therefore, in the thin paper mode or the normal mode, deposits such as paper pieces, paper dust, and dust are attached. Is attached to the paper set detection sensor 21, and it is possible that all the paper set detection sensors 21 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 step higher. To do.

そして、一般に、用紙Pの両端で紙片、紙粉、埃等の付着物が発生し、用紙セット検出センサ21に付着しやすいことから、用紙有無判断処理部Pr2は、用紙Pの搬送によって紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着しやすい領域を予測し、予測した領域の近傍にある用紙セット検出センサ21が用紙有りを検出した場合に、用紙セット検出センサ21のセンサ出力Vが紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことによる影響を受けていると判断して、用紙セット検出センサ21の検出結果を用紙有無判断処理の対象から外す。 Then, in general, deposits such as paper pieces, paper dust, and dust are generated at both ends of the paper P and easily adhere to the paper set detection sensor 21, so that the paper presence / absence determination processing unit Pr2 transfers the paper pieces to the paper pieces. The paper set detection sensor 21 predicts an area where adherents such as paper dust and dust are likely to adhere to the paper set detection sensor 21, and when the paper set detection sensor 21 near 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 adherence of paper pieces, paper dust, dust, etc. to the paper set detection sensor 21, and the detection result of the paper set detection sensor 21 is the target of the paper presence / absence determination process. Remove from.

そのために、用紙有無判断処理部Pr2は、用紙Pの左端部及び右端部の判定履歴、並びに用紙セット検出センサ21の検出結果を確認し、用紙Pの左端部及び右端部の位置と、用紙有りを検出した用紙セット検出センサ21の位置とが近いかどうかによって、紙片、紙粉、埃等の付着物が用紙セット検出センサ21に付着したことによる用紙セット検出センサ21のセンサ出力への影響があるかどうかを判断する。 Therefore, the paper presence / absence determination processing unit Pr2 confirms the determination history of the left end portion and the right end portion of the paper P and the detection result of the paper set detection sensor 21, the positions of the left end portion and the right end portion of the paper P, and the presence of the paper. Depending on whether or not the position of the paper set detection sensor 21 that has detected the above is close, the effect on the sensor output of the paper set detection sensor 21 due to the adhesion of deposits such as paper pieces, paper dust, and dust to 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 judgment processing unit Pr2 targets the detection result of the paper set detection sensor 21 other than the paper set detection sensor 21 that has detected the presence of paper in the paper presence / absence judgment 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 no paper are subject to the paper presence / absence judgment processing, and the paper that is the target of the paper presence / absence judgment processing. The previous sensor output V of 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 the paper from no paper. Determine if it is present.

そして、用紙有無判断処理部Pr2は、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りになった場合、プリンタ10に用紙Pがセットされたと判断し、プリンタ10に用紙Pがセットされた旨を操作者に通知し、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りにならなかった場合、プリンタ10に用紙Pがセットされなかったと判断し、プリンタ10に用紙Pがセットされなかった旨を操作者に通知する。 Then, when the detection result of the paper P by the paper set detection sensor 21 changes from no paper to with paper, the paper presence / absence determination processing unit Pr2 determines that the paper P has been set in the printer 10, and the paper P is loaded in the printer 10. When the operator is notified that the paper has been set and the detection result of the paper P by the paper set detection sensor 21 does not change from no paper to with paper, it is determined that the paper P has not been set in the printer 10 and the printer 10 is determined to have been loaded. Notify the operator 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 the paper set detection sensors 21 have detected the presence of paper, and the specific paper set detection sensor 21 has detected 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 has adhered substances such as paper pieces, paper dust, and dust, 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 end portion and the right end portion of the paper P and the detection result of the paper set detection sensor 21, and determines the positions of the left end portion and the right end portion of the paper P and the presence / absence of the paper. Depending on whether or not the detected paper set detection sensor 21 is close to the position, there is an effect on the sensor output of the paper set detection sensor 21 due to the adhesion of deposits such as paper pieces, paper dust, and dust to the paper set detection sensor 21. Determine if.

用紙セット検出センサ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 judgment processing unit Pr2 targets the detection result of the paper set detection sensor 21 other than the paper set detection sensor 21 that has detected the presence of paper in the paper presence / absence judgment 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 no paper are subject to the paper presence / absence judgment processing, and the paper that is the target of the paper presence / absence judgment processing. The previous sensor output V of 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 the paper from no paper. Determine if it is present.

そして、用紙有無判断処理部Pr2は、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りになった場合、プリンタ10に用紙Pがセットされたと判断し、プリンタ10に用紙Pがセットされた旨を操作者に通知し、用紙セット検出センサ21による用紙Pの検出結果が用紙無しから用紙有りにならなかった場合、プリンタ10に用紙Pがセットされなかったと判断し、プリンタ10に用紙Pがセットされなかった旨を操作者に通知する。 Then, when the detection result of the paper P by the paper set detection sensor 21 changes from no paper to with paper, the paper presence / absence determination processing unit Pr2 determines that the paper P has been set in the printer 10, and the paper P is loaded in the printer 10. When the operator is notified that the paper has been set and the detection result of the paper P by the paper set detection sensor 21 does not change from no paper to with paper, it is determined that the paper P has not been set in the printer 10 and the printer 10 is determined to have been loaded. Notify the operator 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 previously read paper set detection sensors 21 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 present time in the RAM 32.
Step S21-3 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-4, and 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 the paper set detection sensor 21 that has detected the presence of paper is present. If the paper set detection sensor 21 that detects the presence of paper is present, the process proceeds to step S21-7. If the paper set detection sensor 21 that detects the presence of paper does not exist, the process proceeds to step S21-20.
Step S21-7 The paper presence / absence determination processing unit Pr2 determines whether or not all the paper set detection sensors 21 have detected the presence / absence of paper. If all the paper set detection sensors 21 detect the presence of paper, the process proceeds to step S21-8, and 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, and 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 slice level th3 for thick paper.
Step S21-11 The paper presence / absence determination processing unit Pr2 determines whether or not the paper set detection sensor 21 that has detected no paper is present. If the paper set detection sensor 21 that detects no paper is present, the process proceeds to step S21-12, and if the paper set detection sensor 21 that detects no paper is not present, 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 paper presence / absence determination processing unit Pr2 confirms the determination history of the left end portion and the right end portion of the paper P, and the detection result of the paper set detection sensor 21.
Step S21-14 The paper presence / absence determination processing unit Pr2 determines whether or not there is an influence on the sensor output. If there is no effect on the sensor output, the process proceeds to step S21-15, and if there is no effect 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 sensor 21 other than the paper set detection sensor 21 that detects the presence / absence of paper as the target of the paper presence / absence determination processing.
Step S21-16 The paper presence / absence determination processing unit Pr2 confirms the change between the previous sensor output V and the current sensor output V.
Step S21-17 The paper presence / absence determination processing unit Pr2 determines whether or not the detection result has changed from no paper to with paper. If the detection result changes from no paper to with paper, the process proceeds to step S21-18, and if the detection result does not change from no paper to with 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 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 the target 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 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, deposits 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 at the slice level. When it becomes larger, the print mode in which the light emitting output of the light emitting unit 21r is one step higher is set, but depending on the usage status of the paper set detection sensor 21, deposits such as paper pieces, paper dust, and dust adhere to it. Regardless of, 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 ejected from the printing unit, the paper ejection processing unit Pr5 performs slice level th1 for thin paper, slice level th2 for normal use, and slice for thick paper. Level th3 is set.

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

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

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

続いて、排紙処理部Pr5は、スペースモータMsを駆動して、印字ヘッド12を用紙Pの中央位置に移動させ、フィードモータMfを駆動して排紙を開始する。 Subsequently, the paper ejection 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 ejection.

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

次に、排紙処理部Pr5は、前記用紙有無判断処理部Pr2による用紙有無判断処理において用紙セット検出センサ21によって発生させられたセンサ出力Vに応じて薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定を変更する。そのために、排紙処理部Pr5は、用紙セット検出センサ21のセンサ出力が小さくなったかどうかを、前記用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが、発光出力が一段階上の印字モードのスライスレベルに変更されたかどうかによって判断する。 Next, the paper ejection processing unit Pr5 sets 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 / absence determination processing by the paper presence / absence determination processing unit Pr2. Change the settings of level th2 and slice level th3 for thick paper. Therefore, the paper ejection processing unit Pr5 has a slice level for comparing whether or not the sensor output of the paper set detection sensor 21 has decreased 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 the light emission output is changed to the slice level of the print mode one step higher.

用紙セット検出センサ21のセンサ出力Vが大きくなり、用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが発光出力が一段階上の印字モードのスライスレベルに変更された場合、排紙処理部Pr5は、ROM33のスライスレベル記録エリアを更新し、薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定を変更する。 The sensor output V of the paper set detection sensor 21 becomes large, 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. If so, the paper ejection processing unit Pr5 updates the slice level recording area of the ROM 33, and changes the settings of the slice level th1 for thin paper, the slice level th2 for normal use, and the slice level th3 for thick paper.

次に、フローチャートについて説明する。
ステップ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, the flowchart will be described.
Step S41 The paper ejection processing unit Pr5 determines whether or not the paper P has been fed to the printing unit. If the paper P is fed to the printing unit, the process proceeds to step S42, and if the paper P is not fed to the printing unit, the process ends.
Step S42 The paper ejection processing unit Pr5 calculates the maximum feed amount for ejecting the paper P.
Step S43 The paper ejection processing unit Pr5 moves the print head 12 to the center position of the paper P.
Step S44 The paper ejection processing unit Pr5 starts paper ejection.
Step S45 The paper ejection processing unit Pr5 determines whether or not no paper is detected. If no paper is detected, the process proceeds to step S46.
Step S46 The paper ejection processing unit Pr5 determines whether or not the sensor output V has become small. If the sensor output V becomes small, the process proceeds to step S47, and if the sensor output V does not become small, the process ends.
Step S47 The paper ejection processing unit Pr5 changes the settings of the slice level th1 for thin paper, the slice level th2 for normal use, and the slice level th3 for thick paper.

このように、本実施の形態においては、用紙セット検出センサ21によって用紙有りが検出された場合に、用紙有無判断処理部Pr2が、用紙セット検出センサ21のセンサ出力Vと、発光部21eの発光出力が大きくされたときのスライスレベルとを比較することによって、プリンタ10にセットされた用紙Pの有無を判断するので、用紙セット検出センサ21に紙片、紙粉、埃等の付着物が付着していても、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。 As described above, in the present embodiment, when the presence of paper is detected by the paper set detection sensor 21, the paper presence / absence determination processing unit Pr2 emits light from the sensor output V of the paper set detection sensor 21 and the light emitting unit 21e. Since the presence or absence of the paper P loaded in the printer 10 is determined by comparing with the slice level when the output is increased, deposits such as paper pieces, paper dust, and dust adhere to the paper set detection sensor 21. Even so, the presence or absence of the paper P loaded 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 processing is being performed by the paper feed processing unit Pr3, the left end portion and the right end portion of the paper P are determined, and the determination history of the left end portion and the right end portion of the paper P and the paper set detection sensor 21 determine. When the detection result of the presence or 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 adhesion of a piece of paper, paper dust, dust, etc. to the paper set detection sensor 21, the paper Since the detection result of the paper set detection sensor 21 other than the paper set detection sensor 21 that has detected the presence is subject to the paper presence / absence determination process, the presence / absence of the paper P loaded in the printer 10 is not erroneously determined.

そして、用紙Pがプリンタ10外に排紙されたときに、用紙有無判断処理において用紙セット検出センサ21によって発生させられたセンサ出力Vに応じて薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3の設定が変更されるので、用紙セット検出センサ21のセンサ出力Vに最も適した薄紙用のスライスレベルth1、通常用のスライスレベルth2及び厚紙用のスライスレベルth3を設定することができ、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。 Then, when the paper P is ejected to the outside of the printer 10, the slice level th1 for thin paper and the slice level th2 for normal use are obtained according to the sensor output V generated by the paper set detection sensor 21 in the paper presence / absence determination process. And 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 use, and the slice level th3 for thick paper, which are most suitable for the sensor output V of the paper set detection sensor 21, are set. This can be done so that the presence or absence of the paper P loaded in the printer 10 is not erroneously determined.

ところで、用紙Pが印字部に給紙されてから、印字部において印字が行われ、用紙Pが印字部からプリンタ10外に排紙されるまでの用紙Pの搬送、印字等によって、プリンタ10における用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に紙片、紙粉、埃等が落下して付着物として付着すると、次の用紙Pに対する給紙処理及び用紙幅算出処理等を正常に行うことができなくなってしまう。 By the way, after the paper P is fed to the printing unit, printing is performed in the printing unit, and the paper P is conveyed and printed from the printing unit to the outside of the printer 10 to cause the printer 10 to perform printing. When a piece of paper, paper dust, dust, etc. 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 deposits, the next paper P is supplied. Paper processing, paper width calculation processing, etc. cannot be performed normally.

次に、用紙セット検出センサ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, on the print area, etc., it is possible to remove deposits such as paper pieces, paper dust, and dust. The second embodiment of the present invention described above 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 ejection processing unit according to the second embodiment of the present invention, and FIG. 13 is a second flowchart showing the operation of the paper ejection processing unit according to the second embodiment of the present invention. The flowchart, FIG. 14 is the first diagram for explaining the operation of the paper ejection processing unit according to the second embodiment of the present invention, and FIG. 15 is the operation of the paper ejection processing unit according to the second embodiment of the present invention. It is a 2nd figure for demonstrating.

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

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

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

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

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

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

排紙処理部Pr5は、用紙セット検出センサ21及び用紙斜行検出センサ23によって用紙有りが検出されず、紙片、紙粉、埃等の付着物を除去することができた場合、排紙を開始し、用紙セット検出センサ21及び用紙斜行検出センサ23のうちの少なくとも一方によって用紙有りが検出され、紙片、紙粉、埃等の付着物を除去することができなかった場合、プリンタ10のLEDランプ、LCD等の表示部にメッセージを表示することによって、操作者に、用紙Pを搬送する上で不具合がある旨を通知し、プリンタ10内部を確認し、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等を清掃し、紙片、紙粉、埃等の付着物を除去するように促す。 The paper ejection processing unit Pr5 starts ejecting paper when the presence or absence of paper is not detected by the paper set detection sensor 21 and the paper skew detection sensor 23 and the deposits such as paper pieces, paper dust, and dust can be removed. However, when 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 deposits such as paper pieces, paper dust, and dust cannot be removed, the LED of the printer 10 is used. By displaying a message on the display unit of the lamp, LCD, etc., 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 is tilted on the paper set detection sensor 21. It is urged to clean the line detection sensor 23, the line for detecting the paper width, the print area, and the like to remove deposits such as paper pieces, paper dust, and dust.

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

次に、排紙処理部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 process 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 by whether or not the light emission output is changed to the slice level of the print mode one step higher.

用紙セット検出センサ21のセンサ出力Vが大きくなり、用紙有無判断処理において、用紙セット検出センサ21のセンサ出力Vと比較するためのスライスレベルが、発光出力が一段階上の印字モードのスライスレベルに変更された場合、ROM33のスライスレベル記録エリアを更新し、変更されたスライスレベルを設定する。 The sensor output V of the paper set detection sensor 21 becomes large, and the slice level for comparison with the sensor output V of the paper set detection sensor 21 in the paper presence / absence determination process becomes the slice level of the print mode in which the light emission output is one step higher. When it is changed, the slice level recording area of 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 ejection processing unit Pr5 determines whether or not the paper P has been fed to the printing unit. If the paper P is fed to the printing unit, the process proceeds to step S52, and if the paper P is not fed to the printing unit, the process ends.
Step S52 The paper ejection processing unit Pr5 calculates the maximum feed amount for ejecting the paper P.
Step S53 The paper ejection processing unit Pr5 moves the print head 12 to the center position of the paper P.
Step S54 The paper ejection processing unit Pr5 determines whether or not the presence of paper is detected. If the presence of paper is detected, the process proceeds to step S55, and if the presence of paper is not detected, the process proceeds to step S60.
Step S55 The paper ejection processing unit Pr5 forward-feeds the paper P.
Step S56 The paper ejection processing unit Pr5 reverse-feeds the paper P.
Step S57 The paper ejection processing unit Pr5 forward-feeds the paper P.
Step S58 The paper ejection processing unit Pr5 determines whether or not the presence of paper is detected. If the presence of paper is detected, the process proceeds to step S59, and if the presence of paper is not detected, the process proceeds to step S60.
Step S59 The paper ejection processing unit Pr5 cleans the operator 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 removes paper pieces, paper dust, and dust. Prompt.
Step S60 The paper ejection processing unit Pr5 starts paper ejection.
Step S61 The paper ejection processing unit Pr5 waits for the detection of no paper.
Step S62 The paper ejection processing unit Pr5 ends the paper ejection.
Step S63 The paper ejection processing unit Pr5 determines whether or not the sensor output V has become small. If the sensor output becomes small, the process proceeds to step S64, and if the sensor output does not become small, the process ends.
Step S64 The paper ejection processing unit Pr5 sets the slice level and ends the processing.

このように、本実施の形態においては、用紙Pが給紙される前に、用紙セット検出センサ21及び用紙斜行検出センサ23のうちの少なくとも一方によって用紙有りが検出されたかどうかが判断され、用紙有りが検出された場合、用紙Pが前方及び後方に移動させられるので、用紙セット検出センサ21上、用紙斜行検出センサ23上、用紙幅を検出するライン上、印字領域等に付着している紙片、紙粉、埃等の付着物を除去することができる。したがって、プリンタ10にセットされた用紙Pの有無を誤って判断することがない。 As described above, in the present embodiment, 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 before the paper P is fed. 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. It is possible to remove deposits such as pieces of paper, paper dust, and dust. Therefore, the presence or absence of the paper P loaded in the printer 10 is not erroneously determined.

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

前記各実施の形態においては、ドットインパクト式のプリンタについて説明しているが、本発明を、インクジェットプリンタ等の他のプリンタに適用することができるだけでなく、複写機、ファクシミリ、複合機等の画像形成装置に適用することができる。 Although the dot impact printer is described in each of the above embodiments, the present invention can be applied not only to other printers such as an inkjet printer, but also to images of copiers, facsimiles, multifunction devices and the like. It can be applied to forming devices.

なお、本発明は前記各実施の形態に限定されるものではなく、本発明の趣旨に基づいて種々変形させることが可能であり、それらを本発明の範囲から排除するものではない。 The present invention is not limited to each of the above-described embodiments, and various modifications can be made based on the gist of the present invention, and these 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 センサ出力
10 Printer 11 Table 15 Front feed roller pair 17 Rear feed roller pair 21 Paper set detection sensor 21e, 23e Light emitting unit 21r, 23r Light receiving unit 23 Paper skew detection sensor 31 CPU
32 RAM
33 ROM
P paper Pr2 Paper presence / absence determination processing unit Rt1 Media transfer path th1 Slice level for thin paper th2 Slice level for normal use th3 Slice level V for thick paper Sensor output

Claims (9)

(a)媒体を載置するための媒体配置部と、
(b)該媒体配置部に配設され、発光部及び受光部を備えた光学センサから成り、媒体配置部に載置された媒体の媒体有り及び媒体無しを検出し、媒体有り及び媒体無しに応じてセンサ出力を発生させる複数の媒体検出部と、
(c)媒体の厚さに応じて異ならせて設定された複数のスライスレベルが記録された記憶装置と、
(d)媒体に応じた、前記発光部の発光出力及びスライスレベルによって媒体検出部により媒体有りが検出された場合に、発光部の発光出力及びスライスレベルを、使用される媒体よりも厚い媒体を検出するための発光出力及びスライスレベルに変更し、媒体検出部のセンサ出力と変更後のスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断するとともに、付着物が媒体検出部に付着したかどうかを判断する媒体有無判断処理部とを有するとともに、
(e)該媒体有無判断処理部は、媒体検出部のセンサ出力と変更後のスライスレベルとを比較したときに、媒体検出部によって媒体無しが検出されたかどうかを判断し、媒体無しが検出された場合、画像形成装置にセットされた媒体がなかったと判断し、媒体無しが検出されなかった場合、付着物が媒体検出部に付着したと判断することを特徴とする媒体検出装置。
(A) A medium placement unit for placing a medium and
(B) It is composed of an optical sensor arranged in the medium arrangement part and provided with a light emitting part and a light receiving part, and detects the presence or absence of the medium of the medium placed on the medium arrangement part, with or without the medium. Multiple media detectors that generate sensor output in response,
(C) A storage device in which a plurality of slice levels set differently according to the thickness of the medium are recorded, and
(D) corresponding to the medium, if more media there has been detected in the medium detecting unit by the light emitting output and the slice level of the light emitting portion, the light emitting output and the slice level of the light-emitting portion, thick medium than medium used By changing to the light emission output and slice level for detecting, and comparing the sensor output of the medium detection unit with the changed slice level, the presence or absence of the medium set in the image forming apparatus is determined, and deposits are deposited. It also has a medium presence / absence determination processing unit that determines whether or not has adhered to the medium detection unit, and
(E) When the sensor output of the medium detection unit is compared with the slice level after the change, the medium presence / absence determination processing unit determines whether or not the medium detection unit has detected the absence of the medium, and the absence of the medium is detected. In this case, it is determined that there is no medium set in the image forming apparatus, and if no medium is detected, it is determined that the deposits have adhered to the medium detection unit.
(a)前記媒体検出部は、媒体の搬送方向に対して直交する方向において複数配設され、
(b)前記媒体有無判断処理部は、すべての媒体検出部によって媒体有りが検出された場合に、使用される媒体に応じて発光部の発光出力を大きくし、スライスレベルを使用される媒体に対応するスライスレベルに変更し、各媒体検出部のセンサ出力と変更後のスライスレベルとを比較することによって、画像形成装置にセットされた媒体の有無を判断する請求項1に記載の媒体検出装置。
(A) A plurality of the medium detection units are arranged in a direction orthogonal to the transport direction of the medium.
(B) When the presence or absence of a medium is detected by all the medium detection units, the medium presence / absence determination processing unit increases the light emission output of the light emitting unit according to the medium used, and sets the slice level to the medium to be used. The medium detection device according to claim 1, wherein the medium detection device according to claim 1 determines the presence or absence of a medium set in the image forming device by changing to the corresponding slice level and comparing the sensor output of each medium detection unit with the changed slice level. ..
各スライスレベルは、媒体の厚さに応じて設定された印字モードごとに異ならせて設定される請求項1又は2に記載の媒体検出装置。 The medium detection device according to claim 1 or 2, wherein each slice level is set differently for each print mode set according to the thickness of the medium. (a)前記媒体検出部は、媒体の搬送方向に対して直交する方向において複数配設され、
(b)前記媒体有無判断処理部は、特定の媒体検出部によって媒体有りが検出された場合に、特定の媒体検出部の前回のセンサ出力と今回のセンサ出力とを比較し、特定の媒体検出部による媒体の検出結果が、媒体無しから媒体有りになったかどうかによって、画像形成装置にセットされた媒体の有無を判断する請求項1又は2に記載の媒体検出装置。
(A) A plurality of the medium detection units are arranged in a direction orthogonal to the transport direction of the medium.
(B) When the presence or absence of a medium is detected by the specific medium detection unit, the medium presence / absence determination processing unit compares the previous sensor output of the specific medium detection unit with the current sensor output, and detects the specific medium. The medium detection device according to claim 1 or 2, wherein the presence or absence of the medium set in the image forming device is determined depending on whether or not the detection result of the medium by the unit changes from no medium to with medium.
印字部の媒体を画像形成装置外に排紙したときに媒体検出部によって媒体無しが検出された場合に、前記記憶装置に記録されたスライスレベルを、前記媒体有無判断処理部による媒体有無判断処理において変更されたスライスレベルにする排紙処理部を有する請求項1〜4のいずれか1項に記載の媒体検出装置。 When the medium of the printing unit is ejected to the outside of the image forming apparatus and the medium detection unit detects that there is no medium, the slice level recorded in the storage device is subjected to the medium presence / absence determination processing by the medium presence / absence determination processing unit. The medium detection device according to any one of claims 1 to 4, further comprising an output processing unit for changing the slice level in the above. 前記排紙処理部は、媒体検出部によって媒体有りが検出された場合に、媒体を前方及び後方に移動させ、媒体検出部に付着した付着物を媒体の端部を利用して除去する請求項5に記載の媒体検出装置。 A claim that the paper ejection processing unit moves the medium forward and backward when the medium detection unit detects the presence of the medium, and removes the deposits adhering to the medium detection unit by using the end portion of the medium. 5. The medium detection device according to 5. 前記排紙処理部は、媒体を前方及び後方に移動させた後、媒体検出部によって媒体有りが検出された場合に、操作者に付着物を除去するよう促す請求項6に記載の媒体検出装置。 The medium detection device according to claim 6, wherein the paper ejection processing unit moves the medium forward and backward, and then urges the operator to remove the deposits when the medium detection unit detects the presence of the medium. .. 請求項1〜7のいずれか1項に記載の媒体検出装置を有する媒体搬送装置。 A medium transport device having the medium detection device according to any one of claims 1 to 7. 請求項8に記載の媒体搬送装置を有する画像形成装置。 An image forming apparatus having the medium transporting apparatus according to claim 8.
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 JP2018002459A (en) 2018-01-11
JP6833368B2 true 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

Family Cites Families (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
JP3166117B2 (en) * 1994-07-21 2001-05-14 株式会社日立製作所 Optical sensor control method
JPH1120990A (en) * 1997-07-02 1999-01-26 Tec Corp Medium detecting device
JP4398797B2 (en) * 2003-08-27 2010-01-13 株式会社沖データ Medium width detection device
JP4801384B2 (en) * 2005-06-22 2011-10-26 株式会社リコー 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
CN107584908B (en) 2020-12-25
JP2018002459A (en) 2018-01-11
CN107584908A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
JP5062282B2 (en) Recording device
JP6624039B2 (en) Inkjet recording device
JP2004181828A (en) Printing device
JP4595865B2 (en) Printing device
JP6000194B2 (en) Sheet detection apparatus and image forming apparatus
US9764568B2 (en) Inkjet printer, sheet discriminating device and inkjet printing method
JP6833368B2 (en) Medium detection device, medium transfer device and image forming device
JP2011121271A (en) Recording method
JP2009196752A (en) Image forming device
JP5668280B2 (en) Printing apparatus and edge detection method of printing medium
JP2007290168A (en) Image recording apparatus and its method
JP2018134806A (en) Image forming apparatus
JP6361574B2 (en) Image forming apparatus and recording medium edge position detection method of image forming apparatus
JP5278478B2 (en) Image forming apparatus, program thereof, and recording medium conveyance monitoring method in image forming apparatus
JP2008126452A (en) Recorder and method of detecting presence/absence of recording medium
JP2013000950A (en) Image recording apparatus
JP5098511B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND CONTROL PROGRAM
JP4649342B2 (en) Recording material floating detection system provided in image recording apparatus
JP2010184764A (en) Image forming device
JP2016204100A (en) Image formation apparatus
JP2021130565A (en) Image forming device
JP2009113954A (en) Recording device, control method for recording device and control program
JP2019126960A (en) Inkjet recording device
JP2020082482A (en) Inkjet printer
JP2009148915A (en) Recording device, recording device control method, and control program

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