JP2007098831A - Printer and printer control method - Google Patents

Printer and printer control method Download PDF

Info

Publication number
JP2007098831A
JP2007098831A JP2005293335A JP2005293335A JP2007098831A JP 2007098831 A JP2007098831 A JP 2007098831A JP 2005293335 A JP2005293335 A JP 2005293335A JP 2005293335 A JP2005293335 A JP 2005293335A JP 2007098831 A JP2007098831 A JP 2007098831A
Authority
JP
Japan
Prior art keywords
output
control signal
signal
detection device
timing
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.)
Withdrawn
Application number
JP2005293335A
Other languages
Japanese (ja)
Inventor
Kosaku Shinoda
耕作 信田
Yasuhiko Yoshihisa
靖彦 吉久
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005293335A priority Critical patent/JP2007098831A/en
Priority to US11/544,520 priority patent/US7918526B2/en
Publication of JP2007098831A publication Critical patent/JP2007098831A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Handling Of Cut Paper (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer which can generate a control signal for determining the state of a detected object, using a best-suited method suitably adapted to constructional features of the detected object as a detection target. <P>SOLUTION: In the printer, the control signal S11 is generated by a mask reading method which decides the control signal S11 to determine whether a printing sheet is present when an output signal S1 after the output of a timing signal F11 etc. has a level change enabling the output signal S1 to reach a threshold (t1) and does not change a mask time T. In addition, the control signal S11 determines the state of a detected object other than the printing sheet, using either of an advance reading method or an after-reading method. The advance reading method decides the control signal S11 and does not change it until a next timing signal, when the other output signal after the output of the timing signal F11 has a specified frequency of the level change enabling the other output signal to reach the threshold (t1). The after-reading method decides the control signal S11 and does not change it until a next timing signal referring to the last level change among the level changes in which some of the output signals have reached the threshold within a specified time limit after the output of the timing signal F11. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、プリンタおよびプリンタの制御方法に関する。   The present invention relates to a printer and a printer control method.

印刷用紙等へ印刷を行うプリンタとして、インクを吐出することで印刷を行うインクジェットプリンタが知られている。この種のインクジェットプリンタは、プリンタ内部に取り込まれる印刷用紙を検出する用紙検出装置を備えている(たとえば、特許文献1参照)。また、インクジェットプリンタとして、インクを吐出するインク吐出部とインク吐出部に対向するプラテンとの隙間を調整する隙間調整機構を備えたものも知られている(たとえば、特許文献2参照)。この特許文献2に開示されたプリンタは、プラテンに対するインク吐出部の位置を検出するための隙間検出装置を備えている。なお、これらの用紙検出装置や隙間検出装置は、発光素子と受光素子とを有するフォトセンサと、発光素子から受光素子へ向かう光を遮断するセンサレバーとを備える光学式の検出装置である。   2. Related Art Inkjet printers that perform printing by ejecting ink are known as printers that perform printing on printing paper or the like. This type of ink jet printer includes a paper detection device that detects printing paper taken into the printer (see, for example, Patent Document 1). Ink jet printers that include a gap adjustment mechanism that adjusts the gap between an ink discharge portion that discharges ink and a platen that faces the ink discharge portion are also known (for example, see Patent Document 2). The printer disclosed in Patent Document 2 includes a gap detection device for detecting the position of the ink ejection unit with respect to the platen. These paper detection devices and gap detection devices are optical detection devices that include a photosensor having a light emitting element and a light receiving element, and a sensor lever that blocks light from the light emitting element toward the light receiving element.

また、近年、インクジェットプリンタでは、印刷用紙の他、CDやDVD等の光ディスクの印刷も行われている。この光ディスクの印刷が行われるインクジェットプリンタとして、光ディスクが載置されるディスクトレイや、ディスクトレイをプリンタ内部へ案内するトレイガイドを備えたプリンタが知られている(たとえば、特許文献3参照)。特許文献3に開示されたプリンタは、ディスクトレイの有無を検出するためのトレイ検出装置や、トレイガイドの開閉状態を確認するためのガイド検出装置を備えている。なお、これらのトレイ検出装置やガイド検出装置は、スイッチレバーを有する接点スイッチとスイッチレバーを押圧するセンサレバーとを備える機械式の検出装置である。   In recent years, inkjet printers have also printed optical disks such as CDs and DVDs in addition to printing paper. As an ink jet printer that performs printing on this optical disc, a printer that includes a disc tray on which an optical disc is placed and a tray guide that guides the disc tray into the printer is known (for example, see Patent Document 3). The printer disclosed in Patent Document 3 includes a tray detection device for detecting the presence or absence of a disk tray and a guide detection device for confirming the open / closed state of the tray guide. These tray detection devices and guide detection devices are mechanical detection devices including a contact switch having a switch lever and a sensor lever that presses the switch lever.

特開2003−72964号公報JP 2003-72964 A 特開2005−103835号公報JP 2005-103835 A 特開2005−125766号公報JP 2005-125766 A

一般に、プリンタの制御部は、上述した用紙検出装置や隙間検出装置、トレイ検出装置等からの各出力信号と各出力信号に対して設定される所定の閾値とから、被検出物となる印刷用紙やインク吐出部、ディスクトレイ等の状態を判断するための制御信号を生成する。たとえば、プリンタの制御部は、図17に示すように、検出装置からの出力信号S100と出力信号S100に対して設定される閾値t100(上側閾値t101と下側閾値t102との2つの値を有する閾値t100)とから制御信号S101を生成する。   In general, the control unit of a printer prints paper to be detected from each output signal from the above-described paper detection device, gap detection device, tray detection device, and the like and a predetermined threshold set for each output signal. And a control signal for determining the state of the ink discharge unit, the disk tray, and the like. For example, as shown in FIG. 17, the control unit of the printer has two values of an output signal S100 from the detection device and a threshold value t100 set for the output signal S100 (an upper threshold value t101 and a lower threshold value t102). The control signal S101 is generated from the threshold value t100).

ここで、プリンタの内部の構成部材は印刷用紙の通過等によって帯電しやすくなっている。そのため、接点スイッチの接点部やフォトセンサの端子部に静電気が発生しやすくなっている。また、検出装置が機械式の検出装置の場合、接点の切り替わり直後にチャタリングが発生する。すなわち、検出装置からの出力信号には静電気やチャタリング等に起因する電気的なノイズが発生する。たとえば、図17に示すように、検出装置からの出力信号S100には電気的なノイズN100が発生する。また、この電気的なノイズN100の影響で制御信号S101にレベル変化C101が生じ、被検出物の状態を誤検出する原因となる。   Here, the constituent members inside the printer are easily charged by the passage of printing paper or the like. Therefore, static electricity is likely to be generated at the contact portion of the contact switch and the terminal portion of the photosensor. Further, when the detection device is a mechanical detection device, chattering occurs immediately after the contact is switched. That is, electrical noise due to static electricity or chattering is generated in the output signal from the detection device. For example, as shown in FIG. 17, an electrical noise N100 is generated in the output signal S100 from the detection device. In addition, a level change C101 occurs in the control signal S101 due to the influence of the electrical noise N100, which causes erroneous detection of the state of the detected object.

この誤検出を防止するため、プリンタには、出力信号に生じる電気的なノイズの影響を排除するための構成が要求される。一方で、プリンタにおいて、検出対象となる被検出物は様々である。そのため、電気的なノイズの影響を排除する構成として一律に同じ構成を用いても、被検出物によっては誤検出を十分に防止できない場合も生じうる。また、被検出物の誤検出がプリンタ全体の制御に与える影響も、被検出物によって相違する。そのため、一律に同じ構成で、被検出物の状態の誤検出を防止しようとするのは望ましくない。   In order to prevent this erroneous detection, the printer is required to have a configuration for eliminating the influence of electrical noise generated in the output signal. On the other hand, in the printer, there are various objects to be detected. For this reason, even if the same configuration is uniformly used as a configuration that eliminates the influence of electrical noise, erroneous detection may not be sufficiently prevented depending on an object to be detected. Further, the influence of erroneous detection of the detected object on the control of the entire printer also differs depending on the detected object. Therefore, it is not desirable to prevent erroneous detection of the state of the detected object with the same configuration.

そこで、本発明の課題は、検出対象となる被検出物の構成上の特徴に合わせた好適な方法で、被検出物の状態を判断するための制御信号を生成できるプリンタおよびプリンタの制御方法を提供することにある。   Accordingly, an object of the present invention is to provide a printer and a printer control method capable of generating a control signal for determining the state of the detected object in a suitable method that matches the structural characteristics of the detected object to be detected. It is to provide.

上記の課題を解決するため、本発明のプリンタは、複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置と、検出装置からの出力信号と出力信号に対して設定される閾値とから被検出物の状態を判断するための制御信号を生成する制御信号生成部と、制御信号生成部に被検出物の状態の判断タイミングを知らせるタイミング信号を出力するタイミング信号出力部とを備え、制御信号生成部は、タイミング信号出力部からタイミング信号が出力された後に検出装置から出力された出力信号が、閾値に達するレベル変化を所定の回数したときに、制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない先読み方法と、タイミング信号出力部からタイミング信号が出力された後の所定時間内における検出装置からの出力信号の中で閾値に達した最後のレベル変化に基づいて制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない後読み方法と、タイミング信号出力部からタイミング信号が出力された後に検出装置から出力された出力信号が、閾値に達するレベル変化をしたときに、制御信号を確定し、少なくともその後の所定のマスク時間は、制御信号を変化させないマスク読み方法と、の3つの信号生成方法のうちから被検出物に応じた少なくとも2種類の信号生成方法で制御信号を生成することを特徴とする。   In order to solve the above-described problems, a printer according to the present invention includes a plurality of detection devices that output output signals corresponding to the states of a plurality of different objects to be detected, and output signals and output signals from the detection devices. A control signal generation unit that generates a control signal for determining the state of the detected object from the set threshold value, and a timing signal output that outputs a timing signal that informs the control signal generation unit of the determination timing of the state of the detected object And the control signal generator determines the control signal when the output signal output from the detection device after the timing signal is output from the timing signal output unit reaches a threshold value a predetermined number of times. And a read-ahead method in which the control signal is not changed at least until the next timing signal is output, and after the timing signal is output from the timing signal output unit. A post-reading method in which the control signal is determined based on the last level change that has reached the threshold among the output signals from the detection device within a predetermined time, and the control signal is not changed at least until the next timing signal is output. The control signal is determined when the output signal output from the detection device after the timing signal is output from the timing signal output unit changes the level reaching the threshold, and at least the predetermined mask time thereafter is the control signal. The control signal is generated by at least two types of signal generation methods corresponding to the detected object from among the three signal generation methods of the mask reading method that does not change the signal.

本発明のプリンタは、被検出物の状態の誤検出を防止するための制御信号の生成方法となる先読み方法、後読み方法およびマスク読み方法の3つの信号生成方法のうちから、被検出物に応じた信号生成方法で制御信号を生成する。そのため、3つの信号生成方法のうち、検出対象となる被検出物の構成上の特徴に合わせた好適な方法で、被検出物の状態を判断するための制御信号を生成することが可能になる。   The printer of the present invention can detect a detection object from among three signal generation methods of a pre-reading method, a post-reading method, and a mask reading method, which are control signal generation methods for preventing erroneous detection of the state of the detection target. A control signal is generated by a corresponding signal generation method. Therefore, among the three signal generation methods, it is possible to generate a control signal for determining the state of the detected object by a suitable method that matches the structural characteristics of the detected object to be detected. .

本発明において、被検出物として内部に取り込まれる印刷用紙の有無に応じた出力信号を出力する用紙検出装置を検出装置として備え、制御信号生成部は、マスク読み方法で、印刷用紙の有無を判断する制御信号を生成することが好ましい。このように構成すると、プリンタ内部に取り込まれる印刷用紙の有無を適切に判断することができる。すなわち、複数の印刷用紙に連続で印刷を行うために連続でプリンタ内部に印刷用紙が取り込まれる場合、タイミング信号が頻繁に出力されるため、先読み方法や後読み方法で制御信号を生成すると、タイミング信号の出力タイミングと電気的ノイズの発生タイミングとの関係で適切な判断は困難になる。これに対して、マスク読み方法で制御信号を生成すると、ある印刷用紙の後端を検出した後、次の印刷用紙の先端を検出するまでの時間を考慮した適切なマスク時間を設定することでき、印刷用紙の有無の適切な判断が可能となる。なお、本明細書における「印刷用紙」には、通常の文書印刷に使用される普通紙、写真の印刷に使用される写真用紙、普通紙や写真紙よりも厚い厚紙等の他、シールやOHPシート等の透明フィルムも含まれる。   In the present invention, the detection device includes a paper detection device that outputs an output signal corresponding to the presence or absence of printing paper taken in as an object to be detected, and the control signal generation unit determines the presence or absence of printing paper by a mask reading method. Preferably, a control signal is generated. With this configuration, it is possible to appropriately determine the presence / absence of printing paper taken into the printer. In other words, when printing paper is continuously taken into the printer in order to continuously print on a plurality of printing papers, timing signals are frequently output. Appropriate determination becomes difficult due to the relationship between the signal output timing and the electrical noise generation timing. On the other hand, when a control signal is generated by the mask reading method, an appropriate mask time can be set in consideration of the time from the detection of the trailing edge of one printing paper to the detection of the leading edge of the next printing paper. Therefore, it is possible to appropriately determine the presence or absence of printing paper. The “printing paper” in this specification includes plain paper used for normal document printing, photographic paper used for photo printing, thick paper thicker than plain paper and photographic paper, stickers and OHP. A transparent film such as a sheet is also included.

また、上記の課題を解決するため、本発明のプリンタは、複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置と、検出装置からの出力信号と出力信号に対して設定される閾値とから被検出物の状態を判断するための制御信号を生成する制御信号生成部と、制御信号生成部に被検出物の状態の判断タイミングを知らせるタイミング信号を出力するタイミング信号出力部とを備えるとともに、被検出物として内部に取り込まれる印刷用紙の有無に応じた出力信号を出力する用紙検出装置を検出装置として少なくとも備え、制御信号生成部は、タイミング信号出力部からタイミング信号が出力された後に検出装置から出力された出力信号が、閾値に達するレベル変化をしたときに、制御信号を確定し、少なくともその後の所定のマスク時間は、制御信号を変化させないマスク読み方法で、印刷用紙の有無を判断する制御信号を生成するとともに、タイミング信号出力部からタイミング信号が出力された後に検出装置から出力された出力信号が、閾値に達するレベル変化を所定の回数したときに制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない先読み方法と、タイミング信号出力部からタイミング信号が出力された後の所定時間内における検出装置からの出力信号の中で閾値に達した最後のレベル変化に基づいて制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない後読み方法と、出力信号のレベル変化に応じた制御信号を生成する通常読み方法と、の3つの信号生成方法のうちのいずれかの生成方法で印刷用紙以外の被検出物の状態を判断する制御信号を生成することを特徴とする。   In order to solve the above problems, the printer of the present invention includes a plurality of detection devices that output output signals corresponding to the states of a plurality of different objects to be detected, and output signals and output signals from the detection devices. A control signal generating unit that generates a control signal for determining the state of the detected object from the threshold value set for the target, and a timing for outputting a timing signal that informs the control signal generating unit of the determination timing of the state of the detected object A signal output unit and at least a paper detection device that outputs an output signal according to the presence or absence of printing paper taken in as an object to be detected. The control signal generation unit receives timing from the timing signal output unit. When the output signal output from the detection device after the signal is output changes in level to reach the threshold value, the control signal is determined, and at least the control signal is determined. After a predetermined mask time, a control signal for determining the presence or absence of printing paper is generated by a mask reading method that does not change the control signal, and the timing signal is output from the detection device after the timing signal is output from the timing signal output unit. The control signal is determined when the output signal reaches the threshold value a predetermined number of times and the control signal is not changed until at least the next timing signal is output, and the timing signal is output from the timing signal output unit. The control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after being output, and the control signal is changed until at least the next timing signal is output Three signal generations: a post-reading method that does not cause the signal to be read and a normal reading method that generates a control signal according to the level change of the output signal And generating a control signal for determining the state of the detected object other than the printing paper in any of generation method of the law.

本発明のプリンタでは、制御信号生成部が、マスク読み方法で印刷用紙の有無を判断する制御信号を生成している。そのため、プリンタ内部に取り込まれる印刷用紙の有無を適切に判断することができる。また、本発明のプリンタは、先読み方法、後読み方法および通常読み方法の3つの信号生成方法のいずれかの生成方法で、印刷用紙以外の被検出物の状態を判断する制御信号を生成している。そのため、3つの信号生成方法のうち、印刷用紙以外の被検出物の構成上の特徴に合わせた好適な方法で、被検出物の状態を判断するための制御信号を生成することが可能になる。また、印刷用紙以外の被検出物の状態を判断する制御信号を生成する際には、マスク時間のカウントが不要となるため、制御信号の生成処理が簡素化される。   In the printer of the present invention, the control signal generation unit generates a control signal for determining the presence or absence of printing paper by the mask reading method. For this reason, it is possible to appropriately determine the presence or absence of printing paper to be taken into the printer. Further, the printer of the present invention generates a control signal for judging the state of the detected object other than the printing paper by any one of the three signal generation methods of the pre-reading method, the post-reading method, and the normal reading method. Yes. Therefore, among the three signal generation methods, it is possible to generate a control signal for determining the state of the detected object by a suitable method that matches the structural characteristics of the detected object other than the printing paper. . In addition, when generating a control signal for determining the state of an object to be detected other than printing paper, it is not necessary to count the mask time, so the control signal generation process is simplified.

本発明において、印刷用紙および/または所定の印刷対象物へインクを吐出するインク吐出部と、インク吐出部に対向する対向部材と、インク吐出部と対向部材との隙間を調整する隙間調整機構とを備えるとともに、被検出物となるインク吐出部の位置に応じた出力信号を出力する隙間検出装置を検出装置として備え、制御信号生成部では、先読み方法で、インク吐出部の位置を判断する制御信号を生成することが好ましい。インク吐出部の位置の変更頻度(インク吐出部と対向部材との隙間の調整頻度)はそれほど高くなく、インク吐出部の位置の判断タイミングを知らせるタイミング信号が頻繁に出力されることはほとんどない。また、隙間調整機構の構成上、隙間検出装置から出力された出力信号が、閾値に達するレベル変化を所定の回数行って、制御信号を確定する前に電気的ノイズは発生しにくい。そのため、先読み方法で、インク吐出部の位置を判断する制御信号を生成することで、インク吐出部の位置を適切に判断することができる。また、先読み方法で、インク吐出部の位置を判断する制御信号を生成すると、制御信号の生成処理が簡素化される。   In the present invention, an ink ejection unit that ejects ink onto printing paper and / or a predetermined print object, an opposing member that faces the ink ejection unit, and a gap adjustment mechanism that adjusts the gap between the ink ejection unit and the opposing member; And a gap detection device that outputs an output signal corresponding to the position of the ink ejection portion to be detected as a detection device, and the control signal generator controls the position of the ink ejection portion by a pre-reading method. Preferably, a signal is generated. The frequency of changing the position of the ink discharge portion (adjustment frequency of the gap between the ink discharge portion and the opposing member) is not so high, and a timing signal that informs the determination timing of the position of the ink discharge portion is rarely output. In addition, due to the configuration of the gap adjustment mechanism, electrical noise is unlikely to occur before the output signal output from the gap detection device changes the level reaching the threshold value a predetermined number of times to determine the control signal. Therefore, the position of the ink discharge unit can be appropriately determined by generating a control signal for determining the position of the ink discharge unit by the pre-reading method. In addition, when a control signal for determining the position of the ink ejection unit is generated by the pre-reading method, the control signal generation process is simplified.

