JP2024017239A - Media transport device and image forming device - Google Patents

Media transport device and image forming device Download PDF

Info

Publication number
JP2024017239A
JP2024017239A JP2022119752A JP2022119752A JP2024017239A JP 2024017239 A JP2024017239 A JP 2024017239A JP 2022119752 A JP2022119752 A JP 2022119752A JP 2022119752 A JP2022119752 A JP 2022119752A JP 2024017239 A JP2024017239 A JP 2024017239A
Authority
JP
Japan
Prior art keywords
paper
light
sheet
value
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022119752A
Other languages
Japanese (ja)
Inventor
悟 田島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2022119752A priority Critical patent/JP2024017239A/en
Publication of JP2024017239A publication Critical patent/JP2024017239A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

【課題】位置検出用目印の検出精度を高くすることができるようにする。【解決手段】位置検出用目印が付されたシート状媒体を搬送するようになっている。搬送処理部Pr2と、発光部47及び受光部48を備えた検出部と、受光部48が受けた光の光量を検出値に変換する変換部と、第1、第2の検出値に基づいて第1の閾値を決定するキャリブレーション制御部Pr5とを有する。キャリブレーション制御部Pr5は、第3の検出値に応じて第1の閾値を変更し、第2の閾値を決定する。位置検出用目印の検出精度を高くすることができる。【選択図】図1An object of the present invention is to improve the detection accuracy of a position detection mark. A sheet-like medium with a position detection mark is conveyed. A transport processing section Pr2, a detection section including a light emitting section 47 and a light receiving section 48, a conversion section that converts the amount of light received by the light receiving section 48 into a detected value, and a detection section based on the first and second detected values. and a calibration control unit Pr5 that determines the first threshold value. The calibration control unit Pr5 changes the first threshold according to the third detected value and determines the second threshold. The detection accuracy of the position detection mark can be increased. [Selection diagram] Figure 1

Description

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

従来、プリンタ、複写機、ファクシミリ装置、複合機等の画像形成装置、例えば、電子写真式のカラーのプリンタには、画像形成ユニットが配設され、該画像形成ユニットにおいて、帯電ローラによって一様に帯電させられた感光体ドラムの表面が露光されて静電潜像が形成され、該静電潜像がトナーによって現像されてトナー像が形成されるようになっている。そして、該トナー像が、媒体としての用紙に転写され、定着器において定着させられることによって用紙に画像が形成され、印刷が行われる。 Conventionally, image forming apparatuses such as printers, copying machines, facsimile machines, and multifunction devices, such as electrophotographic color printers, are provided with an image forming unit, and in the image forming unit, a charging roller uniformly charges The surface of the charged photosensitive drum is exposed to light to form an electrostatic latent image, and the electrostatic latent image is developed with toner to form a toner image. Then, the toner image is transferred to paper as a medium and fixed in a fixing device, thereby forming an image on the paper and performing printing.

ところで、例えば、複数のラベルが台紙に貼付されたダイカットラベル紙等の長尺状の用紙に対して印刷を行うプリンタにおいては、媒体搬送装置としての用紙搬送装置に反射センサが配設され、該反射センサによって、用紙に一定のピッチで形成された位置検出用目印としてのブラックマークが検出され、該ブラックマークの位置を基準にして、画像を形成する位置、すなわち、印字位置が決定されるようになっている。 By the way, for example, in a printer that prints on a long sheet of paper such as die-cut label paper with a plurality of labels attached to a mount, a reflective sensor is disposed in the paper transport device as a medium transport device, The reflective sensor detects black marks as position detection marks formed on the paper at a constant pitch, and the position where the image is formed, that is, the printing position, is determined based on the position of the black mark. It has become.

前記反射センサは、用紙と対向させて配設され、光を発生させる発光部、用紙において反射された光を受ける受光部、反射センサ上に用紙がないときに光を反射するための反射板等を備える。 The reflective sensor is disposed to face the paper, and includes a light emitting part that generates light, a light receiving part that receives light reflected by the paper, a reflector plate that reflects light when there is no paper on the reflective sensor, etc. Equipped with

前記用紙におけるブラックマークが形成された部分であるブラックマーク部においては光の反射量が少なく、用紙の白紙部及び反射板においては光の反射量が多くなるので、前記プリンタにおいては、受光部が受けた光量がAD変換機等によって読み値に変換され、該読み値が閾値以下であるかどうかによって、ブラックマークが検出されたかどうかが判断される(例えば、特許文献1参照。)。 In the printer, the amount of light reflected is small in the black mark area, which is the part where the black mark is formed, and the amount of light reflected is large in the blank area of the paper and the reflective plate. The amount of received light is converted into a reading value by an AD converter or the like, and it is determined whether a black mark has been detected depending on whether the reading value is less than a threshold value (see, for example, Patent Document 1).

特開平5-246414号公報Japanese Patent Application Publication No. 5-246414

しかしながら、前記従来のプリンタにおいては、所定の箇所で用紙がカットされたときに、カットされた用紙の端部において、発光部が発生させた光によって反射板に影ができることがあり、影の部分において反射された光を受光部が受けると、影の部分をブラックマークとして検出してしまうことがある。その結果、反射センサの検出精度が低くなり、印字位置を誤って決定したり、反射センサがエラーを発生させたりしてしまう。 However, in the conventional printer, when a sheet of paper is cut at a predetermined point, a shadow may be formed on the reflective plate at the edge of the cut sheet due to the light generated by the light emitting section. When the light receiving section receives the light reflected by the light receiving section, the shaded portion may be detected as a black mark. As a result, the detection accuracy of the reflective sensor becomes low, and the printing position may be determined incorrectly or the reflective sensor may generate an error.

本発明は、前記従来のプリンタの問題点を解決して、位置検出用目印の検出精度を高くすることができる媒体搬送装置及び画像形成装置を提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to provide a medium transport device and an image forming apparatus that can solve the problems of the conventional printer and improve the detection accuracy of position detection marks.

そのために、本発明の媒体搬送装置においては、位置検出用目印が付されたシート状媒体を搬送するようになっている。 For this purpose, the medium conveyance device of the present invention is configured to convey a sheet-like medium on which position detection marks are attached.

そして、前記シート状媒体を搬送する媒体搬送部と、光を発生させる発光部及び光を受ける受光部を備えた検出部と、前記受光部が受けた光の光量を検出値に変換する変換部と、前記位置検出用目印において反射された光の第1の受光量に基づく検出値、及び前記シート状媒体における前記位置検出用目印以外の領域において反射された光の第2の受光量に基づく検出値に基づいて第1の閾値を決定するキャリブレーション制御部とを有する。 and a medium conveyance unit that conveys the sheet-like medium, a detection unit that includes a light emission unit that generates light and a light reception unit that receives light, and a conversion unit that converts the amount of light received by the light reception unit into a detected value. and a detection value based on a first amount of received light reflected at the position detection mark, and a second amount of received light reflected at an area other than the position detection mark on the sheet-like medium. and a calibration control unit that determines the first threshold based on the detected value.

また、該キャリブレーション制御部は、前記第1の閾値を決定した後に受光部が受光した第3の受光量に基づく検出値に応じて前記第1の閾値を変更し、第2の閾値を決定する。 Further, after determining the first threshold, the calibration control unit changes the first threshold according to a detection value based on a third amount of light received by the light receiving unit, and determines a second threshold. do.

本発明によれば、媒体搬送装置においては、位置検出用目印が付されたシート状媒体を搬送するようになっている。 According to the present invention, the medium conveyance device conveys a sheet-like medium on which a position detection mark is attached.

そして、前記シート状媒体を搬送する媒体搬送部と、光を発生させる発光部及び光を受ける受光部を備えた検出部と、前記受光部が受けた光の光量を検出値に変換する変換部と、前記位置検出用目印において反射された光の第1の受光量に基づく検出値、及び前記シート状媒体における前記位置検出用目印以外の領域において反射された光の第2の受光量に基づく検出値に基づいて第1の閾値を決定するキャリブレーション制御部とを有する。 and a medium conveyance unit that conveys the sheet-like medium, a detection unit that includes a light emission unit that generates light and a light reception unit that receives light, and a conversion unit that converts the amount of light received by the light reception unit into a detected value. and a detection value based on a first amount of received light reflected at the position detection mark, and a second amount of received light reflected at an area other than the position detection mark on the sheet-like medium. and a calibration control unit that determines the first threshold based on the detected value.

また、該キャリブレーション制御部は、前記第1の閾値を決定した後に受光部が受光した第3の受光量に基づく検出値に応じて前記第1の閾値を変更し、第2の閾値を決定する。 Further, after determining the first threshold, the calibration control unit changes the first threshold according to a detection value based on a third amount of light received by the light receiving unit, and determines a second threshold. do.

この場合、位置検出用目印において反射された光の第1の受光量に基づく検出値、及びシート状媒体における前記位置検出用目印以外の領域において反射された光の第2の受光量に基づく検出値に基づいて第1の閾値が決定され、該第1の閾値が決定された後に受光部が受光した第3の受光量に基づく検出値に応じて前記第1の閾値が変更され、第2の閾値が決定されるので、位置検出用目印の検出精度を高くすることができる。 In this case, a detection value based on a first received amount of light reflected at the position detection mark, and a detection value based on a second received amount of light reflected in an area other than the position detection mark on the sheet-like medium. a first threshold value is determined based on the first threshold value, the first threshold value is changed according to a detection value based on a third amount of light received by the light receiving section after the first threshold value is determined, and a second threshold value is Since the threshold value is determined, the detection accuracy of the position detection mark can be increased.

本発明の実施の形態におけるプリンタの制御ブロック図である。1 is a control block diagram of a printer in an embodiment of the present invention. FIG. 本発明の実施の形態におけるプリンタの概念図である。1 is a conceptual diagram of a printer in an embodiment of the present invention. 本発明の実施の形態における反射センサによってブラックマークのエッジが検出される状態を説明するための図である。FIG. 3 is a diagram for explaining a state in which an edge of a black mark is detected by a reflective sensor according to an embodiment of the present invention. 本発明の実施の形態における用紙の前端部が反射センサ上を通過する際に影が形成された状態を示す図である。FIG. 6 is a diagram illustrating a state in which a shadow is formed when the front end of a sheet passes over a reflection sensor in an embodiment of the present invention. 本発明の実施の形態における用紙の後端部が反射センサ上を通過する際に影が形成された状態を示す図である。FIG. 6 is a diagram showing a state in which a shadow is formed when the trailing edge of a sheet passes over a reflection sensor in an embodiment of the present invention. 参考例における用紙が反射センサ上を通過したときの読み値の推移を示す図である。FIG. 7 is a diagram showing the transition of reading values when a sheet of paper passes over a reflective sensor in a reference example. 本発明の実施の形態における反射センサのキャリブレーションを行う方法を説明するための図である。FIG. 3 is a diagram for explaining a method of calibrating a reflection sensor in an embodiment of the present invention. 本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第1のフローチャートである。It is a 1st flowchart which shows the operation|movement of a control part when performing calibration of the reflection sensor in embodiment of this invention. 本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第2のフローチャートである。It is a 2nd flowchart which shows the operation|movement of a control part when performing calibration of the reflection sensor in embodiment of this invention. 本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第3のフローチャートである。It is a 3rd flowchart which shows the operation|movement of a control part when performing calibration of the reflection sensor in embodiment of this invention. 本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第4のフローチャートである。It is a 4th flowchart which shows the operation|movement of a control part when performing calibration of the reflection sensor in embodiment of this invention. 本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第5のフローチャートである。It is a 5th flowchart which shows the operation|movement of a control part when performing calibration of the reflection sensor in embodiment of this invention. 本発明の実施の形態における閾値決定処理のサブルーチンを示す図である。FIG. 3 is a diagram showing a subroutine of threshold value determination processing in an embodiment of the present invention.

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

図2は本発明の実施の形態におけるプリンタの概念図である。 FIG. 2 is a conceptual diagram of a printer in an embodiment of the present invention.

図において、10は、シート状媒体としてのラベル紙等の長尺状の用紙Pに対して印刷を行うプリンタであり、該プリンタ10は、用紙Pを搬送し、上位装置としての図示されないホストコンピュータから送信された印刷データに基づいて、例えば、台紙上に所定の距離を置いて複数のラベルが貼付されたダイカットラベル紙における各ラベルに画像を形成する印刷ユニット20、ホストコンピュータから指示された用紙長で用紙Pをカットし、印刷ユニット20に供給する給紙部としてのフィーダユニットFd、及び用紙PをフィーダユニットFdに供給するロール紙ホルダRhを備える。 In the figure, 10 is a printer that prints on a long paper P such as a label paper as a sheet-like medium, and the printer 10 conveys the paper P and is connected to a host computer (not shown) as a host device. For example, a printing unit 20 that forms an image on each label of die-cut label paper on which a plurality of labels are pasted at predetermined distances on a backing paper based on print data sent from the host computer; It includes a feeder unit Fd as a paper feeding unit that cuts the paper P along the length and supplies it to the printing unit 20, and a roll paper holder Rh that supplies the paper P to the feeder unit Fd.