本発明において、印刷対象物としての光ディスクが載置されるディスクトレイを被検出物として備えるとともに、ディスクトレイの有無に応じた出力信号を出力するトレイ検出装置を検出装置として備え、制御信号生成部では、先読み方法で、ディスクトレイの有無を判断する制御信号を生成することが好ましい。ディスクトレイの有無の検出頻度はそれほど高くなく、ディスクトレイに対するタイミング信号が頻繁に出力されることはほとんどない。また、ディスクトレイの構成上、検出装置から出力された出力信号が、閾値に達するレベル変化を所定回数行って、制御信号を確定する前に電気的ノイズは発生しにくい。そのため、先読み方法で、ディスクトレイの有無を判断する制御信号を生成することで、ディスクトレイの有無を適切に判断することができる。また、先読み方法で、ディスクトレイの有無を判断する制御信号を生成すると、制御信号の生成処理が簡素化される。   In the present invention, a disc tray on which an optical disc as a printing object is placed is provided as a detected object, and a tray detection device that outputs an output signal according to the presence or absence of the disc tray is provided as a detection device, and a control signal generation unit Then, it is preferable to generate a control signal for determining the presence / absence of a disk tray by a pre-reading method. The frequency of detecting the presence or absence of a disk tray is not so high, and timing signals for the disk tray are rarely output frequently. In addition, due to the configuration of the disc tray, electrical noise is unlikely to occur before the output signal output from the detection device changes the level reaching the threshold value a predetermined number of times to determine the control signal. Therefore, the presence or absence of the disk tray can be appropriately determined by generating a control signal for determining the presence or absence of the disk tray by the prefetching method. Further, when a control signal for determining the presence or absence of a disk tray is generated by the pre-reading method, the control signal generation process is simplified.

本発明において、印刷対象物としての光ディスクが載置されるディスクトレイと、ディスクトレイを案内するトレイガイドとを備えるとともに、被検出物となるトレイガイドの状態に応じた出力信号を出力するガイド検出装置を検出装置として備え、制御信号生成部では、通常読み方法で、トレイガイドの状態を判断する制御信号を生成することが好ましい。光ディスクに印刷をするために、ディスクトレイの案内位置にトレイガイドが一度設定されると、光ディスクの印刷が終了するまで、トレイガイドの位置が変更されることはない。すなわち、トレイガイド位置の変更の頻度は低い。また、トレイガイドの状態を判断する制御信号をトリガとして、たとえば、一連の印刷動作のような連続動作を行うことはあまりない。そのため、通常読み方法で、トレイガイドの位置を判断する制御信号を生成しても、トレイガイドの位置を適切に判断することができる。また、通常読み方法で、トレイガイドの位置を判断する制御信号を生成すると、信号の生成処理が簡素化される。   In the present invention, a guide detection that includes a disc tray on which an optical disc as a printing object is placed and a tray guide that guides the disc tray, and that outputs an output signal in accordance with the state of the tray guide serving as a detection target. Preferably, the apparatus is provided as a detection device, and the control signal generator generates a control signal for determining the state of the tray guide by a normal reading method. Once the tray guide is set at the guide position of the disc tray for printing on the optical disc, the position of the tray guide is not changed until the printing of the optical disc is completed. That is, the frequency of changing the tray guide position is low. Also, there is not much continuous operation such as a series of printing operations using a control signal for determining the state of the tray guide as a trigger. Therefore, even if a control signal for determining the position of the tray guide is generated by the normal reading method, the position of the tray guide can be appropriately determined. In addition, when the control signal for determining the position of the tray guide is generated by the normal reading method, the signal generation process is simplified.

さらに、上記の課題を解決するため、本発明は、複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置を備えるプリンタの制御方法であって、被検出物の状態の判断タイミングを知らせるタイミング信号が出力された後に検出装置から出力された出力信号が、出力信号に対して設定される閾値に達するレベル変化を所定の回数したときに、検出装置からの出力信号と出力信号に対して設定される閾値とから生成され被検出物の状態を判断するための制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない先読み方法と、タイミング信号が出力された後の所定時間内における検出装置からの出力信号の中で閾値に達した最後のレベル変化に基づいて制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない後読み方法と、タイミング信号が出力された後に検出装置から出力された出力信号が、閾値に達するレベル変化をしたときに、制御信号を確定し、少なくともその後の所定のマスク時間は、制御信号を変化させないマスク読み方法と、の3つの信号生成方法のうちから被検出物に応じた少なくとも2種類の信号生成方法で制御信号を生成して所定の制御を行うことを特徴とする。   Furthermore, in order to solve the above-described problems, the present invention provides a method for controlling a printer including a plurality of detection devices that output output signals corresponding to the states of a plurality of different detection objects. The output signal from the detection device when the output signal output from the detection device after the output of the timing signal informing the state determination timing reaches a threshold set for the output signal a predetermined number of times And a threshold value set with respect to the output signal, a control signal for determining the state of the detected object is determined, and a prefetching method that does not change the control signal until at least the next timing signal is output; The control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after the timing signal is output. Both the post-reading method that does not change the control signal until the next timing signal is output, and the control signal when the level of the output signal output from the detection device after the timing signal is output changes to a threshold value. The control signal is generated by at least two types of signal generation methods according to the detected object from among the three signal generation methods of the mask reading method in which the control signal is not changed at least for a predetermined mask time thereafter. Then, predetermined control is performed.

本発明のプリンタの制御方法では、被検出物の状態の誤検出を防止するための制御信号の生成方法となる先読み方法、後読み方法およびマスク読み方法の3つの信号生成方法のうちから、被検出物に応じた信号生成方法で制御信号を生成する。そのため、3つの信号生成方法のうち、検出対象となる被検出物の構成上の特徴に合わせた好適な方法で、被検出物の状態を判断するための制御信号を生成することが可能になる。   According to the printer control method of the present invention, among the three signal generation methods of the pre-read method, the post-read method, and the mask read method, which are control signal generation methods for preventing erroneous detection of the state of the detection target, A control signal is generated by a signal generation method corresponding to the detected object. Therefore, among the three signal generation methods, it is possible to generate a control signal for determining the state of the detected object by a suitable method that matches the structural characteristics of the detected object to be detected. .

さらにまた、上記の課題を解決するため、本発明は、複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置を備えるとともに、被検出物として内部に取り込まれる印刷用紙の有無に応じた出力信号を出力する用紙検出装置を検出装置として少なくとも備えるプリンタの制御方法であって、被検出物の状態の判断タイミングを知らせるタイミング信号が出力された後に検出装置から出力された出力信号が、出力信号に対して設定される閾値に達するレベル変化をしたときに、検出装置からの出力信号と閾値とから生成され被検出物の状態を判断するための制御信号を確定し、少なくともその後の所定のマスク時間は、制御信号を変化させないマスク読み方法で、印刷用紙の有無を判断する制御信号を生成するとともに、タイミング信号が出力された後に検出装置から出力された出力信号が、閾値に達するレベル変化を所定の回数したときに、制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない先読み方法と、タイミング信号が出力された後の所定時間内における検出装置からの出力信号の中で閾値に達した最後のレベル変化に基づいて制御信号を確定し、少なくとも次のタイミング信号が出力されるまで、制御信号を変化させない後読み方法と、出力信号のレベル変化に応じた制御信号を生成する通常読み方法と、の3つの信号生成方法のうちのいずれかの生成方法で印刷用紙以外の被検出物の状態を判断する制御信号を生成して所定の制御を行うことを特徴とする。   Furthermore, in order to solve the above-described problem, the present invention includes a plurality of detection devices that output output signals corresponding to the states of a plurality of different objects to be detected, and printing that is taken into the inside as the objects to be detected. A printer control method comprising at least a paper detection device that outputs an output signal according to the presence or absence of paper as a detection device, and is output from the detection device after a timing signal that informs the determination timing of the state of the detected object is output. When the output signal changes in level to reach the threshold set for the output signal, the control signal generated from the output signal from the detection device and the threshold is used to determine the state of the detected object. At least a predetermined mask time thereafter generates a control signal for determining the presence or absence of printing paper by a mask reading method that does not change the control signal. In addition, when the output signal output from the detection device after the timing signal is output reaches the threshold value for a predetermined number of times, the control signal is determined and control is performed until at least the next timing signal is output. A pre-reading method that does not change the signal, and a control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after the timing signal is output, and at least the next timing The post-reading method that does not change the control signal until the signal is output, and the normal reading method that generates the control signal according to the level change of the output signal, and any one of the three signal generation methods A predetermined control is performed by generating a control signal for determining the state of an object to be detected other than printing paper.

本発明のプリンタの制御方法では、マスク読み方法で印刷用紙の有無を判断する制御信号を生成している。そのため、プリンタ内部に取り込まれる印刷用紙の有無を適切に判断することができる。また、本発明のプリンタの制御方法では、先読み方法、後読み方法および通常読み方法の3つの信号生成方法のいずれかの生成方法で、印刷用紙以外の被検出物の状態を判断する制御信号を生成している。そのため、3つの信号生成方法のうち、印刷用紙以外の被検出物の構成上の特徴に合わせた好適な方法で、被検出物の状態を判断するための制御信号を生成することが可能になる。また、印刷用紙以外の被検出物の状態を判断する制御信号を生成する際には、マスク時間のカウントが不要となるため、制御信号の生成処理が簡素化される。   In the printer control method of the present invention, a control signal for determining the presence or absence of printing paper is generated by the mask reading method. For this reason, it is possible to appropriately determine the presence or absence of printing paper to be taken into the printer. In the printer control method of the present invention, the control signal for judging the state of the detected object other than the printing paper is generated by any one of the three signal generation methods of the pre-read method, the post-read method, and the normal read method. Is generated. Therefore, among the three signal generation methods, it is possible to generate a control signal for determining the state of the detected object by a suitable method that matches the structural characteristics of the detected object other than the printing paper. . In addition, when generating a control signal for determining the state of an object to be detected other than printing paper, it is not necessary to count the mask time, so the control signal generation process is simplified.

以下、本発明の実施の形態にかかるプリンタおよびプリンタの制御方法を図面に基づいて説明する。   Hereinafter, a printer and a printer control method according to an embodiment of the present invention will be described with reference to the drawings.

(プリンタの概略構成)
図1は、本発明の実施の形態にかかるプリンタ1の概略構成を示す斜視図である。図2は、図1のプリンタ1の紙送りに関する部分の概略構成を示す概略側面図である。図3は、図1のキャリッジ3および図2のPF駆動ローラ6の検出機構を示す概略構成図である。図4は、図2の用紙検出装置14の構成を示す図であり、(A)は側面図、(B)は平面図である。図5は、図2のディスクトレイ85およびその周辺部分の概略構成を示す概略平面図である。図6は、図5のX−X方向からディスクトレイ85およびその周辺部分の概略構成を示す概略側面図である。図7は、図6のY方向からガイド検出装置90およびその周辺部分の概略構成を示す概略正面図であり、(A)はガイド検出装置90がオンの状態を示し、(B)はガイド検出装置90がオフの状態を示す。図8は、本発明の実施の形態にかかる隙間調整機構70の一部を示す斜視図である。図9は、図8の隙間調整機構70の一部を示す側面図である。図10は、図8の隙間調整機構70の一部を示す分解斜視図である。
(Schematic configuration of the printer)
FIG. 1 is a perspective view showing a schematic configuration of a printer 1 according to an embodiment of the present invention. FIG. 2 is a schematic side view showing a schematic configuration of a portion related to paper feeding of the printer 1 of FIG. FIG. 3 is a schematic configuration diagram showing a detection mechanism of the carriage 3 of FIG. 1 and the PF drive roller 6 of FIG. 4A and 4B are diagrams showing the configuration of the paper detection device 14 shown in FIG. 2, wherein FIG. 4A is a side view and FIG. 4B is a plan view. FIG. 5 is a schematic plan view showing a schematic configuration of the disk tray 85 of FIG. 2 and its peripheral portion. FIG. 6 is a schematic side view showing a schematic configuration of the disc tray 85 and its peripheral portion from the XX direction of FIG. 7 is a schematic front view showing a schematic configuration of the guide detection device 90 and its peripheral part from the Y direction of FIG. 6, (A) shows a state in which the guide detection device 90 is on, and (B) shows guide detection. The device 90 is shown in an off state. FIG. 8 is a perspective view showing a part of the gap adjusting mechanism 70 according to the embodiment of the present invention. FIG. 9 is a side view showing a part of the gap adjusting mechanism 70 of FIG. FIG. 10 is an exploded perspective view showing a part of the gap adjusting mechanism 70 of FIG.

本形態のプリンタ1は、印刷対象物となる印刷用紙PやCD、DVD等の光ディスクDに対して液体状のインクを吐出して印刷を行うインクジェットプリンタである。本形態のプリンタ1は、図1から図3に示すように、インク滴を吐出する印刷ヘッド2が搭載されたキャリッジ3と、主走査方向MSのキャリッジ3を駆動するキャリッジモータ(CRモータ)4と、印刷用紙Pを副走査方向SSへ搬送する紙送りモータ(PFモータ)5と、PFモータ5に連結されたPF駆動ローラ6と、印刷ヘッド2のノズル面(図2の下面)と対向するように配置された対向部材としてのプラテン7と、これらの構成が搭載された本体シャーシ8とを備えている。本形態では、CRモータ4とPFモータ5とは、ともに直流(DC)モータである。   The printer 1 of this embodiment is an ink jet printer that performs printing by ejecting liquid ink onto an optical disk D such as a printing paper P, a CD, or a DVD that is a printing object. As shown in FIGS. 1 to 3, the printer 1 of this embodiment includes a carriage 3 on which a print head 2 that ejects ink droplets is mounted, and a carriage motor (CR motor) 4 that drives the carriage 3 in the main scanning direction MS. And a paper feed motor (PF motor) 5 that transports the printing paper P in the sub-scanning direction SS, a PF driving roller 6 connected to the PF motor 5, and a nozzle surface of the print head 2 (the lower surface in FIG. 2). A platen 7 as an opposing member arranged so as to be arranged, and a main body chassis 8 on which these configurations are mounted. In this embodiment, both the CR motor 4 and the PF motor 5 are direct current (DC) motors.

また、プリンタ1は、図2に示すように、印刷前の印刷用紙Pが載置されるホッパ11と、ホッパ11に載置された印刷用紙Pをプリンタ1の内部へ取り込むための給紙ローラ12および分離パッド13と、ホッパ11からプリンタ1の内部へ取り込まれた印刷用紙Pの先端をPF駆動ローラ6へ案内する用紙案内板30と、ホッパ11からプリンタ1の内部へ取り込まれた印刷用紙Pの通過を検出するための用紙検出装置14と、プリンタ1の内部から印刷用紙Pを排出する排紙駆動ローラ15とを備えている。   Further, as shown in FIG. 2, the printer 1 includes a hopper 11 on which the printing paper P before printing is placed, and a paper feed roller for taking the printing paper P placed on the hopper 11 into the printer 1. 12, a separation pad 13, a paper guide plate 30 for guiding the leading edge of the printing paper P taken into the printer 1 from the hopper 11 to the PF driving roller 6, and a printing paper taken into the printer 1 from the hopper 11 A paper detection device 14 for detecting the passage of P and a paper discharge driving roller 15 for discharging the print paper P from the inside of the printer 1 are provided.

さらに、プリンタ1は、図2や図5、図6に示すように、光ディスクDが載置されるディスクトレイ85と、このディスクトレイ85をプリンタ1の内部へ案内する2枚のトレイガイド86、86とを備えている。また、本形態のプリンタ1は、図8から図10に示すように、印刷ヘッド2のノズル面とプラテン7との隙間を調整する隙間調整機構70を備えている。そして、本形態のプリンタ1では、印刷用紙Pの厚み等に応じて、印刷ヘッド2のノズル面とプラテン7との隙間を調整する構成となっている。   Further, as shown in FIGS. 2, 5, and 6, the printer 1 includes a disk tray 85 on which the optical disk D is placed, and two tray guides 86 that guide the disk tray 85 to the inside of the printer 1. 86. Further, the printer 1 of this embodiment includes a gap adjusting mechanism 70 that adjusts the gap between the nozzle surface of the print head 2 and the platen 7 as shown in FIGS. 8 to 10. In the printer 1 according to the present embodiment, the gap between the nozzle surface of the print head 2 and the platen 7 is adjusted according to the thickness of the printing paper P or the like.

キャリッジ3は、本体シャーシ8に固定された支持フレーム16に支持されたガイドシャフト17と、タイミングベルト18とによって主走査方向MSに搬送可能に構成されている。すなわち、タイミングベルト18は、その一部がキャリッジ3に固定される(図2参照)とともに、CRモータ4の出力軸に取り付けられたプーリ19と支持フレーム16に回転可能に取り付けられたプーリ20とに掛け渡された状態で一定の張力を有するように配設されている。ガイドシャフト17は、キャリッジ3を主走査方向MSへ案内するように、キャリッジ3を摺動可能に保持している。また、キャリッジ3には、印刷ヘッド2に加え、印刷ヘッド2に供給される各種のインクが収納されたインクカートリッジ21が搭載されている。   The carriage 3 is configured to be transportable in the main scanning direction MS by a guide shaft 17 supported by a support frame 16 fixed to the main body chassis 8 and a timing belt 18. That is, a part of the timing belt 18 is fixed to the carriage 3 (see FIG. 2), and the pulley 19 attached to the output shaft of the CR motor 4 and the pulley 20 attached rotatably to the support frame 16 It is arrange | positioned so that it may have fixed tension in the state hung over. The guide shaft 17 slidably holds the carriage 3 so as to guide the carriage 3 in the main scanning direction MS. In addition to the print head 2, an ink cartridge 21 that stores various inks supplied to the print head 2 is mounted on the carriage 3.

印刷ヘッド2には、図示を省略する複数のノズルが配設されている。また、印刷ヘッド2には、たとえば、各ノズルに対応するように、電歪素子の1つであって応答性に優れるピエゾ素子(図示省略)が配設されている。より具体的には、ピエゾ素子は、インク通路(図示省略)を形成する壁面に接する位置に配設されている。そして、このピエゾ素子の動作によって壁面が押されることで、印刷ヘッド2は、インク通路の端部に配設されたノズルからインク滴を吐出する。このように、本形態では、印刷ヘッド2は、印刷用紙Pに対して液体状のインクを吐出するインク吐出部となっている。また、インクカートリッジ21には、たとえば、発色が良く画質に優れる染料系インクや、耐水性や耐光性に優れる顔料系インク等が収納され、印刷ヘッド2から染料系インクや顔料系インク等が吐出される。   The print head 2 is provided with a plurality of nozzles (not shown). The print head 2 is provided with a piezoelectric element (not shown) that is one of electrostrictive elements and has excellent responsiveness so as to correspond to each nozzle, for example. More specifically, the piezoelectric element is disposed at a position in contact with a wall surface that forms an ink passage (not shown). When the wall surface is pushed by the operation of the piezo element, the print head 2 ejects ink droplets from the nozzles disposed at the end of the ink passage. As described above, in this embodiment, the print head 2 is an ink ejection unit that ejects liquid ink onto the printing paper P. The ink cartridge 21 contains, for example, dye-based ink with good color development and excellent image quality, pigment-based ink with excellent water resistance and light resistance, and the like. Is done.

給紙ローラ12は、図示を省略するギアを介してPFモータ5に連結され、PFモータ5によって駆動される。ホッパ11は、図2に示すように、印刷用紙Pを載置可能な板状部材であり、図示を省略するカム機構によって、上部に設けられた回動軸22を中心に揺動可能となっている。そして、カム機構による揺動によって、ホッパ11の下端部が給紙ローラ12に弾性的に圧接され、また、給紙ローラ12から離間する。分離パッド13は、摩擦係数の高い部材から形成され、給紙ローラ12に対向する位置に配置されている。そして、給紙ローラ12が回転すると、給紙ローラ12の表面と分離パッド13とが圧接する。そのため、給紙ローラ12が回転すると、ホッパ11に載置された印刷用紙Pのうち、一番上の印刷用紙Pは、給紙ローラ12の表面と分離パッド13との圧接部分を通過して排紙側へ送られるが、上から2番目以降に載置された印刷用紙Pは、分離パッド13によって、排紙側への搬送が阻止される。   The paper feed roller 12 is connected to the PF motor 5 through a gear (not shown) and is driven by the PF motor 5. As shown in FIG. 2, the hopper 11 is a plate-like member on which the printing paper P can be placed, and can swing around a rotation shaft 22 provided on the upper portion by a cam mechanism (not shown). ing. The lower end portion of the hopper 11 is elastically pressed against the paper feed roller 12 by the cam mechanism and is separated from the paper feed roller 12. The separation pad 13 is formed of a member having a high friction coefficient, and is disposed at a position facing the paper feed roller 12. When the paper feed roller 12 rotates, the surface of the paper feed roller 12 and the separation pad 13 are pressed against each other. Therefore, when the paper feeding roller 12 rotates, the uppermost printing paper P among the printing paper P placed on the hopper 11 passes through the pressure contact portion between the surface of the paper feeding roller 12 and the separation pad 13. Although it is sent to the paper discharge side, the printing paper P placed on the second and subsequent pages from the top is prevented from being conveyed to the paper discharge side by the separation pad 13.

PF駆動ローラ6は、PFモータ5に直接あるいは図示を省略するギアを介して連結されている。また、図2に示すように、プリンタ1には、PF駆動ローラ6とともに印刷用紙Pを搬送するPF従動ローラ23が設けられている。PF従動ローラ23は、回転軸25を中心に揺動可能に構成された従動ローラホルダ24の排紙側に回動可能に保持されている。従動ローラホルダ24は、図示を省略するバネによって、PF従動ローラ23がPF駆動ローラ6へ向かう付勢力を常時受けるように、図示反時計方向へ付勢されている。そして、PF駆動ローラ6が駆動されると、PF駆動ローラ6とともに、PF従動ローラ23も回転する。   The PF drive roller 6 is connected to the PF motor 5 directly or via a gear not shown. As shown in FIG. 2, the printer 1 is provided with a PF driven roller 23 that conveys the printing paper P together with the PF drive roller 6. The PF driven roller 23 is rotatably held on the paper discharge side of the driven roller holder 24 configured to be swingable about the rotation shaft 25. The driven roller holder 24 is urged counterclockwise by an unillustrated spring so that the PF driven roller 23 always receives the urging force toward the PF drive roller 6. When the PF driving roller 6 is driven, the PF driven roller 23 is rotated together with the PF driving roller 6.

用紙検出装置14は、被検出物となる印刷用紙Pの有無に応じた出力信号を出力する。この用紙検出装置14は、図2および図4に示すように検出レバー26とフォトセンサ27とから構成され、従動ローラホルダ24の近傍に設けられている。フォトセンサ27は、図4(B)に示すように、発光素子(図示省略)を有する発光部45と受光素子(図示省略)を有する受光部46とを備えている。検出レバー26は、回転軸28を中心に回動可能に構成されており、印刷用紙Pがプリンタ1の内部に取り込まれているとき、検出レバー26は図4(A)の実線で示す状態となり、印刷用紙Pがプリンタ1の内部に取り込まれていないとき、検出レバー26は図4(A)の二点鎖線で示す状態となる。すなわち、図4(A)の二点鎖線で示す状態で、プリンタ1の内部に取り込まれた印刷用紙Pの先端が検出レバー26の下端側に当接すると、図4(A)の実線で示すように、検出レバー26が時計方向へ回動して、検出レバー26で遮断されていた発光部45からの光が受光部46で検出される。検出レバー26の下側を印刷用紙Pが通過している間は、発光部45からの光が受光部46で検出されている。また、印刷用紙Pの後端が検出レバー26の下端側から外れ、検出レバー26の下側を印刷用紙Pが通過し終わると、検出レバー26が反時計方向へ回動して、発光部45から受光部46へ向かう光が遮断される。このようにして、用紙検出装置14は印刷用紙Pの通過を検出するために、プリンタ1の内部に取り込まれる印刷用紙Pの有無に応じた出力信号を出力する。   The paper detection device 14 outputs an output signal in accordance with the presence or absence of the print paper P that is a detection object. As shown in FIGS. 2 and 4, the sheet detection device 14 includes a detection lever 26 and a photo sensor 27, and is provided in the vicinity of the driven roller holder 24. As shown in FIG. 4B, the photosensor 27 includes a light emitting unit 45 having a light emitting element (not shown) and a light receiving unit 46 having a light receiving element (not shown). The detection lever 26 is configured to be rotatable about a rotation shaft 28. When the printing paper P is taken into the printer 1, the detection lever 26 is in a state indicated by a solid line in FIG. When the printing paper P is not taken into the printer 1, the detection lever 26 is in a state indicated by a two-dot chain line in FIG. That is, in the state indicated by the two-dot chain line in FIG. 4A, when the leading edge of the printing paper P taken into the printer 1 comes into contact with the lower end side of the detection lever 26, the solid line in FIG. As described above, the detection lever 26 rotates in the clockwise direction, and the light from the light emitting unit 45 that has been blocked by the detection lever 26 is detected by the light receiving unit 46. While the printing paper P passes under the detection lever 26, the light from the light emitting unit 45 is detected by the light receiving unit 46. When the trailing edge of the printing paper P is disengaged from the lower end side of the detection lever 26 and the printing paper P has passed through the lower side of the detection lever 26, the detection lever 26 rotates counterclockwise, and the light emitting unit 45 To the light receiving unit 46 is blocked. In this way, the paper detection device 14 outputs an output signal corresponding to the presence or absence of the print paper P taken into the printer 1 in order to detect the passage of the print paper P.

排紙駆動ローラ15は、プリンタ1の排紙側に配置され、図示を省略するギアを介してPFモータ5に連結されている。また、図2に示すように、プリンタ1には、排紙駆動ローラ15とともに印刷用紙Pを排紙する排紙従動ローラ29が設けられている。排紙従動ローラ29も、PF従動ローラ23と同様に、図示を省略するバネによって、常時、排紙駆動ローラ15へ向かう付勢力を受けている。そして、排紙駆動ローラ15が駆動されると、排紙駆動ローラ15とともに、排紙従動ローラ29も回転する。   The paper discharge drive roller 15 is disposed on the paper discharge side of the printer 1 and is connected to the PF motor 5 via a gear (not shown). As shown in FIG. 2, the printer 1 is provided with a paper discharge driven roller 29 that discharges the printing paper P together with the paper discharge driving roller 15. Similarly to the PF driven roller 23, the paper discharge driven roller 29 is always urged toward the paper discharge drive roller 15 by a spring (not shown). When the paper discharge driving roller 15 is driven, the paper discharge driven roller 29 is rotated together with the paper discharge driving roller 15.

光ディスクDの印刷時には、図2に示すように、ディスクトレイ85が、プリンタ1の前面側(図1の紙面手前側)からプリンタ1の内部へ出入する。このディスクトレイ85がプリンタ1の内部へ出入する際の妨げとならないように、PF駆動ローラ6やプラテン7、用紙案内板30、排紙駆動ローラ15等は、図示を省略する昇降機構によって、図2に示す状態から下降する構成となっている。すなわち、図2に示す印刷用紙Pへの印刷状態から、PF駆動ローラ6やプラテン7、用紙案内板30、排紙駆動ローラ15等が下降することで、プリンタ1では、ディスクトレイ85の受入が可能となり、光ディスクDへの印刷が可能となる。   At the time of printing on the optical disk D, as shown in FIG. 2, the disk tray 85 enters and exits the printer 1 from the front side of the printer 1 (the front side in FIG. 1). The PF drive roller 6, the platen 7, the paper guide plate 30, the paper discharge drive roller 15, and the like are not shown in the figure by an elevating mechanism (not shown) so that the disk tray 85 does not hinder the entrance and exit of the printer 1. 2 is lowered from the state shown in FIG. That is, when the PF drive roller 6, the platen 7, the paper guide plate 30, the paper discharge drive roller 15, etc. are lowered from the print state on the print paper P shown in FIG. 2, the printer 1 receives the disc tray 85. And printing on the optical disk D becomes possible.

また、プリンタ1は、図2および図3に示すように、主走査方向MSにおけるキャリッジ3の位置やキャリッジ3の速度等を検出する位置検出装置として、リニアスケール31およびフォトセンサ32を有するリニアエンコーダ33を備えている。また、プリンタ1は、図3に示すように、副走査方向SSにおける印刷用紙Pの位置や印刷用紙Pの搬送速度等(具体的には、PF駆動ローラ6の回転位置や回転速度等)を検出する位置検出装置として、ロータリスケール34およびフォトセンサ35を有するロータリエンコーダ36を備えている。これらのリニアエンコーダ33およびロータリエンコーダ36から出力された信号は、図3に示すように、制御部37へ入力され、プリンタ1の各種の制御が行われている。なお、図1では、便宜上、リニアスケール31等の図示を省略している。   2 and 3, the printer 1 is a linear encoder having a linear scale 31 and a photosensor 32 as a position detection device that detects the position of the carriage 3 and the speed of the carriage 3 in the main scanning direction MS. 33 is provided. Further, as shown in FIG. 3, the printer 1 determines the position of the printing paper P in the sub-scanning direction SS, the conveyance speed of the printing paper P, and the like (specifically, the rotational position and rotational speed of the PF drive roller 6). As a position detection device for detection, a rotary encoder 36 having a rotary scale 34 and a photosensor 35 is provided. Signals output from the linear encoder 33 and the rotary encoder 36 are input to the control unit 37 as shown in FIG. 3, and various controls of the printer 1 are performed. In FIG. 1, the linear scale 31 and the like are not shown for convenience.

リニアエンコーダ33を構成するフォトセンサ32は、図2および図3に示すように、発光部41と受光部42とを備えている。このフォトセンサ32は、キャリッジ3の背面(図1の紙面奥側の面)に固定されている。リニアスケール31は、透明な樹脂等の薄板や、ステンレス製の薄鋼板から長尺状(細長の直線状)に形成されている。このリニアスケール31は、主走査方向MSと平行に支持フレーム16に取り付けられている。また、リニアスケール31には、フォトセンサ32の発光部41からの光を透過する透光部(図示省略)と、フォトセンサ32の発光部41からの光を遮断する遮光部(図示省略)とが、長手方向に沿って、交互に形成されている。   The photosensor 32 constituting the linear encoder 33 includes a light emitting unit 41 and a light receiving unit 42, as shown in FIGS. The photosensor 32 is fixed to the back surface of the carriage 3 (the surface on the back side of the paper in FIG. 1). The linear scale 31 is formed in a long shape (elongated linear shape) from a thin plate such as a transparent resin or a thin steel plate made of stainless steel. The linear scale 31 is attached to the support frame 16 in parallel with the main scanning direction MS. The linear scale 31 includes a light-transmitting part (not shown) that transmits light from the light-emitting part 41 of the photosensor 32 and a light-shielding part (not shown) that blocks light from the light-emitting part 41 of the photosensor 32. Are alternately formed along the longitudinal direction.

ロータリエンコーダ36を構成するフォトセンサ35は、図3に示すように、発光部81と受光部82とを備え、図示を省略するブラケットを介して本体シャーシ8等に固定されている。ロータリスケール34は、ステンレス製の薄鋼板や透明な樹脂製の薄板で、円盤状に形成されている。本形態のロータリスケール34は、PF駆動ローラ6と一体で回転するように、PF駆動ローラ6に取り付けられている。すなわち、PF駆動ローラ6が1回転すると、ロータリスケール34も1回転する。このロータリスケール34には、フォトセンサ35の発光素子からの光を透過する透光部(図示省略)と、フォトセンサ35の発光素子からの光を遮断する遮光部(図示省略)とが、円周方向に沿って、交互に形成されている。   As shown in FIG. 3, the photosensor 35 constituting the rotary encoder 36 includes a light emitting unit 81 and a light receiving unit 82, and is fixed to the main chassis 8 or the like via a bracket (not shown). The rotary scale 34 is a thin steel plate made of stainless steel or a thin plate made of a transparent resin, and is formed in a disk shape. The rotary scale 34 of this embodiment is attached to the PF drive roller 6 so as to rotate integrally with the PF drive roller 6. That is, when the PF drive roller 6 makes one revolution, the rotary scale 34 also makes one revolution. The rotary scale 34 has a light transmitting part (not shown) that transmits light from the light emitting element of the photosensor 35 and a light shielding part (not shown) that blocks light from the light emitting element of the photosensor 35. They are formed alternately along the circumferential direction.

ディスクトレイ85は、図5等に示すように、光ディスクDの載置部が形成された箱状の部材である。このディスクトレイ85は、図示を省略するトレイ用モータによって図5の上下方向(図6の左右方向)に移動して、プリンタ1の内部に出入する。トレイガイド86、86は、図5に示すように、主走査方向MSにおけるディスクトレイ85の両側に1枚ずつ設けられている。2枚のトレイガイド86、86はそれぞれ、固定軸88を回転中心として回動可能となっている。また、2枚のトレイガイド86、86の回動は手動(ユーザ)によって行われる。図6の二点鎖線で示す状態が印刷用紙Pへの印刷を行うときのトレイガイド86、86の状態である。また、図6の実線で示す状態が光ディスクDへの印刷を行うときのトレイガイド86、86の状態である。すなわち、図6の二点鎖線で示す状態から、ユーザが固定軸88を中心に2枚のトレイガイド86、86をそれぞれ回動させることで、図6の実線で示す状態となって、2枚のトレイガイド86、86がディスクトレイ85を案内する構成となっている。トレイガイド86、86は、図6の実線で示す状態、および、二点鎖線で示す状態では、図示を省略するコイルバネによって位置決めされて、固定されている。なお、図5では、ディスクトレイ85が上側に移動することで、図6では、ディスクトレイ85が左側に移動することで、ディスクトレイ85はプリンタ1の内部へ挿入される。また、不図示のトレイ用モータは、たとえば、DCモータである。   The disc tray 85 is a box-like member in which a placement portion for the optical disc D is formed, as shown in FIG. The disc tray 85 is moved in and out of the printer 1 by being moved in the vertical direction in FIG. 5 (left and right direction in FIG. 6) by a tray motor (not shown). As shown in FIG. 5, one tray guide 86 is provided on each side of the disc tray 85 in the main scanning direction MS. Each of the two tray guides 86 and 86 is rotatable about a fixed shaft 88 as a rotation center. The two tray guides 86 and 86 are manually rotated (user). The state indicated by the two-dot chain line in FIG. 6 is the state of the tray guides 86 and 86 when printing on the printing paper P is performed. Further, the state shown by the solid line in FIG. 6 is the state of the tray guides 86 and 86 when printing on the optical disc D is performed. That is, when the user rotates the two tray guides 86 and 86 around the fixed shaft 88 from the state shown by the two-dot chain line in FIG. 6, the state shown by the solid line in FIG. The tray guides 86, 86 are configured to guide the disc tray 85. The tray guides 86 and 86 are positioned and fixed by a coil spring (not shown) in the state indicated by the solid line in FIG. 6 and the state indicated by the two-dot chain line. In FIG. 5, the disc tray 85 is inserted into the printer 1 by moving the disc tray 85 upward, and in FIG. 6, the disc tray 85 is moved leftward. The tray motor (not shown) is, for example, a DC motor.

また、プリンタ1の前面側には、図5から図7に示すように、ディスクトレイ85がプリンタ1の内部に取り込まれたことを検出するためのトレイ検出装置89と、2つのトレイガイド86、86の状態を検出するための2つのガイド検出装置90、90とが設けられている。   Further, as shown in FIGS. 5 to 7, on the front side of the printer 1, as shown in FIGS. 5 to 7, a tray detection device 89 for detecting that the disk tray 85 has been taken into the printer 1, two tray guides 86, Two guide detection devices 90 and 90 for detecting the state of 86 are provided.

トレイ検出装置89は、スイッチレバー89aと接点部89bとから構成される機械式の接点スイッチである。このトレイ検出装置89では、ディスクトレイ85が図6の左側へ移動してスイッチレバー89aに当接し、スイッチレバー89aが時計方向へ所定の角度、回動すると(すなわち、プリンタ1の内部にディスクトレイ85の取り込まれると)、接点部89bの接点(図示省略)がオンの状態となり、ディスクトレイ85が図6の右側に位置してスイッチレバー89aに当接していないと(すなわち、プリンタ1の内部にディスクトレイ85の取り込まれていないと)、接点部89bの接点はオフの状態となる。このように、トレイ検出装置89は、プリンタ1の内部にディスクトレイ85が取り込まれたか否かに応じた(すなわち、プリンタ1内部にディスクトレイ85が有るか無いかに応じた)出力信号を出力する。   The tray detection device 89 is a mechanical contact switch composed of a switch lever 89a and a contact portion 89b. In this tray detection device 89, the disk tray 85 moves to the left side in FIG. 6 and comes into contact with the switch lever 89a. When the switch lever 89a rotates clockwise by a predetermined angle (that is, inside the printer 1) 85), the contact (not shown) of the contact portion 89b is turned on, and the disk tray 85 is positioned on the right side of FIG. 6 and is not in contact with the switch lever 89a (that is, the inside of the printer 1). If the disc tray 85 is not taken in), the contact of the contact portion 89b is turned off. As described above, the tray detection device 89 outputs an output signal corresponding to whether or not the disc tray 85 has been taken into the printer 1 (that is, depending on whether or not the disc tray 85 is present in the printer 1). .

ガイド検出装置90も、トレイ検出装置89と同様に、スイッチレバー90aと接点部90bとから構成される機械式の接点スイッチである。このガイド検出装置90では、トレイガイド86が図6の実線で示す状態にあるとき、図7(A)に示すように、スイッチレバー90aにトレイガイド86が当接して、スイッチレバー90aが所定の角度傾き、接点部90bの接点(図示省略)がオンの状態となる。また、図6の二点鎖線で示す状態では、トレイガイド86はスイッチレバー90aから離れている。すなわち、ガイド検出装置90は、図7(B)に示す状態となり、接点部90bの接点はオフの状態となる。このように、ガイド検出装置90は、トレイガイド86の状態に応じた(すなわち、ディスクトレイ85の案内が可能な状態か否かに応じた)出力信号を出力する。   As with the tray detection device 89, the guide detection device 90 is also a mechanical contact switch that includes a switch lever 90a and a contact portion 90b. In the guide detection device 90, when the tray guide 86 is in the state shown by the solid line in FIG. 6, the tray guide 86 abuts on the switch lever 90a as shown in FIG. The angle contact and the contact (not shown) of the contact portion 90b are turned on. In the state indicated by the two-dot chain line in FIG. 6, the tray guide 86 is separated from the switch lever 90a. That is, the guide detection device 90 is in the state shown in FIG. 7B, and the contact of the contact portion 90b is in the off state. As described above, the guide detection device 90 outputs an output signal according to the state of the tray guide 86 (that is, according to whether or not the disk tray 85 can be guided).