そして、Csは印刷ユニット20の筐体、Bdは、印刷ユニット20の本体、すなわち、装置本体、Q1は、装置本体Bdの上部に配設され、イエロー、マゼンタ、シアン、ブラック及び特色としてのホワイトの画像形成ユニット12Y、12M、12C、12Bk、12W、並びに露光装置としてのLEDヘッドHdから成る画像形成部、uは該画像形成部Q1の下方に配設された転写ユニット、31は定着装置としての定着器、M1は、各画像形成ユニット12Y、12M、12C、12Bk、12Wに配設された像担持体としての感光体ドラム(トナードラム)13を回転させる画像形成用の駆動部としてのドラムモータである。 Cs is the housing of the printing unit 20, Bd is the main body of the printing unit 20, that is, the main body of the apparatus, and Q1 is disposed on the upper part of the main body Bd of the apparatus, yellow, magenta, cyan, black, and white as a special color. An image forming section consisting of image forming units 12Y, 12M, 12C, 12Bk, and 12W as well as an LED head Hd as an exposure device, u is a transfer unit disposed below the image forming section Q1, and 31 is a fixing device. The fixing device M1 is a drum serving as a drive unit for image formation that rotates a photosensitive drum (toner drum) 13 as an image carrier disposed in each image forming unit 12Y, 12M, 12C, 12Bk, and 12W. It's a motor.

前記転写ユニットuは、第1のローラとしての駆動ローラr1、第2のローラとしての従動ローラr2、第3のローラとしてのバックアップローラr3、前記駆動ローラr1、従動ローラr2及びバックアップローラr3によって画像形成ユニット12Y、12M、12C、12Bk、12Wに沿って走行自在に張設された中間転写媒体としての転写ベルト21、該転写ベルト21を介して前記感光体ドラム13と対向させて配設された第1の転写部材としての、かつ、第1の転写ローラとしての一次転写ローラ22、転写ベルト21を介して前記バックアップローラr3と対向させて配設された第2の転写部材としての、かつ、第2の転写ローラとしての二次転写ローラ23等を備える。前記感光体ドラム13と一次転写ローラ22との間に一次転写部が形成され、バックアップローラr3と二次転写ローラ23との間に二次転写部が形成される。また、M2は転写ベルト21を走行させるための転写用の駆動部としての転写モータである。 The transfer unit u transfers an image by a driving roller r1 as a first roller, a driven roller r2 as a second roller, a backup roller r3 as a third roller, the driving roller r1, the driven roller r2, and the backup roller r3. A transfer belt 21 as an intermediate transfer medium is stretched along the forming units 12Y, 12M, 12C, 12Bk, and 12W so that it can run freely, and the transfer belt 21 is disposed facing the photosensitive drum 13 via the transfer belt 21. A primary transfer roller 22 serving as a first transfer member and a first transfer roller, and a second transfer member disposed facing the backup roller r3 via the transfer belt 21, and A secondary transfer roller 23 and the like as a second transfer roller are provided. A primary transfer portion is formed between the photosensitive drum 13 and the primary transfer roller 22, and a secondary transfer portion is formed between the backup roller r3 and the secondary transfer roller 23. Further, M2 is a transfer motor serving as a transfer drive unit for causing the transfer belt 21 to run.

前記定着器31は、第1の定着部材としての加熱ベルト32、第2の定着部材としての加圧ベルト33等を備え、前記加熱ベルト32内に加熱源としてのヒータ34が配設される。また、M3は、加圧ベルト33及び加熱ベルト32を走行させるための定着用の駆動部としての定着モータである。 The fixing device 31 includes a heating belt 32 as a first fixing member, a pressure belt 33 as a second fixing member, and a heater 34 as a heat source. Further, M3 is a fixing motor serving as a fixing drive unit for driving the pressure belt 33 and the heating belt 32.

そして、HzはフィーダユニットFdのハウジング、Tnは、該ハウジングHzからロール紙ホルダRh側に向けて突出させて揺動自在に配設され、揺動に伴って用紙Pに所定のテンションを付与するテンションバー、CuはハウジングHzに対して着脱自在に配設されたカッタユニット、M4は、ロール紙ホルダRhから用紙Pを繰り出し、印刷ユニット20に供給する繰出用の駆動部としての、かつ、給紙モータとしてのフィーダモータ、M5は、用紙Pをロール紙ホルダRhに巻き取るための巻取用の駆動部としての巻取モータである。 Hz is a housing of the feeder unit Fd, and Tn is arranged to be able to swing freely, protruding from the housing Hz toward the roll paper holder Rh side, and applies a predetermined tension to the paper P as it swings. A tension bar, Cu, is a cutter unit detachably arranged with respect to the housing Hz, and M4 is a feeding unit that feeds out the paper P from the roll paper holder Rh and supplies it to the printing unit 20. A feeder motor M5 serving as a paper motor is a winding motor serving as a winding drive unit for winding paper P onto a roll paper holder Rh.

前記カッタユニットCuは、ロータリカッタから成り、第1のカット部材としての回転刃41、第2のカット部材としての固定刃42等から成るカッタ機構Cm、回転刃41を回転させるカット用の駆動部としてのカットモータM6等を備え、用紙Pを搬送しながらカットする。 The cutter unit Cu is composed of a rotary cutter, and includes a cutter mechanism Cm consisting of a rotary blade 41 as a first cutting member, a fixed blade 42 as a second cutting member, etc., and a cutting drive unit that rotates the rotary blade 41. It is equipped with a cut motor M6, etc., and cuts the paper P while conveying it.

前記ロール紙ホルダRhは、回転自在に配設された繰出機Spを備え、該繰出機Spに、前記用紙Pをロール状に巻くことによって形成されたロール媒体としてのロール紙14が装填される。前記フィーダモータM4が駆動されると、用紙Pは、ロール紙ホルダRhから繰り出され、前記テンションバーTnによって所定のテンションが付与された後、前記ハウジングHzに形成された給紙口hinからフィーダユニットFd内に送られ、第1、第2の搬送部材としての搬送ローラ対m1、m2によって媒体搬送路としての用紙搬送路Rt1を搬送される。 The roll paper holder Rh includes a rotatably disposed feeding machine Sp, and a roll paper 14 as a roll medium formed by winding the paper P into a roll is loaded into the feeding machine Sp. . When the feeder motor M4 is driven, the paper P is fed out from the roll paper holder Rh, and after a predetermined tension is applied by the tension bar Tn, the paper P is fed from the paper feed port hin formed in the housing Hz to the feeder unit. Fd, and is conveyed through a paper conveyance path Rt1 as a medium conveyance path by a pair of conveyance rollers m1 and m2 as first and second conveyance members.

該用紙搬送路Rt1は、用紙Pの搬送方向における最も上流側においてハウジングHzに形成された前記給紙口hinと、最も下流側において筐体Csに形成された排出口houとの間に延在させて形成される。そして、用紙搬送路Rt1における前記給紙口hinより下流側に、ロール紙ホルダRhにおけるロール紙14の有無を検出する給紙判断用の媒体検出部としての、かつ、給紙センサとしてのペーパエンドセンサs1が配設され、該ペーパエンドセンサs1より下流側に前記搬送ローラ対m1が配設され、該搬送ローラ対m1より下流側に、カッタユニットCuに供給される用紙Pのラベルの前縁(ラベルエッジ)を検出する透過型の媒体検出部としての第1のカッタインセンサs2、及び用紙Pの裏面に形成された識別指標としての、かつ、位置検出用目印としての後述されるブラックマークBm(図3)のエッジを検出することによってラベルの前縁(ラベルエッジ)を検出する反射型の媒体検出部としての第2のカッタインセンサs3が、用紙Pの幅方向において互いに隣接させて配設される。 The paper transport path Rt1 extends between the paper feed port hin formed in the housing Hz at the most upstream side in the transport direction of the paper P and the discharge port hou formed in the housing Cs at the most downstream side. It is formed by letting A paper end is provided downstream of the paper feed port hin the paper transport path Rt1 as a medium detection unit for paper feed determination that detects the presence or absence of the roll paper 14 in the roll paper holder Rh, and as a paper feed sensor. A sensor s1 is disposed, the pair of conveyance rollers m1 is disposed downstream of the paper end sensor s1, and the front edge of the label of the paper P supplied to the cutter unit Cu is disposed downstream of the pair of conveyance rollers m1. a first cutter-in sensor s2 as a transmissive medium detection unit that detects (label edge), and a black mark, which will be described later, as an identification index and a position detection mark formed on the back side of the paper P. A second cutter-in sensor s3 as a reflective medium detection unit that detects the leading edge of the label (label edge) by detecting the edge of Bm (FIG. 3) is arranged adjacent to each other in the width direction of the paper P. will be placed.

前記カッタユニットCu内には、スリットを検出することによって回転刃41の回転位置を検出する回転刃検出部としてのカッタスリットセンサs4が回転刃41と対向させて配設され、前記カッタ機構Cmより下流側に前記搬送ローラ対m2が配設される。 In the cutter unit Cu, a cutter slit sensor s4 as a rotary blade detection section that detects the rotational position of the rotary blade 41 by detecting the slit is disposed facing the rotary blade 41, and is arranged to face the rotary blade 41. The conveyance roller pair m2 is arranged on the downstream side.

また、前記フィーダユニットFd内におけるカッタユニットCuより下流側に、用紙Pに弛みを形成するための弛み形成部Aruが設定され、該弛み形成部Aruに、用紙Pに形成された弛みを検出する弛み検出用の媒体検出部としての第1の弛みセンサs5が配設され、該第1の弛みセンサs5より下流側に、カッタユニットCuから排出された用紙Pの後端部を検出する媒体検出部としてのカッタアウトセンサs6が配設される。 Further, a slack forming section Aru for forming slack in the paper P is set downstream of the cutter unit Cu in the feeder unit Fd, and the slack formed in the paper P is detected in the slack forming section Aru. A first slack sensor s5 as a medium detecting section for detecting slack is disposed downstream of the first slack sensor s5. A cutout sensor s6 as a part is provided.

また、前記装置本体Bd内には、カットされた用紙Pを搬送する第3の搬送部材としての搬送ローラ対m3が配設され、該搬送ローラ対m3より下流側に、用紙Pの前縁及び後縁を検出する媒体検出部としての第1の用紙端センサs7が配設され、該第1の用紙端センサs7より下流側に第4の搬送部材としての搬送ローラ対m4が配設され、該搬送ローラ対m4より下流側に、用紙Pの前縁及び後縁を検出する媒体検出部としての第2の用紙端センサs8が配設され、該第2の用紙端センサs8より下流側に、用紙Pの有無並びに用紙Pの前端部及び後端部を検出する媒体検出部としてのレバーセンサs9が配設され、該レバーセンサs9より下流側に第5の搬送部材としての搬送ローラ対m5が配設され、該搬送ローラ対m5より下流側に、ラベルの前縁を検出する透過型の媒体検出部としてのラベルセンサs10が配設され、該ラベルセンサs10より下流側に、ブラックマークBmを検出するブラックマークセンサから成る反射型の媒体検出部としての反射センサs11が配設され、該反射センサs11より下流側に前記二次転写部が形成され、該二次転写部より下流側に、定着器31に供給される用紙Pの弛みを検出する弛み検出用の媒体検出部としての第2の弛みセンサs12が配設され、該第2の弛みセンサs12より下流側に前記定着器31が配設され、該定着器31より下流側に、定着器31から排出された用紙Pを検出する媒体検出部としての定着器出口センサs13が配設され、該定着器出口センサs13より下流側に、用紙Pを排出口houを介して装置本体Bd外に排出する第6の搬送部材としての排出ローラ対m6が配設され、該排出ローラ対m6より下流側に、装置本体Bd外に排出される用紙Pを検出する排出用の媒体検出部としての排出センサs14が配設される。 Further, a pair of conveyance rollers m3 as a third conveyance member for conveying the cut paper P is disposed in the apparatus main body Bd, and the front edge of the paper P and A first paper edge sensor s7 as a medium detection unit for detecting a trailing edge is disposed, and a pair of conveyance rollers m4 as a fourth conveyance member is disposed downstream of the first paper edge sensor s7, A second paper edge sensor s8 as a medium detection unit that detects the leading edge and trailing edge of the paper P is disposed downstream of the pair of transport rollers m4, and downstream of the second paper edge sensor s8. , a lever sensor s9 as a medium detection unit that detects the presence or absence of paper P and the front end and rear end of paper P is disposed, and a pair of transport rollers m5 as a fifth transport member is disposed downstream of the lever sensor s9. A label sensor s10 as a transmission-type medium detection unit for detecting the leading edge of the label is provided downstream of the pair of transport rollers m5, and a black mark Bm is provided downstream of the label sensor s10. A reflective sensor s11 is provided as a reflective medium detection unit consisting of a black mark sensor that detects a black mark sensor, and the secondary transfer portion is formed downstream of the reflective sensor s11. , a second slack sensor s12 as a medium detection unit for slack detection that detects the slack of the paper P supplied to the fixing device 31 is provided, and the fixing device 31 is disposed downstream of the second slack sensor s12. A fuser outlet sensor s13 as a medium detection unit for detecting the paper P discharged from the fuser 31 is disposed downstream from the fuser outlet sensor s13. A pair of ejection rollers m6 as a sixth conveyance member for ejecting the paper P out of the apparatus main body Bd through the ejection port hou is disposed downstream of the pair of ejection rollers m6 and ejected outside the apparatus main body Bd. A discharge sensor s14 is provided as a medium detection unit for discharge that detects the paper P being discharged.

さらに、装置本体Bdには、フィーダモータM4とは独立に駆動され、搬送ローラ対m1~m5及び排出ローラ対m6を回転させ、印刷ユニット20内において用紙Pを搬送する搬送用の駆動部としての搬送モータM7が配設される。 Further, the apparatus main body Bd includes a transport drive unit that is driven independently of the feeder motor M4, rotates the transport roller pairs m1 to m5 and the ejection roller pair m6, and transports the paper P within the printing unit 20. A transport motor M7 is provided.

該搬送モータM7が駆動されると、フィーダユニットFdから印刷ユニット20に供給された用紙Pが搬送ローラ対m3~m5によって用紙搬送路Rt1を搬送される。 When the transport motor M7 is driven, the paper P supplied from the feeder unit Fd to the printing unit 20 is transported along the paper transport path Rt1 by the transport roller pairs m3 to m5.

一方、ドラムモータM1が駆動されると、各画像形成ユニット12Y、12M、12C、12Bk、12Wにおいて、感光体ドラム13が回転させられ、感光体ドラム13の表面が、帯電装置としての図示されない帯電ローラによって一様に帯電させられ、前記LEDヘッドHdによって露光され、感光体ドラム13の表面に潜像としての静電潜像が形成される。そして、現像剤収容部としての図示されないトナーカートリッジ内の現像剤としてのトナーが、現像剤担持体としての図示されない現像ローラに供給され、前記静電潜像に付着させられ、感光体ドラム13の表面に各色のトナー像が形成される。 On the other hand, when the drum motor M1 is driven, the photoreceptor drum 13 in each image forming unit 12Y, 12M, 12C, 12Bk, and 12W is rotated, and the surface of the photoreceptor drum 13 is charged by a charging device (not shown). It is uniformly charged by a roller and exposed by the LED head Hd, so that an electrostatic latent image is formed on the surface of the photoreceptor drum 13. Then, toner as a developer in a toner cartridge (not shown) serving as a developer storage section is supplied to a developing roller (not shown) serving as a developer carrier, and is attached to the electrostatic latent image on the photoreceptor drum 13. Toner images of each color are formed on the surface.

続いて、転写モータM2が駆動されると、転写ベルト21が走行させられ、前記一次転写部において、各感光体ドラム13上の各色のトナー像が一次転写ローラ22によって転写ベルト21に順次重ねて転写されてカラーのトナー像が形成される。 Subsequently, when the transfer motor M2 is driven, the transfer belt 21 is caused to run, and in the primary transfer section, the toner images of each color on each photoreceptor drum 13 are sequentially superimposed on the transfer belt 21 by the primary transfer roller 22. A color toner image is formed by the transfer.

そして、印刷ユニット20に送られた用紙Pは、搬送ローラ対m3~m5によって搬送されて二次転写部に送られ、該二次転写部において、転写ベルト21上のカラーのトナー像が用紙Pの各ラベルに転写される。 Then, the paper P sent to the printing unit 20 is transported by transport roller pairs m3 to m5 and sent to a secondary transfer section, where the color toner image on the transfer belt 21 is transferred to the paper P. is transferred to each label.

そのために、ラベルセンサs10によってラベルのエッジが検出された用紙P、又は反射センサs11によってブラックマークBmのエッジが検出された用紙Pと、転写ベルト21上のカラーのトナー像とが同時に二次転写部に到達するように、搬送モータM7による用紙Pの搬送速度が調整される。 Therefore, the paper P on which the label edge is detected by the label sensor s10 or the paper P on which the edge of the black mark Bm is detected by the reflection sensor s11 and the color toner image on the transfer belt 21 are simultaneously transferred to secondary transfer. The conveyance speed of the paper P by the conveyance motor M7 is adjusted so that the sheet P reaches the same position.

そして、ラベルにトナー像が転写された用紙Pは定着器31に送られ、該定着器31において、各ラベル上のカラーのトナー像が、加熱ベルト32によって加熱され、加圧ベルト33によって加圧されてラベルに定着させられる。このようにして、ラベルにカラーの画像が形成される。 Then, the paper P on which the toner images have been transferred to the labels is sent to the fixing device 31, where the color toner images on each label are heated by the heating belt 32 and pressed by the pressure belt 33. and fixed on the label. In this way, a color image is formed on the label.

ラベルにカラーの画像が形成された用紙Pは、用紙搬送路Rt1に沿って搬送され、排出ローラ対m6によって排出口houから装置本体Bd外に排出される。 The paper P on which the color image is formed on the label is conveyed along the paper conveyance path Rt1, and is discharged out of the apparatus main body Bd from the discharge port hou by a pair of discharge rollers m6.

次に、反射センサs11によってブラックマークBmのエッジが検出される状態について説明する。 Next, a state in which the edge of the black mark Bm is detected by the reflection sensor s11 will be described.

図3は本発明の実施の形態における反射センサによってブラックマークのエッジが検出される状態を説明するための図、図4は本発明の実施の形態における用紙の前端部が反射センサ上を通過する際に影が形成された状態を示す図、図5は本発明の実施の形態における用紙の後端部が反射センサ上を通過する際に影が形成された状態を示す図、図6は参考例における用紙が反射センサ上を通過したときの読み値の推移を示す図である。なお、図6において、横軸に時間を、縦軸に読み値Tを採ってある。 FIG. 3 is a diagram for explaining the state in which the edge of a black mark is detected by the reflective sensor in the embodiment of the present invention, and FIG. 4 is a diagram for explaining the state in which the front edge of the paper passes over the reflective sensor in the embodiment of the present invention. FIG. 5 is a diagram showing a state in which a shadow is formed when the trailing edge of a sheet passes over a reflection sensor in an embodiment of the present invention, and FIG. 6 is a diagram for reference. FIG. 7 is a diagram showing the transition of reading values when a sheet of paper passes over a reflective sensor in an example. In FIG. 6, the horizontal axis represents time, and the vertical axis represents reading value T.

図において、Pは用紙、Bmはブラックマーク、Ar1はブラックマークBmが形成された領域であるブラックマーク部、Ar2はブラックマークBm以外の領域である白紙部、s11は反射センサ、47は光を発生させる発光部、48は用紙P等において反射された光を受ける受光部、49は反射板である。該反射板49は、用紙Pが反射センサs11上(用紙搬送路Rt1上)にないときに光を反射するための白板であり、反射板49と反射センサs11との間を用紙Pが矢印A方向に搬送される。 In the figure, P is paper, Bm is a black mark, Ar1 is a black mark area where the black mark Bm is formed, Ar2 is a blank paper area that is an area other than the black mark Bm, s11 is a reflective sensor, and 47 is a light sensor. A light emitting section 48 generates light, a light receiving section 48 receives light reflected from the paper P, etc., and a reflecting plate 49. The reflective plate 49 is a white plate for reflecting light when the paper P is not on the reflective sensor s11 (on the paper transport path Rt1), and the paper P moves along the arrow A between the reflective plate 49 and the reflective sensor s11. conveyed in the direction.

また、図6において、Twhは受光部48が白紙部Ar2から受ける光量の検出値としての読み値Tである白紙部読み値、Trは受光部48が反射板49から受ける光量の読み値Tである反射板読み値、Tbmは受光部48がブラックマーク部Ar1から受ける光量の読み値Tであるブラックマーク部読み値である。 In addition, in FIG. 6, Twh is a reading value T as a detected value of the amount of light that the light receiving section 48 receives from the blank section Ar2, and Tr is a reading value T of the amount of light that the light receiving section 48 receives from the reflecting plate 49. A certain reflector reading value Tbm is a black mark part reading value which is a reading value T of the amount of light that the light receiving section 48 receives from the black mark part Ar1.

受光部48が受ける光量は、ブラックマーク部Ar1で少なく、白紙部Ar2及び反射板49で多くなり、後述される変換部としてのAD変換機61(図1)によって用紙Pに処理することが可能な読み値Tに変換される。該読み値Tは、受光部48が受ける光量が少ないほど小さく、光量が多いほど大きくなる。 The amount of light received by the light receiving section 48 is small at the black mark section Ar1, and large at the blank section Ar2 and the reflection plate 49, and can be processed into paper P by an AD converter 61 (FIG. 1) as a converting section, which will be described later. It is converted into a reading value T. The reading value T becomes smaller as the amount of light received by the light receiving section 48 is smaller, and becomes larger as the amount of light is larger.

また、反射センサs11の処理回路には、読み値Tと連動してブラックマークBmを検出したかどうかを判断する検出判定部としてのコンパレータ62が配設され、読み値Tが、コンパレータ62に設定された閾値αより大きい場合は、ブラックマークBmを検出しなかったことを表すオフ信号が、閾値α以下である場合は、ブラックマークBmを検出したことを表すオン信号が出力される。 Further, the processing circuit of the reflection sensor s11 is provided with a comparator 62 as a detection determination unit that determines whether or not the black mark Bm has been detected in conjunction with the reading value T. If it is larger than the threshold value α, an off signal indicating that the black mark Bm has not been detected is output, and if it is less than or equal to the threshold value α, an on signal indicating that the black mark Bm has been detected is output.

ところで、図4に示されるように、用紙Pが反射センサs11上を通過する際に、発光部47が発光した光が用紙Pの前端部に当たったとき、又は図5に示されるように、用紙Pが反射センサs11上を通過する際に、発光部47が発光した光が用紙Pの後端部に当たったときに、反射板49上に影50が形成されることがあり、その場合、前記閾値αが白紙部読み値Twhとブラックマーク部読み値Tbmとの中間点に設定され、
α=(Twh+Tbm)/2
にされていると、影50で反射された光の光量が少なくなり、読み値Tが閾値α以下になると、影50の部分がブラックマーク部Ar1として誤って検出されてしまう。
By the way, as shown in FIG. 4, when the light emitted by the light emitting section 47 hits the front end of the paper P when the paper P passes over the reflection sensor s11, or as shown in FIG. When the light emitted by the light emitting unit 47 hits the rear end of the paper P when the paper P passes over the reflection sensor s11, a shadow 50 may be formed on the reflection plate 49. , the threshold α is set at the midpoint between the blank section reading value Twh and the black mark section reading value Tbm,
α=(Twh+Tbm)/2
, the amount of light reflected by the shadow 50 decreases, and when the reading value T becomes less than the threshold value α, the portion of the shadow 50 is erroneously detected as the black mark portion Ar1.

その結果、用紙Pの前端部側で検出された影50を基準にして印字位置が決定されてしまい、印字位置がずれた画像が形成されてしまう。 As a result, the printing position is determined based on the shadow 50 detected on the front edge side of the paper P, and an image with a shifted printing position is formed.

また、用紙Pの欠損を検出するために各ブラックマークBmの間隔が正しいかどうかを確認しながら印刷を行うプリンタ10においては、影50の部分がブラックマーク部Ar1として誤って検出されると、ブラックマークBmの間隔が正しくないと判断され、用紙Pの欠損を検出したと判断されてしまう。 Furthermore, in the printer 10 that performs printing while checking whether the intervals between the black marks Bm are correct in order to detect defects in the paper P, if the shadow 50 is erroneously detected as the black mark part Ar1, It is determined that the interval between the black marks Bm is incorrect, and it is determined that a defect in the paper P has been detected.

そこで、本実施の形態においては、ロール紙ホルダRh(図2)においてロール紙14を交換した場合、反射センサs11が用紙PのブラックマークBmを正しく検出することができるように、用紙Pを用いて反射センサs11のキャリブレーションを行うようにしている。 Therefore, in this embodiment, when the roll paper 14 is replaced in the roll paper holder Rh (FIG. 2), the paper P is used so that the reflective sensor s11 can correctly detect the black mark Bm on the paper P. Then, the reflection sensor s11 is calibrated.

次に、反射センサs11のキャリブレーションを行う方法について説明する。 Next, a method for calibrating the reflection sensor s11 will be explained.

図7は本発明の実施の形態における反射センサのキャリブレーションを行う方法を説明するための図である。なお、図において、横軸に時間を、縦軸に読み値Tを採ってある。 FIG. 7 is a diagram for explaining a method for calibrating a reflection sensor according to an embodiment of the present invention. In the figure, time is plotted on the horizontal axis and reading value T is plotted on the vertical axis.

図において、P1は、反射センサs11(図3)のキャリブレーションを行うために2ページ分の長さにカットされた1枚目の用紙、P2は2ページ分の長さにカットされた2枚目の用紙である。 In the figure, P1 is the first sheet of paper cut to the length of two pages in order to calibrate the reflection sensor s11 (FIG. 3), and P2 is the second sheet of paper cut to the length of two pages. It is the paper of the eyes.

まず、1枚目の用紙P1の位置ps1において、反射センサs11の白紙部読み値Twhが、白紙部Ar2を検出したときの理論値である基準値TWになるように発光部47の発光量が調整される。この発光量の調整は、反射センサs11が経時劣化した場合等でも、安定した読み値Tを得るために行われる。なお、前記基準値TWは反射センサs11のキャリブレーションを行うための第2の検出値として使用される。 First, at the position ps1 of the first sheet P1, the amount of light emitted by the light emitting unit 47 is adjusted so that the reading value Twh of the blank section of the reflection sensor s11 becomes the reference value TW, which is the theoretical value when detecting the blank section Ar2. be adjusted. This adjustment of the amount of light emission is performed in order to obtain a stable reading T even if the reflection sensor s11 deteriorates over time. Note that the reference value TW is used as a second detected value for calibrating the reflection sensor s11.

次に、1枚目の用紙P1の位置ps2において、ブラックマーク部Ar1の前縁から後縁までの読み値Tが測定され、そのうちの最大の読み値Tがブラックマーク最大読み値TBmaxとして、かつ、第1の受光量に基づく第1の検出値として後述される第2の記憶部としてのRAM54(図1)に記録される。 Next, at the position ps2 of the first sheet P1, the reading value T from the leading edge to the trailing edge of the black mark portion Ar1 is measured, and the maximum reading value T among them is set as the black mark maximum reading value TBmax, and , is recorded in the RAM 54 (FIG. 1) as a second storage unit, which will be described later, as a first detected value based on the first amount of received light.