隙間調整機構70は、図8に示すように、カム機構によって、ガイドシャフト17を支持フレーム16に対して昇降させる構成となっている。この隙間調整機構70は、支持フレーム16の一側面(図1における右側面)16a側および他側面(図1における左側面)16b側の両側に設けられている。以下では、支持フレーム16の一側面16a側に設けられた隙間調整機構70を例に、隙間調整機構70の構成を説明する。図8から図10に示すように、隙間調整機構70は、ガイドシャフト17の一端部(図1における右端部)側に固定された偏心カム71と、ガイドシャフト17の一端部に固定された第1従動ギア72と、駆動モータ73(以下、「PGモータ73」と表記する。)の動力を第1従動ギア72に伝達するギア輪列74と、一側面16aに固定され、偏心カム71のカム面71aが当接する固定ピン75と、検出板76およびフォトセンサ77を有し偏心カム71の回転位置(すなわち、印刷ヘッド2のノズル面とプラテン7との隙間)を検出するための隙間検出装置79と、ギア輪列74に連結され検出板76を回転させる第2従動ギア78とを備えている。本形態におけるPGモータ73はDCモータである。   As shown in FIG. 8, the gap adjusting mechanism 70 is configured to raise and lower the guide shaft 17 relative to the support frame 16 by a cam mechanism. The gap adjusting mechanism 70 is provided on both sides of one side (right side in FIG. 1) 16a and the other side (left side in FIG. 1) 16b of the support frame 16. Hereinafter, the configuration of the gap adjustment mechanism 70 will be described by taking the gap adjustment mechanism 70 provided on the one side surface 16a side of the support frame 16 as an example. As shown in FIGS. 8 to 10, the gap adjusting mechanism 70 includes an eccentric cam 71 fixed to one end portion (right end portion in FIG. 1) side of the guide shaft 17 and a first end fixed to the one end portion of the guide shaft 17. 1 driven gear 72, a gear wheel train 74 for transmitting the power of a drive motor 73 (hereinafter referred to as "PG motor 73") to the first driven gear 72, and one side 16a. Gap detection for detecting the rotational position of the eccentric cam 71 (that is, the gap between the nozzle surface of the print head 2 and the platen 7) having a fixed pin 75 with which the cam surface 71a abuts, a detection plate 76 and a photo sensor 77. A device 79 and a second driven gear 78 connected to the gear train 74 and rotating the detection plate 76 are provided. The PG motor 73 in this embodiment is a DC motor.

図8に示すように、支持フレーム16の一側面16aには、上下方向に長い長穴状の貫通孔16cが形成されている。ガイドシャフト17は貫通孔16cに挿通されている。また、一側面16aから突出したガイドシャフト17の端部に、偏心カム71と第1従動ギア72とが内側からこの順番で固定されている。固定ピン75は、貫通孔16cの下側に固定され、固定ピン75には、キャリッジ3等の重量によって、偏心カム71のカム面71aが所定の当接力で当接している。また、偏心カム71のカム面71aは、回転中心に対する半径が段階的に変化するように形成されている。たとえば、印刷ヘッド2の高さ方向の位置(すなわち、印刷ヘッド2のノズル面とプラテン7と隙間)を5段階で設定できるように、偏心カム71の回転中心に対するカム面71aの半径は、円周方向で5段階に変化している。   As shown in FIG. 8, an elongated through hole 16 c that is long in the vertical direction is formed on one side surface 16 a of the support frame 16. The guide shaft 17 is inserted through the through hole 16c. An eccentric cam 71 and a first driven gear 72 are fixed in this order from the inside to the end of the guide shaft 17 protruding from the one side surface 16a. The fixed pin 75 is fixed to the lower side of the through hole 16c, and the cam surface 71a of the eccentric cam 71 is in contact with the fixed pin 75 with a predetermined contact force due to the weight of the carriage 3 or the like. The cam surface 71a of the eccentric cam 71 is formed so that the radius with respect to the rotation center changes stepwise. For example, the radius of the cam surface 71a with respect to the rotation center of the eccentric cam 71 is a circle so that the position in the height direction of the print head 2 (that is, the gap between the nozzle surface of the print head 2 and the platen 7) can be set in five stages. It changes in five stages in the circumferential direction.

検出板76は、図10に示すように、円盤状に形成されるとともに、円周方向外側に伸びる複数の検出部76a〜76fを備えている。たとえば、検出板76は6枚の検出部76a〜76fを備えている。また、検出板76は、所定の軸等を介して第2従動ギア78に固定され、第2従動ギア78と一体で回転する。フォトセンサ77は、発光部83と受光部84とを備え、検出部76a〜76fが発光部83と受光部84との間を通過できるように配置されている。   As shown in FIG. 10, the detection plate 76 is formed in a disk shape and includes a plurality of detection units 76 a to 76 f extending outward in the circumferential direction. For example, the detection plate 76 includes six detection units 76a to 76f. The detection plate 76 is fixed to the second driven gear 78 via a predetermined shaft or the like, and rotates integrally with the second driven gear 78. The photo sensor 77 includes a light emitting unit 83 and a light receiving unit 84, and the detection units 76 a to 76 f are arranged so as to pass between the light emitting unit 83 and the light receiving unit 84.

隙間調整機構70では、PGモータ73が回転すると、ギア輪列74を介して第1従動ギア72にPGモータ73の駆動力が伝達され、第1従動ギア72とともに、ガイドシャフト17および偏心カム71が回転する。偏心カム71が回転すると、偏心カム71の回転中心となるガイドシャフト17と、偏心カム71のカム面71aが当接する固定ピン75との距離が変動し、支持フレーム16に対して、ガイドシャフト17が昇降する。すなわち、キャリッジ3が昇降する。また、第2従動ローラ78にも、ギア輪列74を介してPGモータ73の駆動力が伝達され、検出板76は第2従動ギア78と一体で回転する。   In the gap adjusting mechanism 70, when the PG motor 73 rotates, the driving force of the PG motor 73 is transmitted to the first driven gear 72 via the gear wheel train 74, and together with the first driven gear 72, the guide shaft 17 and the eccentric cam 71. Rotates. When the eccentric cam 71 rotates, the distance between the guide shaft 17 serving as the center of rotation of the eccentric cam 71 and the fixing pin 75 with which the cam surface 71a of the eccentric cam 71 abuts varies, and the guide shaft 17 with respect to the support frame 16 changes. Goes up and down. That is, the carriage 3 moves up and down. The driving force of the PG motor 73 is also transmitted to the second driven roller 78 via the gear train 74, and the detection plate 76 rotates integrally with the second driven gear 78.

本形態では、検出部76a〜76fのいずれかが発光部83から受光部84へ向かう光を遮っているときに、印刷ヘッド2の高さは所定の設定高さとなっている。すなわち、検出部76a〜76fのいずれかが発光部83から受光部84へ向かう光を遮っているときに、印刷ヘッド2のノズル面とプラテン7との隙間は、印刷用紙P等の厚さに応じた所定の設定隙間となっている。たとえば、図10に示すように、検出部76eが発光部83から受光部84へ向かう光を遮っているときに、印刷ヘッド2の高さは第1の高さとなっている。ここで、検出部76fが発光部83から受光部84へ向かう光を遮っているときの印刷ヘッド2の高さを第2の高さとすると、印刷ヘッド2の高さを第1の高さから第2の高さへ変更する場合には、PGモータ73で偏心カム71を回転させる。偏心カム71の回転に伴って、検出板76が図10で反時計方向へ回転する。そして、検出部76fが発光部83から受光部84へ向かう光を遮ったときにPGモータ73が停止し、印刷ヘッド2の高さが第2の高さになる。このように、隙間検出装置79は、被検出物となる印刷ヘッド2の設定高さに応じた出力信号を出力する構成となっている。   In this embodiment, when any of the detection units 76a to 76f blocks light from the light emitting unit 83 to the light receiving unit 84, the height of the print head 2 is a predetermined set height. That is, when any of the detection units 76a to 76f blocks light traveling from the light emitting unit 83 to the light receiving unit 84, the gap between the nozzle surface of the print head 2 and the platen 7 is set to the thickness of the printing paper P or the like. This is a predetermined setting gap. For example, as shown in FIG. 10, when the detection unit 76e blocks light from the light emitting unit 83 toward the light receiving unit 84, the height of the print head 2 is the first height. Here, when the height of the print head 2 when the detection unit 76f blocks the light traveling from the light emitting unit 83 to the light receiving unit 84 is the second height, the height of the print head 2 is changed from the first height. When changing to the second height, the eccentric cam 71 is rotated by the PG motor 73. With the rotation of the eccentric cam 71, the detection plate 76 rotates counterclockwise in FIG. Then, when the detection unit 76f blocks light traveling from the light emitting unit 83 to the light receiving unit 84, the PG motor 73 stops, and the height of the print head 2 becomes the second height. As described above, the gap detection device 79 is configured to output an output signal corresponding to the set height of the print head 2 serving as a detection object.

(プリンタの制御部の概略構成)
図11は、図3に示す制御部37およびその周辺機器の概略構成を示すブロック図である。
(Schematic configuration of printer control unit)
FIG. 11 is a block diagram showing a schematic configuration of the control unit 37 and its peripheral devices shown in FIG.

制御部37は、図11に示すように、バス48、CPU49、ROM50、RAM51、キャラクタジェネレータ(CG)52、不揮発性メモリ53、ASIC54、DCユニット55、PFモータ駆動回路(PFモータドライバ)56、CRモータ駆動回路(CRモータドライバ)57、PGモータ駆動回路(PGモータドライバ)58、トレイ用モータ駆動回路(トレイ用モータドライバ)59、ヘッド駆動回路(ヘッドドライバ)61等を備えている。CPU49およびASIC54等には、上述したリニアエンコーダ33、ロータリエンコーダ36等からの各出力信号が入力される。   As shown in FIG. 11, the control unit 37 includes a bus 48, a CPU 49, a ROM 50, a RAM 51, a character generator (CG) 52, a nonvolatile memory 53, an ASIC 54, a DC unit 55, a PF motor driving circuit (PF motor driver) 56, A CR motor drive circuit (CR motor driver) 57, a PG motor drive circuit (PG motor driver) 58, a tray motor drive circuit (tray motor driver) 59, a head drive circuit (head driver) 61, and the like are provided. The output signals from the linear encoder 33, the rotary encoder 36, and the like described above are input to the CPU 49, the ASIC 54, and the like.

CPU49は、ROM50や不揮発性メモリ53等に記憶されているプリンタ1の制御プログラムを実行するための演算処理やその他必要な演算処理を行う。また、ROM50には、プリンタ1を制御するための制御プログラムおよび処理に必要なデータ等が記憶されている。   The CPU 49 performs arithmetic processing for executing the control program for the printer 1 stored in the ROM 50, the nonvolatile memory 53, and the like and other necessary arithmetic processing. The ROM 50 stores a control program for controlling the printer 1 and data necessary for processing.

RAM51には、CPU49が実行途中のプログラムや演算途中のデータ等が一時的に格納される。CG52には、ASIC54に入力される印刷信号に対応したドットパターンが展開されて記憶されている。不揮発性メモリ53には、プリンタ1の電源を切った後も保存しておくことが必要となる各種のデータが記憶される。   The RAM 51 temporarily stores programs being executed by the CPU 49 and data being calculated. In the CG 52, a dot pattern corresponding to the print signal input to the ASIC 54 is developed and stored. The nonvolatile memory 53 stores various data that needs to be saved even after the printer 1 is turned off.

ASIC54は、DCユニット55やヘッド駆動回路61を介して、CRモータ4およびPFモータ5等の各種モータの制御や印刷ヘッド2の制御等を行う。このASIC54は、パラレルインターフェース回路を内蔵しており、インターフェース62を介してコンピュータ63等から供給される印刷信号を受け取ることができるように構成されている。また、ASIC54は、図示を省略する1kHz(キロヘルツ)のタイマと1MHz(メガヘルツ)のタイマとを備えている。   The ASIC 54 controls various motors such as the CR motor 4 and the PF motor 5 and the print head 2 through the DC unit 55 and the head drive circuit 61. The ASIC 54 includes a parallel interface circuit, and is configured to receive a print signal supplied from the computer 63 or the like via the interface 62. The ASIC 54 includes a 1 kHz (kilohertz) timer and a 1 MHz (megahertz) timer (not shown).

ASIC54には、用紙検出装置14からの出力信号が入力され、ASIC54は、入力された出力信号と出力信号に対して設定される閾値とから、プリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号を生成する。同様に、ASIC54には、隙間検出装置79、トレイ検出装置89、ガイド検出装置90からの各出力信号が入力され、ASIC54は、入力された各出力信号と各出力信号に対してそれぞれ設定される閾値とから、印刷ヘッド2の位置を判断するための制御信号、ディスクトレイ85の有無を判断するための制御信号およびトレイガイド86の状態を判断するための制御信号を生成する。すなわち、本形態では、ASIC54の一部は、用紙検出装置14、隙間検出装置79、トレイ検出装置89、ガイド検出装置90からそれぞれ出力される出力信号と、それぞれの出力信号に対して設定される閾値とから印刷用紙P、印刷ヘッド2、ディスクトレイ85、ディスクガイド86の状態を判断するための制御信号を生成する制御信号生成部となっている。また、本形態では、ASIC54の一部は、制御信号を生成する際に制御信号生成部に、被検出物となる印刷用紙P、印刷ヘッド2、ディスクトレイ85の状態の判断タイミングを知らせるタイミング信号を出力するタイミング信号出力部となっている。各制御信号の生成方法およびタイミング信号の詳細は後述する。   The ASIC 54 receives an output signal from the paper detection device 14, and the ASIC 54 determines whether or not the print paper P is taken into the printer 1 based on the input output signal and a threshold set for the output signal. A control signal for determination is generated. Similarly, each output signal from the gap detection device 79, the tray detection device 89, and the guide detection device 90 is input to the ASIC 54, and the ASIC 54 is set for each input output signal and each output signal. A control signal for determining the position of the print head 2, a control signal for determining the presence or absence of the disc tray 85, and a control signal for determining the state of the tray guide 86 are generated from the threshold. That is, in this embodiment, a part of the ASIC 54 is set for the output signals output from the paper detection device 14, the gap detection device 79, the tray detection device 89, and the guide detection device 90, and the respective output signals. This is a control signal generation unit that generates control signals for determining the states of the printing paper P, the print head 2, the disk tray 85, and the disk guide 86 from the threshold values. Further, in this embodiment, a part of the ASIC 54 is a timing signal that informs the control signal generation unit of the determination timing of the state of the print paper P, the print head 2, and the disk tray 85 that are detection objects when generating the control signal. Is a timing signal output unit for outputting. Details of the method of generating each control signal and the timing signal will be described later.

DCユニット55は、DCモータであるCRモータ4やPFモータ5、PGモータ73等の速度制御を行うための制御回路となっている。このDCユニット55は、ASIC54から送られてくるモータの動作指令信号等に基づいてCRモータ4やPFモータ5、PGモータ73等の速度制御を行うための各種演算を行い、その演算結果に基づいて、PFモータ駆動回路56、CRモータ駆動回路57、PGモータ駆動回路58およびトレイ用モータ駆動回路59へモータ制御信号を出力する。なお、本形態では、CRモータ4およびPFモータ5の制御方法として、比例制御と積分制御と微分制御とを組み合わせてCRモータ4やPFモータ5の現行回転速度を目標回転速度に収束させるように制御するPID制御が採用されている。すなわち、本形態では、DCユニット55は、リニアエンコーダ33からの出力信号に基づいたPID制御信号をCRモータ駆動回路57へ出力し、ロータリエンコーダ36からの出力信号に基づいたPID制御信号をPFモータ駆動回路56へ出力する。   The DC unit 55 is a control circuit for performing speed control of the CR motor 4, the PF motor 5, and the PG motor 73 that are DC motors. The DC unit 55 performs various calculations for controlling the speed of the CR motor 4, the PF motor 5, the PG motor 73, etc. based on the operation command signal of the motor sent from the ASIC 54, and based on the calculation results. The motor control signal is output to the PF motor drive circuit 56, the CR motor drive circuit 57, the PG motor drive circuit 58, and the tray motor drive circuit 59. In this embodiment, as a control method for the CR motor 4 and the PF motor 5, the current rotational speed of the CR motor 4 or the PF motor 5 is converged to the target rotational speed by combining proportional control, integral control, and differential control. PID control to control is adopted. That is, in this embodiment, the DC unit 55 outputs a PID control signal based on the output signal from the linear encoder 33 to the CR motor drive circuit 57, and outputs the PID control signal based on the output signal from the rotary encoder 36 to the PF motor. Output to the drive circuit 56.

PFモータ駆動回路56は、DCユニット55からのモータ制御信号によってPFモータ5を駆動制御する。本形態では、PFモータ5の制御方法として、たとえば、PWM(Pulse Width Modulation)制御が採用されており、PFモータ駆動回路56は、PWM駆動信号を出力する。また、CRモータ駆動回路57、PGモータ駆動回路58およびトレイ用モータ駆動回路59も同様に、DCユニット55からのモータ制御信号によってCRモータ4やPGモータ73等を駆動制御する。本形態では、CRモータ4およびPGモータ73はPFモータ5と同様に、PWM制御で制御されている。   The PF motor drive circuit 56 drives and controls the PF motor 5 by a motor control signal from the DC unit 55. In this embodiment, for example, PWM (Pulse Width Modulation) control is employed as a method for controlling the PF motor 5, and the PF motor drive circuit 56 outputs a PWM drive signal. Similarly, the CR motor drive circuit 57, the PG motor drive circuit 58, and the tray motor drive circuit 59 also drive and control the CR motor 4, the PG motor 73, and the like by a motor control signal from the DC unit 55. In the present embodiment, the CR motor 4 and the PG motor 73 are controlled by PWM control similarly to the PF motor 5.

ヘッド駆動回路61は、CPU49やASIC54から送られてくる動作指令等に基づいて、印刷ヘッド2のノズル(図示省略)を駆動する。   The head drive circuit 61 drives the nozzles (not shown) of the print head 2 based on operation commands and the like sent from the CPU 49 and the ASIC 54.

バス48は、上述した制御部37の各構成を接続する信号線である。このバス48によって、CPU49、ROM50、RAM51、CG52、不揮発性メモリ53やASIC54等は、相互に接続され、これらの間でデータの授受を行うように構成されている。   The bus 48 is a signal line that connects the components of the control unit 37 described above. The CPU 49, the ROM 50, the RAM 51, the CG 52, the nonvolatile memory 53, the ASIC 54, and the like are connected to each other by the bus 48, and are configured to exchange data between them.

(プリンタの概略動作)
以上のように構成されたプリンタ1では、図2に示すように、PF駆動ローラ6やプラテン7、用紙案内板30、排紙駆動ローラ15等が上昇した状態で、印刷用紙Pの印刷を行う。この印刷用紙Pの印刷時には、給紙ローラ12や分離パッド13によってホッパ11からプリンタ1の内部に取り込まれた印刷用紙Pを、PFモータ5で回転駆動されたPF駆動ローラ6で副走査方向SSへ送りながら、CRモータ4で駆動されたキャリッジ3が主走査方向MSで往復移動する。キャリッジ3が往復移動する際には、印刷ヘッド2からインク滴が吐出され、印刷用紙Pへの印刷が行われる。また、印刷用紙Pへの印刷が終了すると、排紙駆動ローラ15等によって印刷用紙Pはプリンタ1の外部へ排出される。印刷用紙Pの印刷時には、用紙検出装置14は、プリンタ1の内部に取り込まれる印刷用紙Pの有無に応じた出力信号を出力する。そして、この出力信号から生成される制御信号に基づいて、プリンタ1は、印刷ヘッド2やPF駆動ローラ6等の所定の制御を行う。
(Outline of printer operation)
In the printer 1 configured as described above, as shown in FIG. 2, the printing paper P is printed with the PF drive roller 6, the platen 7, the paper guide plate 30, the paper discharge drive roller 15 and the like raised. . During printing of the printing paper P, the printing paper P taken into the printer 1 from the hopper 11 by the paper feed roller 12 and the separation pad 13 is sub-scanned in the sub-scanning direction SS by the PF driving roller 6 rotated by the PF motor 5. The carriage 3 driven by the CR motor 4 reciprocates in the main scanning direction MS. When the carriage 3 reciprocates, ink droplets are ejected from the print head 2 and printing on the printing paper P is performed. When printing on the printing paper P is completed, the printing paper P is discharged to the outside of the printer 1 by the paper discharge drive roller 15 and the like. When printing the printing paper P, the paper detection device 14 outputs an output signal corresponding to the presence or absence of the printing paper P taken into the printer 1. Based on the control signal generated from the output signal, the printer 1 performs predetermined control of the print head 2, the PF drive roller 6, and the like.