また、このとき、基準値TW及びブラックマーク最大読み値TBmaxに基づいて第1の閾値としての仮閾値βが算出される。 Further, at this time, a temporary threshold value β as a first threshold value is calculated based on the reference value TW and the black mark maximum reading value TBmax.

続いて、1枚目の用紙P1の位置ps3において、影50を含む1枚目の用紙P1の第1の端部である後端部の前縁から後縁までの読み値Tが測定され、そのうちの最小の読み値Tが後端最小読み値TLminとして、かつ、後端部用の第3の受光量に基づく第3の検出値としてRAM54に記録される。 Subsequently, at position ps3 of the first sheet of paper P1, a reading value T from the leading edge to the trailing edge of the trailing edge, which is the first end of the first sheet of paper P1 including the shadow 50, is measured; The minimum reading value T among them is recorded in the RAM 54 as the trailing end minimum reading value TLmin and as the third detected value based on the third amount of received light for the trailing end.

次に、2枚目の用紙P2の位置ps4において、影50を含む2枚目の用紙P2の第2の端部である前端部の前縁から後縁までの読み値Tが測定され、そのうちの最小の読み値Tが前端最小読み値TPminとして、かつ、前端部用の第3の受光量に基づく第4の検出値としてRAM54に記録される。 Next, at position ps4 of the second sheet of paper P2, a reading value T from the front edge to the trailing edge of the front edge, which is the second end of the second sheet of paper P2 including the shadow 50, is measured. The minimum reading value T is recorded in the RAM 54 as the front end minimum reading value TPmin and as the fourth detected value based on the third amount of received light for the front end.

また、このとき、基準値TW、仮閾値β、ブラックマーク最大読み値TBmax、後端最小読み値TLmin及び前端最小読み値TPminに基づいて仮閾値βが変更(修正)されて、第2の閾値としての閾値δが算出され、反射センサs11のコンパレータ62に設定される。 Also, at this time, the temporary threshold value β is changed (corrected) based on the reference value TW, the temporary threshold value β, the black mark maximum reading value TBmax, the trailing end minimum reading value TLmin, and the leading end minimum reading value TPmin, and the second threshold value A threshold value δ is calculated and set in the comparator 62 of the reflection sensor s11.

続いて、2枚目の用紙P2の位置ps5において、反射センサs11がブラックマークBmを正しく検出するかどうかのテストが行われ、2枚目の用紙P2の位置ps6において、反射センサs11が用紙Pの後端部の影50をブラックマークBmとして誤って検出することがないかどうかのテストが行われる。 Subsequently, at position ps5 of the second sheet of paper P2, a test is performed to see if the reflective sensor s11 correctly detects the black mark Bm, and at position ps6 of the second sheet of paper P2, the reflective sensor s11 detects the black mark Bm. A test is performed to see if the shadow 50 at the rear end is erroneously detected as a black mark Bm.

なお、本実施の形態においては、2枚目の用紙P2の位置ps4の直後の位置において、反射センサs11がブラックマークBmを正しく検出するかどうかのテストは行われない。これは、2枚目の用紙P2の位置ps4において、前端部の読み値Tが測定され、閾値δが算出され、コンパレータ62に設定された後、反射センサs11が安定するまでの時間を確保するためである。閾値δが算出され、コンパレータ62に設定された後の反射センサs11が安定するまでの時間が短い場合は、2枚目の用紙P2の位置ps4の直後の位置において反射センサs11がブラックマークBmを正しく検出するかどうかのテストを行うことができる。その場合、2枚目の用紙P2の長さを2ページ分から1ページ分に短縮することができる。 Note that in this embodiment, a test is not performed to determine whether the reflective sensor s11 correctly detects the black mark Bm at a position immediately after the position ps4 of the second sheet P2. This ensures the time required for the reflection sensor s11 to stabilize after the front edge reading T is measured at the position ps4 of the second sheet P2, the threshold value δ is calculated, and it is set in the comparator 62. It's for a reason. If the time required for the reflective sensor s11 to stabilize after the threshold value δ is calculated and set in the comparator 62 is short, the reflective sensor s11 detects the black mark Bm at a position immediately after the position ps4 on the second sheet P2. You can test whether it is detected correctly. In that case, the length of the second sheet P2 can be shortened from two pages to one page.

また、本実施の形態においては、閾値δがコンパレータ62に設定された後に、反射センサs11のコンパレータ62が用紙P2の前端部の影50をブラックマークBmとして誤って検出することがないかどうかのテストが行われるようになっていないが、3枚目の用紙Pの前端部の影50の前端最小読み値に基づいて、影50をブラックマークBmとして誤って検出することがないかどうかのテストが行われるようにすることもできる。 Further, in the present embodiment, after the threshold value δ is set in the comparator 62, it is determined whether the comparator 62 of the reflection sensor s11 will not erroneously detect the shadow 50 at the front edge of the paper P2 as a black mark Bm. Although the test has not yet been conducted, this is a test to determine whether the shadow 50 is erroneously detected as a black mark Bm based on the front end minimum reading value of the shadow 50 at the front end of the third sheet P. It is also possible to arrange for the following to take place.

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

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

図において、10はプリンタ、51はプリンタ10の全体の制御を行う制御部、53はフラッシュメモリから成る第1の記憶部としてのフラッシュROM、54は揮発性メモリから成るRAM、56は操作パネル、s9はレバーセンサ、s11は反射センサ、HdはLEDヘッド、M4はフィーダモータ、M6はカットモータ、M7は搬送モータ、Cuはカッタユニットである。 In the figure, 10 is a printer, 51 is a control unit that controls the entire printer 10, 53 is a flash ROM consisting of a flash memory as a first storage unit, 54 is a RAM consisting of a volatile memory, 56 is an operation panel, s9 is a lever sensor, s11 is a reflection sensor, Hd is an LED head, M4 is a feeder motor, M6 is a cut motor, M7 is a conveyance motor, and Cu is a cutter unit.

前記制御部51は、図示されない演算装置としてのCPU、入出力ポート、タイマ等を備え、プリンタ10の全体の制御を行うとともに、フラッシュROM53に記録されたプログラム(ソフトウェア)、制御データ等に基づいて各種の処理を行う。 The control unit 51 includes a CPU (not shown) as an arithmetic unit, an input/output port, a timer, etc., and performs overall control of the printer 10, and also controls the printer 10 based on the program (software), control data, etc. recorded in the flash ROM 53. Performs various processing.

前記RAM54には、ホストコンピュータから受信した印刷データが記録されるほかに、印刷データを編集し、展開することによって生成されたビットマップデータが記録される。また、RAM54には、プログラムの実行に伴って生成される各種情報が一時的に記録される。なお、RAM54は、前記CPUが演算を行う際にワークエリアとして機能する。 In addition to recording print data received from the host computer, the RAM 54 also records bitmap data generated by editing and expanding the print data. Further, various information generated as the program is executed is temporarily recorded in the RAM 54. Note that the RAM 54 functions as a work area when the CPU performs calculations.

前記操作パネル56は、操作者がプリンタ10への指示を入力するためのスイッチ、キー等から成る操作部58、及びプリンタ10の状態を表示するためのLED(Light Emitting Diode)、LCD(Liquid Crystal Display)等から成る表示部59を備える。 The operation panel 56 includes an operation section 58 consisting of switches, keys, etc. for the operator to input instructions to the printer 10, and an LED (Light Emitting Diode) and an LCD (Liquid Crystal) for displaying the status of the printer 10. A display unit 59 is provided.

前記反射センサs11は、前記発光部47及び受光部48から成る検出部としてのセンサ部60、前記AD変換機61、コンパレータ62等を有する。 The reflection sensor s11 includes a sensor section 60 as a detection section including the light emitting section 47 and the light receiving section 48, the AD converter 61, a comparator 62, and the like.

前記制御部51は、印刷処理部Pr1、搬送処理部Pr2、パネル制御部Pr3、媒体位置管理部としての用紙位置管理部Pr4、キャリブレーション制御部Pr5、カット制御部Pr6、レバーセンサ制御部Pr7、反射センサ制御部Pr8等を備える。 The control section 51 includes a print processing section Pr1, a transport processing section Pr2, a panel control section Pr3, a paper position management section Pr4 as a medium position management section, a calibration control section Pr5, a cut control section Pr6, a lever sensor control section Pr7, It includes a reflection sensor control unit Pr8 and the like.

前記印刷処理部Pr1は、印刷処理を行い、前記印刷データに基づいてイメージデータを生成し、該イメージデータをLEDヘッドHdに送り、用紙Pの各ラベルに画像を形成する。 The print processing unit Pr1 performs print processing, generates image data based on the print data, sends the image data to the LED head Hd, and forms an image on each label of the paper P.

前記搬送処理部Pr2は、搬送処理を行い、搬送モータM7を駆動し、用紙搬送路Rt1に沿って用紙Pを搬送する。 The transport processing unit Pr2 performs transport processing, drives the transport motor M7, and transports the paper P along the paper transport path Rt1.

前記パネル制御部Pr3は、パネル制御処理を行い、操作者が操作部58を操作してプリンタ10に入力した指示を取り込んだり、表示部59に各種の画面を形成して、各種の事項を表示したりする。 The panel control unit Pr3 performs panel control processing, captures instructions input by the operator to the printer 10 by operating the operation unit 58, and forms various screens on the display unit 59 to display various items. I do things.

前記用紙位置管理部Pr4は、媒体位置管理処理としての用紙位置管理処理を行い、用紙搬送路Rt1における用紙Pの位置を管理する。 The paper position management unit Pr4 performs a paper position management process as a medium position management process, and manages the position of the paper P in the paper transport path Rt1.

前記キャリブレーション制御部Pr5は、キャリブレーション制御処理を行い、反射センサs11のキャリブレーションを行う。 The calibration control unit Pr5 performs a calibration control process and calibrates the reflection sensor s11.

前記カット制御部Pr6は、カット制御処理を行い、カッタユニットCuを駆動して用紙Pをカットする。 The cut control unit Pr6 performs cut control processing and drives the cutter unit Cu to cut the paper P.

前記レバーセンサ制御部Pr7は、レバーセンサ制御処理を行い、レバーセンサs9が用紙Pの有無並びに用紙Pの前端部及び後端部を検出するのを監視する。 The lever sensor control unit Pr7 performs lever sensor control processing and monitors whether the lever sensor s9 detects the presence or absence of the paper P and the front and rear ends of the paper P.

前記反射センサ制御部Pr8は、反射センサ制御処理を行い、反射センサs11に閾値δを設定したり、コンパレータ62を監視したりする。 The reflective sensor control unit Pr8 performs reflective sensor control processing, sets a threshold value δ for the reflective sensor s11, and monitors the comparator 62.

次に、プリンタ10において反射センサs11のキャリブレーションを行うときの制御部51の動作について説明する。 Next, the operation of the control unit 51 when calibrating the reflection sensor s11 in the printer 10 will be described.

図8は本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第1のフローチャート、図9は本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第2のフローチャート、図10は本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第3のフローチャート、図11は本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第4のフローチャート、図12は本発明の実施の形態における反射センサのキャリブレーションを行うときの制御部の動作を示す第5のフローチャートである。 FIG. 8 is a first flowchart showing the operation of the control unit when calibrating the reflective sensor according to the embodiment of the present invention, and FIG. 9 is a control when calibrating the reflective sensor according to the embodiment of the present invention. 10 is a third flowchart showing the operation of the control section when calibrating the reflection sensor in the embodiment of the present invention, and FIG. 11 is the third flowchart showing the operation of the control section in the embodiment of the present invention A fourth flowchart showing the operation of the control unit when calibrating the reflection sensor, and FIG. 12 is a fifth flowchart showing the operation of the control unit when calibrating the reflection sensor in the embodiment of the present invention. be.

まず、操作者が操作部58を操作し、表示部59に形成された設定画面においてブラックマークBmの間隔を入力し(ステップS1)、開始ボタンを押下すると、パネル制御部Pr3は、ブラックマークBmの間隔を読み込み、用紙位置管理部Pr4に送る。 First, when the operator operates the operation unit 58, inputs the interval between the black marks Bm on the setting screen formed on the display unit 59 (step S1), and presses the start button, the panel control unit Pr3 The interval is read and sent to the paper position management section Pr4.

また、キャリブレーション制御部Pr5は、閾値δを算出する際に使用される調整値colに初期値である1をセットする(ステップS2)。調整値colは、キャリブレーションが成功しなかった場合においてキャリブレーションのリトライを行うときに変更される。 Further, the calibration control unit Pr5 sets an initial value of 1 to an adjustment value col used when calculating the threshold value δ (step S2). The adjustment value col is changed when retrying the calibration when the calibration is not successful.

続いて、搬送処理部Pr2は、用紙位置管理部Pr4及びカット制御部Pr6と連携してフィーダユニットFdを動作させ、フィーダモータM4等を駆動し、用紙Pの搬送を開始し、カットモータM6及びカッタユニットCuを駆動し、ブラックマークBmの間隔に基づいて用紙Pを2ページ分の長さにカットし、カットした1枚目の用紙P1を印刷ユニット20に供給する(ステップS3)。また、搬送処理部Pr2は、搬送モータM7を駆動し、印刷ユニット20に供給された1枚目の用紙P1を搬送する。 Subsequently, the transport processing unit Pr2 operates the feeder unit Fd in cooperation with the paper position management unit Pr4 and the cut control unit Pr6, drives the feeder motor M4, etc., starts transporting the paper P, and operates the cut motor M6 and the cut control unit Pr6. The cutter unit Cu is driven to cut the paper P into the length of two pages based on the interval between the black marks Bm, and the cut first sheet P1 is supplied to the printing unit 20 (step S3). Further, the conveyance processing unit Pr2 drives the conveyance motor M7 to convey the first sheet P1 supplied to the printing unit 20.

次に、レバーセンサ制御部Pr7は、レバーセンサs9が1枚目の用紙P1の前端部を検出するのを待機し(ステップS4)、レバーセンサs9が1枚目の用紙P1の前端部を検出すると、用紙P1の前端部を検出したことを用紙位置管理部Pr4に通知する。 Next, the lever sensor control unit Pr7 waits for the lever sensor s9 to detect the front edge of the first sheet P1 (step S4), and the lever sensor s9 detects the front edge of the first sheet P1. Then, the paper position management unit Pr4 is notified that the front end of the paper P1 has been detected.

そして、搬送処理部Pr2は、1枚目の用紙P1の位置ps1(図7)が反射センサs11上に到達するまで1枚目の用紙P1を搬送し(ステップS5)、位置ps1が反射センサs11上に到達すると、1枚目の用紙P1の搬送を一旦停止する(ステップS6)。 Then, the conveyance processing unit Pr2 conveys the first sheet of paper P1 until the position ps1 (FIG. 7) of the first sheet of paper P1 reaches above the reflective sensor s11 (step S5), and the position ps1 reaches the reflective sensor s11. When reaching the top, the conveyance of the first sheet P1 is temporarily stopped (step S6).

このとき、搬送処理部Pr2は、位置ps1で1枚目の用紙P1の搬送を一旦停止したことをキャリブレーション制御部Pr5に通知する。該キャリブレーション制御部Pr5は、位置ps1における反射センサs11の読み値Tが基準値TWになるまで発光部47の発光量を調整する(ステップS7)。そして、キャリブレーション制御部Pr5が、位置ps1における発光量の調整が終了し、発光量の調整が終了したことを搬送処理部Pr2に通知すると、搬送処理部Pr2は、1枚目の用紙P1の搬送を再開し(ステップS8)、1枚目の用紙P1の位置ps2が反射センサs11上に到達するまで1枚目の用紙P1を搬送する(ステップS9)。 At this time, the conveyance processing unit Pr2 notifies the calibration control unit Pr5 that the conveyance of the first sheet P1 has been temporarily stopped at the position ps1. The calibration control unit Pr5 adjusts the amount of light emitted by the light emitting unit 47 until the reading value T of the reflection sensor s11 at the position ps1 becomes the reference value TW (step S7). Then, when the calibration control unit Pr5 completes the adjustment of the light emission amount at the position ps1 and notifies the transport processing unit Pr2 that the adjustment of the light emission amount has ended, the transport processing unit Pr2 Conveyance is restarted (step S8), and the first sheet P1 is conveyed until the position ps2 of the first sheet P1 reaches above the reflection sensor s11 (step S9).

1枚目の用紙P1の位置ps2が反射センサs11上に到達すると、用紙位置管理部Pr4は、位置ps2が反射センサs11上に到達したことをキャリブレーション制御部Pr5に通知する。該キャリブレーション制御部Pr5は、位置ps2が反射センサs11上を通過する間、ブラックマーク部Ar1の前縁から後縁までの読み値Tを測定し(ステップS10)、そのうちの最大の読み値Tをブラックマーク最大読み値TBmaxとしてRAM54に記録する(ステップS11)。 When the position ps2 of the first sheet P1 reaches the reflection sensor s11, the sheet position management unit Pr4 notifies the calibration control unit Pr5 that the position ps2 has reached the reflection sensor s11. The calibration control unit Pr5 measures reading values T from the leading edge to the trailing edge of the black mark portion Ar1 while the position ps2 passes over the reflection sensor s11 (step S10), and calculates the maximum reading value T among them. is recorded in the RAM 54 as the maximum black mark reading value TBmax (step S11).

次に、キャリブレーション制御部Pr5は、RAM54から基準値TW及びブラックマーク最大読み値TBmaxを読み出し、基準値TWとブラックマーク最大読み値TBmaxとの中間値を仮閾値β
β=(TW+TBmax)/2
として決定する(ステップS12)。
Next, the calibration control unit Pr5 reads the reference value TW and the black mark maximum reading value TBmax from the RAM 54, and sets the intermediate value between the reference value TW and the black mark maximum reading value TBmax to a temporary threshold value β.
β=(TW+TBmax)/2
(Step S12).

続いて、レバーセンサ制御部Pr7はレバーセンサs9が1枚目の用紙P1の後端部を検出するのを待機する(ステップS13)。レバーセンサs9が1枚目の用紙P1の後端部を検出すると、レバーセンサ制御部Pr7は、レバーセンサs9が1枚目の用紙P1の後端部を検出したことを用紙位置管理部Pr4に通知する。 Subsequently, the lever sensor control unit Pr7 waits for the lever sensor s9 to detect the rear end of the first sheet P1 (step S13). When the lever sensor s9 detects the trailing edge of the first sheet of paper P1, the lever sensor control unit Pr7 notifies the paper position management unit Pr4 that the lever sensor s9 has detected the trailing edge of the first sheet of paper P1. Notice.

また、搬送処理部Pr2は、1枚目の用紙P1の位置ps3が反射センサs11上に到達するまで1枚目の用紙P1を搬送する(ステップS14)。 Further, the transport processing unit Pr2 transports the first sheet P1 until the position ps3 of the first sheet P1 reaches above the reflection sensor s11 (step S14).

そして、1枚目の用紙P1の位置ps3が反射センサs11上に到達すると、用紙位置管理部Pr4は、位置ps3が反射センサs11上に到達したことをキャリブレーション制御部Pr5に通知する。該キャリブレーション制御部Pr5は、位置ps3が反射センサs11上を通過する間、1枚目の用紙P1の後端部の前縁から後縁までの読み値Tを測定し(ステップS15)、そのうちの最小の読み値Tを後端最小読み値TLminとしてRAM54に記録する(ステップS16)。 When the position ps3 of the first sheet P1 reaches the reflection sensor s11, the sheet position management unit Pr4 notifies the calibration control unit Pr5 that the position ps3 has reached the reflection sensor s11. The calibration control unit Pr5 measures the reading value T from the leading edge to the trailing edge of the trailing edge of the first sheet P1 while the position ps3 passes over the reflection sensor s11 (step S15), and The minimum reading value T is recorded in the RAM 54 as the trailing end minimum reading value TLmin (step S16).

続いて、搬送処理部Pr2は、用紙位置管理部Pr4及びカット制御部Pr6と連携してフィーダユニットFdを動作させ、フィーダモータM4等を駆動して用紙Pを搬送し、カットモータM6及びカッタユニットCuを駆動し、ブラックマークBmの間隔に基づいて2ページ分の長さにカットした2枚目の用紙P2を印刷ユニット20に供給する(ステップS17)。また、搬送処理部Pr2は、搬送モータM7を駆動し、2枚目の用紙P2を搬送する。 Next, the transport processing unit Pr2 operates the feeder unit Fd in cooperation with the paper position management unit Pr4 and the cut control unit Pr6, drives the feeder motor M4, etc. to transport the paper P, and operates the cut motor M6 and the cutter unit. The CPU is driven to supply the second sheet P2, which has been cut to a length of two pages based on the interval between the black marks Bm, to the printing unit 20 (step S17). Further, the conveyance processing unit Pr2 drives the conveyance motor M7 to convey the second sheet of paper P2.

次に、レバーセンサ制御部Pr7は、レバーセンサs9が2枚目の用紙P2の前端部を検出するのを待機し(ステップS18)、レバーセンサs9が2枚目の用紙P2の前端部を検出すると、用紙P2の前端部を検出したことを用紙位置管理部Pr4に通知する。 Next, the lever sensor control unit Pr7 waits for the lever sensor s9 to detect the front edge of the second sheet P2 (step S18), and the lever sensor s9 detects the front edge of the second sheet P2. Then, the paper position management unit Pr4 is notified that the front end of the paper P2 has been detected.

また、搬送処理部Pr2は、2枚目の用紙P2の位置ps4が反射センサs11上に到達するまで2枚目の用紙P2を搬送する(ステップS19)。 Further, the transport processing unit Pr2 transports the second sheet P2 until the position ps4 of the second sheet P2 reaches above the reflection sensor s11 (step S19).

そして、2枚目の用紙P2の位置ps4が反射センサs11上に到達すると、用紙位置管理部Pr4は、位置ps4が反射センサs11上に到達したことをキャリブレーション制御部Pr5に通知する。該キャリブレーション制御部Pr5は、位置ps4が反射センサs11上を通過する間、2枚目の用紙P2の前端部の前縁から後縁までの読み値Tを測定し(ステップS20)、そのうちの最小の読み値Tを前端最小読み値TPminとしてRAM54に記録する(ステップS21)。 Then, when the position ps4 of the second sheet P2 reaches the reflection sensor s11, the sheet position management unit Pr4 notifies the calibration control unit Pr5 that the position ps4 has reached the reflection sensor s11. While the position ps4 passes over the reflective sensor s11, the calibration control unit Pr5 measures the reading value T from the leading edge to the trailing edge of the leading edge of the second sheet P2 (step S20), and The minimum reading value T is recorded in the RAM 54 as the front end minimum reading value TPmin (step S21).

次に、キャリブレーション制御部Pr5は、閾値決定処理を行い(ステップS22)、閾値δを算出し、決定する。 Next, the calibration control unit Pr5 performs threshold value determination processing (step S22), calculates and determines the threshold value δ.

そして、キャリブレーション制御部Pr5は、閾値決定処理において、閾値δの決定が成功したかどうかを判断し(ステップS23)、閾値δの決定が成功した場合、閾値δを反射センサ制御部Pr8に送り、該反射センサ制御部Pr8は、閾値δを反射センサs11のコンパレータ62に設定する(ステップS24)。閾値δの決定が失敗した(成功しなかった)場合、反射センサ制御部Pr8は閾値決定エラーをRAM54に記録する(ステップS25)。 Then, in the threshold value determination process, the calibration control unit Pr5 determines whether or not the threshold value δ has been successfully determined (step S23), and if the threshold value δ has been successfully determined, the calibration control unit Pr5 sends the threshold value δ to the reflection sensor control unit Pr8. , the reflective sensor control unit Pr8 sets the threshold value δ to the comparator 62 of the reflective sensor s11 (step S24). If the determination of the threshold value δ fails (does not succeed), the reflection sensor control unit Pr8 records the threshold value determination error in the RAM 54 (step S25).

次に、搬送処理部Pr2及び用紙位置管理部Pr4は、2枚目の用紙P2の位置ps5が反射センサs11上に到達し、通過するまで用紙P2を搬送し、その間、反射センサ制御部Pr8は反射センサs11のコンパレータ62を監視する(ステップS26)。 Next, the conveyance processing unit Pr2 and the paper position management unit Pr4 convey the paper P2 until the position ps5 of the second sheet P2 reaches and passes over the reflection sensor s11, and during this time, the reflection sensor control unit Pr8 The comparator 62 of the reflection sensor s11 is monitored (step S26).

そして、前記反射センサ制御部Pr8は、コンパレータ62からオン信号が出力されたかどうかによって、反射センサs11がブラックマークBmを正しく検出したかどうかを判断する(ステップS27)。 Then, the reflective sensor control unit Pr8 determines whether the reflective sensor s11 has correctly detected the black mark Bm based on whether the ON signal is output from the comparator 62 (step S27).

コンパレータ62からオン信号が出力されず、反射センサs11がブラックマークBmを正しく検出しなかった場合、反射センサ制御部Pr8は、ブラックマーク検出エラーをRAM54に記録する(ステップS28)とともに、2枚目の用紙P2の位置ps5において反射センサs11のコンパレータ62が正しくオン・オフしなかったことをキャリブレーション制御部Pr5に通知する。 If the ON signal is not output from the comparator 62 and the reflective sensor s11 does not correctly detect the black mark Bm, the reflective sensor control unit Pr8 records the black mark detection error in the RAM 54 (step S28), and The calibration control unit Pr5 is notified that the comparator 62 of the reflection sensor s11 was not turned on and off correctly at the position ps5 of the paper P2.

一方、コンパレータ62からオン信号が出力され、反射センサs11がブラックマークBmを正しく検出した場合、反射センサ制御部Pr8は、2枚目の用紙P2の位置ps5で反射センサs11のコンパレータ62が正しくオン・オフしたことをキャリブレーション制御部Pr5に通知する。 On the other hand, when the on signal is output from the comparator 62 and the reflective sensor s11 correctly detects the black mark Bm, the reflective sensor control unit Pr8 correctly turns on the comparator 62 of the reflective sensor s11 at the position ps5 of the second sheet P2. - Notify the calibration control unit Pr5 that it has been turned off.

また、搬送処理部Pr2及び用紙位置管理部Pr4は、2枚目の用紙P2の位置ps6が反射センサs11上に到達し、通過するまで用紙P2を搬送し、その間、反射センサ制御部Pr8は反射センサs11のコンパレータ62を監視する(ステップS29)。 Further, the transport processing unit Pr2 and the paper position management unit Pr4 transport the paper P2 until the position ps6 of the second paper P2 reaches and passes the reflection sensor s11, and during this time, the reflection sensor control unit Pr8 controls the reflection sensor s11. The comparator 62 of the sensor s11 is monitored (step S29).