プリンタ1では、光ディスクDの印刷時には、図2に示す状態から、PF駆動ローラ6やプラテン7、用紙案内板30、排紙駆動ローラ15等が下降する。また、ユーザは、トレイガイド86、86が図6の二点鎖線で示す状態から図6の実線で示す状態となるように、トレイガイド86、86を回動する。その後、トレイ用モータ(図示省略)によってディスクトレイ85に載置された光ディスクDを前面側からプリンタ1の内部に取り込みながら、CRモータ4で駆動されたキャリッジ3が主走査方向MSで往復移動する。キャリッジ3が往復移動する際には、印刷ヘッド2からインク滴が吐出され、光ディスクDへの印刷が行われる。また、光ディスクDへの印刷が終了すると、トレイ用モータによって光ディスクDはプリンタ1の前面側へ排出される。光ディスクDの印刷時には、トレイ検出装置89は、ディスクトレイ85の有無に応じた出力信号を出力し、ガイド検出装置90は、トレイガイド86の状態に応じた出力信号を出力する。そして、これらの出力信号からそれぞれ生成される制御信号に基づいて、プリンタ1は、印刷ヘッド2やトレイ用モータ等の所定の制御を行う。   In the printer 1, when the optical disk D is printed, the PF drive roller 6, the platen 7, the paper guide plate 30, the paper discharge drive roller 15, etc. are lowered from the state shown in FIG. Further, the user rotates the tray guides 86 and 86 so that the tray guides 86 and 86 change from the state indicated by the two-dot chain line in FIG. 6 to the state indicated by the solid line in FIG. Thereafter, the carriage 3 driven by the CR motor 4 reciprocates in the main scanning direction MS while the optical disk D placed on the disk tray 85 is taken into the printer 1 from the front side by a tray motor (not shown). . When the carriage 3 reciprocates, ink droplets are ejected from the print head 2 and printing on the optical disc D is performed. When printing on the optical disk D is completed, the optical disk D is ejected to the front side of the printer 1 by the tray motor. At the time of printing the optical disc D, the tray detection device 89 outputs an output signal corresponding to the presence or absence of the disc tray 85, and the guide detection device 90 outputs an output signal corresponding to the state of the tray guide 86. Based on the control signals generated from these output signals, the printer 1 performs predetermined control of the print head 2, the tray motor, and the like.

なお、印刷用紙P等の印刷時には、必要に応じて、印刷ヘッド2のノズル面とプラテン7との隙間を隙間調整機構70で調整する。たとえば、印刷用紙Pの厚さが変更になる場合等に印刷ヘッド2のノズル面とプラテン7との隙間を調整する。この調整時には、隙間検出装置79は、印刷ヘッド2の位置に応じた出力信号を出力する。そして、この出力信号から生成される制御信号に基づいて、プリンタ1は、印刷ヘッド2やPF駆動ローラ6等の所定の制御を行う。   When printing the print paper P or the like, the gap between the nozzle surface of the print head 2 and the platen 7 is adjusted by the gap adjustment mechanism 70 as necessary. For example, when the thickness of the printing paper P is changed, the gap between the nozzle surface of the print head 2 and the platen 7 is adjusted. At the time of this adjustment, the gap detection device 79 outputs an output signal corresponding to the position of the print head 2. Based on the control signal generated from the output signal, the printer 1 performs predetermined control of the print head 2, the PF drive roller 6, and the like.

(制御信号の生成方法)
図12は、図4の用紙検出装置14からの出力信号の波形と印刷用紙Pの有無を判断するための制御信号の波形との関係を示す図であり、(A)は複数の印刷用紙Pに対する連続印刷時における用紙検出装置14からの出力信号S1の波形を示し、(B)は連続印刷時における制御信号S11の波形を示し、(C)は1枚の印刷用紙Pに対する1枚印刷時における用紙検出装置14からの出力信号S2の波形を示し、(D)は1枚印刷時における制御信号S21の波形を示す。図13は、図10の隙間検出装置79からの出力信号の波形と印刷ヘッド2の位置を判断するための制御信号の波形との関係を示す図であり、(A)は隙間検出装置79からの出力信号S3の波形を示し、(B)は制御信号S31の波形を示す。図14は、図5のトレイ検出装置89からの出力信号の波形とディスクトレイ85の有無を判断するための制御信号の波形との関係を示す図であり、(A)はトレイ検出装置89からの出力信号S4の波形を示し、(B)は制御信号S41の波形を示す。図15は、図5のガイド検出装置90からの出力信号の波形とトレイガイド86の状態を判断するための制御信号の波形との関係を示す図であり、(A)はガイド検出装置90からの出力信号S5の波形を示し、(B)は制御信号S51の波形を示す。
(Control signal generation method)
FIG. 12 is a diagram showing the relationship between the waveform of the output signal from the paper detection device 14 of FIG. 4 and the waveform of the control signal for determining the presence or absence of the printing paper P. FIG. Shows the waveform of the output signal S1 from the paper detection device 14 at the time of continuous printing, (B) shows the waveform of the control signal S11 at the time of continuous printing, and (C) shows the time of printing one sheet on one printing paper P. The waveform of the output signal S2 from the paper detection device 14 in FIG. 4 is shown, and (D) shows the waveform of the control signal S21 when printing one sheet. FIG. 13 is a diagram showing the relationship between the waveform of the output signal from the gap detection device 79 in FIG. 10 and the waveform of the control signal for determining the position of the print head 2, and FIG. (B) shows the waveform of the control signal S31. FIG. 14 is a diagram showing the relationship between the waveform of the output signal from the tray detection device 89 of FIG. 5 and the waveform of the control signal for determining the presence or absence of the disk tray 85. FIG. (B) shows the waveform of the control signal S41. FIG. 15 is a diagram showing the relationship between the waveform of the output signal from the guide detection device 90 of FIG. 5 and the waveform of the control signal for determining the state of the tray guide 86. FIG. (B) shows the waveform of the control signal S51.

以下、プリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号、印刷ヘッド2の位置を判断するための制御信号、ディスクトレイ85の有無を判断するための制御信号およびトレイガイド86の状態を判断するための制御信号の生成方法を順次説明する。   Hereinafter, a control signal for determining the presence or absence of the printing paper P taken into the printer 1, a control signal for determining the position of the print head 2, a control signal for determining the presence or absence of the disk tray 85, and a tray guide A method for generating a control signal for determining the state 86 will be sequentially described.

最初に、プリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号の生成方法を説明する。本形態では、複数の印刷用紙Pに対して連続で印刷を行う連続印刷時における制御信号の生成方法と、1枚の印刷用紙Pに対して印刷を行う1枚印刷時における制御信号の生成方法とが相違する。また、連続印刷時においても、1枚目の印刷用紙Pの先端および最後の印刷用紙Pの後端を判断するための制御信号の生成方法と、1枚目以降最後から2枚目の印刷用紙Pの後端および2枚目以降の印刷用紙Pの先端を判断するための制御信号の生成方法とが相違する。   First, a method for generating a control signal for determining the presence or absence of the printing paper P taken into the printer 1 will be described. In the present embodiment, a control signal generation method at the time of continuous printing in which printing is continuously performed on a plurality of printing papers P, and a control signal generation method at the time of single-sheet printing in which printing is performed on one printing paper P Is different. Also, during continuous printing, a control signal generation method for determining the leading edge of the first printing paper P and the trailing edge of the last printing paper P, and the first and second printing paper from the last to the last printing paper P The control signal generation method for determining the trailing edge of P and the leading edge of the second and subsequent printing sheets P is different.

まず、連続印刷時における制御信号の生成方法を説明する。以下では、3枚の印刷用紙Pに対して連続印刷を行う場合を例に、連続印刷時のおける制御信号の生成方法を説明する。本形態では、図4(A)の二点鎖線で示すように、検出レバー26が発光部45から受光部46へ向かう光を遮断するときに、用紙検出装置14はローレベルの出力信号を出力し、図4(B)の実線で示すように、発光部45からの光が受光部46で受光されるときに、用紙検出装置14はハイレベルの出力信号を出力する。したがって、連続印刷時には、たとえば、図12(A)に示す波形の出力信号S1を用紙検出装置14が出力する。なお、1枚印刷時には、たとえば、図12(C)に示す波形の出力信号S2を用紙検出装置14が出力する。   First, a method for generating a control signal during continuous printing will be described. In the following, a method for generating a control signal during continuous printing will be described by taking as an example a case where continuous printing is performed on three printing papers P. In this embodiment, as indicated by a two-dot chain line in FIG. 4A, when the detection lever 26 blocks light traveling from the light emitting unit 45 to the light receiving unit 46, the paper detection device 14 outputs a low level output signal. 4B, when the light from the light emitting unit 45 is received by the light receiving unit 46, the paper detection device 14 outputs a high level output signal. Therefore, at the time of continuous printing, for example, the paper detection device 14 outputs an output signal S1 having a waveform shown in FIG. At the time of printing one sheet, for example, the paper detection device 14 outputs an output signal S2 having a waveform shown in FIG.

ここで、図12(A)に示す出力信号S1には、出力信号S1がローレベルからハイレベルへ、あるいは、ハイレベルからローレベルへレベル変化するたびに、ほぼ同じ大きさの電気的なノイズN1〜N6が1回ずつ発生している。このノイズN1〜N6は説明の便宜上のものであり、出力信号S1のレベル変化のたびにノイズが発生するとは限らない。また、ノイズの大きさは一律ではなく、レベル変化後のノイズの発生回数も1回とは限らない。また、図12(C)、図13〜図16におけるノイズN7〜N14についても同様である。なお、実際は、連続印刷時において、ある印刷用紙Pの後端が検出レバー26の下端側から外れ、次の印刷用紙Pの先端が検出レバー26の下端側に当接するときに、用紙検出装置14からの出力信号S1にノイズが発生しやすい。すなわち、検出レバー26が揺動するとき、出力信号S1にノイズが発生しやすい。   Here, in the output signal S1 shown in FIG. 12A, an electric noise of almost the same magnitude is generated every time the output signal S1 changes from a low level to a high level or from a high level to a low level. N1 to N6 are generated once each. The noises N1 to N6 are for convenience of explanation, and noises are not always generated every time the level of the output signal S1 changes. Further, the magnitude of noise is not uniform, and the number of occurrences of noise after a level change is not always one. The same applies to the noises N7 to N14 in FIG. 12C and FIGS. Actually, during continuous printing, when the trailing edge of a certain printing paper P comes off the lower end side of the detection lever 26 and the leading edge of the next printing paper P comes into contact with the lower end side of the detection lever 26, the paper detection device 14. Noise is likely to occur in the output signal S1 from. That is, when the detection lever 26 swings, noise is likely to occur in the output signal S1.

用紙検出装置14からの出力信号S1に対しては、図12(A)に示すように、所定の閾値t1を設定する。本形態では、上側閾値t11と下側閾値12とを有する閾値t1を設定する。そして、出力信号S1と閾値t1とからプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するためのデジタル的な制御信号S11を生成する。これらの処理は、ASIC54の制御信号生成部が行う。なお、本形態では、制御信号S11がハイレベルのときには、プリンタ1の内部に印刷用紙Pが取り込まれている(すなわち、印刷用紙Pがある)と判断し、ローレベルのときには、プリンタ1の内部に印刷用紙Pが取り込まれていない(すなわち、印刷用紙Pがない)と判断する。   A predetermined threshold t1 is set for the output signal S1 from the paper detection device 14 as shown in FIG. In this embodiment, a threshold value t1 having an upper threshold value t11 and a lower threshold value 12 is set. Then, a digital control signal S11 for determining the presence or absence of the printing paper P taken into the printer 1 from the output signal S1 and the threshold value t1 is generated. These processes are performed by the control signal generator of the ASIC 54. In this embodiment, when the control signal S11 is at a high level, it is determined that the printing paper P has been taken into the printer 1 (that is, there is the printing paper P). It is determined that the printing paper P is not taken in (that is, there is no printing paper P).

また、ASIC54のタイミング信号出力部は、印刷用紙Pの先端および後端を判断する判断タイミングを制御信号生成部に知らせるタイミング信号F10〜F12、F20〜F22を出力する。図12(A)に示すように、タイミング信号F10〜F12は、印刷用紙Pの先端の判断タイミングを制御信号生成部に知らせる信号である。このタイミング信号F10〜F12は、たとえば、印刷用紙Pをプリンタ1の内部へ取り込むための給紙ローラ12への動作指令信号である。また、タイミング信号F20〜F22は、印刷用紙Pの後端の判断タイミングを制御信号生成部に知らせる信号である。   The timing signal output unit of the ASIC 54 outputs timing signals F10 to F12 and F20 to F22 that notify the control signal generation unit of the determination timing for determining the leading edge and the trailing edge of the printing paper P. As shown in FIG. 12A, the timing signals F10 to F12 are signals that inform the control signal generation unit of the determination timing of the leading edge of the printing paper P. The timing signals F <b> 10 to F <b> 12 are, for example, operation command signals to the paper feed roller 12 for taking the printing paper P into the printer 1. Timing signals F20 to F22 are signals that inform the control signal generation unit of the determination timing of the trailing edge of the printing paper P.

連続印刷時において、1枚目の印刷用紙Pの先端を判断する場合には、タイミング信号(給紙ローラ12への動作指令信号)F10が出力された後に用紙検出装置14から出力された出力信号S1が、閾値t1に達するレベル変化を所定の回数したとき(この場合には1回、すなわち、最初に閾値t1に達するレベル変化をしたとき)に、制御信号S11を確定し、次のタイミング信号となるタイミング信号F20が出力されるまで、制御信号S11を変化させない先読み方法で制御信号S11を生成する。すなわち、図12(A)に示すように、タイミング信号F10が出力された後の出力信号S1のレベルが、最初に、下側閾値t12よりも高くなった時点R1で、制御信号S11はローレベルからハイレベルにレベル変化して、タイミング信号F20が出力されるまではレベル変化しない。そのため、制御信号S11のレベル変化後に、上側閾値t11に達する(上側閾値t11よりも低くなる)ノイズN1が発生しても制御信号S11はハイレベルのままで、レベル変化をしない。仮に、出力信号S1のレベルが下側閾値t12よりも高くなった時点R1で、制御信号S11を確定しない場合には、ノイズN1によって制御信号S11にレベル変化C1が発生する。そして、1枚目の印刷用紙Pの取込が終わり、2枚目の印刷用紙Pの取込が始まったものと誤った判断がなされる。   When determining the leading edge of the first printing paper P during continuous printing, an output signal output from the paper detection device 14 after a timing signal (operation command signal to the paper feed roller 12) F10 is output. When S1 has made a predetermined number of level changes that reach the threshold t1 (in this case, once, that is, when the level has first reached the threshold t1), the control signal S11 is determined and the next timing signal Until the timing signal F20 is output, the control signal S11 is generated by a look-ahead method that does not change the control signal S11. That is, as shown in FIG. 12A, at the time point R1 when the level of the output signal S1 after the timing signal F10 is output first becomes higher than the lower threshold t12, the control signal S11 is at the low level. The level does not change until the timing signal F20 is output after the level is changed from high to low. Therefore, even if noise N1 that reaches the upper threshold value t11 (lower than the upper threshold value t11) occurs after the level change of the control signal S11, the control signal S11 remains at the high level and does not change the level. If the control signal S11 is not determined at the time point R1 when the level of the output signal S1 becomes higher than the lower threshold t12, the level change C1 occurs in the control signal S11 due to noise N1. Then, it is erroneously determined that the first printing paper P has been taken in and that the second printing paper P has been taken in.

同様に、連続印刷時において、最後の印刷用紙P(図12(A)に示す例では3枚目)の後端を判断する場合にも、先読み方法で制御信号S11を作成する。すなわち、図12(A)に示すように、タイミング信号F22が出力された後の出力信号S1のレベルが、最初に、上側閾値t11に達した(上側閾値t11よりも低くなった)時点R4で、制御信号S11はハイレベルからローレベルにレベル変化して、次のタイミング信号となるタイミング信号(次の連続印刷時に、1枚目の印刷用紙Pの先端を判断する判断タイミングを知らせるタイミング信号)F10が出力されるまでレベル変化しない。そのため、制御信号S11のレベル変化後に、下側閾値t12に達するノイズN6が発生しても制御信号S11はローレベルのままで、レベル変化をしない。   Similarly, when determining the trailing edge of the last printing paper P (third sheet in the example shown in FIG. 12A) during continuous printing, the control signal S11 is generated by the prefetching method. That is, as shown in FIG. 12A, at the time point R4 when the level of the output signal S1 after the timing signal F22 is output first reaches the upper threshold t11 (becomes lower than the upper threshold t11). The control signal S11 changes from the high level to the low level to become the next timing signal (timing signal that informs the judgment timing for judging the leading edge of the first printing paper P during the next continuous printing). The level does not change until F10 is output. Therefore, even if the noise N6 reaching the lower threshold value t12 occurs after the level change of the control signal S11, the control signal S11 remains low level and does not change level.

これに対して、連続印刷時において、1枚目以降最後から2枚目(図12(A)に示す例では2枚)の印刷用紙Pの後端および2枚目以降の印刷用紙Pの先端を判断する場合には、タイミング信号F11、F12、F20、F21が出力された後に用紙検出装置14から出力された出力信号S1が、閾値t1に達するレベル変化をしたときに、制御信号S11を確定し、その後の所定のマスク時間Tは、制御信号S11を変化させないマスク読み方法で制御信号S11を生成する。すなわち、図12(A)に示すように、たとえば、タイミング信号F20が出力された後の出力信号S1のレベルが、上側閾値t11に達した(上側閾値t11よりも低くなった)時点R2で、制御信号S11はハイレベルからローレベルにレベル変化して、その後、マスク時間Tの間は変化しない。また、マスク時間Tの間、制御信号S11は変化しないため、タイミング信号F11が出力された後の出力信号S1が、マスク時間Tの経過後で、かつ、下側閾値t12よりも高くなった時点R3で、制御信号S11はローレベルからハイレベルにレベル変化して、その後、また、マスク時間Tの間は変化しない。そのため、制御信号S11のレベル変化後に、下側閾値t12に達するノイズN2や上側閾値t11に達するノイズN3が発生しても制御信号S11はレベル変化をしない。   On the other hand, during continuous printing, the trailing edge of the first sheet and the last two sheets (two sheets in the example shown in FIG. 12A) and the leading edge of the second and subsequent printing sheets P When the output signal S1 output from the paper detection device 14 after the output of the timing signals F11, F12, F20, and F21 changes in level to reach the threshold value t1, the control signal S11 is determined. Then, for a predetermined mask time T thereafter, the control signal S11 is generated by a mask reading method that does not change the control signal S11. That is, as shown in FIG. 12A, for example, at the time point R2 when the level of the output signal S1 after the timing signal F20 is output reaches the upper threshold t11 (becomes lower than the upper threshold t11), The control signal S11 changes from a high level to a low level and does not change during the mask time T thereafter. Further, since the control signal S11 does not change during the mask time T, when the output signal S1 after the timing signal F11 is output becomes higher than the lower threshold value t12 after the mask time T has elapsed. At R3, the control signal S11 changes from a low level to a high level and then does not change during the mask time T. For this reason, even if the noise N2 reaching the lower threshold t12 or the noise N3 reaching the upper threshold t11 occurs after the level change of the control signal S11, the level of the control signal S11 does not change.