そして、前記反射センサ制御部Pr8は、コンパレータ62からオン信号が出力されたかどうかによって、反射センサs11が影50を検出したかどうかを判断する(ステップS30)。 Then, the reflective sensor control unit Pr8 determines whether the reflective sensor s11 has detected the shadow 50, depending on whether the ON signal is output from the comparator 62 (step S30).

コンパレータ62からオン信号が出力され、反射センサs11が影50を検出した場合、反射センサ制御部Pr8は、影検出エラーをRAM54に記録する(ステップS31)とともに、2枚目の用紙P2の位置ps6において反射センサs11のコンパレータ62が正しくオン・オフしなかったことをキャリブレーション制御部Pr5に通知する。 When the on signal is output from the comparator 62 and the reflection sensor s11 detects the shadow 50, the reflection sensor control unit Pr8 records the shadow detection error in the RAM 54 (step S31), and also records the position ps6 of the second sheet P2. In this step, the calibration control unit Pr5 is notified that the comparator 62 of the reflection sensor s11 has not turned on and off correctly.

一方、コンパレータ62からオフ信号が出力され、反射センサs11が影50を検出しなかった場合、反射センサ制御部Pr8は、2枚目の用紙P2の位置ps6において反射センサs11のコンパレータ62が正しくオン・オフしたことをキャリブレーション制御部Pr5に通知する。 On the other hand, when the off signal is output from the comparator 62 and the reflection sensor s11 does not detect the shadow 50, the reflection sensor control unit Pr8 correctly turns on the comparator 62 of the reflection sensor s11 at the position ps6 of the second sheet P2. - Notify the calibration control unit Pr5 that it has been turned off.

そして、キャリブレーション制御部Pr5は、反射センサs11のキャリブレーションが成功したことをRAM54に記録する(ステップS32)。 Then, the calibration control unit Pr5 records in the RAM 54 that the calibration of the reflection sensor s11 has been successful (step S32).

次に、搬送処理部Pr2は、1枚目の用紙P1及び2枚目の用紙P2を装置本体Bd外に排出する(ステップS33)。 Next, the transport processing unit Pr2 discharges the first sheet P1 and the second sheet P2 out of the apparatus main body Bd (step S33).

そして、キャリブレーション制御部Pr5は、RAM54を参照し、反射センサs11のキャリブレーションが成功したかどうかを判断する(ステップS34)。反射センサs11のキャリブレーションが成功した場合、パネル制御部Pr3は、反射センサs11のキャリブレーションが成功した旨を表示部59に表示し(ステップS35)、処理を終了する。 Then, the calibration control unit Pr5 refers to the RAM 54 and determines whether the calibration of the reflection sensor s11 has been successful (step S34). If the calibration of the reflective sensor s11 is successful, the panel control unit Pr3 displays on the display unit 59 that the calibration of the reflective sensor s11 has been successful (step S35), and ends the process.

一方、反射センサs11のキャリブレーションが失敗した(成功しなかった)場合、キャリブレーション制御部Pr5は、2回のリトライを行ったかどうかを判断する(ステップS36)。2回のリトライを行った場合、パネル制御部Pr3は反射センサs11のキャリブレーションが失敗した旨を表示部59に表示する(ステップS37)。なお、2回のリトライを行ってもキャリブレーションが失敗した場合は、反射センサs11の異常、ブラックマークBmの印字が薄い等の用紙Pの異常等が発生していることが考えられるので、異常の発生について操作者に知らせるためのメッセージを表示部59に表示することができる。 On the other hand, if the calibration of the reflection sensor s11 fails (is not successful), the calibration control unit Pr5 determines whether two retries have been performed (step S36). If two retries have been performed, the panel control unit Pr3 displays on the display unit 59 that the calibration of the reflection sensor s11 has failed (step S37). If the calibration fails even after retrying twice, it is possible that there is an abnormality in the reflective sensor s11 or an abnormality in the paper P such as the black mark Bm being printed too thin. A message can be displayed on the display unit 59 to notify the operator of the occurrence of the error.

2回のリトライを行わなかった場合、キャリブレーション制御部Pr5は、RAM54を参照し、発生したエラーの種別を判定する(ステップS38)。 If two retries are not performed, the calibration control unit Pr5 refers to the RAM 54 and determines the type of error that has occurred (step S38).

そのために、キャリブレーション制御部Pr5は、発生したエラーが閾値決定エラーであるかどうかを判断し(ステップS39)、発生したエラーが閾値決定エラーである場合、キャリブレーションのリトライを行い(ステップS40)、発生したエラーが閾値決定エラーでない場合、発生したエラーがブラックマーク検出エラーであるかどうかを判断する(ステップS41)。 To this end, the calibration control unit Pr5 determines whether the error that has occurred is a threshold determination error (step S39), and if the error that has occurred is a threshold determination error, retries the calibration (step S40). If the error that has occurred is not a threshold determination error, it is determined whether the error that has occurred is a black mark detection error (step S41).

発生したエラーがブラックマーク検出エラーである場合、キャリブレーション制御部Pr5は、閾値δを算出するための調整値colに制御値としての0.2を加算してキャリブレーションのリトライを行う(ステップS42)。また、発生したエラーがブラックマーク検出エラーでない場合、すなわち、発生したエラーが影検出エラーである場合、キャリブレーション制御部Pr5は、調整値colから制御値としての0.2を減算してキャリブレーションのリトライを行う(ステップS43)。 If the error that has occurred is a black mark detection error, the calibration control unit Pr5 adds 0.2 as a control value to the adjustment value col for calculating the threshold value δ, and retries the calibration (step S42). ). Further, if the error that has occurred is not a black mark detection error, that is, if the error that has occurred is a shadow detection error, the calibration control unit Pr5 subtracts 0.2 as a control value from the adjustment value col and performs calibration. A retry is performed (step S43).

前記調整値colは、閾値決定処理において、算出された閾値δを調整するためのものであり、前述されたように、ブラックマーク検出エラーが発生すると、調整値colに0.2が加算される。例えば、リトライが1回目の場合、調整値colは、初期値である1に0.2が加算され、1.2になる。すなわち、閾値δが20〔%〕大きくされるので、反射センサs11によるブラックマーク部Ar1の読み値Tが大きくても、閾値δ以下であれば、ブラックマークBmが検出される。 The adjustment value col is for adjusting the calculated threshold value δ in the threshold value determination process, and as described above, when a black mark detection error occurs, 0.2 is added to the adjustment value col. . For example, when the retry is the first time, the adjustment value col is 1.2 by adding 0.2 to the initial value 1. That is, since the threshold value δ is increased by 20%, even if the read value T of the black mark portion Ar1 by the reflective sensor s11 is large, if it is equal to or less than the threshold value δ, the black mark Bm is detected.

これに対して、影検出エラーが発生すると、調整値colから0.2が減算される。例えば、リトライが1回目の場合、調整値colは、初期値である1から0.2が減算され、0.8になる。すなわち、閾値δが20〔%〕小さくされるので、反射センサs11による用紙Pの前端部又は後端部の読み値Tが大きくても、閾値δより大きければ、影50が検出されることがない。 On the other hand, when a shadow detection error occurs, 0.2 is subtracted from the adjustment value col. For example, when the retry is the first time, the adjustment value col is 0.8 by subtracting 0.2 from the initial value 1. That is, since the threshold value δ is reduced by 20%, even if the reading value T of the front edge or the rear edge of the paper P by the reflection sensor s11 is large, if it is larger than the threshold value δ, the shadow 50 will not be detected. do not have.

次に、フローチャートについて説明する。
ステップS1 操作者がブラックマークBmの間隔を入力する。
ステップS2 キャリブレーション制御部Pr5は調整値colに初期値である1をセットする。
ステップS3 搬送処理部Pr2は2ページ分の長さにカットした1枚目の用紙P1を印刷ユニット20に供給する。
ステップS4 レバーセンサ制御部Pr7はレバーセンサs9が1枚目の用紙P1の前端部を検出するのを待機する。レバーセンサs9が1枚目の用紙P1の前端部を検出した場合はステップS5に進む。
ステップS5 搬送処理部Pr2は1枚目の用紙P1の位置ps1が反射センサs11上に到達するまで1枚目の用紙P1を搬送する。
ステップS6 搬送処理部Pr2は1枚目の用紙P1の搬送を一旦停止する。
ステップS7 キャリブレーション制御部Pr5は1枚目の用紙P1の位置ps1における反射センサs11の読み値Tが基準値TWになるまで発光部47の発光量を調整する。
ステップS8 搬送処理部Pr2は1枚目の用紙P1の搬送を再開する。
ステップS9 搬送処理部Pr2は1枚目の用紙P1の位置ps2が反射センサs11上に到達するまで1枚目の用紙P1を搬送する。
ステップS10 キャリブレーション制御部Pr5は1枚目の用紙P1の位置ps2が反射センサs11上を通過する間、ブラックマーク部Ar1の前縁から後縁までの読み値Tを測定する。
ステップS11 キャリブレーション制御部Pr5はブラックマーク最大読み値TBmaxをRAM54に記録する。
ステップS12 キャリブレーション制御部Pr5は基準値TWとブラックマーク最大読み値TBmaxとの中間値を仮閾値βとして決定する。
ステップS13 用紙位置管理部Pr4はレバーセンサs9が1枚目の用紙P1の後端部を検出するのを待機する。レバーセンサs9が1枚目の用紙P1の後端部を検出した場合はステップS14に進む。
ステップS14 搬送処理部Pr2は1枚目の用紙P1の位置ps3が反射センサs11上に到達するまで1枚目の用紙P1を搬送する。
ステップS15 キャリブレーション制御部Pr5は位置ps3が反射センサs11上を通過する間、1枚目の用紙P1の後端部の前縁から後縁までの読み値Tを測定する。
ステップS16 キャリブレーション制御部Pr5は後端最小読み値TLminをRAM54に記録する。
ステップS17 搬送処理部Pr2はカットした2枚目の用紙P2を印刷ユニット20に供給する。
ステップS18 レバーセンサ制御部Pr7はレバーセンサs9が2枚目の用紙P2の前端部を検出するのを待機する。レバーセンサs9が2枚目の用紙P2の前端部を検出した場合はステップS19に進む。
ステップS19 搬送処理部Pr2は2枚目の用紙P2の位置ps4が反射センサs11上に到達するまで2枚目の用紙P2を搬送する。
ステップS20 キャリブレーション制御部Pr5は2枚目の用紙P2の位置ps4が反射センサs11上を通過する間、2枚目の用紙P2の前端部の前縁から後縁までの読み値Tを測定する。
ステップS21 キャリブレーション制御部Pr5は前端最小読み値TPminをRAM54に記録する。
ステップS22 キャリブレーション制御部Pr5は閾値決定処理を行う。
ステップS23 キャリブレーション制御部Pr5は閾値δの決定が成功したかどうかを判断する。閾値δの決定が成功した場合はステップS24に進み、閾値δの決定が失敗した場合はステップS25に進む。
ステップS24 反射センサ制御部Pr8は反射センサs11のコンパレータ62に閾値δを設定し、ステップS26に進む。
ステップS25 反射センサ制御部Pr8は閾値決定エラーをRAM54に記録し、ステップS33に進む。
ステップS26 搬送処理部Pr2及び用紙位置管理部Pr4は2枚目の用紙P2の位置ps5が反射センサs11上に到達し、通過するまで用紙P2を搬送し、その間、反射センサ制御部Pr8は反射センサs11のコンパレータ62を監視する。
ステップS27 反射センサ制御部Pr8は反射センサs11がブラックマークBmを正しく検出したかどうかを判断する。反射センサs11がブラックマークBmを正しく検出した場合はステップS29に進み、反射センサs11がブラックマークBmを正しく検出しなかった場合はステップS28に進む。
ステップS28 反射センサ制御部Pr8はブラックマーク検出エラーをRAM54に記録し、ステップS33に進む。
ステップS29 搬送処理部Pr2及び用紙位置管理部Pr4は2枚目の用紙P2の位置ps6が反射センサs11上に到達し、通過するまで用紙P2を搬送し、その間、反射センサ制御部Pr8は反射センサs11のコンパレータ62を監視する。
ステップS30 反射センサ制御部Pr8は反射センサs11が影50を検出したかどうかを判断する。反射センサs11が影50を検出した場合はステップS31に進み、反射センサs11が影50を検出しなかった場合はステップS32に進む。
ステップS31 反射センサ制御部Pr8は影検出エラーをRAM54に記録し、ステップS33に進む。
ステップS32 キャリブレーション制御部Pr5は反射センサs11のキャリブレーションが成功したことをRAM54に記録する。
ステップS33 搬送処理部Pr2は1枚目の用紙P1及び2枚目の用紙P2を装置本体Bd外に排出する。
ステップS34 キャリブレーション制御部Pr5は反射センサs11のキャリブレーションが成功したかどうかを判断する。反射センサs11のキャリブレーションが成功した場合はステップS35に進み、反射センサs11のキャリブレーションが失敗した場合はステップS36に進む。
ステップS35 パネル制御部Pr3は反射センサs11のキャリブレーションが成功した旨を表示部59に表示し、処理を終了する。
ステップS36 キャリブレーション制御部Pr5は2回のリトライを行ったかどうかを判断する。2回のリトライを行った場合はステップS37に進み、2回のリトライを行わなかった場合はステップS38に進む。
ステップS37 パネル制御部Pr3は反射センサs11のキャリブレーションが失敗した旨を表示部59に表示し、処理を終了する。
ステップS38 キャリブレーション制御部Pr5は発生したエラーの種別を判定する。
ステップS39 キャリブレーション制御部Pr5は発生したエラーが閾値決定エラーであるかどうかを判断する。発生したエラーが閾値決定エラーである場合はステップS40に進み、発生したエラーが閾値決定エラーでない場合はステップS41に進む。
ステップS40 キャリブレーション制御部Pr5はキャリブレーションのリトライを行い、ステップS3に戻る。
ステップS41 キャリブレーション制御部Pr5は発生したエラーがブラックマーク検出エラーであるかどうかを判断する。発生したエラーがブラックマーク検出エラーである場合はステップS42に進み、発生したエラーがブラックマーク検出エラーでない場合はステップS43に進む。
ステップS42 キャリブレーション制御部Pr5は調整値colに0.2を加算してキャリブレーションのリトライを行い、ステップS3に戻る。
ステップS43 キャリブレーション制御部Pr5は調整値colから0.2を減算してキャリブレーションのリトライを行い、ステップS3に戻る。
Next, the flowchart will be explained.
Step S1: The operator inputs the interval between the black marks Bm.
Step S2: The calibration control unit Pr5 sets the adjustment value col to 1, which is an initial value.
Step S3: The conveyance processing unit Pr2 supplies the first sheet P1 cut to the length of two pages to the printing unit 20.
Step S4: The lever sensor control unit Pr7 waits for the lever sensor s9 to detect the front end of the first sheet P1. If the lever sensor s9 detects the front end of the first sheet P1, the process advances to step S5.
Step S5: The transport processing unit Pr2 transports the first sheet P1 until the position ps1 of the first sheet P1 reaches above the reflection sensor s11.
Step S6: The transport processing unit Pr2 temporarily stops transporting the first sheet P1.
Step S7: The calibration control unit Pr5 adjusts the amount of light emitted from the light emitting unit 47 until the reading value T of the reflection sensor s11 at the position ps1 of the first sheet P1 becomes the reference value TW.
Step S8: The conveyance processing unit Pr2 resumes conveyance of the first sheet P1.
Step S9: The transport processing unit Pr2 transports the first sheet P1 until the position ps2 of the first sheet P1 reaches above the reflection sensor s11.
Step S10: The calibration control unit Pr5 measures the read value T from the leading edge to the trailing edge of the black mark portion Ar1 while the position ps2 of the first sheet P1 passes over the reflective sensor s11.
Step S11: The calibration control unit Pr5 records the maximum black mark reading value TBmax in the RAM 54.
Step S12: The calibration control unit Pr5 determines the intermediate value between the reference value TW and the maximum black mark reading value TBmax as the temporary threshold value β.
Step S13: The paper position management unit Pr4 waits for the lever sensor s9 to detect the trailing edge of the first paper P1. If the lever sensor s9 detects the rear end of the first sheet P1, the process advances to step S14.
Step S14: The transport processing unit Pr2 transports the first sheet P1 until the position ps3 of the first sheet P1 reaches above the reflection sensor s11.
Step S15: The calibration control unit Pr5 measures the reading value T from the leading edge to the trailing edge of the trailing edge of the first sheet P1 while the position ps3 passes over the reflective sensor s11.
Step S16: The calibration control unit Pr5 records the trailing end minimum reading value TLmin in the RAM 54.
Step S17: The transport processing unit Pr2 supplies the cut second sheet P2 to the printing unit 20.
Step S18: The lever sensor control unit Pr7 waits for the lever sensor s9 to detect the front end of the second sheet P2. If the lever sensor s9 detects the front end of the second sheet P2, the process advances to step S19.
Step S19: The transport processing unit Pr2 transports the second sheet P2 until the position ps4 of the second sheet P2 reaches above the reflection sensor s11.
Step S20 The calibration control unit Pr5 measures the reading value T from the leading edge to the trailing edge of the front edge of the second sheet P2 while the position ps4 of the second sheet P2 passes over the reflection sensor s11. .
Step S21: The calibration control unit Pr5 records the front end minimum reading value TPmin in the RAM 54.
Step S22: The calibration control unit Pr5 performs threshold value determination processing.
Step S23: The calibration control unit Pr5 determines whether the threshold value δ has been successfully determined. If the determination of the threshold value δ is successful, the process proceeds to step S24, and if the determination of the threshold value δ fails, the process proceeds to step S25.
Step S24: The reflective sensor control unit Pr8 sets a threshold value δ in the comparator 62 of the reflective sensor s11, and proceeds to step S26.
Step S25: The reflection sensor control unit Pr8 records the threshold value determination error in the RAM 54, and proceeds to step S33.
Step S26: The transport processing unit Pr2 and the paper position management unit Pr4 transport the paper P2 until the position ps5 of the second paper P2 reaches and passes above the reflective sensor s11. During this time, the reflective sensor control unit Pr8 transports the paper P2 until the position ps5 of the second paper P2 reaches and passes the reflective sensor The comparator 62 of s11 is monitored.
Step S27: The reflective sensor control unit Pr8 determines whether the reflective sensor s11 has correctly detected the black mark Bm. If the reflective sensor s11 correctly detects the black mark Bm, the process advances to step S29; if the reflective sensor s11 does not correctly detect the black mark Bm, the process advances to step S28.
Step S28: The reflective sensor control unit Pr8 records the black mark detection error in the RAM 54, and proceeds to step S33.
Step S29 The conveyance processing unit Pr2 and the paper position management unit Pr4 convey the paper P2 until the position ps6 of the second sheet P2 reaches and passes above the reflection sensor s11, and during this time, the reflection sensor control unit Pr8 The comparator 62 of s11 is monitored.
Step S30: The reflective sensor control unit Pr8 determines whether the reflective sensor s11 has detected the shadow 50. If the reflection sensor s11 detects the shadow 50, the process proceeds to step S31, and if the reflection sensor s11 does not detect the shadow 50, the process proceeds to step S32.
Step S31: The reflection sensor control unit Pr8 records the shadow detection error in the RAM 54, and proceeds to step S33.
Step S32: The calibration control unit Pr5 records in the RAM 54 that the calibration of the reflection sensor s11 has been successful.
Step S33: The transport processing unit Pr2 discharges the first sheet P1 and the second sheet P2 to the outside of the apparatus main body Bd.
Step S34: The calibration control unit Pr5 determines whether the calibration of the reflection sensor s11 has been successful. If the calibration of the reflective sensor s11 is successful, the process proceeds to step S35, and if the calibration of the reflective sensor s11 fails, the process proceeds to step S36.
Step S35 The panel control unit Pr3 displays on the display unit 59 that the calibration of the reflection sensor s11 has been successful, and ends the process.
Step S36: The calibration control unit Pr5 determines whether two retries have been performed. If two retries have been performed, the process advances to step S37, and if two retries have not been performed, the process advances to step S38.
Step S37 The panel control unit Pr3 displays on the display unit 59 that the calibration of the reflection sensor s11 has failed, and ends the process.
Step S38: The calibration control unit Pr5 determines the type of error that has occurred.
Step S39: The calibration control unit Pr5 determines whether the error that has occurred is a threshold determination error. If the error that has occurred is a threshold determination error, the process proceeds to step S40, and if the error that has occurred is not a threshold value determination error, the process proceeds to step S41.
Step S40: The calibration control unit Pr5 retries the calibration, and returns to step S3.
Step S41: The calibration control unit Pr5 determines whether the error that has occurred is a black mark detection error. If the error that has occurred is a black mark detection error, the process proceeds to step S42, and if the error that has occurred is not a black mark detection error, the process proceeds to step S43.
Step S42: The calibration control unit Pr5 adds 0.2 to the adjustment value col, retries the calibration, and returns to step S3.
Step S43: The calibration control unit Pr5 subtracts 0.2 from the adjustment value col, retries the calibration, and returns to step S3.

次に、キャリブレーション制御部Pr5による閾値決定処理の動作について説明する。 Next, the operation of the threshold value determination process by the calibration control unit Pr5 will be explained.

図13は本発明の実施の形態における閾値決定処理のサブルーチンを示す図である。 FIG. 13 is a diagram showing a subroutine of threshold value determination processing in the embodiment of the present invention.

キャリブレーション制御部Pr5は、後端最小読み値TLminと前端最小読み値TPminとを比較し、後端最小読み値TLmin及び前端最小読み値TPminのうちの小さい方の読み値Tを端部最小読み値SHminとする(ステップS22-1)。 The calibration control unit Pr5 compares the trailing end minimum reading value TLmin and the leading end minimum reading value TPmin, and sets the smaller reading value T of the trailing end minimum reading value TLmin and the leading end minimum reading value TPmin as the end end minimum reading value. The value SHmin is set (step S22-1).

続いて、キャリブレーション制御部Pr5は、端部最小読み値SHminとブラックマーク最大読み値TBmaxとを比較し、端部最小読み値SHminがブラックマーク最大読み値TBmax以下であるかどうかを判断する(ステップS21-2)。 Next, the calibration control unit Pr5 compares the end minimum reading value SHmin and the black mark maximum reading value TBmax, and determines whether the end minimum reading value SHmin is less than or equal to the black mark maximum reading value TBmax ( Step S21-2).

端部最小読み値SHminがブラックマーク最大読み値TBmax以下である場合、1枚目の用紙P1の後端部に形成された影50又は2枚目の用紙P2の前端部に形成された影50の読み値Tがブラックマーク部Ar1の読み値T以下であり、異常な状態であるので、キャリブレーション制御部Pr5は、閾値δの決定が失敗したと判断し、リターンする。 When the edge minimum reading value SHmin is less than or equal to the black mark maximum reading value TBmax, the shadow 50 formed at the rear edge of the first sheet P1 or the shadow 50 formed at the front edge of the second sheet P2 Since the reading value T is less than the reading value T of the black mark portion Ar1, which is an abnormal state, the calibration control unit Pr5 determines that the determination of the threshold value δ has failed and returns.

一方、端部最小読み値SHminがブラックマーク最大読み値TBmaxより大きい場合、キャリブレーション制御部Pr5は、端部最小読み値SHminに所定の係数、本実施の形態においては、0.8を乗算した値と仮閾値βとを比較し、端部最小読み値SHminに0.8を乗算した値が仮閾値βより小さいかどうかを判断する(ステップS22-4)。 On the other hand, when the edge minimum reading value SHmin is larger than the black mark maximum reading value TBmax, the calibration control unit Pr5 multiplies the edge minimum reading value SHmin by a predetermined coefficient, in this embodiment, 0.8. The value is compared with the temporary threshold value β, and it is determined whether the value obtained by multiplying the end minimum reading value SHmin by 0.8 is smaller than the temporary threshold value β (step S22-4).

端部最小読み値SHminに0.8を乗算した値が仮閾値βより小さい場合、キャリブレーション制御部Pr5は、閾値δを、次の式(1)に示されるように、
δ=((SHmin+TBmax)/2)×col ……(1)
端部最小読み値SHminとブラックマーク最大読み値TBmaxとの中間値に調整値colcを乗算して算出し(ステップS22-5)、閾値δの決定が成功したと判断する(ステップS22-6)。
If the value obtained by multiplying the end minimum reading value SHmin by 0.8 is smaller than the temporary threshold β, the calibration control unit Pr5 sets the threshold δ as shown in the following equation (1).
δ=((SHmin+TBmax)/2)×col...(1)
The intermediate value between the end minimum reading value SHmin and the black mark maximum reading value TBmax is calculated by multiplying the adjustment value colc (step S22-5), and it is determined that the threshold value δ has been successfully determined (step S22-6). .

また、端部最小読み値SHminに0.8を乗算した値が仮閾値β以上である場合、キャリブレーション制御部Pr5は、閾値δを閾値βと等しくし(ステップS22-7)、閾値δの決定が成功したと判断する(ステップS22-6)。 Further, if the value obtained by multiplying the end minimum reading value SHmin by 0.8 is equal to or greater than the temporary threshold β, the calibration control unit Pr5 makes the threshold δ equal to the threshold β (step S22-7), and It is determined that the determination was successful (step S22-6).

次に、フローチャートについて説明する。
ステップS22-1 キャリブレーション制御部Pr5は後端最小読み値TLmin及び前端最小読み値TPminのうちの小さい方の読み値Tを端部最小読み値SHminとする。
ステップS22-2 キャリブレーション制御部Pr5は端部最小読み値SHminがブラックマーク最大読み値TBmax以下であるかどうかを判断する。端部最小読み値SHminがブラックマーク最大読み値TBmax以下である場合はステップS22-3に進み、端部最小読み値SHminがブラックマーク最大読み値TBmaxより大きい場合はステップS22-4に進む。
ステップS22-3 キャリブレーション制御部Pr5は閾値δの決定が失敗したと判断し、リターンする。
ステップS22-4 キャリブレーション制御部Pr5は端部最小読み値SHminに0.8を乗算した値が仮閾値βより小さいかどうかを判断する。端部最小読み値SHminに0.8を乗算した値が仮閾値βより小さい場合はステップS22-5に進み、端部最小読み値SHminに0.8を乗算した値が仮閾値β以上である場合はステップS22-7に進む。
ステップS22-5 キャリブレーション制御部Pr5は閾値βを、端部最小読み値SHminとブラックマーク最大読み値TBmaxとの中間値に調整値colcを乗算して算出する。
ステップS22-6 キャリブレーション制御部Pr5は閾値δの決定が成功したと判断し、リターンする。
ステップS22-7 キャリブレーション制御部Pr5は閾値δを閾値βと等しくし、ステップS22-6に進む。
Next, the flowchart will be explained.
Step S22-1 The calibration control unit Pr5 sets the smaller reading value T of the trailing end minimum reading value TLmin and the leading end minimum reading value TPmin as the end end minimum reading value SHmin.
Step S22-2 The calibration control unit Pr5 determines whether the end minimum reading value SHmin is less than or equal to the black mark maximum reading value TBmax. If the edge minimum reading value SHmin is less than or equal to the black mark maximum reading value TBmax, the process advances to step S22-3, and if the edge minimum reading value SHmin is greater than the black mark maximum reading value TBmax, the process advances to step S22-4.
Step S22-3: The calibration control unit Pr5 determines that the determination of the threshold value δ has failed, and returns.
Step S22-4 The calibration control unit Pr5 determines whether the value obtained by multiplying the end minimum reading value SHmin by 0.8 is smaller than the provisional threshold value β. If the value obtained by multiplying the end minimum reading value SHmin by 0.8 is smaller than the provisional threshold β, the process proceeds to step S22-5, and the value obtained by multiplying the end minimum reading value SHmin by 0.8 is greater than or equal to the provisional threshold β. If so, the process advances to step S22-7.
Step S22-5 The calibration control unit Pr5 calculates the threshold value β by multiplying the intermediate value between the end minimum reading value SHmin and the black mark maximum reading value TBmax by the adjustment value colc.
Step S22-6: The calibration control unit Pr5 determines that the threshold value δ has been successfully determined, and returns.
Step S22-7: The calibration control unit Pr5 makes the threshold value δ equal to the threshold value β, and proceeds to step S22-6.