ここで、タイミング信号F10〜F12、F20〜F22が出力された後に、出力信号S1のレベル変化を判定するための判定周期は、たとえば、CRモータ4やPFモータ5のPID制御の演算周期となるPID周期である。判定周期としてCRモータ4のPID周期を用いる場合には、判定周期はたとえば、58.5μsecである。また、判定周期としてPFモータ5のPID周期を用いる場合には、判定周期は、たとえば、64μsecである。なお、判定周期はPID周期には限定されず、他の制御周期であっても良い。   Here, after the timing signals F <b> 10 to F <b> 12 and F <b> 20 to F <b> 22 are output, the determination cycle for determining the level change of the output signal S <b> 1 is, for example, the calculation cycle of PID control of the CR motor 4 or PF motor 5. PID cycle. When the PID cycle of the CR motor 4 is used as the determination cycle, the determination cycle is, for example, 58.5 μsec. When the PID cycle of the PF motor 5 is used as the determination cycle, the determination cycle is, for example, 64 μsec. The determination cycle is not limited to the PID cycle, and may be another control cycle.

また、マスク時間Tは、プリンタ1における印刷用紙Pの最大取込速度やフォトセンサ27の反応速度を考慮して決定するのが好ましい。すなわち、ある印刷用紙Pの後端が検出レバー26の下端側から外れた後、次の印刷用紙Pの先端が検出レバー26の下端側に当接するまでの最短時間やフォトセンサ27の反応速度を考慮して、マスク時間Tを決定するのが好ましい。このように構成することで、マスク時間Tを設定しても、印刷用紙Pの先端を確実に検出することができる。たとえば、本形態では、印刷用紙Pの最大取込速度は、11.6ips(inch/sec)であり、マスク時間Tは、20msecとなっている。   The mask time T is preferably determined in consideration of the maximum take-in speed of the printing paper P in the printer 1 and the reaction speed of the photo sensor 27. That is, the minimum time until the leading edge of the next printing paper P comes into contact with the lower end side of the detection lever 26 and the reaction speed of the photosensor 27 after the trailing edge of a certain printing paper P is disengaged from the lower end side of the detection lever 26. Considering this, it is preferable to determine the mask time T. With this configuration, the leading edge of the printing paper P can be reliably detected even when the mask time T is set. For example, in this embodiment, the maximum take-in speed of the printing paper P is 11.6 ips (inch / sec), and the mask time T is 20 msec.

なお、マスク時間Tは、ASIC54の内部の1kHzのタイマでカウントされる。本形態では、上述のように、タイミング信号F11、F12、F20、F21が出力された後に、出力信号S1のレベル変化を判定するための判定周期は、PID周期であるのに対し、マスク時間TはPID周期ではカウントされず、1kHzのタイマでカウントされる。そのため、マスク時間Tのカウント処理が簡素化される。   The mask time T is counted by a 1 kHz timer inside the ASIC 54. In the present embodiment, as described above, after the timing signals F11, F12, F20, and F21 are output, the determination period for determining the level change of the output signal S1 is the PID period, whereas the mask time T Is not counted in the PID cycle, but is counted by a 1 kHz timer. Therefore, the mask time T counting process is simplified.

次に、1枚印刷時における制御信号の生成方法を説明する。連続印刷時と同様に、用紙検出装置14からの出力信号S2に対しては、図12(C)に示すように、上側閾値t11と下側閾値12とを有する所定の閾値t1を設定する。そして、出力信号S2と閾値t1とからプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するためのデジタル的な制御信号S21を生成する。また、制御信号S21がハイレベルのときには、プリンタ1の内部に印刷用紙Pが取り込まれていると判断し、ローレベルのときには、プリンタ1の内部に印刷用紙Pが取り込まれていないと判断する。さらに、連続印刷時と同様に、ASIC54のタイミング信号出力部は、印刷用紙Pの先端および後端を判断する判断タイミングを制御信号生成部に知らせるタイミング信号F30、F40を出力する。タイミング信号F30は、印刷用紙Pの先端の判断タイミングを制御信号生成部に知らせる信号であり、たとえば、印刷用紙Pをプリンタ1の内部へ取り込むための給紙ローラ12への動作指令信号である。また、タイミング信号F40は、印刷用紙Pの後端の判断タイミングを制御信号生成部に知らせる信号である。   Next, a method for generating a control signal when printing one sheet will be described. As in the case of continuous printing, a predetermined threshold t1 having an upper threshold t11 and a lower threshold 12 is set for the output signal S2 from the paper detection device 14, as shown in FIG. Then, a digital control signal S21 for determining the presence or absence of the printing paper P taken into the printer 1 from the output signal S2 and the threshold value t1 is generated. When the control signal S21 is at a high level, it is determined that the printing paper P has been taken into the printer 1, and when the control signal S21 is at a low level, it is determined that the printing paper P has not been taken into the printer 1. Further, as in the case of continuous printing, the timing signal output unit of the ASIC 54 outputs timing signals F30 and F40 that inform the control signal generation unit of the determination timing for determining the leading edge and the trailing edge of the printing paper P. The timing signal F30 is a signal that informs the control signal generation unit of the determination timing of the leading edge of the printing paper P, and is, for example, an operation command signal to the paper feed roller 12 for taking the printing paper P into the printer 1. The timing signal F40 is a signal that informs the control signal generation unit of the determination timing of the trailing edge of the printing paper P.

本形態では、1枚印刷時に、印刷用紙Pの先端および後端を判断する場合には、先読み方法で制御信号S21を生成する。すなわち、図12(C)に示すように、タイミング信号F30が出力された後の出力信号S2のレベルが、最初に、下側閾値t12よりも高くなった時点R5で、制御信号S21はローレベルからハイレベルにレベル変化して、タイミング信号F40が出力されるまではレベル変化しない。そのため、制御信号S21のレベル変化後に、上側閾値t11に達するノイズN7が発生しても制御信号S21はハイレベルのままで、レベル変化しない。また、タイミング信号F40が出力された後の出力信号S2が、最初に、上側閾値t11に達した時点R6で、制御信号S21はハイレベルからローレベルにレベル変化して、次のタイミング信号が出力されるまでレベル変化しない。そのため、制御信号S21のレベル変化後に、下側閾値t12に達するノイズN8が発生しても制御信号S11はローレベルのままで、レベル変化しない。   In this embodiment, when the leading edge and the trailing edge of the printing paper P are determined at the time of printing one sheet, the control signal S21 is generated by the prefetching method. That is, as shown in FIG. 12C, at the time point R5 when the level of the output signal S2 after the timing signal F30 is output first becomes higher than the lower threshold value t12, the control signal S21 is at the low level. The level does not change until the timing signal F40 is output after the level is changed from high to low. Therefore, even if the noise N7 reaching the upper threshold value t11 occurs after the level change of the control signal S21, the control signal S21 remains at the high level and does not change. Further, at the time point R6 when the output signal S2 after the output of the timing signal F40 first reaches the upper threshold value t11, the control signal S21 changes from the high level to the low level, and the next timing signal is output. The level does not change until it is done. Therefore, even if the noise N8 reaching the lower threshold value t12 occurs after the level change of the control signal S21, the control signal S11 remains at the low level and does not change.

続いて、印刷ヘッド2の位置を判断するための制御信号の生成方法を説明する。以下では、図10に示すように、検出部76eが発光部83から受光部84へ向かう光を遮っている状態(すなわち、印刷ヘッド2が第1の高さとなっている状態)から、検出部76bが発光部83から受光部84へ向かう光を遮っている状態(このときの印刷ヘッド2の高さを第4の高さとする)へ、印刷ヘッド2の位置が変化する場合を例に制御信号の生成方法を説明する。   Next, a method for generating a control signal for determining the position of the print head 2 will be described. In the following, as shown in FIG. 10, the detection unit 76e is in a state of blocking light from the light emitting unit 83 toward the light receiving unit 84 (that is, in a state where the print head 2 is at the first height). Control is performed by taking as an example a case where the position of the print head 2 changes to a state in which the light 76b blocks the light traveling from the light emitting unit 83 to the light receiving unit 84 (the height of the print head 2 at this time is the fourth height). A signal generation method will be described.

本形態では、図10に示すように、検出部76e等が発光部83から受光部84へ向かう光を遮断するときに、隙間検出装置79はハイレベルの出力信号を出力し、発光部83からの光が受光部84で受光されるときに、隙間検出装置79はローレベルの出力信号を出力する。したがって、たとえば、図13(A)に示す波形の出力信号S3を隙間検出装置79が出力する。   In this embodiment, as shown in FIG. 10, when the detection unit 76 e or the like blocks light traveling from the light emitting unit 83 to the light receiving unit 84, the gap detection device 79 outputs a high-level output signal. Is received by the light receiving unit 84, the gap detection device 79 outputs a low level output signal. Therefore, for example, the gap detection device 79 outputs the output signal S3 having the waveform shown in FIG.

隙間検出装置79からの出力信号S3に対しては、図13(A)に示すように、上側閾値t31と下側閾値t32とを有する所定の閾値t3を設定する。そして、出力信号S3と閾値t3とから印刷ヘッド2の位置を判断するためのデジタル的な制御信号S31を生成する。これらの処理は、ASIC54の制御信号生成部が行う。なお、本形態では、制御信号S31がハイレベルのときには、印刷ヘッド2の高さが所定の設定高さになっている(すなわち、印刷ヘッド2のノズル面とプラテン7との隙間は、印刷用紙P等の厚さに応じた所定の設定隙間になっている)と判断し、ローレベルのときには、印刷ヘッド2の高さが所定の設定高さになっていないと判断する。   For the output signal S3 from the gap detection device 79, a predetermined threshold value t3 having an upper threshold value t31 and a lower threshold value t32 is set as shown in FIG. Then, a digital control signal S31 for determining the position of the print head 2 is generated from the output signal S3 and the threshold value t3. These processes are performed by the control signal generator of the ASIC 54. In this embodiment, when the control signal S31 is at a high level, the height of the print head 2 is a predetermined set height (that is, the gap between the nozzle surface of the print head 2 and the platen 7 is the print paper). It is determined that the predetermined gap is set according to the thickness of P or the like), and when the level is low, it is determined that the height of the print head 2 is not the predetermined set height.

また、ASIC54のタイミング信号出力部は、印刷ヘッド2の位置を判断する判断タイミングを制御信号生成部に知らせるタイミング信号F50を出力する。このタイミング信号F50は、たとえば、印刷ヘッド2の高さを変更するためのPGモータ73への動作指令信号である。   The timing signal output unit of the ASIC 54 outputs a timing signal F50 that informs the control signal generation unit of the determination timing for determining the position of the print head 2. This timing signal F50 is an operation command signal to the PG motor 73 for changing the height of the print head 2, for example.

本形態では、印刷ヘッド2の位置を判断するための制御信号S31を先読み方法で生成する。すなわち、図13に示すように、タイミング信号(PGモータ73への動作指令信号)F50が出力された後に隙間検出装置79から出力された出力信号S3が、閾値t3に達するレベル変化を所定の回数したときに、制御信号S31を確定し、次のタイミング信号となるタイミング信号F50が出力されるまで、制御信号S31を変化させない。   In this embodiment, a control signal S31 for determining the position of the print head 2 is generated by a pre-read method. That is, as shown in FIG. 13, after the timing signal (operation command signal to the PG motor 73) F50 is output, the output signal S3 output from the gap detection device 79 reaches the threshold value t3 for a predetermined number of times. When the control signal S31 is determined, the control signal S31 is not changed until the timing signal F50 which is the next timing signal is output.

具体的には、PGモータ73への動作指令信号(すなわち、タイミング信号F50)により、検出板76がたとえば、反時計方向へ回転して、検出部76eがフォトセンサ77の検知領域(発光部83と受光部84との間)から抜け、検出部76f、76aが順次フォトセンサ77の検知領域を通過し、その後、検出部76bが発光部83から受光部84へ向かう光を遮断する。その間、隙間検出装置79から出力された出力信号S3は、ハイレベルからローレベルへ、および、ローレベルからハイレベルへ閾値t3を横切って6回変化する。すなわち、閾値t3に達するレベル変化を6回行い、図13(A)に示すように、タイミング信号F50が出力された後の出力信号S3が、閾値t3に達する6回目のレベル変化をした時点R7で、制御信号S31はローレベルからハイレベルにレベル変化して確定し、次のタイミング信号F50が出力されるまではレベル変化しない。そのため、制御信号S31のレベル変化後に、上側閾値t31に達するノイズN9が発生しても制御信号S31はハイレベルのままで、レベル変化をしない。   Specifically, the detection plate 76 rotates, for example, counterclockwise by an operation command signal (that is, the timing signal F50) to the PG motor 73, and the detection unit 76e detects the detection region (light emitting unit 83) of the photosensor 77. Between the light-receiving unit 84 and the light-receiving unit 84, the detection units 76 f and 76 a sequentially pass through the detection region of the photosensor 77, and then the detection unit 76 b blocks light from the light-emitting unit 83 toward the light-receiving unit 84. Meanwhile, the output signal S3 output from the gap detection device 79 changes six times across the threshold value t3 from the high level to the low level and from the low level to the high level. That is, the level change reaching the threshold value t3 is performed six times, and as shown in FIG. 13A, the output signal S3 after the timing signal F50 is output changes the time point R7 when the level change reaches the threshold value t3 for the sixth time. Thus, the control signal S31 is determined by changing the level from the low level to the high level, and does not change until the next timing signal F50 is output. Therefore, even if the noise N9 reaching the upper threshold value t31 occurs after the level change of the control signal S31, the control signal S31 remains at the high level and does not change the level.

続いて、ディスクトレイ85の有無を判断するための制御信号の生成方法を説明する。本形態では、ディスクトレイ85が図6の左側へ移動してスイッチレバー89aに当接し、スイッチレバー89aが時計方向へ所定の角度、回動して、接点部89bの接点がオンの状態にあるときに、トレイ検出装置89はハイレベルの出力信号を出力し、接点部89bの接点がオフの状態にあるときに、ローレベルの出力信号を出力する。したがって、たとえば、図14(A)に示す波形の出力信号S4をトレイ検出装置89が出力する。   Next, a method for generating a control signal for determining the presence or absence of the disc tray 85 will be described. In this embodiment, the disc tray 85 moves to the left in FIG. 6 and contacts the switch lever 89a, and the switch lever 89a rotates clockwise by a predetermined angle, so that the contact of the contact portion 89b is on. Sometimes, the tray detection device 89 outputs a high level output signal, and outputs a low level output signal when the contact of the contact portion 89b is in an OFF state. Therefore, for example, the tray detection device 89 outputs the output signal S4 having the waveform shown in FIG.

トレイ検出装置89からの出力信号S4に対しては、図14(A)に示すように、上側閾値t41と下側閾値t42とを有する所定の閾値t4を設定する。そして、出力信号S4と閾値t4とからディスクトレイ85の有無を判断するためのデジタル的な制御信号S41を生成する。これらの処理は、ASIC54の制御信号生成部が行う。なお、本形態では、制御信号S41がハイレベルのときには、ディスクトレイ85がプリンタ1の内部に取り込まれている(すなわち、ディスクトレイ85がある)と判断し、制御信号S41がローレベルにあるときには、ディスクトレイ85がプリンタ1の内部に取り込まれていない(すなわち、ディスクトレイ85がない)と判断する。   For the output signal S4 from the tray detection device 89, as shown in FIG. 14A, a predetermined threshold t4 having an upper threshold t41 and a lower threshold t42 is set. Then, a digital control signal S41 for determining the presence or absence of the disc tray 85 is generated from the output signal S4 and the threshold value t4. These processes are performed by the control signal generator of the ASIC 54. In this embodiment, when the control signal S41 is at the high level, it is determined that the disc tray 85 is taken into the printer 1 (that is, there is the disc tray 85), and when the control signal S41 is at the low level. Then, it is determined that the disc tray 85 has not been taken into the printer 1 (that is, there is no disc tray 85).

また、ASIC54のタイミング信号出力部は、ディスクトレイ85の有無を判断する判断タイミングを制御信号生成部に知らせるタイミング信号F60、F70を出力する。このタイミング信号F60、F70は、たとえば、ディスクトレイ85をプリンタ1の内部へ取り込むためのトレイ用モータへの動作指令信号である。なお、タイミング信号F60は、ディスクトレイ85のプリンタ1の内部への取込を判断する判断タイミングを制御信号生成部に知らせる信号であり、タイミング信号F70は、ディスクトレイ85のプリンタ1の内部からの取出を判断する判断タイミングを制御信号生成部に知らせる信号である。   Further, the timing signal output unit of the ASIC 54 outputs timing signals F60 and F70 that notify the control signal generation unit of the determination timing for determining the presence or absence of the disc tray 85. The timing signals F60 and F70 are, for example, operation command signals to a tray motor for taking the disk tray 85 into the printer 1. The timing signal F60 is a signal that informs the control signal generation unit of the determination timing for determining whether the disk tray 85 is to be taken into the printer 1, and the timing signal F70 is a signal from the inside of the printer 1 on the disk tray 85. It is a signal that informs the control signal generation unit of the determination timing for determining extraction.

本形態では、ディスクトレイ85の有無を判断するための制御信号S41を先読み方法で生成する。すなわち、図14に示すように、タイミング信号(トレイ用モータへの動作指令信号)F60が出力された後に、トレイ検出装置89から出力された出力信号S4が、閾値t4に達するレベル変化を所定の回数したとき(この場合には1回、すなわち、最初に閾値t4に達するレベル変化したとき)に、制御信号S41を確定し、次のタイミング信号となるタイミング信号F70が出力されるまで、制御信号S41を変化させない。具体的には、図14(A)に示すように、タイミング信号F60が出力された後の出力信号S4のレベルが、下側閾値t42よりも高くなった時点R8で、制御信号S41はローレベルからハイレベルにレベル変化して確定し、次のタイミング信号F70が出力されるまではレベル変化しない。そのため、制御信号S41のレベル変化後に、上側閾値t41に達するノイズN10が発生しても制御信号S41はハイレベルのままで、レベル変化をしない。   In this embodiment, the control signal S41 for determining the presence / absence of the disc tray 85 is generated by the pre-read method. That is, as shown in FIG. 14, after the timing signal (operation command signal to the tray motor) F60 is output, the output signal S4 output from the tray detection device 89 changes the level reaching the threshold value t4 to a predetermined level. The control signal S41 is determined when the number of times is reached (in this case, once, that is, when the level reaches the threshold value t4 for the first time), and the control signal S70 is output until the timing signal F70 as the next timing signal is output. S41 is not changed. Specifically, as shown in FIG. 14A, at the time point R8 when the level of the output signal S4 after the timing signal F60 is output becomes higher than the lower threshold value t42, the control signal S41 is at the low level. The level is changed from the high level to the high level, and the level is not changed until the next timing signal F70 is output. Therefore, even if the noise N10 that reaches the upper threshold value t41 occurs after the level change of the control signal S41, the control signal S41 remains at the high level and the level does not change.

同様に、図14に示すように、タイミング信号F70が出力された後に、トレイ検出装置89から出力された出力信号S4が、最初に閾値t4に達するレベル変化したときに、制御信号S41を確定し、次のタイミング信号となるタイミング信号F60が出力されるまで、制御信号S41を変化させない。すなわち、図14(A)に示すように、タイミング信号F70が出力された後の出力信号S4のレベルが、上側閾値t41よりも低くなった時点R9で、制御信号S41はハイレベルからローレベルにレベル変化して確定し、次のタイミング信号F60が出力されるまではレベル変化しない。そのため、制御信号S41のレベル変化後に、下側閾値t42に達するノイズN11が発生しても制御信号S41はローレベルのままで、レベル変化をしない。   Similarly, as shown in FIG. 14, after the timing signal F70 is output, the control signal S41 is determined when the output signal S4 output from the tray detection device 89 first changes in level to reach the threshold value t4. The control signal S41 is not changed until the timing signal F60 as the next timing signal is output. That is, as shown in FIG. 14A, the control signal S41 changes from the high level to the low level at the time point R9 when the level of the output signal S4 after the timing signal F70 is output becomes lower than the upper threshold value t41. The level does not change until the next timing signal F60 is output. Therefore, even if the noise N11 reaching the lower threshold value t42 occurs after the level change of the control signal S41, the control signal S41 remains at the low level and the level is not changed.

最後に、トレイガイド86の状態を判断するための制御信号の生成方法を説明する。本形態では、図7(A)に示すように、接点部90bの接点がオンの状態のときに、ガイド検出装置90はハイレベルの出力信号を出力し、図7(B)に示すように、接点部90bの接点がオフの状態にあるときに、ローレベルの出力信号を出力する。したがって、たとえば、図15(A)に示す波形の出力信号S5をガイド検出装置90が出力する。   Finally, a method for generating a control signal for determining the state of the tray guide 86 will be described. In this embodiment, as shown in FIG. 7A, when the contact of the contact portion 90b is in an ON state, the guide detection device 90 outputs a high level output signal, as shown in FIG. 7B. When the contact of the contact portion 90b is in an OFF state, a low level output signal is output. Therefore, for example, the guide detection device 90 outputs the output signal S5 having the waveform shown in FIG.

ガイド検出装置90からの出力信号S5に対しては、図15(A)に示すように、上側閾値t51と下側閾値t52とを有する所定の閾値t5を設定する。そして、出力信号S5と閾値t5とからトレイガイド86の状態を判断するためのデジタル的な制御信号S51を生成する。これらの処理は、ASIC54の制御信号生成部が行う。なお、本形態では、制御信号S51がハイレベルのときには、トレイガイド86は、図6の実線で示すように、ディスクトレイ85の案内が可能な状態と判断し、制御信号S51がローレベルのときには、トレイガイド86は、図6の二点鎖線で示すように、ディスクトレイ85の案内ができない状態と判断する。   For the output signal S5 from the guide detection device 90, a predetermined threshold value t5 having an upper threshold value t51 and a lower threshold value t52 is set as shown in FIG. Then, a digital control signal S51 for determining the state of the tray guide 86 from the output signal S5 and the threshold value t5 is generated. These processes are performed by the control signal generator of the ASIC 54. In this embodiment, when the control signal S51 is at a high level, the tray guide 86 determines that the disk tray 85 can be guided as shown by the solid line in FIG. 6, and when the control signal S51 is at a low level. The tray guide 86 determines that the disc tray 85 cannot be guided as indicated by a two-dot chain line in FIG.

本形態では、出力信号S5のレベル変化に応じた制御信号を生成する通常読み方法で、トレイガイド86の状態を判断するための制御信号S51を生成する。すなわち、図15に示すように、ガイド検出装置90から出力された出力信号S5が、閾値t5に達するレベル変化をするたびに、制御信号S51は、ローレベルからハイレベル、あるいは、ハイレベルからローレベルに変化する。そのため、電気的なノイズN12、N13が発生した場合には、制御信号S51には、レベル変化C2、C3が生じる。しかし、この出力信号S5に、閾値t5に達するようなノイズが発生することは稀である。   In this embodiment, the control signal S51 for determining the state of the tray guide 86 is generated by a normal reading method for generating a control signal corresponding to the level change of the output signal S5. That is, as shown in FIG. 15, every time the output signal S5 output from the guide detection device 90 changes the level reaching the threshold value t5, the control signal S51 is changed from low level to high level or from high level to low level. Change to level. Therefore, when electrical noises N12 and N13 are generated, level changes C2 and C3 occur in the control signal S51. However, noise that reaches the threshold value t5 is rarely generated in the output signal S5.

(本形態の主な効果)
以上説明したように、本形態では、連続印刷時においてプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号S11は、1枚目の印刷用紙Pの先端および最後の印刷用紙Pの後端を判断するときには先読み方法で生成され、1枚目以降最後から2枚目の印刷用紙Pの後端および2枚目以降の印刷用紙Pの先端を判断するときにはマスク読み方法で生成されている。また、1枚印刷時においてプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号S21は、先読み方法で生成されている。さらに、印刷ヘッド2の位置を判断するための制御信号S31、および、ディスクトレイ85の有無を判断するための制御信号S41は、先読み方法で生成されている。そのため、図12から図14に示すように、用紙検出装置14等の各検出装置からの出力信号S1〜S4に電気的なノイズN1〜N11が発生しても、ノイズN1〜N11に起因する被検出物(印刷用紙Pや印刷ヘッド2等)の状態の誤検出を防止することができる。
(Main effects of this form)
As described above, in this embodiment, the control signal S11 for determining the presence or absence of the printing paper P taken into the printer 1 during continuous printing is the leading edge and the last printing paper of the first printing paper P. Generated by the pre-reading method when judging the trailing edge of P, and generated by the mask reading method when judging the trailing edge of the second and subsequent printing paper P and the leading edge of the second and subsequent printing papers P. Has been. Further, the control signal S21 for determining the presence or absence of the printing paper P taken into the printer 1 at the time of printing one sheet is generated by a pre-reading method. Furthermore, the control signal S31 for determining the position of the print head 2 and the control signal S41 for determining the presence / absence of the disc tray 85 are generated by a pre-read method. Therefore, as shown in FIGS. 12 to 14, even if electrical noises N1 to N11 are generated in the output signals S1 to S4 from the respective detection devices such as the paper detection device 14, the objects caused by the noises N1 to N11 are affected. It is possible to prevent erroneous detection of the state of the detected object (printing paper P, print head 2, etc.).

また、印刷用紙Pの先端が検出レバー26の下端側に当接して、検出レバー26の上端側が発光部45と受光部46との間から外れる前や、印刷用紙Pの後端が検出レバー26の下端側から外れ、検出レバー26が発光部45から受光部46へ向かう光を遮る前に、用紙検出装置14からの出力信号S1、S2に電気的ノイズが発生する可能性は低い。そのため、連続印刷時の1枚目の印刷用紙Pの先端および最後の印刷用紙Pの後端を判断する場合や、1枚印刷時に印刷用紙Pの先端および後端を判断する場合に、先読み方法で制御信号S11、S21を生成することで、適切に、印刷用紙Pの先端や後端を判断することができる。   Further, the leading edge of the printing paper P abuts on the lower end side of the detection lever 26 and the upper end side of the detection lever 26 is removed from between the light emitting unit 45 and the light receiving unit 46, or the rear end of the printing paper P is the detection lever 26. It is unlikely that electrical noise is generated in the output signals S1 and S2 from the paper detection device 14 before the detection lever 26 blocks the light traveling from the light emitting unit 45 to the light receiving unit 46. Therefore, a pre-reading method is used when determining the leading edge and trailing edge of the last printing paper P during continuous printing, or when determining the leading edge and trailing edge of the printing paper P during single-sheet printing. By generating the control signals S11 and S21, the leading edge and the trailing edge of the printing paper P can be appropriately determined.

一方、連続印刷時の1枚目以降最後から2枚目の印刷用紙Pの後端および2枚目以降の印刷用紙Pの先端を判断するための制御信号S11を先読み方法で生成すると、検出レバー26が頻繁に揺動し、かつ、タイミング信号も頻繁に出力されるため、タイミング信号の出力タイミングと電気的なノイズの発生タイミングとの関係で、印刷用紙Pの有無の適切な判断は困難になる。たとえば、図12(A)に示すように、連続印刷時には、タイミング信号F11の出力タイミングがノイズN2の発生タイミングよりも早くなる場合が起こり得る。そのため、先読み方法で制御信号S11を生成すると、印刷用紙Pの有無を誤検出するおそれがある。これに対して本形態のように、マスク読み方法で制御信号S11を生成すると、連続印刷時においても、この誤検出の発生を防止し、プリンタ1の内部に取り込まれる印刷用紙Pの有無を適切に判断することができる。すなわち、マスク読み方法で制御信号S11を生成する場合には、用紙検出装置14の下側をある印刷用紙Pの後端が通過した後、次の印刷用紙Pの先端が通過するまでの時間を考慮した適切なマスク時間Tを設定することでき、印刷用紙Pの有無の適切な判断が可能となる。   On the other hand, when the control signal S11 for determining the trailing edge of the second and subsequent printing sheets P and the leading edge of the second and subsequent printing sheets P is generated by the pre-reading method, the detection lever 26 frequently oscillates and the timing signal is also frequently output. Therefore, it is difficult to appropriately determine whether or not the printing paper P is present based on the relationship between the output timing of the timing signal and the generation timing of electrical noise. Become. For example, as shown in FIG. 12A, during continuous printing, the output timing of the timing signal F11 may occur earlier than the generation timing of the noise N2. For this reason, if the control signal S11 is generated by the prefetching method, the presence or absence of the printing paper P may be erroneously detected. On the other hand, when the control signal S11 is generated by the mask reading method as in the present embodiment, this erroneous detection is prevented even during continuous printing, and the presence or absence of the printing paper P taken into the printer 1 is appropriately determined. Can be judged. That is, when the control signal S11 is generated by the mask reading method, the time until the leading edge of the next printing paper P passes after the trailing edge of the printing paper P passes through the lower side of the paper detection device 14 is determined. It is possible to set an appropriate mask time T in consideration, and it is possible to appropriately determine the presence or absence of the printing paper P.

また、印刷ヘッド2の位置の変更頻度(すなわち、印刷ヘッド2のノズル面とプラテン7との隙間の調整頻度)はそれほど高くなく、印刷ヘッド2の位置の判断タイミングを知らせるタイミング信号F50が頻繁に出力されることはほとんどない。また、隙間調整機構70の構成上、隙間検出装置79から出力された出力信号S3が、閾値t3に達するレベル変化を所定の回数行って、制御信号S31を確定する前に電気的なノイズは発生しにくい。そのため、先読み方法で、印刷ヘッド2の位置を判断する制御信号S31を生成することで、印刷ヘッド2の位置を適切に判断することができる。また、先読み方法で、印刷ヘッド2の位置を判断する制御信号S31を生成すると、マスク読み方法で印刷ヘッド2の位置を判断する制御信号S31を生成する場合と比較して制御信号S31の生成処理が簡素化される。   Further, the frequency of changing the position of the print head 2 (that is, the frequency of adjusting the gap between the nozzle surface of the print head 2 and the platen 7) is not so high, and the timing signal F50 notifying the timing for determining the position of the print head 2 is frequently used. There is almost no output. In addition, due to the configuration of the gap adjusting mechanism 70, electrical noise is generated before the output signal S3 output from the gap detecting device 79 changes the level reaching the threshold value t3 a predetermined number of times to determine the control signal S31. Hard to do. Therefore, the position of the print head 2 can be appropriately determined by generating the control signal S31 for determining the position of the print head 2 by the pre-reading method. Further, when the control signal S31 for determining the position of the print head 2 is generated by the pre-reading method, the generation process of the control signal S31 is compared with the case of generating the control signal S31 for determining the position of the print head 2 by the mask reading method. Is simplified.

さらに、ディスクトレイ85の有無の検出頻度はそれほど高くなく、ディスクトレイ85に対するタイミング信号F60、F70が頻繁に出力されることはほとんどない。また、ディスクトレイ85の構成上、トレイ検出装置89から出力された出力信号S4が、最初に閾値に達するレベル変化をして、制御信号S41を確定する前に電気的なノイズは発生しにくい。そのため、先読み方法で、ディスクトレイ85の有無を判断する制御信号S41を生成することで、ディスクトレイ85の有無を適切に判断することができる。また、先読み方法で、ディスクトレイ85の有無を判断する制御信号S41を生成すると、制御信号S41の生成処理が簡素化される。   Further, the detection frequency of the presence or absence of the disc tray 85 is not so high, and the timing signals F60 and F70 for the disc tray 85 are rarely output. In addition, due to the configuration of the disc tray 85, the output signal S4 output from the tray detection device 89 changes the level that first reaches the threshold value, and electrical noise is unlikely to occur before the control signal S41 is determined. Therefore, the presence or absence of the disc tray 85 can be appropriately determined by generating the control signal S41 for determining the presence or absence of the disc tray 85 by the prefetching method. Further, when the control signal S41 for determining the presence / absence of the disc tray 85 is generated by the pre-reading method, the generation process of the control signal S41 is simplified.

このように、本形態では、被検出物となる印刷用紙P、印刷ヘッド2およびディスクガイド85の誤検出を防止するための制御信号の生成方法となる先読み方法およびマスク読み方法から、被検出物の構成上の特徴に合った生成方法で、制御信号を生成している。したがって、被検出物の構成上の特徴に合わせた好適な方法で、被検出物の状態を判断するための制御信号を生成することができる。   As described above, in this embodiment, the detected object is obtained from the pre-reading method and the mask reading method that are the generation methods of the control signals for preventing the erroneous detection of the printing paper P, the print head 2, and the disk guide 85 that are the detected objects. The control signal is generated by a generation method suitable for the structural features of Therefore, it is possible to generate a control signal for determining the state of the detected object by a suitable method that matches the structural characteristics of the detected object.

また、光ディスクDに印刷をするために、ディスクトレイ85の案内位置にトレイガイド86が一度設定されると、光ディスクDの印刷が終了するまで、トレイガイド86の位置が変更されることはない。すなわち、トレイガイド86の位置の変更の頻度は低い。また、トレイガイド86の状態を判断する制御信号をトリガとして、たとえば、一連の印刷動作のような連続動作を行うことはあまりない。そのため、通常読み方法で、トレイガイド86の位置を判断する制御信号S51を生成することで、トレイガイド86の位置を適切に判断することができる。また、通常読み方法で、トレイガイド86の位置を判断する制御信号S51を生成すると、制御信号S51の生成処理が簡素化される。   Further, once the tray guide 86 is set at the guide position of the disc tray 85 for printing on the optical disc D, the position of the tray guide 86 is not changed until the printing of the optical disc D is completed. That is, the frequency of changing the position of the tray guide 86 is low. In addition, for example, a continuous operation such as a series of printing operations is rarely performed using a control signal for determining the state of the tray guide 86 as a trigger. Therefore, the position of the tray guide 86 can be appropriately determined by generating the control signal S51 for determining the position of the tray guide 86 by the normal reading method. Further, when the control signal S51 for determining the position of the tray guide 86 is generated by the normal reading method, the generation process of the control signal S51 is simplified.

(他の実施の形態)
上述した形態は、本発明の好適な実施の形態の例であるが、本発明はこれに限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変形、変更が可能である。
(Other embodiments)
The above-described embodiment is an example of a preferred embodiment of the present invention, but the present invention is not limited to this, and various modifications and changes can be made without departing from the gist of the present invention.

上述した形態では、制御信号S11〜S51の生成方法として、先読み方法やマスク読み方法、通常読み方法が採用されている。この他にもたとえば、図16に示すように、タイミング信号F100が出力された後の所定時間T10内における検出装置からの出力信号S6の中で所定の閾値t6(上側閾値t61と下側閾値t62とを有する閾値t6)に達した最後のレベル変化に基づいて制御信号S61を確定し(すなわち、出力信号S6の最後のレベル変化が立ち上がりであれば、制御信号S61をハイレベルに確定し、出力信号S6の最後のレベル変化が立ち下がりであれば、制御信号S61をローレベルに確定し)、次のタイミング信号F100が出力されるまで、制御信号S61を変化させない後読み方法で所定の被検出物の状態を判断するための制御信号S61を生成しても良い。すなわち、タイミング信号F100が出力された後の所定時間T10内における検出装置からの出力信号S6の中で、最後に閾値t6に達した時点R10で、制御信号S61はローレベルからハイレベルにレベル変化して、次のタイミング信号F100が出力されるまでレベル変化しないように制御信号S61を生成しても良い。このように、制御信号S61を生成すると、閾値t6に達する最後のレベル変化の前に、出力信号S6にノイズN14が発生しても制御信号S61は、レベル変化しない。そのため、被検出物の構成上、被検出物の状態が変化した後に、電気的なノイズが発生しにくいときには、後読み方法で制御信号S61を生成すると、被検出物の状態を適切に判断することができる。また、後読み方法で制御信号S61を生成した場合には、被検出物に最終的な状態の確認が可能となる。   In the embodiment described above, a pre-reading method, a mask reading method, and a normal reading method are adopted as a method for generating the control signals S11 to S51. In addition to this, for example, as shown in FIG. 16, a predetermined threshold value t6 (upper threshold value t61 and lower threshold value t62) in the output signal S6 from the detection device within a predetermined time T10 after the timing signal F100 is output. The control signal S61 is determined based on the last level change that has reached the threshold value t6) (ie, if the last level change of the output signal S6 rises, the control signal S61 is determined to be high level and output) If the last level change of the signal S6 falls, the control signal S61 is fixed to a low level), and a predetermined detection is performed by a post-reading method that does not change the control signal S61 until the next timing signal F100 is output. A control signal S61 for determining the state of the object may be generated. That is, in the output signal S6 from the detection device within the predetermined time T10 after the timing signal F100 is output, the control signal S61 changes from the low level to the high level at the time point R10 when the threshold value t6 is finally reached. Then, the control signal S61 may be generated so that the level does not change until the next timing signal F100 is output. Thus, when the control signal S61 is generated, the level of the control signal S61 does not change even if the noise N14 is generated in the output signal S6 before the final level change reaching the threshold value t6. For this reason, when electrical noise is unlikely to occur after the state of the detected object changes due to the configuration of the detected object, the state of the detected object is appropriately determined by generating the control signal S61 by the post-reading method. be able to. Further, when the control signal S61 is generated by the post-reading method, the final state of the detected object can be confirmed.

また、上述した形態では、1枚印刷時においてプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号S21は、先読み方法で生成されている。この他にもたとえば、1枚印刷時においてプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号S21を、マスク読み方法で生成しても良い。また、連続印刷時においてプリンタ1の内部に取り込まれる印刷用紙Pの有無を判断するための制御信号S11は、1枚目の印刷用紙Pの先端および最後の印刷用紙Pの後端を判断するときには先読み方法で生成されているが、このときにも、マスク読み方法で制御信号S11を生成しても良い。   Further, in the above-described form, the control signal S21 for determining the presence or absence of the printing paper P taken into the printer 1 at the time of printing one sheet is generated by the prefetching method. In addition to this, for example, the control signal S21 for determining the presence or absence of the printing paper P taken into the printer 1 at the time of printing one sheet may be generated by the mask reading method. The control signal S11 for determining the presence or absence of the printing paper P taken into the printer 1 during continuous printing is used to determine the leading edge of the first printing paper P and the trailing edge of the last printing paper P. Although it is generated by the pre-reading method, the control signal S11 may also be generated by the mask reading method at this time.

さらに、上述した形態では、ASIC54の一部が制御信号生成部となっている。この他にもたとえば、用紙検出装置14、隙間検出装置79、トレイ検出装置89およびガイド検出装置90がそれぞれ制御信号生成部を備えるように構成しても良い。   Further, in the above-described form, a part of the ASIC 54 is a control signal generation unit. In addition to this, for example, the sheet detection device 14, the gap detection device 79, the tray detection device 89, and the guide detection device 90 may each be provided with a control signal generation unit.

さらにまた、上述した形態では、閾値t1〜t6は上側閾値t11〜t61および下側閾値t12〜t62を有する所定の閾値である。この他にもたとえば、閾値t1〜t6は、1つの値を有するものであっても良いし、所定範囲で設定されるものであっても良い。   Furthermore, in the above-described embodiment, the threshold values t1 to t6 are predetermined threshold values having the upper threshold values t11 to t61 and the lower threshold values t12 to t62. In addition to this, for example, the threshold values t1 to t6 may have one value, or may be set within a predetermined range.

また、上述した形態では、プリンタ1として、印刷用紙P等に対して液体状のインクを吐出して印刷を行うインクジェットプリンタを例に本発明の構成を説明したが、本発明の構成は、レーザープリンタやその他のプリンタにも適用可能である。   In the above-described embodiment, the configuration of the present invention has been described by taking an example of an inkjet printer that performs printing by ejecting liquid ink onto the printing paper P or the like as the printer 1. It can also be applied to printers and other printers.