本実施の形態においては、端部最小読み値SHminに0.8を乗算した値と仮閾値βとが比較され、端部最小読み値SHminに0.8を乗算した値が仮閾値βより小さい場合に、閾値δが算出されるようになっているので、影50で反射された光の受光量に多少ばらつきが生じた場合でも、閾値δと端部最小読み値SHminとの間に、端部最小読み値SHminの20〔%〕分のマージンを設けることができる。したがって、影50をブラックマークBmとして誤って検出するのを防止することができる。 In this embodiment, the value obtained by multiplying the edge minimum reading value SHmin by 0.8 and the temporary threshold value β are compared, and the value obtained by multiplying the edge portion minimum reading value SHmin by 0.8 is smaller than the temporary threshold value β. Since the threshold value δ is calculated when A margin of 20% of the minimum reading value SHmin can be provided. Therefore, it is possible to prevent the shadow 50 from being mistakenly detected as the black mark Bm.

また、本実施の形態においては、閾値δが、単純に前記式(1)に基づいて算出されるのではなく、端部最小読み値SHminに0.8を乗算した値が仮閾値βより小さい場合に算出されるようになっている。そして、仮閾値βは、白紙部Ar2における基準値TW及びブラックマーク最大読み値TBmaxに基づいて算出されるようになっている。 Further, in this embodiment, the threshold value δ is not simply calculated based on the above formula (1), but the value obtained by multiplying the end minimum reading value SHmin by 0.8 is smaller than the temporary threshold value β. It is calculated based on the case. The temporary threshold value β is calculated based on the reference value TW and the maximum black mark reading value TBmax in the blank area Ar2.

このことから、用紙Pの種類、影50が発生する原因等によって白紙部Ar2における反射特性が変動しても、閾値δを精度良く算出することができる。 Therefore, even if the reflection characteristics in the blank paper portion Ar2 vary depending on the type of paper P, the cause of the shadow 50, etc., the threshold value δ can be calculated with high accuracy.

なお、反射板49から受ける光の受光量の読み値Tに基づいてブラックマークBm、影50等を検出することができるが、その場合、反射板49の種類、影50が発生する原因等によって反射板49における反射特性が変動すると、閾値δを精度良く算出することができない。 Note that the black mark Bm, shadow 50, etc. can be detected based on the read value T of the amount of light received from the reflector 49, but in this case, it is possible to detect the black mark Bm, the shadow 50, etc. depending on the type of the reflector 49, the cause of the shadow 50, etc. If the reflection characteristics of the reflection plate 49 fluctuate, the threshold value δ cannot be calculated with high accuracy.

このように、本実施の形態においては、ブラックマークBmにおいて反射された光の第1の受光量に基づくブラックマーク最大読み値TBmax及び用紙Pにおける前記ブラックマークBm以外の領域で反射された光の第2の受光量に基づく基準値TWに基づいて仮閾値βが決定され、該仮閾値βが決定された後に受光部48が受光した第3の受光量に基づく後端最小読み値TLmin及び前端最小読み値TPminに応じて前記仮閾値βが変更され、閾値δが決定されるので、ブラックマークBmの検出精度を高くすることができる。 As described above, in the present embodiment, the maximum reading value TBmax of the black mark based on the first received amount of light reflected at the black mark Bm and the amount of light reflected at an area other than the black mark Bm on the paper P are calculated. A temporary threshold value β is determined based on a reference value TW based on the second amount of received light, and a rear end minimum reading value TLmin and a front end based on the third amount of received light received by the light receiving unit 48 after the provisional threshold value β is determined. Since the provisional threshold value β is changed according to the minimum reading value TPmin and the threshold value δ is determined, it is possible to improve the detection accuracy of the black mark Bm.

また、用紙Pの前端部又は後端部に影50が形成されたときに、影50をブラックマーク部Ar1として誤って検出するのを防止することができる。 Further, when the shadow 50 is formed on the front end or the rear end of the paper P, it is possible to prevent the shadow 50 from being mistakenly detected as the black mark portion Ar1.

したがって、用紙Pのラベルの印字位置に精度良く画像を形成することができる。 Therefore, an image can be formed at the printing position of the label on the paper P with high precision.

さらに、用紙Pの欠損を検出するために各ブラックマークBmの間隔が正しいかどうかを確認しながら印刷を行うプリンタ10においては、影50の部分をブラックマーク部Ar1として誤って検出することがないので、プリンタ10がブラックマークBmの間隔が正しくないと判断し、用紙Pの欠損を検出したと判断することがなくなる。 Furthermore, in the printer 10 that performs printing while checking whether the intervals between the black marks Bm are correct in order to detect a defect in the paper P, the portion of the shadow 50 is not mistakenly detected as the black mark portion Ar1. Therefore, the printer 10 does not judge that the interval between the black marks Bm is incorrect and that the paper P is missing.

その結果、トナー、用紙Pを無駄に消費するのを防止することができる。 As a result, wasteful consumption of toner and paper P can be prevented.

本実施の形態においては、反射センサs11にAD変換機61が配設され、AD変換機61によって受光部48による受光量が読み値Tに変換されるようになっているが、反射センサ制御部Pr8が、反射センサs11から受光量を読み込み、読み値Tに変換するようにすることもできる。 In this embodiment, an AD converter 61 is disposed in the reflective sensor s11, and the AD converter 61 converts the amount of light received by the light receiving section 48 into a reading value T. It is also possible for Pr8 to read the amount of light received from the reflection sensor s11 and convert it into a read value T.

本実施の形態においては、プリンタ10について説明したが、本発明を複写機、ファクシミリ装置、複合機等の画像形成装置に適用することができる。 In this embodiment, the printer 10 has been described, but the present invention can be applied to image forming apparatuses such as copying machines, facsimile machines, and multifunction devices.

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

47 発光部
48 受光部
60 センサ部
61 AD変換機
Ar2 白紙部
Bm ブラックマーク
P 用紙
Pr2 搬送処理部
Pr5 キャリブレーション制御部
T 読み値
TBmax ブラックマーク最大読み値
TLmin 後端最小読み値
TPmin 前端最小読み値
TW 基準値
β 仮閾値
δ 閾値
47 Light emitting section 48 Light receiving section 60 Sensor section 61 AD converter Ar2 Blank paper section Bm Black mark P Paper Pr2 Conveyance processing section Pr5 Calibration control section T Reading value TBmax Black mark maximum reading value TLmin Trailing edge minimum reading value TPmin Front edge minimum reading value TW Reference value β Temporary threshold value δ Threshold value

Claims (8)

位置検出用目印が付されたシート状媒体を搬送する媒体搬送装置において、
(a)前記シート状媒体を搬送する搬送処理部と、
(b)光を発生させる発光部及び光を受ける受光部を備えた検出部と、
(c)前記受光部が受けた光の光量を検出値に変換する変換部と、
(d)前記位置検出用目印において反射された光の第1の受光量に基づく検出値、及び前記シート状媒体における前記位置検出用目印以外の領域において反射された光の第2の受光量に基づく検出値に基づいて第1の閾値を決定するキャリブレーション制御部とを有するとともに、
(e)該キャリブレーション制御部は、前記第1の閾値を決定した後に受光部が受光した第3の受光量に基づく検出値に応じて前記第1の閾値を変更し、第2の閾値を決定することを特徴とする媒体搬送装置。
In a media conveyance device that conveys a sheet-like medium with a mark for position detection,
(a) a conveyance processing unit that conveys the sheet-like medium;
(b) a detection unit including a light emitting unit that generates light and a light receiving unit that receives light;
(c) a conversion unit that converts the amount of light received by the light receiving unit into a detected value;
(d) a detection value based on a first received amount of light reflected at the position detection mark, and a second received amount of light reflected from an area other than the position detection mark on the sheet-like medium; a calibration control unit that determines the first threshold based on the detected value,
(e) After determining the first threshold, the calibration control section changes the first threshold according to a detection value based on a third amount of light received by the light receiving section, and changes the second threshold. A medium transport device characterized in that:
前記変換部は反射センサに配設される請求項1に記載の媒体搬送装置。 The medium transport device according to claim 1, wherein the converter is disposed in a reflection sensor. 前記変換部は、制御部に配設され、反射センサから前記第1~第3の受光量を読み込み、各検出値に変換する請求項1に記載の媒体搬送装置。 The medium conveying device according to claim 1, wherein the converting section is disposed in the control section, reads the first to third amounts of light received from the reflection sensor, and converts them into respective detected values. 前記第3の受光量は、前記シート状媒体の端部において反射された光の受光量である請求項1に記載の媒体搬送装置。 2. The medium transport device according to claim 1, wherein the third amount of received light is the amount of received light reflected at an end of the sheet-like medium. 前記第3の受光量に基づく検出値は、前記シート状媒体の後端部において反射された光の受光量に基づく検出値、及び前記シート状媒体の前端部において反射された光の受光量に基づく検出値のうちの小さい方の検出値である請求項4に記載の媒体搬送装置。 The detection value based on the third amount of received light is based on the amount of light received reflected at the rear end of the sheet-like medium and the amount of light received reflected at the front end of the sheet-like medium. The medium transport device according to claim 4, wherein the detected value is the smaller of the detected values based on the detected value. 前記キャリブレーション制御部は、前記第1の受光量に基づく検出値に基づいて前記位置検出用目印を正しく検出することができない場合に、前記第2の閾値を大きくする請求項1に記載の媒体搬送装置。 The medium according to claim 1, wherein the calibration control unit increases the second threshold when the position detection mark cannot be detected correctly based on a detection value based on the first amount of received light. Conveyance device. 前記キャリブレーション制御部は、前記第3の受光量に基づく検出値に基づいて前記シート状媒体の端部を正しく検出することができない場合に、前記第2の閾値を小さくする請求項1に記載の媒体搬送装置。 The calibration control unit reduces the second threshold value when the end of the sheet-like medium cannot be correctly detected based on the detection value based on the third amount of received light. media transport device. 前記請求項1~7のいずれか1項に記載の媒体搬送装置を備える画像形成装置。 An image forming apparatus comprising the medium transport device according to any one of claims 1 to 7.
JP2022119752A 2022-07-27 2022-07-27 Media transport device and image forming device Pending JP2024017239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022119752A JP2024017239A (en) 2022-07-27 2022-07-27 Media transport device and image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022119752A JP2024017239A (en) 2022-07-27 2022-07-27 Media transport device and image forming device

Publications (1)

Publication Number Publication Date
JP2024017239A true JP2024017239A (en) 2024-02-08

Family

ID=89807956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022119752A Pending JP2024017239A (en) 2022-07-27 2022-07-27 Media transport device and image forming device

Country Status (1)

Country Link
JP (1) JP2024017239A (en)

Similar Documents

Publication Publication Date Title
JP5971799B2 (en) Printing apparatus, printing method, and program
US8045871B2 (en) Image forming apparatus and image forming method on measured physical quantity
US8693930B2 (en) Image formation device and image correction method
EP0801336A2 (en) Method for processing paper jam error in image forming device
JP2014122960A (en) Printer
JP4695948B2 (en) Image forming apparatus
US7817930B2 (en) Image forming apparatus, control method therefor, and program
US20150116743A1 (en) Image forming apparatus, sheet type detecting method and storage medium storing program of sheet type detecting method
US9389561B2 (en) Image forming apparatus utilizing a plurality of image formation velocities
JP2004005559A (en) Image processing system and image recording method
US7359662B2 (en) Image forming apparatus with control blade having an arcuate shape
JP6124148B2 (en) Image forming apparatus
JP2024017239A (en) Media transport device and image forming device
JP4339365B2 (en) Image forming apparatus
US8515330B2 (en) Image forming apparatus which maintains the relative positional relationship between the image forming section and the sheet detection section
JP5987642B2 (en) Image forming system and calibration method
JPH07234556A (en) Image forming device
JPH06324569A (en) Image forming device
JP2020134819A (en) Image forming apparatus
US20180362277A1 (en) Medium detection mechanism and image forming device
JP3575259B2 (en) Image forming device
US11054781B2 (en) Image formation apparatus and medium conveyance control method
JP4622551B2 (en) Image forming apparatus and color misregistration correction method
JP2012063505A (en) Image forming device
JP2006021843A (en) Image forming device