実施の形態にかかるプリンタの概略構成を示す斜視図。1 is a perspective view illustrating a schematic configuration of a printer according to an embodiment. 図1のプリンタの紙送りに関する部分の概略構成を示す概略側面図。FIG. 2 is a schematic side view illustrating a schematic configuration of a portion related to paper feeding of the printer of FIG. 1. 図1のキャリッジおよび図2のPF駆動ローラの検出機構を示す概略構成図。FIG. 3 is a schematic configuration diagram illustrating a detection mechanism of the carriage of FIG. 1 and the PF drive roller of FIG. 2. 図2の用紙検出装置の構成を示す図。The figure which shows the structure of the paper detection apparatus of FIG. 図2のディスクトレイおよびその周辺部分の概略構成を示す概略平面図。FIG. 3 is a schematic plan view showing a schematic configuration of a disk tray and its peripheral portion in FIG. 2. 図5のX−X方向からディスクトレイおよびその周辺部分の概略構成を示す概略側面図。FIG. 6 is a schematic side view showing a schematic configuration of a disc tray and its peripheral portion from the XX direction of FIG. 5. 図6のY方向からガイド検出装置およびその周辺部分の概略構成を示す概略正面図。The schematic front view which shows schematic structure of a guide detection apparatus and its peripheral part from the Y direction of FIG. 実施の形態にかかる隙間調整機構の一部を示す斜視図。The perspective view which shows a part of clearance gap adjustment mechanism concerning embodiment. 図8の隙間調整機構の一部を示す側面図。The side view which shows a part of clearance gap adjustment mechanism of FIG. 図8の隙間調整機構の一部を示す分解斜視図。FIG. 9 is an exploded perspective view showing a part of the gap adjustment mechanism of FIG. 8. 図3の制御部およびその周辺機器の概略構成を示すブロック図。The block diagram which shows schematic structure of the control part of FIG. 3, and its peripheral device. 図4の用紙検出装置からの出力信号の波形と印刷用紙の有無を判断するための制御信号の波形との関係を示す図。FIG. 5 is a diagram illustrating a relationship between a waveform of an output signal from the paper detection device of FIG. 4 and a waveform of a control signal for determining the presence or absence of printing paper. 図10の隙間検出装置からの出力信号の波形と印刷ヘッドの位置を判断するための制御信号の波形との関係を示す図。The figure which shows the relationship between the waveform of the output signal from the clearance gap detection apparatus of FIG. 10, and the waveform of the control signal for judging the position of a print head. 図5のトレイ検出装置からの出力信号の波形とディスクトレイの有無を判断するための制御信号の波形との関係を示す図。The figure which shows the relationship between the waveform of the output signal from the tray detection apparatus of FIG. 5, and the waveform of the control signal for judging the presence or absence of a disk tray. 図5のガイド検出装置からの出力信号の波形とトレイガイドの状態を判断するための制御信号の波形との関係を示す図。The figure which shows the relationship between the waveform of the output signal from the guide detection apparatus of FIG. 5, and the waveform of the control signal for judging the state of a tray guide. 他の形態にかかる検出装置からの出力信号の波形と被検出物の状態を判断するための制御信号の波形との関係を示す図。The figure which shows the relationship between the waveform of the output signal from the detection apparatus concerning another form, and the waveform of the control signal for judging the state of a to-be-detected object. 従来技術にかかる検出装置からの出力信号の波形と被検出物の状態を判断するための制御信号の波形との関係を示す図。The figure which shows the relationship between the waveform of the output signal from the detection apparatus concerning a prior art, and the waveform of the control signal for judging the state of a to-be-detected object.

符号の説明Explanation of symbols

1 プリンタ、2 印刷ヘッド(被検出物、インク吐出部)、7 プラテン(対向部材)、14 用紙検出装置(検出装置)、54 ASIC(制御信号生成部、タイミング信号出力部)、70 隙間調整機構、79 隙間検出装置(検出装置)、85 ディスクトレイ(被検出物)、86 トレイガイド(被検出物)、89 トレイ検出装置(検出装置)、
90 ガイド検出装置(検出装置)、D 光ディスク(印刷対象物)、F10〜F100 タイミング信号、P 印刷用紙(被検出物)、S1〜S6 出力信号、S11〜S61 制御信号、T マスク時間 t1〜t6 閾値。
DESCRIPTION OF SYMBOLS 1 Printer, 2 Print head (to-be-detected object, ink discharge part), 7 Platen (opposing member), 14 Paper detection apparatus (detection apparatus), 54 ASIC (control signal generation part, timing signal output part), 70 Gap adjustment mechanism 79, gap detection device (detection device), 85 disc tray (detection object), 86 tray guide (detection object), 89 tray detection device (detection device),
90 Guide detection device (detection device), D optical disk (printing object), F10 to F100 timing signal, P printing paper (detected object), S1 to S6 output signal, S11 to S61 control signal, T mask time t1 to t6 Threshold.

Claims (8)

複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置と、該検出装置からの上記出力信号と上記出力信号に対して設定される閾値とから上記被検出物の状態を判断するための制御信号を生成する制御信号生成部と、該制御信号生成部に上記被検出物の状態の判断タイミングを知らせるタイミング信号を出力するタイミング信号出力部とを備え、
上記制御信号生成部は、
上記タイミング信号出力部から上記タイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記閾値に達するレベル変化を所定の回数したときに、上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない先読み方法と、
上記タイミング信号出力部から上記タイミング信号が出力された後の所定時間内における上記検出装置からの上記出力信号の中で上記閾値に達した最後のレベル変化に基づいて上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない後読み方法と、
上記タイミング信号出力部から上記タイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記閾値に達するレベル変化をしたときに、上記制御信号を確定し、少なくともその後の所定のマスク時間は、上記制御信号を変化させないマスク読み方法と、
の3つの信号生成方法のうちから上記被検出物に応じた少なくとも2種類の信号生成方法で上記制御信号を生成することを特徴とするプリンタ。
A plurality of detection devices that output output signals corresponding to respective states of a plurality of different detection objects, the output signals from the detection devices, and threshold values set for the output signals, A control signal generation unit that generates a control signal for determining a state, and a timing signal output unit that outputs a timing signal that informs the control signal generation unit of the determination timing of the state of the detected object,
The control signal generator is
When the output signal output from the detection device after the timing signal is output from the timing signal output unit has reached the threshold value for a predetermined number of times, the control signal is determined, and at least the next A look-ahead method that does not change the control signal until the timing signal is output;
The control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after the timing signal is output from the timing signal output unit, and at least A post-reading method that does not change the control signal until the next timing signal is output;
When the output signal output from the detection device after the timing signal is output from the timing signal output unit changes in level to reach the threshold value, the control signal is determined, and at least a predetermined mask thereafter Time is a mask reading method that does not change the control signal, and
A printer characterized in that the control signal is generated by at least two types of signal generation methods corresponding to the detected object among the three signal generation methods.
前記被検出物として内部に取り込まれる印刷用紙の有無に応じた前記出力信号を出力する用紙検出装置を前記検出装置として備え、
前記制御信号生成部は、前記マスク読み方法で、上記印刷用紙の有無を判断する前記制御信号を生成することを特徴とする請求項1記載のプリンタ。
A paper detection device that outputs the output signal according to the presence or absence of printing paper taken inside as the detected object is provided as the detection device,
The printer according to claim 1, wherein the control signal generation unit generates the control signal for determining the presence or absence of the printing paper by the mask reading method.
複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置と、該検出装置からの上記出力信号と上記出力信号に対して設定される閾値とから上記被検出物の状態を判断するための制御信号を生成する制御信号生成部と、該制御信号生成部に上記被検出物の状態の判断タイミングを知らせるタイミング信号を出力するタイミング信号出力部とを備えるとともに、
上記被検出物として内部に取り込まれる印刷用紙の有無に応じた上記出力信号を出力する用紙検出装置を上記検出装置として少なくとも備え、
上記制御信号生成部は、
上記タイミング信号出力部から上記タイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記閾値に達するレベル変化をしたときに、上記制御信号を確定し、少なくともその後の所定のマスク時間は、上記制御信号を変化させないマスク読み方法で、上記印刷用紙の有無を判断する上記制御信号を生成するとともに、
上記タイミング信号出力部から上記タイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記閾値に達するレベル変化を所定の回数したときに、上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない先読み方法と、
上記タイミング信号出力部から上記タイミング信号が出力された後の所定時間内における上記検出装置からの上記出力信号の中で上記閾値に達した最後のレベル変化に基づいて上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない後読み方法と、
上記出力信号のレベル変化に応じた上記制御信号を生成する通常読み方法と、
の3つの信号生成方法のうちのいずれかの生成方法で上記印刷用紙以外の上記被検出物の状態を判断する上記制御信号を生成することを特徴とするプリンタ。
A plurality of detection devices that output output signals corresponding to respective states of a plurality of different detection objects, the output signals from the detection devices, and threshold values set for the output signals, A control signal generation unit that generates a control signal for determining the state, and a timing signal output unit that outputs a timing signal that informs the control signal generation unit of the determination timing of the state of the detected object,
As the detection device, at least a paper detection device that outputs the output signal corresponding to the presence or absence of printing paper taken inside as the detection object,
The control signal generator is
When the output signal output from the detection device after the timing signal is output from the timing signal output unit changes in level to reach the threshold value, the control signal is determined, and at least a predetermined mask thereafter Time is a mask reading method that does not change the control signal, and generates the control signal for determining the presence or absence of the printing paper,
When the output signal output from the detection device after the timing signal is output from the timing signal output unit has reached the threshold value for a predetermined number of times, the control signal is determined, and at least the next A look-ahead method that does not change the control signal until the timing signal is output;
The control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after the timing signal is output from the timing signal output unit, and at least A post-reading method that does not change the control signal until the next timing signal is output;
A normal reading method for generating the control signal according to the level change of the output signal;
A printer that generates the control signal for determining the state of the detected object other than the printing paper by any one of the three signal generation methods.
前記印刷用紙および/または所定の印刷対象物へインクを吐出するインク吐出部と、該インク吐出部に対向する対向部材と、上記インク吐出部と上記対向部材との隙間を調整する隙間調整機構とを備えるとともに、前記被検出物となる上記インク吐出部の位置に応じた前記出力信号を出力する隙間検出装置を前記検出装置として備え、
前記制御信号生成部では、前記先読み方法で、上記インク吐出部の位置を判断する前記制御信号を生成することを特徴とする請求項1から3いずれかに記載のプリンタ。
An ink discharge section that discharges ink onto the printing paper and / or a predetermined print object; a counter member that faces the ink discharge section; and a gap adjustment mechanism that adjusts a gap between the ink discharge section and the counter member. And a gap detection device that outputs the output signal according to the position of the ink ejection portion that is the detection object, as the detection device,
4. The printer according to claim 1, wherein the control signal generation unit generates the control signal for determining a position of the ink discharge unit by the prefetching method. 5.
印刷対象物としての光ディスクが載置されるディスクトレイを前記被検出物として備えるとともに、上記ディスクトレイの有無に応じた前記出力信号を出力するトレイ検出装置を前記検出装置として備え、
前記制御信号生成部では、前記先読み方法で、上記ディスクトレイの有無を判断する前記制御信号を生成することを特徴とする請求項1から4いずれかに記載のプリンタ。
A disc tray on which an optical disc as a print object is placed is provided as the detection target, and a tray detection device that outputs the output signal according to the presence or absence of the disc tray is provided as the detection device.
5. The printer according to claim 1, wherein the control signal generation unit generates the control signal for determining presence / absence of the disc tray by the prefetching method.
印刷対象物としての光ディスクが載置されるディスクトレイと、該ディスクトレイを案内するトレイガイドとを備えるとともに、前記被検出物となる上記トレイガイドの状態に応じた前記出力信号を出力するガイド検出装置を前記検出装置として備え、
前記制御信号生成部では、前記通常読み方法で、上記トレイガイドの状態を判断する前記制御信号を生成することを特徴とする請求項3記載のプリンタ。
Guide detection for providing the output signal according to the state of the tray guide serving as the detected object, including a disk tray on which an optical disk as a printing object is placed and a tray guide for guiding the disk tray An apparatus as the detection device,
4. The printer according to claim 3, wherein the control signal generation unit generates the control signal for determining the state of the tray guide by the normal reading method.
複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置を備えるプリンタの制御方法であって、
上記被検出物の状態の判断タイミングを知らせるタイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記出力信号に対して設定される閾値に達するレベル変化を所定の回数したときに、上記検出装置からの上記出力信号と上記閾値とから生成され上記被検出物の状態を判断するための制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない先読み方法と、
上記タイミング信号が出力された後の所定時間内における上記検出装置からの上記出力信号の中で上記閾値に達した最後のレベル変化に基づいて上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない後読み方法と、
上記タイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記閾値に達するレベル変化をしたときに、上記制御信号を確定し、少なくともその後の所定のマスク時間は、上記制御信号を変化させないマスク読み方法と、
の3つの信号生成方法のうちから上記被検出物に応じた少なくとも2種類の信号生成方法で上記制御信号を生成して所定の制御を行うことを特徴とするプリンタの制御方法。
A method for controlling a printer comprising a plurality of detection devices that output output signals corresponding to the states of a plurality of different objects to be detected,
When the output signal output from the detection device after the output of the timing signal informing the determination timing of the state of the detected object has made a predetermined number of level changes that reach a threshold set for the output signal In addition, a control signal generated from the output signal from the detection device and the threshold value for determining the state of the detected object is determined, and the control signal is changed until at least the next timing signal is output. A look-ahead method that does not change,
The control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after the timing signal is output, and at least the next timing signal is A post-reading method that does not change the control signal until it is output;
The control signal is determined when the output signal output from the detection device after the timing signal is output changes in level to reach the threshold, and at least a predetermined mask time thereafter is determined by the control signal. Mask reading method that does not change
A control method for a printer, wherein the control signal is generated by at least two types of signal generation methods according to the detected object from among the three signal generation methods, and predetermined control is performed.
複数の異なる被検出物のそれぞれの状態に応じた出力信号を出力する複数の検出装置を備えるとともに、上記被検出物として内部に取り込まれる印刷用紙の有無に応じた上記出力信号を出力する用紙検出装置を上記検出装置として少なくとも備えるプリンタの制御方法であって、
上記被検出物の状態の判断タイミングを知らせるタイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記出力信号に対して設定される閾値に達するレベル変化をしたときに、上記検出装置からの上記出力信号と上記閾値とから生成され上記被検出物の状態を判断するための制御信号を確定し、少なくともその後の所定のマスク時間は、上記制御信号を変化させないマスク読み方法で、上記印刷用紙の有無を判断する上記制御信号を生成するとともに、
上記タイミング信号が出力された後に上記検出装置から出力された上記出力信号が、上記閾値に達するレベル変化を所定の回数したときに、上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない先読み方法と、
上記タイミング信号が出力された後の所定時間内における上記検出装置からの上記出力信号の中で上記閾値に達した最後のレベル変化に基づいて上記制御信号を確定し、少なくとも次の上記タイミング信号が出力されるまで、上記制御信号を変化させない後読み方法と、
上記出力信号のレベル変化に応じた上記制御信号を生成する通常読み方法と、
の3つの信号生成方法のうちのいずれかの生成方法で上記印刷用紙以外の上記被検出物の状態を判断する上記制御信号を生成して所定の制御を行うことを特徴とするプリンタの制御方法。
Paper detection that includes a plurality of detection devices that output output signals corresponding to the states of a plurality of different detection objects, and that outputs the output signals according to the presence or absence of printing paper taken inside as the detection objects A printer control method comprising at least a device as the detection device,
When the output signal output from the detection device after the timing signal informing the determination timing of the state of the detected object has changed in level to reach a threshold set for the output signal, A control signal generated from the output signal from the detection device and the threshold value for determining the state of the detected object is determined, and at least a predetermined mask time thereafter is a mask reading method that does not change the control signal. And generating the control signal for determining the presence or absence of the printing paper,
When the output signal output from the detection device after the timing signal is output reaches the threshold value a predetermined number of times, the control signal is determined and at least the next timing signal is output. A prefetching method that does not change the control signal until
The control signal is determined based on the last level change that has reached the threshold in the output signal from the detection device within a predetermined time after the timing signal is output, and at least the next timing signal is A post-reading method that does not change the control signal until it is output;
A normal reading method for generating the control signal according to the level change of the output signal;
A control method for a printer, wherein the control signal for determining the state of the detected object other than the printing paper is generated by any one of the three signal generation methods and a predetermined control is performed. .
JP2005293335A 2005-10-06 2005-10-06 Printer and printer control method Withdrawn JP2007098831A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2005293335A JP2007098831A (en) 2005-10-06 2005-10-06 Printer and printer control method
US11/544,520 US7918526B2 (en) 2005-10-06 2006-10-06 Printer and method preventing false detection of a detected object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005293335A JP2007098831A (en) 2005-10-06 2005-10-06 Printer and printer control method

Publications (1)

Publication Number Publication Date
JP2007098831A true JP2007098831A (en) 2007-04-19

Family

ID=38026243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005293335A Withdrawn JP2007098831A (en) 2005-10-06 2005-10-06 Printer and printer control method

Country Status (1)

Country Link
JP (1) JP2007098831A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9758327B2 (en) 2015-09-11 2017-09-12 Canon Kabushiki Kaisha Rotation detecting unit, sheet feeding device and image forming apparatus
JP2019011176A (en) * 2017-06-30 2019-01-24 キヤノン株式会社 Image forming apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10315553A (en) * 1997-05-19 1998-12-02 Ricoh Co Ltd Image-forming apparatus
JPH11180594A (en) * 1997-12-18 1999-07-06 Fuji Xerox Co Ltd Sheet conveyor
JP2004018227A (en) * 2002-06-19 2004-01-22 Murata Mach Ltd Paper end detection device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10315553A (en) * 1997-05-19 1998-12-02 Ricoh Co Ltd Image-forming apparatus
JPH11180594A (en) * 1997-12-18 1999-07-06 Fuji Xerox Co Ltd Sheet conveyor
JP2004018227A (en) * 2002-06-19 2004-01-22 Murata Mach Ltd Paper end detection device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9758327B2 (en) 2015-09-11 2017-09-12 Canon Kabushiki Kaisha Rotation detecting unit, sheet feeding device and image forming apparatus
JP2019011176A (en) * 2017-06-30 2019-01-24 キヤノン株式会社 Image forming apparatus

Similar Documents

Publication Publication Date Title
JP3687634B2 (en) Printer
US7918526B2 (en) Printer and method preventing false detection of a detected object
JP4850557B2 (en) Recording device
JP2007136774A (en) Printer, and method for setting detection threshold value of end part of object to be printed
JP2007098831A (en) Printer and printer control method
JP5482611B2 (en) Inkjet recording device
JP2008100357A (en) Printer, optical disc duplicating apparatus, and method for controlling printer
JP2007118338A (en) Printer and control method of printer
JP6833368B2 (en) Medium detection device, medium transfer device and image forming device
JP7334400B2 (en) recording device
JP2006256229A (en) Gap adjusting mechanism, printer equipped with this gap adjusting mechanism, and gap adjusting method
JP2007118337A (en) Printer and control method of printer
JP5029181B2 (en) Fluid ejecting apparatus and flushing control method for fluid ejecting apparatus
JP2006248070A (en) Gap adjustment mechanism, printer equipped with this gap adjustment mechanism, and gap adjustment method
JP2009046294A (en) Recording device and sensor arrangement structure
JP5098511B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND CONTROL PROGRAM
JP2008229969A (en) Ink ejector
JP2006247998A (en) Gap adjustment mechanism, printer equipped with this gap adjustment mechanism, and gap adjustment method
JP4419420B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
JP4032886B2 (en) Tilt detection apparatus and tilt detection method
JP2006341474A (en) Image recording apparatus
US20180029388A1 (en) Image recording apparatus and image recording method
JP2007136916A (en) Printer and method for controlling printer
JP2007106505A (en) Sheet feeding device and image forming device equipped with it
JP2008126452A (en) Recorder and method of detecting presence/absence of recording medium

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070405

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080912

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100914

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20101110