JP2012228860A - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP2012228860A
JP2012228860A JP2011100169A JP2011100169A JP2012228860A JP 2012228860 A JP2012228860 A JP 2012228860A JP 2011100169 A JP2011100169 A JP 2011100169A JP 2011100169 A JP2011100169 A JP 2011100169A JP 2012228860 A JP2012228860 A JP 2012228860A
Authority
JP
Japan
Prior art keywords
printer
unit
error
sensitivity
determination unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011100169A
Other languages
Japanese (ja)
Inventor
Noriyuki Ishida
紀之 石田
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.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2011100169A priority Critical patent/JP2012228860A/en
Publication of JP2012228860A publication Critical patent/JP2012228860A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a printer that can prevent misdetection of an error.SOLUTION: The printer 100 includes: a sensor 35 for detecting an error state and a non-error state; a determination unit 50 for determining whether the error occurs in the printer 100 on the basis of results detected by the sensor 35; and a sensitivity reduction unit 48 for reducing the sensitivity of the determination unit 50 for determining that the error occurs in the printer 100, when the result detected by the sensor 35 switches between the error state and the non-error state at a predetermined times N0 or more, within a predetermined time T0.

Description

本発明はプリンタに関する。   The present invention relates to a printer.

プリンタには、例えば印刷用紙の有無、カバーの開閉等を検出するためのセンサが設けられることがある。センサは、例えば印刷用紙切れ、又はカバーのオープン等を、エラー状態として検出することができる。特許文献1には、フォトセンサを用いて印刷用紙の位置を検出する発明が記載されている。このようなセンサには、例えば印刷用紙の有無、カバーの開閉等、プリンタの状態に応じて異なるレベルの電気的な信号を出力するものがある。センサが出力する信号に基づいてエラーが検知される。   For example, the printer may be provided with a sensor for detecting the presence or absence of printing paper, opening / closing of a cover, and the like. The sensor can detect, for example, an out of printing paper or an open cover as an error state. Patent Document 1 describes an invention for detecting the position of printing paper using a photosensor. Some of these sensors output electrical signals at different levels depending on the state of the printer, such as the presence or absence of printing paper and the opening and closing of a cover. An error is detected based on a signal output from the sensor.

特開2008−23803号公報JP 2008-23803 A

しかしながら、センサは、例えば埃、振動、又は静電気等により、誤作動することがある。誤作動するセンサは、プリンタの実際の状態に対応する信号とは、異なるレベルの信号を出力することがある。このようなセンサの誤作動に伴い、プリンタにエラーが発生していると誤検知されることがある。本発明は、上記課題に鑑み、エラーの誤検知を抑制することが可能なプリンタを提供することを目的とする。   However, the sensor may malfunction due to, for example, dust, vibration, or static electricity. A malfunctioning sensor may output a signal at a different level from the signal corresponding to the actual state of the printer. Along with such malfunction of the sensor, it may be erroneously detected that an error has occurred in the printer. In view of the above problems, an object of the present invention is to provide a printer capable of suppressing erroneous detection of errors.

本発明は、エラー状態、及び非エラー状態を検出するセンサと、前記センサの検出結果に基づき、プリンタにエラーが発生しているか判定を行う判定部と、所定の時間内において、前記センサの検出結果が前記エラー状態と前記非エラー状態との間で所定の回数以上切り換わった場合、前記プリンタにエラーが発生していると判定するための前記判定部の感度を低下させる感度低下部と、を具備するプリンタである。本発明によれば、エラーの誤検知を抑制することができる。   The present invention provides a sensor that detects an error state and a non-error state, a determination unit that determines whether an error has occurred in the printer based on a detection result of the sensor, and detection of the sensor within a predetermined time. If the result is switched a predetermined number of times or more between the error state and the non-error state, a sensitivity reduction unit that reduces the sensitivity of the determination unit for determining that an error has occurred in the printer; It is a printer provided with. According to the present invention, erroneous detection of errors can be suppressed.

上記構成において、前記プリンタの動作中に前記センサが前記エラー状態を検出した場合、前記感度低下部は前記判定部の感度を低下させる構成とすることができる。この構成によれば、効果的に誤検知を抑制することができる。   In the above configuration, when the sensor detects the error state during the operation of the printer, the sensitivity reduction unit can reduce the sensitivity of the determination unit. According to this configuration, erroneous detection can be effectively suppressed.

上記構成において、前記センサは、前記プリンタのカバーの開閉を検出し、前記プリンタの動作中に、前記センサが前記カバーの開閉を検出した場合、前記感度低下部は前記判定部の感度を低下させる構成とすることができる。この構成によれば、効果的に誤検知を抑制することができる。   In the above configuration, the sensor detects opening and closing of the cover of the printer, and when the sensor detects opening and closing of the cover during operation of the printer, the sensitivity reduction unit reduces the sensitivity of the determination unit. It can be configured. According to this configuration, erroneous detection can be effectively suppressed.

上記構成において、紙に印刷を行う印刷部と、前記紙を搬送する搬送部と、前記紙を切断する切断部と、を具備し、前記印刷部、前記搬送部、及び前記切断部の少なくとも1つが動作中に、前記センサが前記エラー状態を検出した場合、前記感度低下部は前記判定部の感度を低下させる構成とすることができる。この構成によれば、効果的に誤検知を抑制することができる。   In the above configuration, the printing unit includes a printing unit that prints on paper, a conveyance unit that conveys the paper, and a cutting unit that cuts the paper. At least one of the printing unit, the conveyance unit, and the cutting unit When the sensor detects the error state during operation, the sensitivity reduction unit can reduce the sensitivity of the determination unit. According to this configuration, erroneous detection can be effectively suppressed.

上記構成において、前記判定部は、前記センサがエラー状態を連続して検出した回数が閾値以上である場合、前記プリンタにエラーが発生していると判定し、前記感度低下部は、前記閾値を大きくする構成とすることができる。この構成によれば、誤検知を抑制することができる。   In the above configuration, the determination unit determines that an error has occurred in the printer when the number of times the sensor continuously detects an error state is equal to or greater than a threshold, and the sensitivity reduction unit determines the threshold. It can be set as the structure enlarged. According to this configuration, erroneous detection can be suppressed.

上記構成において、前記判定部は、所定の周期ごとに前記センサによる検出結果を取得し、かつ前記センサがエラー状態を連続して検出した回数が閾値以上である場合、前記プリンタにエラーが発生していると判定し、前記感度低下部は、前記周期を大きくする構成とすることができる。この構成によれば、誤検知を抑制することができる。   In the above configuration, the determination unit acquires a detection result by the sensor every predetermined period, and an error occurs in the printer when the number of times the sensor continuously detects an error state is equal to or greater than a threshold value. It can be determined that the sensitivity reduction unit increases the period. According to this configuration, erroneous detection can be suppressed.

上記構成において、前記感度低下部は、前記プリンタの動作状況に応じて、前記判定部の感度を低下させる構成とすることができる。この構成によれば、より効果的に誤検知を抑制することができる。   In the above configuration, the sensitivity reduction unit may be configured to reduce the sensitivity of the determination unit in accordance with the operation status of the printer. According to this configuration, erroneous detection can be more effectively suppressed.

上記構成において、紙に印刷を行う印刷部と、前記紙を搬送する搬送部と、前記紙を切断する切断部と、を具備し、前記感度低下部は、前記印刷部、前記搬送部、及び前記切断部、のいずれが動作中であるかに応じて前記判定部が異なる感度を有するように、感度を低下させる構成とすることができる。この構成によれば、より効果的に誤検知を抑制することができる。   In the above configuration, a printing unit that performs printing on paper, a conveyance unit that conveys the paper, and a cutting unit that cuts the paper, wherein the sensitivity reduction unit includes the printing unit, the conveyance unit, and Sensitivity can be reduced so that the determination unit has different sensitivity depending on which of the cutting units is in operation. According to this configuration, erroneous detection can be more effectively suppressed.

上記構成において、前記感度低下部が前記判定部の感度を低下させ、かつ前記センサの検出結果が、前記判定部が前記低下された感度に基づき、前記プリンタにエラーが発生していると判定すべき検出結果である場合であって、前記プリンタが動作中である場合、前記判定部は前記プリンタにエラーが発生していると判定せず、前記プリンタの動作終了後に前記センサが前記エラー状態を検出した場合、前記判定部は前記プリンタにエラーが発生していると判定し、前記プリンタの動作終了後に前記センサが前記エラー状態を検出しない場合、前記判定部は前記プリンタにエラーが発生していないと判定する構成とすることができる。この構成によれば、誤検知を抑制し、かつ適切にエラーを検知することができる。   In the above configuration, the sensitivity reduction unit decreases the sensitivity of the determination unit, and the detection result of the sensor determines that an error has occurred in the printer based on the reduced sensitivity. When the printer is in operation, the determination unit does not determine that an error has occurred in the printer, and the sensor indicates the error state after the operation of the printer is completed. If detected, the determination unit determines that an error has occurred in the printer. If the sensor does not detect the error state after the operation of the printer is completed, the determination unit has detected an error in the printer. It can be set as the structure determined not to exist. According to this configuration, erroneous detection can be suppressed and an error can be appropriately detected.

上記構成において、紙に印刷を行う印刷部と、前記紙を搬送する搬送部と、前記紙を切断する切断部と、を具備し、前記感度低下部が前記判定部の感度を低下させ、かつ前記センサの検出結果が、前記判定部が前記低下された感度に基づき、前記プリンタにエラーが発生していると判定すべき検出結果である場合であって、前記印刷部、前記搬送部、及び前記切断部の少なくとも1つが動作中である場合、前記判定部は前記プリンタにエラーが発生していると判定せず、前記印刷部、前記搬送部、及び前記切断部の前記少なくとも1つの動作終了後に、前記センサが前記エラー状態を検出した場合、前記判定部は前記プリンタにエラーが発生していると判定し、前記印刷部、前記搬送部、及び前記切断部の前記少なくとも1つの動作終了後に、前記センサが前記エラー状態を検出しない場合、前記判定部は前記プリンタにエラーが発生していないと判定する構成とすることができる。この構成によれば、誤検知を抑制し、かつ適切にエラーを検知することができる。   In the above configuration, a printing unit that performs printing on paper, a conveyance unit that conveys the paper, and a cutting unit that cuts the paper, wherein the sensitivity reduction unit reduces the sensitivity of the determination unit, and The detection result of the sensor is a detection result that the determination unit should determine that an error has occurred in the printer based on the reduced sensitivity, and the printing unit, the conveyance unit, and When at least one of the cutting units is in operation, the determination unit does not determine that an error has occurred in the printer, and the at least one operation of the printing unit, the transport unit, and the cutting unit is completed. Later, when the sensor detects the error state, the determination unit determines that an error has occurred in the printer, and after the at least one operation of the printing unit, the conveyance unit, and the cutting unit is completed. If the sensor does not detect the error condition, the determining unit may be determined construction that no error has occurred in the printer. According to this configuration, erroneous detection can be suppressed and an error can be appropriately detected.

本発明によれば、エラーの誤検知を抑制することが可能なプリンタを提供することができる。   According to the present invention, it is possible to provide a printer capable of suppressing erroneous detection of errors.

図1は、実施例1に係るプリンタを例示するブロック図である。FIG. 1 is a block diagram illustrating a printer according to the first embodiment. 図2は、実施例1に係るプリンタを例示する機能ブロック図である。FIG. 2 is a functional block diagram illustrating the printer according to the first embodiment. 図3(a)及び図3(b)は、センサの検出する信号を例示する図である。FIG. 3A and FIG. 3B are diagrams illustrating signals detected by the sensors. 図4は、状態変化が頻出する場合を例示する図である。FIG. 4 is a diagram illustrating a case where state changes frequently occur. 図5は、感度低下後におけるセンサの検出する信号を例示する図である。FIG. 5 is a diagram illustrating a signal detected by the sensor after the sensitivity is lowered. 図6は、実施例1に係るプリンタの感度低下制御を例示するフローチャートである。FIG. 6 is a flowchart illustrating the sensitivity reduction control of the printer according to the first embodiment. 図7は、実施例1に係るプリンタのエラー検出制御を例示するフローチャートである。FIG. 7 is a flowchart illustrating error detection control of the printer according to the first embodiment. 図8は、実施例1に係るプリンタのエラー検出制御を例示するフローチャートである。FIG. 8 is a flowchart illustrating error detection control of the printer according to the first embodiment. 図9は、実施例2に係るプリンタの感度低下制御を例示するフローチャートである。FIG. 9 is a flowchart illustrating the sensitivity reduction control of the printer according to the second embodiment. 図10は、実施例3に係るプリンタの感度低下制御を例示するフローチャートである。FIG. 10 is a flowchart illustrating the sensitivity reduction control of the printer according to the third embodiment. 図11は、実施例4に係るプリンタのエラー検出制御を例示するフローチャートである。FIG. 11 is a flowchart illustrating the error detection control of the printer according to the fourth embodiment. 図12は、実施例4に係るプリンタのエラー検出制御を例示するフローチャートである。FIG. 12 is a flowchart illustrating the error detection control of the printer according to the fourth embodiment.

図面を用いて、本発明の実施例について説明する。   Embodiments of the present invention will be described with reference to the drawings.

まず実施例1に係るプリンタ100の構成について説明する。図1は、実施例1に係るプリンタを例示するブロック図である。   First, the configuration of the printer 100 according to the first embodiment will be described. FIG. 1 is a block diagram illustrating a printer according to the first embodiment.

図1に示すように、実施例1に係るプリンタ100は、制御ユニット10とメカユニット30とを備える。制御ユニット10は、MCU(Micro Controller Unit)12、駆動回路14〜18、RAM(Random Access Memory)20、ROM(Read Only Memory)22、I/F(インターフェース)24、及びタイマ26を備える。メカユニット30は、サーマルヘッド32、モータ34、フォトセンサ36、カバースイッチ37、及び切断部38を備える。   As illustrated in FIG. 1, the printer 100 according to the first embodiment includes a control unit 10 and a mechanical unit 30. The control unit 10 includes an MCU (Micro Controller Unit) 12, drive circuits 14 to 18, a RAM (Random Access Memory) 20, a ROM (Read Only Memory) 22, an I / F (interface) 24, and a timer 26. The mechanical unit 30 includes a thermal head 32, a motor 34, a photo sensor 36, a cover switch 37, and a cutting unit 38.

サーマルヘッド32は発熱素子を含み、印刷用紙等の媒体に印刷を行う。印刷用紙として、例えば感熱紙を使用することができる。駆動回路14はサーマルヘッド32を駆動するための回路である。モータ34は、印刷用紙の搬送を行う。駆動回路16は、モータ34を駆動するための回路である。切断部38は、印刷用紙を切断するためのカッター、及びカッターを駆動するためのモータ等を含む。駆動回路18は、切断部38を駆動するための回路である。切断部38は、例えばページの区切りごとに印刷用紙をカットする。   The thermal head 32 includes a heating element, and performs printing on a medium such as printing paper. As the printing paper, for example, thermal paper can be used. The drive circuit 14 is a circuit for driving the thermal head 32. The motor 34 conveys the printing paper. The drive circuit 16 is a circuit for driving the motor 34. The cutting unit 38 includes a cutter for cutting the printing paper, a motor for driving the cutter, and the like. The drive circuit 18 is a circuit for driving the cutting unit 38. The cutting unit 38 cuts the printing paper at each page break, for example.

RAM20は、例えばSRAM(Static Random Access Memory)等の揮発性メモリであり、印刷すべきデータ等を一時的に記憶する。ROM22は、例えばフラッシュメモリ等であり、プリンタ100の制御に用いるデータ等を記憶する不揮発性メモリである。I/F24は、例えばUSB(Universal Serial Bus)、IrDA(Infrared Data Association)、Bluetooth(登録商標)、又はRS−232C等の規格に対応したインターフェースである。I/F24は、プリンタ100と、例えばホストコンピュータ等、プリンタ100の外部との通信を仲介する。タイマ26は、例えば振動子等であり、一定の周期を測定することができる。タイマ26は、例えばMCU12に含まれるRTC(Real Time Clock:リアルタイムクロック)でもよい。   The RAM 20 is a volatile memory such as SRAM (Static Random Access Memory), and temporarily stores data to be printed. The ROM 22 is a flash memory, for example, and is a non-volatile memory that stores data used for controlling the printer 100. The I / F 24 is an interface corresponding to a standard such as USB (Universal Serial Bus), IrDA (Infrared Data Association), Bluetooth (registered trademark), or RS-232C. The I / F 24 mediates communication between the printer 100 and the outside of the printer 100 such as a host computer. The timer 26 is a vibrator or the like, for example, and can measure a certain period. The timer 26 may be, for example, an RTC (Real Time Clock) included in the MCU 12.

フォトセンサ36は、光の反射率を測定することができ、測定する領域の光の反射率に応じて印刷用紙の有無、言い換えれば印刷用紙がプリンタ100にセットされているか検出することができる。カバースイッチ37は、例えば機械的なスイッチであり、プリンタ100のカバーの開閉状態を検出することができる。プリンタ100のカバーとは、例えばサーマルヘッド32の収納部のカバー、印刷用紙をセットする部位のカバー等である。フォトセンサ36、及びカバースイッチ37を総称してセンサ35と称することがある。フォトセンサ36は、例えば印刷用紙がセットされていない状態(印刷用紙切れ)をエラー状態として検出し、印刷用紙がセットされている状態を非エラー状態として検出する。カバースイッチ37は、例えばカバーが開いている状態(カバーオープン)をエラー状態として検出し、カバーが閉じている状態(カバークローズ)を非エラー状態として検出する。   The photo sensor 36 can measure the reflectance of light, and can detect the presence or absence of printing paper, in other words, whether the printing paper is set in the printer 100, according to the reflectance of light in the area to be measured. The cover switch 37 is a mechanical switch, for example, and can detect the open / closed state of the cover of the printer 100. The cover of the printer 100 is, for example, a cover of the storage section of the thermal head 32, a cover of a part for setting printing paper, or the like. The photosensor 36 and the cover switch 37 may be collectively referred to as a sensor 35. For example, the photo sensor 36 detects a state in which no printing paper is set (printing paper out) as an error state, and detects a state in which the printing paper is set as a non-error state. The cover switch 37 detects, for example, a state where the cover is open (cover open) as an error state, and a state where the cover is closed (cover close) as a non-error state.

MCU12は、駆動回路14〜18を介して、サーマルヘッド32、モータ34及び切断部38を制御する。MCU12は、RAM20及びROM22と情報の書き込み及び読み出しを行う。MCU12は、タイマ26が周期ごとに出力する信号を受信する。またMCU12は、センサ35が出力する信号を受信し、信号に基づいて印刷用紙の有無、又はカバーの開閉等について判定をすることができる。   The MCU 12 controls the thermal head 32, the motor 34, and the cutting unit 38 via the drive circuits 14-18. The MCU 12 writes and reads information to and from the RAM 20 and the ROM 22. The MCU 12 receives a signal output from the timer 26 every period. Further, the MCU 12 can receive a signal output from the sensor 35 and determine whether or not there is a printing sheet or whether the cover is opened or closed based on the signal.

図2は、実施例1に係るプリンタを例示する機能ブロック図である。図2に示すように、MCU12は、印刷制御部40、搬送制御部42、切断制御部44、通信制御部46、感度低下部48、及び判定部50として機能する。印刷制御部40は、駆動回路14を介してサーマルヘッド32の制御を行う。搬送制御部42は、駆動回路16を介してモータ34の制御を行う。切断制御部44は、駆動回路18を介して、切断部38の制御を行う。通信制御部46は、I/F24を介した通信の制御を行う。エラーカウンタ52は、判定部50に含まれ、センサ35がエラー状態を検出した回数を測定する。判定部50は、センサ35の検出結果に基づいて、プリンタ100にエラーが発生しているか判定する。また判定部50は、センサ35の検出結果、及び感度に基づき、プリンタ100にエラーが発生していると判定する。感度低下部48は、プリンタ100にエラーが発生していると判定するための判定部50の感度を低下させる。状態変化カウンタ49は、感度低下部48に含まれ、状態変化の検出回数を測定する。感度、エラーの判定、及び状態変化については後述する。   FIG. 2 is a functional block diagram illustrating the printer according to the first embodiment. As illustrated in FIG. 2, the MCU 12 functions as a print control unit 40, a conveyance control unit 42, a cutting control unit 44, a communication control unit 46, a sensitivity reduction unit 48, and a determination unit 50. The print control unit 40 controls the thermal head 32 via the drive circuit 14. The conveyance control unit 42 controls the motor 34 via the drive circuit 16. The cutting control unit 44 controls the cutting unit 38 via the drive circuit 18. The communication control unit 46 controls communication via the I / F 24. The error counter 52 is included in the determination unit 50 and measures the number of times that the sensor 35 has detected an error state. The determination unit 50 determines whether an error has occurred in the printer 100 based on the detection result of the sensor 35. The determination unit 50 determines that an error has occurred in the printer 100 based on the detection result of the sensor 35 and the sensitivity. The sensitivity reduction unit 48 reduces the sensitivity of the determination unit 50 for determining that an error has occurred in the printer 100. The state change counter 49 is included in the sensitivity reduction unit 48 and measures the number of detections of the state change. Sensitivity, error determination, and state change will be described later.

次にエラー判定の例について説明する。なお、後述する感度の低下がない場合を例とする。図3(a)及び図3(b)は、センサの検出する信号を例示する図である。図3(a)及び図3(b)の横軸は時間、縦軸はセンサ35が出力する信号を表す。まず、フォトセンサ36を例として説明する。   Next, an example of error determination will be described. An example is the case where there is no decrease in sensitivity described later. FIG. 3A and FIG. 3B are diagrams illustrating signals detected by the sensors. 3A and 3B, the horizontal axis represents time, and the vertical axis represents a signal output from the sensor 35. First, the photo sensor 36 will be described as an example.

図3(a)及び図3(b)に示すように、フォトセンサ36が出力する信号には、例えばハイ(H)とロー(L)との2つの大きさがある。印刷用紙がセットされている場合、フォトセンサ36は印刷用紙の反射率を測定し、信号Hを出力する。印刷用紙がセットされていない場合、フォトセンサ36は用紙搬送路の反射率を測定し、信号Lを出力する。このようにフォトセンサ36は、印刷用紙ありの状態(非エラー状態)と印刷用紙切れの状態(エラー状態)とを検出することができる。なお以下では、信号Hと信号Lとの間の変化、言い換えれば非エラー状態とエラー状態との間の変化を状態変化と呼ぶ。   As shown in FIGS. 3A and 3B, the signal output from the photosensor 36 has two magnitudes, for example, high (H) and low (L). When printing paper is set, the photo sensor 36 measures the reflectance of the printing paper and outputs a signal H. When no printing paper is set, the photo sensor 36 measures the reflectance of the paper conveyance path and outputs a signal L. As described above, the photo sensor 36 can detect the state (non-error state) where the printing paper is present and the state (error state) where the printing paper runs out. Hereinafter, a change between the signal H and the signal L, in other words, a change between the non-error state and the error state is referred to as a state change.

判定部50は、タイマ26により測定される時間に基づいて、一定の周期t0ごとに、センサ35が出力する信号を検出する。判定部50に含まれるエラーカウンタ52は、判定部50により信号Lが検出された回数を測定する。言い換えれば、判定部50は、周期t0ごとにセンサ35の検出結果を取得し、エラーカウンタ52はエラー状態が検出された回数を測定する。判定部50は、信号Lが連続して3回検出された場合に、印刷用紙切れのエラーが発生していると判定する(エラー判定)。言い換えれば、エラー判定のための閾値は3である。判定部50の感度とは、例えば閾値及び周期を意味する。   Based on the time measured by the timer 26, the determination unit 50 detects a signal output from the sensor 35 at every constant period t0. The error counter 52 included in the determination unit 50 measures the number of times that the signal L is detected by the determination unit 50. In other words, the determination unit 50 acquires the detection result of the sensor 35 every cycle t0, and the error counter 52 measures the number of times that the error state is detected. When the signal L is detected three times in succession, the determination unit 50 determines that a print paper out error has occurred (error determination). In other words, the threshold value for error determination is 3. The sensitivity of the determination unit 50 means, for example, a threshold value and a cycle.

図3(a)の例では、判定部50が時間tにおいて信号Lを受信し、時間tから周期t0を経た時間t+t0においても信号Lを受信する。さらに周期t0を経た、時間t+2×t0において判定部50は信号Hを受信する。このとき、信号Lが連続して検出された回数は2回である。従って、判定部50は印刷用紙切れのエラーが発生していると判定しない。   In the example of FIG. 3A, the determination unit 50 receives the signal L at time t, and also receives the signal L at time t + t0 after a period t0 from time t. Further, the determination unit 50 receives the signal H at time t + 2 × t0 after a period t0. At this time, the number of times that the signal L is continuously detected is two. Accordingly, the determination unit 50 does not determine that a print paper out error has occurred.

図3(b)の例では、判定部50が、時間t及び時間t+t0において信号Lを受信していることは、図3(a)の例と同様である。さらに時間t+2×t0においても、判定部50は信号Lを受信する。このとき、信号Lが連続して検出された回数は3回である。従って、判定部50は印刷用紙切れのエラーが発生していると判定する。   In the example of FIG. 3B, it is the same as the example of FIG. 3A that the determination unit 50 receives the signal L at time t and time t + t0. Further, at time t + 2 × t0, determination unit 50 receives signal L. At this time, the number of times that the signal L is continuously detected is three. Accordingly, the determination unit 50 determines that an error of out of print paper has occurred.

カバースイッチ37の場合も同様である。カバースイッチ37は、例えばカバーが閉じている状態(カバークローズ)の場合、信号Hを出力し、カバーオープンの場合には信号Lを出力する。このようにカバースイッチ37は、カバークローズ(非エラー状態)とカバーオープン(エラー状態)とを検出することができる。判定部50は、例えば信号Lが連続して3回検出された場合、カバーオープンのエラーが発生していると判定する。判定部50は、フォトセンサ36の例と同様に、カバースイッチ37が出力する信号に基づいて、カバーオープンのエラーが発生しているか判定することができる。なお、周期t0は例えば1ms、又は2ms等、任意の値とすることができる。また閾値についても、例えば2、又は5等のように、3以外の値でもよい。   The same applies to the cover switch 37. For example, the cover switch 37 outputs a signal H when the cover is closed (cover closed), and outputs a signal L when the cover is open. As described above, the cover switch 37 can detect a cover close (non-error state) and a cover open (error state). For example, when the signal L is detected three times consecutively, the determination unit 50 determines that a cover open error has occurred. Similar to the example of the photo sensor 36, the determination unit 50 can determine whether a cover open error has occurred based on a signal output from the cover switch 37. The period t0 can be set to an arbitrary value such as 1 ms or 2 ms. Also, the threshold value may be a value other than 3, such as 2 or 5, for example.

センサは、例えば埃、振動、又は静電気等により誤作動することがある。具体的には、センサ35は、実際に印刷用紙切れ又はカバーオープン等のエラーが発生していなくとも、誤作動により信号Lを出力することがある。誤作動であっても、図3(b)のように信号Lが連続して3回出力された場合、プリンタはエラー状態となり動作を停止する。特に、サーマルプリンタは、例えばATM(Automated Teller Machine:現金自動預け払い機)又はレジスター等のように、埃、振動等が発生しやすい環境で使用されることがある。従って、エラーの誤検知が発生しやすい。エラーが誤検知されることにより、プリンタは動作を停止することがある。また、ATM等のように、プリンタが無人の環境下で動作する場合、誤検知が発生しても、迅速に点検等を行うことが困難であるため、動作の停止が長い時間に及ぶことがある。   The sensor may malfunction due to, for example, dust, vibration, or static electricity. Specifically, the sensor 35 may output a signal L due to a malfunction even if an error such as out of printing paper or cover open does not actually occur. Even if malfunction occurs, if the signal L is output three times continuously as shown in FIG. 3B, the printer enters an error state and stops operating. In particular, the thermal printer may be used in an environment where dust, vibration, etc. are likely to occur, such as an ATM (Automated Teller Machine) or a register. Accordingly, erroneous detection of errors is likely to occur. If an error is erroneously detected, the printer may stop operating. In addition, when the printer operates in an unattended environment such as ATM, it is difficult to perform a quick inspection or the like even if a false detection occurs, so that the operation may stop for a long time. is there.

図2において説明したように、実施例1に係るプリンタ100が備える感度低下部48は、判定部50の感度の低下を行う。感度低下部48が感度の低下を行う場合について説明する。図2に示した状態変化カウンタ49は、エラー状態と非エラー状態との間の変化、言い換えれば信号Hと信号Lとの間の変化である状態変化の検出回数を測定する。状態変化の頻繁な発生は、センサ35の動作が不安定であることが原因であると考えられ、センサ35が誤作動を起こしている可能性が高い。図4は、状態変化が頻出する場合を例示する図である。   As described with reference to FIG. 2, the sensitivity reduction unit 48 included in the printer 100 according to the first embodiment reduces the sensitivity of the determination unit 50. A case where the sensitivity reduction unit 48 reduces the sensitivity will be described. The state change counter 49 shown in FIG. 2 measures the number of detections of a change in state, which is a change between an error state and a non-error state, in other words, a change between the signal H and the signal L. The frequent occurrence of the state change is considered to be caused by the unstable operation of the sensor 35, and there is a high possibility that the sensor 35 has malfunctioned. FIG. 4 is a diagram illustrating a case where state changes frequently occur.

図4に示すように、所定時間T0内(例えば1秒間)に状態変化、つまり信号のHからLへの変化、及びLからHへの変化が10回以上発生している。この場合、感度低下部48は判定部50の感度を低下させる。   As shown in FIG. 4, a state change, that is, a change from H to L and a change from L to H occurs 10 times or more within a predetermined time T0 (for example, 1 second). In this case, the sensitivity reduction unit 48 reduces the sensitivity of the determination unit 50.

感度の低下について表を参照して説明する。表1は、感度低下部48が作成するデータテーブルの例である。

Figure 2012228860
表1に示すように、感度低下部48は、判定部50の感度を低下させ、閾値をn0からn1に、周期をt0からt1に変更する。図3(a)から図4の例では、閾値n0は3、n1は10である。低下後の周期t1は、例えば低下前の周期t0の2倍の長さである。判定部50は、表1のデータテーブルを参照し、低下後の感度(閾値及び周期)に基づいて判定を行う。なお感度低下部48は、閾値と周期のいずれか一方のみを変更してもよいし、両方を変更してもよい。低下後の閾値n1は例えば5回、15回、20回等でもよく、低下前の閾値n0より大きければよい。低下後の周期t1は、低下前の周期t0の3倍、5倍、10倍等でもよく、t0より長ければよい。 The decrease in sensitivity will be described with reference to the table. Table 1 is an example of a data table created by the sensitivity reduction unit 48.
Figure 2012228860
As shown in Table 1, the sensitivity reduction unit 48 reduces the sensitivity of the determination unit 50, and changes the threshold from n0 to n1 and the period from t0 to t1. In the example of FIGS. 3A to 4, the threshold value n0 is 3 and n1 is 10. The period t1 after the decrease is, for example, twice as long as the period t0 before the decrease. The determination unit 50 refers to the data table in Table 1 and performs determination based on the sensitivity (threshold value and cycle) after the decrease. Note that the sensitivity reduction unit 48 may change only one of the threshold and the cycle, or may change both. The threshold value n1 after the decrease may be, for example, 5 times, 15 times, or 20 times, and may be larger than the threshold value n0 before the decrease. The period t1 after the decrease may be three times, five times, ten times, or the like of the period t0 before the decrease, and may be longer than t0.

感度低下後のエラー判定の例について説明する。まず閾値の例について説明する。閾値n1が10である場合、判定部50は信号Lを連続して10回検出された場合にエラーが発生していると判定する。図3(b)に示した例では、判定部50が信号Lを連続して3回検出するが、時間t+3×t0において信号Hを検出する。信号Lの検出回数は閾値である10より小さいため、判定部50はエラーが発生していると判定しない。   An example of error determination after sensitivity reduction will be described. First, an example of the threshold will be described. When the threshold value n1 is 10, the determination unit 50 determines that an error has occurred when the signal L is detected ten times in succession. In the example shown in FIG. 3B, the determination unit 50 detects the signal L three times in succession, but detects the signal H at time t + 3 × t0. Since the number of detections of the signal L is smaller than the threshold value of 10, the determination unit 50 does not determine that an error has occurred.

さらに図面を参照して感度低下後のエラー判定の例について説明する。図5(a)及び図5(b)は、感度低下後におけるセンサの検出する信号を例示する図である。図5(a)は周期を変更した例であり、閾値は感度低下前後で変わらず3である。   Further, an example of error determination after sensitivity reduction will be described with reference to the drawings. FIG. 5A and FIG. 5B are diagrams illustrating signals detected by the sensor after sensitivity reduction. FIG. 5A shows an example in which the cycle is changed, and the threshold value is 3 before and after the sensitivity is lowered.

図5(a)に示すように、判定部50は、タイマ26により測定される時間に基づいて、一定の周期t1ごとに信号を取得する。図5(a)中に矢印で示すように、判定部50は、時間t、周期t1を経た時間t+t1、さらに周期t1を経た時間t+2×t1において信号を取得する。その一方で判定部50は、図5(a)中に括弧でくくった時間t+t0及びt+3×t0において信号を取得しない。判定部50は、時間t及びt+t1において信号Lを取得し、時間t+2×t1において信号Hを取得する。信号Hを連続して検出した回数は2回であり、閾値3より小さい。従って判定部50はエラーが発生していると判定しない。   As illustrated in FIG. 5A, the determination unit 50 acquires a signal for each constant period t <b> 1 based on the time measured by the timer 26. As indicated by an arrow in FIG. 5A, the determination unit 50 acquires a signal at time t, time t + t1 after a period t1, and further at time t + 2 × t1 after a period t1. On the other hand, the determination unit 50 does not acquire a signal at times t + t0 and t + 3 × t0 enclosed in parentheses in FIG. The determination unit 50 acquires the signal L at time t and t + t1, and acquires the signal H at time t + 2 × t1. The number of times the signal H is continuously detected is 2 and is smaller than the threshold value 3. Therefore, the determination unit 50 does not determine that an error has occurred.

図5(b)は閾値及び周期を変更した例である。閾値n1は10であり、周期はt1である。図5(b)に矢印で示すように、判定部50は時間t、t+t1及びt+2×t1において信号Lを検出する。しかし信号Lを連続して検出した回数は3回であり、閾値10より小さい。従って判定部50はエラーが発生していると判定しない。このように、センサ35が誤作動している可能性がある場合でも、感度低下部48が判定部50の感度を低下させることにより、エラーの誤検知は抑制される。   FIG. 5B shows an example in which the threshold value and the period are changed. The threshold value n1 is 10, and the period is t1. As indicated by arrows in FIG. 5B, the determination unit 50 detects the signal L at times t, t + t1, and t + 2 × t1. However, the number of times the signal L is detected continuously is 3 and is smaller than the threshold value 10. Therefore, the determination unit 50 does not determine that an error has occurred. Thus, even when there is a possibility that the sensor 35 has malfunctioned, the erroneous detection of the error is suppressed by the sensitivity reduction unit 48 reducing the sensitivity of the determination unit 50.

次に実施例1に係るプリンタの制御について説明する。図6は、実施例1に係るプリンタの感度低下制御を例示するフローチャートである。   Next, control of the printer according to the first embodiment will be described. FIG. 6 is a flowchart illustrating the sensitivity reduction control of the printer according to the first embodiment.

図6に示すように、まず感度低下部48は、状態変化を検出したか判定する(ステップS10)。感度低下部48は、周期t0ごとに信号を受信し、信号が信号Hから信号Lに変化したこと、及び信号Lから信号Hに変化したこと、を状態変化と判定する。Yesの場合、状態変化カウンタ49は状態変化検出回数Nに1を加算する(ステップS11)。ステップS11の後、又はステップS10においてNoの場合、感度低下部48は、タイマ26により測定された時間に基づいて、制御開始から所定時間T0が経過したか判定する(ステップS12)。T0は例えば1秒である(図4参照)。Noの場合、制御はステップS10に戻る。Yesの場合、感度低下部48は状態変化検出回数NがN0回以上であるか判定する(ステップS13)。N0は例えば10である。   As shown in FIG. 6, first, the sensitivity reduction unit 48 determines whether a state change is detected (step S10). The sensitivity reduction unit 48 receives a signal every cycle t0, and determines that the signal has changed from the signal H to the signal L and that the signal L has changed to the signal H as a state change. In the case of Yes, the state change counter 49 adds 1 to the state change detection count N (step S11). After step S11 or in the case of No in step S10, the sensitivity reduction unit 48 determines whether the predetermined time T0 has elapsed from the start of control based on the time measured by the timer 26 (step S12). T0 is, for example, 1 second (see FIG. 4). If no, control returns to step S10. In the case of Yes, the sensitivity reduction unit 48 determines whether the state change detection count N is N0 or more (step S13). N0 is 10, for example.

Yesの場合、感度低下部48は第1フラグをセットし(ステップS14)、さらに判定部50の感度を低下させる(ステップS15)。例えば感度低下部48は、表1に示したように閾値及び周期を変更する。なおステップS15はサブルーチンとして図示しているが、これは実施例2に対応するものである。実施例1におけるステップS15は、サブルーチンではない通常のステップである。ステップS15の後、印刷制御部40又は通信制御部46は、感度の低下を通知するアラームを発生させる(ステップS16)。アラームとは、例えば印刷制御部40がサーマルヘッド32に感度低下の通知を印刷させる、又は通信制御部46がI/F24を介してホストコンピュータに感度低下の通知を出力することで行われる。ステップS13においてNoの場合、感度低下部48は第1フラグを消去する(第1フラグクリア、ステップS17)。ステップS16の後、又はステップS17の後、制御は終了する。   In the case of Yes, the sensitivity reduction unit 48 sets the first flag (step S14), and further reduces the sensitivity of the determination unit 50 (step S15). For example, the sensitivity reduction unit 48 changes the threshold and the period as shown in Table 1. Step S15 is illustrated as a subroutine, but this corresponds to the second embodiment. Step S15 in the first embodiment is a normal step that is not a subroutine. After step S15, the print control unit 40 or the communication control unit 46 generates an alarm for notifying the decrease in sensitivity (step S16). The alarm is generated, for example, when the print control unit 40 causes the thermal head 32 to print a notification of sensitivity reduction, or the communication control unit 46 outputs a notification of sensitivity reduction to the host computer via the I / F 24. In the case of No in step S13, the sensitivity reduction unit 48 deletes the first flag (first flag clear, step S17). After step S16 or after step S17, the control ends.

図7及び図8は、実施例1に係るプリンタのエラー検出制御を例示するフローチャートである。   7 and 8 are flowcharts illustrating the error detection control of the printer according to the first embodiment.

図7に示すように、判定部50は、センサ35がエラー状態を検出したか判定する(ステップS20)。より詳細には、判定部50が、周期t0ごとに信号を検出し、信号が信号Lであるか判定する。Noの場合、エラーカウンタ52はエラー状態検出回数nをゼロとする(ステップS21)。ステップS21の後、制御は終了する。ステップS20においてYesの場合、判定部50は第1フラグがセットされているか判定する(ステップS22)。第1フラグとは図6のステップS14においてセットされる第1フラグである。Yesの場合、制御は図8に示したステップS27に進む(図7及び図8の“A”参照)。ステップS27以降の制御については後述する。   As shown in FIG. 7, the determination unit 50 determines whether the sensor 35 has detected an error state (step S20). More specifically, the determination unit 50 detects a signal every cycle t0 and determines whether the signal is the signal L. In the case of No, the error counter 52 sets the error state detection count n to zero (step S21). After step S21, the control ends. If Yes in step S20, the determination unit 50 determines whether the first flag is set (step S22). The first flag is a first flag set in step S14 of FIG. In the case of Yes, the control proceeds to step S27 shown in FIG. 8 (see “A” in FIGS. 7 and 8). The control after step S27 will be described later.

ステップS22においてNoの場合、つまり判定部50の感度の低下が行われていない場合、エラーカウンタ52はエラー状態検出回数nに1を加算する(ステップS23)。ステップS23の後、判定部50はエラー状態検出回数nがn0以上であるか判定する(ステップS24)。n0は例えば3である。Noの場合、制御は終了する。Yesの場合、判定部50はプリンタ100にエラーが発生していると判定する(ステップS25)。ステップS25の後、エラーカウンタ52はエラー状態検出回数nをゼロとする(ステップS26)。ステップS26の後、制御は終了する。このように、ステップS23〜S26において、判定部50は、図3(a)及び図3(b)に例示したように、判定部50が、表1の低下前の閾値3及び周期t0に基づいて、プリンタ100にエラーが発生しているか判定を行う。   If No in step S22, that is, if the sensitivity of the determination unit 50 has not been reduced, the error counter 52 adds 1 to the error state detection count n (step S23). After step S23, the determination unit 50 determines whether the error state detection count n is n0 or more (step S24). n0 is 3, for example. If No, the control ends. In the case of Yes, the determination unit 50 determines that an error has occurred in the printer 100 (step S25). After step S25, the error counter 52 sets the error state detection count n to zero (step S26). After step S26, the control ends. As described above, in steps S23 to S26, the determination unit 50 determines whether the determination unit 50 is based on the threshold value 3 and the period t0 before the decrease in Table 1 as illustrated in FIGS. 3A and 3B. Then, it is determined whether an error has occurred in the printer 100.

図8に示すように、ステップS22においてYesの場合、判定部50は、ステップS20においてセンサ35から信号を受信した時間が、感度低下部48により変更された周期t1に基づく時間と一致しているか判定する(ステップS27)。周期t1に基づく時間とは、例えば図5(a)及び図5(b)に矢印で示したような、最初の時間tに周期t1の整数倍を加えて定まる時間である。Noの場合、制御は終了する(図7及び図8の“C”参照)。このとき、エラーカウンタ52は、ステップS20において検出されたエラー状態を、エラー状態検出回数にカウントしない。   As illustrated in FIG. 8, in the case of Yes in step S <b> 22, the determination unit 50 determines whether the time when the signal is received from the sensor 35 in step S <b> 20 matches the time based on the period t <b> 1 changed by the sensitivity reduction unit 48. Determination is made (step S27). The time based on the cycle t1 is a time determined by adding an integral multiple of the cycle t1 to the first time t as indicated by an arrow in FIGS. 5A and 5B, for example. In the case of No, the control ends (see “C” in FIGS. 7 and 8). At this time, the error counter 52 does not count the error state detected in step S20 as the number of error state detections.

Yesの場合、エラーカウンタ52はエラー状態検出回数nに1を加算する(ステップS28)。ステップS28の後、判定部50はエラー状態検出回数nがn1以上であるか判定する(ステップS29)。言い換えれば、判定部50は、エラー状態検出回数nが感度低下部48により変更された閾値n1以上であるか判定する。n1は例えば10である。Noの場合、制御は終了する。Yesの場合、制御は図7のステップS25に進む(図7及び図8の“B”参照)。判定部50はエラーが発生していると判定する(ステップS25)。以降の制御は既述したので省略する。以上でエラー検出制御は終了する。このように、ステップS25、S26、及びS27〜S29の制御は、図6(b)に例示したように、判定部50が、表1の低下後の閾値n1及び周期t1に基づいて、プリンタ100にエラーが発生しているか判定を行う制御である。   In the case of Yes, the error counter 52 adds 1 to the error state detection count n (step S28). After step S28, the determination unit 50 determines whether the error state detection count n is n1 or more (step S29). In other words, the determination unit 50 determines whether the error state detection count n is equal to or greater than the threshold value n1 changed by the sensitivity reduction unit 48. n1 is 10, for example. If No, the control ends. In the case of Yes, the control proceeds to step S25 in FIG. 7 (see “B” in FIGS. 7 and 8). The determination unit 50 determines that an error has occurred (step S25). Since the subsequent control has already been described, it will be omitted. This is the end of the error detection control. As described above, the control of steps S25, S26, and S27 to S29 is performed by the determination unit 50 based on the lowered threshold value n1 and the period t1 in Table 1 as illustrated in FIG. This is a control for determining whether or not an error has occurred.

実施例1に係るプリンタ100は、センサ35と、センサ35の検出結果に基づき、プリンタ100にエラーが発生しているか判定を行う判定部50と、センサ35の検出結果がエラー状態と非エラー状態との間で所定の回数N0以上切り換わった場合、プリンタ100にエラーが発生していると判定するための判定部50の感度を低下させる感度低下部48とを備える。これにより、センサ35が誤作動している可能性が高い場合でも、エラーの誤検知を抑制することができる。なお所定時間T0は1秒以外に例えば0.5秒、2秒、5秒等でもよい。感度低下を行うための、状態変化の所定回数N0は例えば5回、15回、20回等でもよい。   The printer 100 according to the first embodiment includes a sensor 35, a determination unit 50 that determines whether an error has occurred in the printer 100 based on the detection result of the sensor 35, and the detection result of the sensor 35 includes an error state and a non-error state. And a sensitivity reduction unit 48 that reduces the sensitivity of the determination unit 50 for determining that an error has occurred in the printer 100 when the number of times N0 is switched to N0. Thereby, even when the possibility that the sensor 35 is malfunctioning is high, erroneous detection of an error can be suppressed. The predetermined time T0 may be 0.5 seconds, 2 seconds, 5 seconds, or the like other than 1 second. The predetermined number N0 of state changes for reducing the sensitivity may be, for example, 5 times, 15 times, 20 times, or the like.

誤検知によるプリンタ100の動作停止が抑制されるため、プリンタ100による作業効率を高めることができる。また、点検等の効率も高めることができる。特にプリンタ100が例えばレジスター、ATM等で使用されるサーマルプリンタである場合、誤作動が発生しやすい環境で使用されることが多い。実施例1によれば、センサ35の誤作動が発生しやすい環境下であっても、エラーの誤検知を効果的に抑制することができる。   Since the operation stop of the printer 100 due to erroneous detection is suppressed, the working efficiency of the printer 100 can be improved. In addition, the efficiency of inspection and the like can be increased. In particular, when the printer 100 is a thermal printer used in, for example, a register or an ATM, it is often used in an environment where malfunctions are likely to occur. According to the first embodiment, erroneous detection of errors can be effectively suppressed even in an environment where malfunction of the sensor 35 is likely to occur.

表1に示したように、感度低下部48は閾値を大きくすることで、判定部50の感度を低下させる。また感度低下部48は、周期を大きくすることで判定部50の感度を低下させる。また感度低下部48は、閾値及び周期の少なくとも一方を変化させてもよい。従って、例えばプリンタ100の用途、使用環境等に応じて、効果的に誤検知を抑制することができる。図6に示した感度低下制御は、例えばプリンタ100の起動時に行ってもよいし、定期的に行ってもよい。定期的に行うとは、感度低下制御を例えばタイマ26等で測定される一定時間ごとに行う割り込み処理とすることである。また感度低下制御は、例えばプリンタ100の待機中に行ってもよいし、動作中(例えば印刷中等)に動作と並行して行ってもよい。図3(a)から図5(b)に示したエラー検出は例であり、例えばセンサ35は非エラー状態を検出した場合に信号Lを出力し、エラー状態を検出した場合に信号Hを出力するとしてもよい。またセンサ35は、H及びLの2種類だけでなく、より多くの種類の信号を出力するものでもよい。   As shown in Table 1, the sensitivity reduction unit 48 reduces the sensitivity of the determination unit 50 by increasing the threshold value. Moreover, the sensitivity reduction part 48 reduces the sensitivity of the determination part 50 by enlarging a period. In addition, the sensitivity reduction unit 48 may change at least one of the threshold value and the period. Therefore, erroneous detection can be effectively suppressed according to, for example, the application and use environment of the printer 100. The sensitivity reduction control illustrated in FIG. 6 may be performed, for example, when the printer 100 is activated, or may be performed periodically. “Periodically” means to perform an interruption process in which the sensitivity reduction control is performed at regular intervals measured by the timer 26 or the like. The sensitivity reduction control may be performed, for example, while the printer 100 is on standby, or may be performed in parallel with the operation during operation (for example, during printing). The error detection shown in FIGS. 3A to 5B is an example. For example, the sensor 35 outputs a signal L when detecting a non-error state, and outputs a signal H when detecting an error state. You may do that. The sensor 35 may output not only two types of H and L, but also more types of signals.

図6のステップS16に示すように、感度低下部48による感度の低下は、印刷制御部40又は通信制御部46により通知される。これにより、ユーザは感度の低下があったことを知ることができ、例えば点検等を迅速に行うことができる。通知は、印刷、及びホストコンピュータ等への通信以外に、例えばプリンタ100に設けられたLEDの点灯又は点滅、ディスプレイへの表示、アラーム音の発生等で行ってもよい。なお、プリンタ100はサーマルプリンタ以外のプリンタでもよい。MCU12以外の演算装置を用いてもよい。また印刷媒体は紙に限られない。サーマルヘッド32以外に、例えばインク、トナー等を使用して紙等の媒体に印刷可能な手段を用いてもよい。モータ34以外の紙を搬送する手段を用いてもよい。   As shown in step S <b> 16 of FIG. 6, the print controller 40 or the communication controller 46 notifies the decrease in sensitivity due to the sensitivity decrease unit 48. Thereby, the user can know that there was a decrease in sensitivity, and for example, inspection can be performed quickly. The notification may be performed by, for example, lighting or blinking of an LED provided in the printer 100, display on a display, generation of an alarm sound, etc., in addition to printing and communication with a host computer or the like. The printer 100 may be a printer other than a thermal printer. An arithmetic device other than the MCU 12 may be used. The print medium is not limited to paper. In addition to the thermal head 32, for example, a means capable of printing on a medium such as paper using ink, toner, or the like may be used. A means for conveying paper other than the motor 34 may be used.

実施例2は、動作状況に応じて感度を変更する例である。実施例2に係るプリンタは、図1及び図2に例示したものと同じ構成である。   The second embodiment is an example in which the sensitivity is changed according to the operation situation. The printer according to the second embodiment has the same configuration as that illustrated in FIGS. 1 and 2.

プリンタの動作中は、プリンタ100に振動が加わることがあり、また電気的なノイズ、及び埃等が発生することもある。従って、誤検知が発生しやすい。実施例2における感度低下部48は、プリンタ100の動作状況に応じて、感度の変更を行う。表2は、感度低下部48が作成するデータテーブルの例である。

Figure 2012228860
表2に示すように、プリンタ100が印刷中である場合、感度低下部48は、閾値をn2、周期をt2とする。印刷中とは、図1に示したサーマルヘッド32が印刷を行っている状態を指す。プリンタ100が切断中である場合、感度低下部48は、閾値をn3、周期をt3とする。切断中とは、図1に示した切断部38が印刷用紙を切断している状態を指す。プリンタ100が搬送中である場合、感度低下部48は、閾値をn4、周期をt4とする。搬送中とは、図1に示したモータ34により印刷用紙が搬送されている状態である。プリンタ100が待機中である場合、感度低下部48は、閾値をn5、周期をt5とする。待機中とは、サーマルヘッド32、切断部38、及びモータ34のいずれも動作していない状態である。このように感度低下部48は、サーマルヘッド32、モータ34、及び切断部38のいずれが動作中であるかに応じて、判定部50が異なる感度を有するように感度を変更する。判定部50は、表2に示した感度(閾値及び周期)に基づいて判定を行う。 During operation of the printer, vibration may be applied to the printer 100, and electrical noise and dust may be generated. Therefore, erroneous detection is likely to occur. The sensitivity reduction unit 48 according to the second embodiment changes the sensitivity according to the operation status of the printer 100. Table 2 is an example of a data table created by the sensitivity reduction unit 48.
Figure 2012228860
As shown in Table 2, when the printer 100 is printing, the sensitivity reduction unit 48 sets the threshold value to n2 and the cycle to t2. “Printing” means a state in which the thermal head 32 shown in FIG. 1 is printing. When the printer 100 is disconnected, the sensitivity reduction unit 48 sets the threshold value to n3 and the period to t3. Cutting is in a state where the cutting unit 38 shown in FIG. 1 is cutting the printing paper. When the printer 100 is carrying, the sensitivity reduction unit 48 sets the threshold value to n4 and the cycle to t4. “Conveying” means that the printing paper is being conveyed by the motor 34 shown in FIG. When the printer 100 is on standby, the sensitivity reduction unit 48 sets the threshold value to n5 and the period to t5. The standby state is a state in which none of the thermal head 32, the cutting unit 38, or the motor 34 is operating. As described above, the sensitivity reduction unit 48 changes the sensitivity so that the determination unit 50 has different sensitivities depending on which of the thermal head 32, the motor 34, and the cutting unit 38 is operating. The determination unit 50 performs determination based on the sensitivity (threshold value and cycle) shown in Table 2.

次に実施例2に係るプリンタの制御について説明する。図6に示した制御は実施例2においても共通である。ただし、実施例2において図6のステップS15はサブルーチンであり、ステップS15において図9の制御を行う。   Next, control of the printer according to the second embodiment will be described. The control shown in FIG. 6 is common to the second embodiment. However, in the second embodiment, step S15 in FIG. 6 is a subroutine, and the control in FIG. 9 is performed in step S15.

図9は、実施例2に係るプリンタの感度低下制御を例示するフローチャートである。図9に示すように、感度低下部48は、プリンタ100が印刷中であるか判断する(ステップS30)。Yesの場合、感度低下部48は、感度を印刷中の感度である閾値n2及び周期t2に定める(ステップS31)。ステップS31の後、制御は終了する。   FIG. 9 is a flowchart illustrating the sensitivity reduction control of the printer according to the second embodiment. As shown in FIG. 9, the sensitivity reduction unit 48 determines whether the printer 100 is printing (step S30). In the case of Yes, the sensitivity reduction unit 48 determines the sensitivity to the threshold value n2 and the period t2 that are the sensitivities during printing (step S31). After step S31, the control ends.

ステップS30においてNoの場合、感度低下部48は、プリンタ100が搬送中であるか判定する(ステップS32)。Yesの場合、感度低下部48は、感度を搬送中の感度である閾値n3及び周期t3に定める(ステップS33)。ステップS33の後、制御は終了する。   In the case of No in step S30, the sensitivity reduction unit 48 determines whether the printer 100 is carrying (step S32). In the case of Yes, the sensitivity reduction unit 48 determines the sensitivity to the threshold value n3 and the period t3, which are the sensitivity during conveyance (step S33). After step S33, the control ends.

ステップS32においてNoの場合、感度低下部48は、プリンタ100が切断中であるか判定する(ステップS34)。Yesの場合、感度低下部48は、感度を切断中の感度である閾値n4及び周期t4に定める(ステップS35)。ステップS35の後、制御は終了する。   If No in step S32, the sensitivity reduction unit 48 determines whether the printer 100 is cutting (step S34). In the case of Yes, the sensitivity reduction unit 48 determines the sensitivity to the threshold value n4 and the period t4 that are the sensitivity during cutting (step S35). After step S35, the control ends.

ステップS34においてNoの場合、感度低下部48は、感度を待機中の感度である閾値n5及び周期t5に定める(ステップS36)。ステップS36の後、制御は終了する。   In the case of No in step S34, the sensitivity reduction unit 48 determines the sensitivity to the threshold value n5 and the period t5 that are the sensitivity in standby (step S36). After step S36, the control ends.

次にエラー検出制御について説明する。実施例2に係るプリンタ100のエラー検出制御のうち、実施例1において説明したステップと同じ制御については説明を省略する。また周期t1は表2に示した周期t2〜t5のいずれかに置き換わり、閾値n1は閾値n2〜n5のいずれかに置き換わる。例えばプリンタ100が印刷中である場合、判定部50はセンサ35から信号を受信した時間が、周期t2に基づいて定まる時間と一致しているか判定する(図8のステップS27)。Yesの場合、エラーカウンタ52は加算を行う(ステップS28)。判定部50は、エラー状態検出回収nが閾値n2以上であるか判定する(ステップS29)。Yesの場合、判定部50はエラーが発生していると判定する(図7のステップS25)。切断中、搬送中、及び待機中の場合も、判定部50は各々の感度に基づいて判定を行う。   Next, error detection control will be described. Of the error detection control of the printer 100 according to the second embodiment, the description of the same control as the step described in the first embodiment is omitted. The period t1 is replaced with any one of the periods t2 to t5 shown in Table 2, and the threshold n1 is replaced with any one of the thresholds n2 to n5. For example, when the printer 100 is printing, the determination unit 50 determines whether the time when the signal is received from the sensor 35 coincides with the time determined based on the cycle t2 (step S27 in FIG. 8). In the case of Yes, the error counter 52 performs addition (step S28). The determination unit 50 determines whether the error state detection / recovery n is equal to or greater than the threshold value n2 (step S29). In the case of Yes, the determination unit 50 determines that an error has occurred (step S25 in FIG. 7). Even in the case of cutting, conveying, and waiting, the determination unit 50 performs determination based on each sensitivity.

実施例2によれば、サーマルヘッド32、モータ34及び切断部38のいずれが動作中であるかに応じて、感度低下部48は、判定部50が異なる感度を有するように感度を低下させる(図9参照)。このため、効果的に誤検知を抑制することができる。また、感度低下部48は、プリンタ100の待機中において、動作中と異なる感度を定めることができる。このため、より効果的に誤検知を抑制することができる。プリンタ100の動作として、印刷、切断及び搬送以外の動作を含め、感度低下部48は当該動作に応じた感度を定めてもよい。このように感度低下部48は、プリンタ100の動作状況に応じて、判定部50の感度を低下させることにより、誤検知を効果的に抑制することができる。なお動作中は待機中よりも誤検知が発生しやすい。従って、動作中の閾値n2〜n4は、待機中の閾値n5よりも大きいことが好ましい。動作中の周期t2〜t4は、待機中の周期t5よりも大きいことが好ましい。   According to the second embodiment, depending on which of the thermal head 32, the motor 34, and the cutting unit 38 is in operation, the sensitivity reduction unit 48 reduces the sensitivity so that the determination unit 50 has a different sensitivity ( (See FIG. 9). For this reason, erroneous detection can be effectively suppressed. In addition, the sensitivity reduction unit 48 can determine a sensitivity different from that during operation while the printer 100 is on standby. For this reason, false detection can be suppressed more effectively. As the operation of the printer 100, including the operations other than printing, cutting, and conveyance, the sensitivity reduction unit 48 may determine the sensitivity according to the operation. As described above, the sensitivity reduction unit 48 can effectively suppress erroneous detection by reducing the sensitivity of the determination unit 50 according to the operation state of the printer 100. Note that false detection is more likely to occur during operation than during standby. Therefore, the threshold values n2 to n4 during operation are preferably larger than the threshold value n5 during standby. The operating periods t2 to t4 are preferably larger than the waiting period t5.

実施例3は、動作中におけるエラー状態の検出に応じて感度を低下させる例である。実施例3に係るプリンタの構成は、図1及び図2に示したものと同じである。   The third embodiment is an example in which the sensitivity is lowered in accordance with detection of an error state during operation. The configuration of the printer according to the third embodiment is the same as that shown in FIGS.

図1に示したカバースイッチ37は、プリンタ100のカバーの開閉を検出する。プリンタ100のカバーは、例えば印刷中、搬送中、又は切断中等のような動作中に開閉される可能性は小さい。このため、動作中にカバースイッチ37がカバーオープンを検出した場合、カバースイッチ37は誤作動している可能性が高い。このような誤作動に基づいて判定部50によりエラー判定が行われると、エラーの誤検知が発生する恐れが大きくなる。そこで感度低下部48は、動作中において感度を低下させる。   The cover switch 37 shown in FIG. 1 detects opening / closing of the cover of the printer 100. The cover of the printer 100 is unlikely to be opened and closed during operations such as printing, transporting, or cutting. For this reason, when the cover switch 37 detects a cover open during operation, the cover switch 37 is likely to malfunction. If an error determination is made by the determination unit 50 based on such a malfunction, there is a greater risk of erroneous detection of the error. Therefore, the sensitivity reduction unit 48 reduces the sensitivity during operation.

図10は、実施例3に係るプリンタの感度低下制御を例示するフローチャートである。図10に示すように、感度低下部48は、カバースイッチ37が出力する信号を受信し、カバースイッチ37がカバーオープンを検出したか判定する(ステップS40)。Noの場合、制御は終了する。Yesの場合、感度低下部48は、プリンタ100が動作中であるか判定する(ステップS41)。動作中とは、例えば印刷中、搬送中、又は切断中等である。Noの場合、制御は終了する。Yesの場合、制御はステップS14に進み、ステップS15において感度低下部48は感度を低下させる。   FIG. 10 is a flowchart illustrating the sensitivity reduction control of the printer according to the third embodiment. As illustrated in FIG. 10, the sensitivity reduction unit 48 receives a signal output from the cover switch 37, and determines whether the cover switch 37 has detected a cover open (step S40). If No, the control ends. In the case of Yes, the sensitivity reduction unit 48 determines whether the printer 100 is operating (step S41). “Operating” means, for example, during printing, during conveyance, or during cutting. If No, the control ends. In the case of Yes, the control proceeds to step S14, and in step S15, the sensitivity reduction unit 48 reduces the sensitivity.

実施例3によれば、プリンタ100の動作中にカバースイッチ37がカバーオープンを検出した場合、感度低下部48は判定部50の感度を低下させる。このように誤検知の発生しやすい場合を自動的に判定し、感度低下部48が感度を低下させることで、効果的に誤検知を抑制することができる。   According to the third embodiment, when the cover switch 37 detects a cover open during the operation of the printer 100, the sensitivity reduction unit 48 reduces the sensitivity of the determination unit 50. As described above, it is possible to automatically determine a case where erroneous detection is likely to occur, and to reduce erroneous detection effectively by the sensitivity reduction unit 48 reducing the sensitivity.

図10ではカバースイッチ37を例としたが、フォトセンサ36等、センサ35に含まれる他のセンサがエラー状態を検出した場合に、感度低下部48が感度の低下を行うとしてもよい。プリンタ100の動作は、印刷、搬送及び切断以外の動作でもよい。なお、図10におけるステップS15は、実施例1のようなステップでもよいし、図9に示した制御を行うサブルーチンでもよい。言い換えれば、感度低下部48は、プリンタ100の動作状況に応じて、感度を低下させてもよい。また感度低下制御として、図10の制御だけでなく、図6に示した制御も行い、どちらかにおいて感度の低下が行われるとしてもよい。言い換えれば、動作中にカバースイッチ37がカバーオープンを検出した場合、及び状態変化の回数Nが所定の回数N0以上である場合の少なくとも一方の場合、感度低下部48が感度を低下させてもよい。   In FIG. 10, the cover switch 37 is taken as an example. However, when other sensors such as the photo sensor 36 detect the error state, the sensitivity reduction unit 48 may reduce the sensitivity. The operation of the printer 100 may be an operation other than printing, conveyance, and cutting. Note that step S15 in FIG. 10 may be a step as in the first embodiment or a subroutine for performing the control shown in FIG. In other words, the sensitivity reduction unit 48 may reduce the sensitivity according to the operation status of the printer 100. Further, as the sensitivity reduction control, not only the control of FIG. 10 but also the control shown in FIG. 6 may be performed, and the sensitivity may be reduced in either of them. In other words, the sensitivity reduction unit 48 may reduce the sensitivity when the cover switch 37 detects a cover open during operation and / or when the state change count N is equal to or greater than the predetermined count N0. .

実施例4は、動作中はエラー判定を行わない例である。実施例3に係るプリンタの構成は、図1及び図2に示したものと同じである。     The fourth embodiment is an example in which error determination is not performed during operation. The configuration of the printer according to the third embodiment is the same as that shown in FIGS.

図11及び図12は、実施例4に係るプリンタのエラー検出制御を例示するフローチャートである。なお、図7に例示した制御は実施例4においても共通である。以下では、図6に示した感度低下制御が行われ、判定部50の感度が、表1の変更後の感度(周期t1、閾値n1)である場合を考える。言い換えれば、図7に示したステップS22においてYesの場合であり、制御は図11のステップS27に進む(図7及び図11の“A”参照)。   11 and 12 are flowcharts illustrating the error detection control of the printer according to the fourth embodiment. The control illustrated in FIG. 7 is common to the fourth embodiment. In the following, it is assumed that the sensitivity reduction control illustrated in FIG. 6 is performed, and the sensitivity of the determination unit 50 is the sensitivity after the change in Table 1 (period t1, threshold n1). In other words, the case is Yes in step S22 shown in FIG. 7, and the control proceeds to step S27 in FIG. 11 (see “A” in FIGS. 7 and 11).

図11に示したステップS27〜S29は、図8に示したステップと同じであるため説明を省略する。ステップS29においてYesの場合、判定部50は、プリンタ100が動作中であるか判定する(ステップS50)。動作中とは、例えば印刷中、搬送中、又は切断中等である。Noの場合、制御は図7のステップS25に進む(図7及び図11の“B”参照)。これは、図8のステップS29においてYesの場合と同じであり、判定部50はエラーが発生していると判定する(ステップS25)。図11のステップS50においてYesの場合、判定部50は第2フラグをセットする(ステップS51)。このとき判定部50はエラーが発生していると判定しない。ステップS51の後、制御は図12のステップS52に進む(図11及び図12の“D”参照)。   Steps S27 to S29 shown in FIG. 11 are the same as the steps shown in FIG. If Yes in step S29, the determination unit 50 determines whether the printer 100 is operating (step S50). “Operating” means, for example, during printing, during conveyance, or during cutting. In the case of No, the control proceeds to step S25 in FIG. 7 (see “B” in FIGS. 7 and 11). This is the same as in the case of Yes in step S29 in FIG. 8, and the determination unit 50 determines that an error has occurred (step S25). In the case of Yes in step S50 of FIG. 11, the determination unit 50 sets the second flag (step S51). At this time, the determination unit 50 does not determine that an error has occurred. After step S51, control proceeds to step S52 in FIG. 12 (see “D” in FIGS. 11 and 12).

図12に示すように、判定部50はプリンタ100の動作が終了しているか判定する(ステップS52)。Noの場合、ステップS52を繰り返す。Yesの場合、判定部50は第2フラグがセットされているか判定する(ステップS53)。Noの場合、制御は終了する。   As shown in FIG. 12, the determination unit 50 determines whether the operation of the printer 100 has been completed (step S52). If no, step S52 is repeated. In the case of Yes, the determination part 50 determines whether the 2nd flag is set (step S53). If No, the control ends.

Yesの場合、判定部50は、センサ35がエラー状態を検出したか判定する(ステップS54)。Noの場合、制御は終了する。Yesの場合、判定部50はエラーが発生していると判定する(ステップS55)。ステップS55の後、制御は終了する。   In the case of Yes, the determination part 50 determines whether the sensor 35 detected the error state (step S54). If No, the control ends. In the case of Yes, the determination unit 50 determines that an error has occurred (step S55). After step S55, the control ends.

以上のように、感度低下部48が判定部50の感度を低下させ(図6のステップS15)、かつセンサ35の検出結果は判定部50が低下された感度に基づいてエラー判定すべき検出結果である場合(図11のステップS29においてYes)であって、プリンタ100が動作中である場合(ステップS50においてYes)、判定部50はエラーが発生していると判定しない。このため、誤検知によるプリンタ100の動作の中断は抑制される。   As described above, the sensitivity reduction unit 48 reduces the sensitivity of the determination unit 50 (step S15 in FIG. 6), and the detection result of the sensor 35 is a detection result that the determination unit 50 should make an error determination based on the reduced sensitivity. (Yes in step S29 in FIG. 11), and if the printer 100 is operating (Yes in step S50), the determination unit 50 does not determine that an error has occurred. For this reason, interruption of the operation of the printer 100 due to erroneous detection is suppressed.

プリンタ100の動作終了後に(図12のステップS52においてYes)、判定部50はセンサ35の検出結果を再度確認する。センサ35がエラー状態を検出していない場合(ステップS54においてNo)、判定部50はエラーが発生していないと判定する。つまり判定部50は感度低下によっても回避が難しい誤検知が発生したと判定し、エラー判定を行わない。センサ35がエラー状態を検出した場合(ステップS54においてYes)、判定部50はプリンタ100にエラーが発生していると判定する(ステップS55)。従って、誤検知を抑制し、かつエラーが実際に発生している場合も適切にエラーを検知することができる。   After the operation of the printer 100 is completed (Yes in step S52 of FIG. 12), the determination unit 50 confirms the detection result of the sensor 35 again. If the sensor 35 has not detected an error state (No in step S54), the determination unit 50 determines that no error has occurred. That is, the determination unit 50 determines that an erroneous detection that is difficult to avoid due to a decrease in sensitivity has occurred, and does not perform error determination. When the sensor 35 detects an error state (Yes in step S54), the determination unit 50 determines that an error has occurred in the printer 100 (step S55). Accordingly, it is possible to appropriately detect an error even when an error actually occurs while suppressing erroneous detection.

実施例4において行われる感度低下制御は、図6、図9又は図10に示した制御のいずれでもよい。図11及び図12の例では、感度低下部48が表1に示したように感度を低下させた例について説明した。しかし感度低下部48は、プリンタ100の動作状況に応じて、例えば表2のように感度を定めてもよい。   The sensitivity reduction control performed in the fourth embodiment may be any of the controls shown in FIG. 6, FIG. 9, or FIG. In the example of FIGS. 11 and 12, the example in which the sensitivity reduction unit 48 reduces the sensitivity as shown in Table 1 has been described. However, the sensitivity reduction unit 48 may determine the sensitivity as shown in Table 2, for example, according to the operation status of the printer 100.

以上、本発明の実施例について詳述したが、本発明はかかる特定の実施例に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   Although the embodiments of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications and changes can be made within the scope of the gist of the present invention described in the claims. It can be changed.

12 MCU
26 タイマ
32 サーマルヘッド
34 モータ
35 センサ
36 フォトセンサ
37 カバースイッチ
38 切断部
48 感度低下部
49 状態変化カウンタ
50 判定部
52 エラーカウンタ
100 プリンタ
12 MCU
26 Timer 32 Thermal Head 34 Motor 35 Sensor 36 Photo Sensor 37 Cover Switch 38 Cutting Unit 48 Sensitivity Decreasing Unit 49 State Change Counter 50 Judgment Unit 52 Error Counter 100 Printer

Claims (10)

エラー状態、及び非エラー状態を検出するセンサと、
前記センサの検出結果に基づき、プリンタにエラーが発生しているか判定を行う判定部と、
所定の時間内において、前記センサの検出結果が前記エラー状態と前記非エラー状態との間で所定の回数以上切り換わった場合、前記プリンタにエラーが発生していると判定するための前記判定部の感度を低下させる感度低下部と、を具備することを特徴とするプリンタ。
A sensor for detecting an error state and a non-error state;
A determination unit configured to determine whether an error has occurred in the printer based on the detection result of the sensor;
The determination unit for determining that an error has occurred in the printer when a detection result of the sensor is switched a predetermined number of times or more between the error state and the non-error state within a predetermined time. And a sensitivity reduction unit that reduces the sensitivity of the printer.
前記プリンタの動作中に前記センサが前記エラー状態を検出した場合、前記感度低下部は前記判定部の感度を低下させることを特徴とする請求項1記載のプリンタ。   2. The printer according to claim 1, wherein when the sensor detects the error state during the operation of the printer, the sensitivity reduction unit reduces the sensitivity of the determination unit. 前記センサは、前記プリンタのカバーの開閉を検出し、
前記プリンタの動作中に、前記センサが前記カバーの開閉を検出した場合、前記感度低下部は前記判定部の感度を低下させることを特徴とする請求項2記載のプリンタ。
The sensor detects opening and closing of the printer cover,
3. The printer according to claim 2, wherein when the sensor detects opening / closing of the cover during operation of the printer, the sensitivity reduction unit reduces the sensitivity of the determination unit.
紙に印刷を行う印刷部と、
前記紙を搬送する搬送部と、
前記紙を切断する切断部と、を具備し、
前記印刷部、前記搬送部、及び前記切断部の少なくとも1つが動作中に、前記センサが前記エラー状態を検出した場合、前記感度低下部は前記判定部の感度を低下させることを特徴とする請求項2又は3記載のプリンタ。
A printing section for printing on paper;
A transport unit for transporting the paper;
A cutting section for cutting the paper,
The sensitivity reduction unit reduces the sensitivity of the determination unit when the sensor detects the error state while at least one of the printing unit, the conveyance unit, and the cutting unit is operating. Item 4. The printer according to Item 2 or 3.
前記判定部は、前記センサがエラー状態を連続して検出した回数が閾値以上である場合、前記プリンタにエラーが発生していると判定し、
前記感度低下部は、前記閾値を大きくすることを特徴とする請求項1から4いずれか一項記載のプリンタ。
The determination unit determines that an error has occurred in the printer when the number of times that the sensor continuously detects an error state is equal to or greater than a threshold value,
The printer according to claim 1, wherein the sensitivity reduction unit increases the threshold value.
前記判定部は、所定の周期ごとに前記センサによる検出結果を取得し、かつ前記センサがエラー状態を連続して検出した回数が閾値以上である場合、前記プリンタにエラーが発生していると判定し、
前記感度低下部は、前記周期を大きくすることを特徴とする請求項1から5いずれか一項記載のプリンタ。
The determination unit determines that an error has occurred in the printer if the detection result by the sensor is acquired every predetermined period and the number of times the sensor continuously detects an error state is equal to or greater than a threshold value. And
The printer according to claim 1, wherein the sensitivity reduction unit increases the period.
前記感度低下部は、前記プリンタの動作状況に応じて、前記判定部の感度を低下させることを特徴とする請求項1から6いずれか一項記載のプリンタ。   The printer according to claim 1, wherein the sensitivity reduction unit reduces the sensitivity of the determination unit according to an operation state of the printer. 紙に印刷を行う印刷部と、
前記紙を搬送する搬送部と、
前記紙を切断する切断部と、を具備し、
前記感度低下部は、前記印刷部、前記搬送部、及び前記切断部、のいずれが動作中であるかに応じて前記判定部が異なる感度を有するように、感度を低下させることを特徴とする請求項7記載のプリンタ。
A printing section for printing on paper;
A transport unit for transporting the paper;
A cutting section for cutting the paper,
The sensitivity reduction unit reduces the sensitivity so that the determination unit has a different sensitivity depending on which of the printing unit, the conveyance unit, and the cutting unit is in operation. The printer according to claim 7.
前記感度低下部が前記判定部の感度を低下させ、
かつ前記センサの検出結果が、前記判定部が前記低下された感度に基づき、前記プリンタにエラーが発生していると判定すべき検出結果である場合であって、
前記プリンタが動作中である場合、前記判定部は前記プリンタにエラーが発生していると判定せず、
前記プリンタの動作終了後に前記センサが前記エラー状態を検出した場合、前記判定部は前記プリンタにエラーが発生していると判定し、
前記プリンタの動作終了後に前記センサが前記エラー状態を検出しない場合、前記判定部は前記プリンタにエラーが発生していないと判定することを特徴とする請求項1から8いずれか一項記載のプリンタ。
The sensitivity reduction unit reduces the sensitivity of the determination unit,
And the detection result of the sensor is a case where the determination unit is a detection result to be determined that an error has occurred in the printer based on the reduced sensitivity,
When the printer is operating, the determination unit does not determine that an error has occurred in the printer,
When the sensor detects the error state after the operation of the printer, the determination unit determines that an error has occurred in the printer,
9. The printer according to claim 1, wherein when the sensor does not detect the error state after the operation of the printer is finished, the determination unit determines that no error has occurred in the printer. .
紙に印刷を行う印刷部と、
前記紙を搬送する搬送部と、
前記紙を切断する切断部と、を具備し、
前記感度低下部が前記判定部の感度を低下させ、
かつ前記センサの検出結果が、前記判定部が前記低下された感度に基づき、前記プリンタにエラーが発生していると判定すべき検出結果である場合であって、
前記印刷部、前記搬送部、及び前記切断部の少なくとも1つが動作中である場合、前記判定部は前記プリンタにエラーが発生していると判定せず、
前記印刷部、前記搬送部、及び前記切断部の前記少なくとも1つの動作終了後に、前記センサが前記エラー状態を検出した場合、前記判定部は前記プリンタにエラーが発生していると判定し、
前記印刷部、前記搬送部、及び前記切断部の前記少なくとも1つの動作終了後に、前記センサが前記エラー状態を検出しない場合、前記判定部は前記プリンタにエラーが発生していないと判定することを特徴とする請求項9記載のプリンタ。
A printing section for printing on paper;
A transport unit for transporting the paper;
A cutting section for cutting the paper,
The sensitivity reduction unit reduces the sensitivity of the determination unit,
And the detection result of the sensor is a case where the determination unit is a detection result to be determined that an error has occurred in the printer based on the reduced sensitivity,
When at least one of the printing unit, the conveyance unit, and the cutting unit is operating, the determination unit does not determine that an error has occurred in the printer,
When the sensor detects the error state after the at least one operation of the printing unit, the conveyance unit, and the cutting unit is completed, the determination unit determines that an error has occurred in the printer,
If the sensor does not detect the error state after the at least one operation of the printing unit, the conveyance unit, and the cutting unit is completed, the determination unit determines that no error has occurred in the printer. The printer according to claim 9.
JP2011100169A 2011-04-27 2011-04-27 Printer Withdrawn JP2012228860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011100169A JP2012228860A (en) 2011-04-27 2011-04-27 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011100169A JP2012228860A (en) 2011-04-27 2011-04-27 Printer

Publications (1)

Publication Number Publication Date
JP2012228860A true JP2012228860A (en) 2012-11-22

Family

ID=47430830

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011100169A Withdrawn JP2012228860A (en) 2011-04-27 2011-04-27 Printer

Country Status (1)

Country Link
JP (1) JP2012228860A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015117125A (en) * 2013-12-20 2015-06-25 セイコーエプソン株式会社 Method for conveying medium, and printer
JP2019149138A (en) * 2018-02-28 2019-09-05 株式会社Nttドコモ Detection device, detection system, and detection program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015117125A (en) * 2013-12-20 2015-06-25 セイコーエプソン株式会社 Method for conveying medium, and printer
JP2019149138A (en) * 2018-02-28 2019-09-05 株式会社Nttドコモ Detection device, detection system, and detection program
JP7015191B2 (en) 2018-02-28 2022-02-02 株式会社Nttドコモ Detection device, detection system and detection program

Similar Documents

Publication Publication Date Title
JP5440409B2 (en) Detection device, printer and detection device control method
JP5609810B2 (en) Electronic equipment, image forming device
JP4600210B2 (en) Image forming apparatus
JP6355464B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP2012228860A (en) Printer
US20160279979A1 (en) Sheet Feed Cassette Monitor That Highly Accurately Detects Open/Close State of Sheet Feed Cassette and Presence/Absence State of Paper Sheet, Image Forming Apparatus, and Sheet Feed Cassette Monitoring Method
JP2016034735A (en) Image forming device, control method for image forming device, and program
JP6545526B2 (en) Control device, control method, and program
JP2018147154A (en) Information processing apparatus and program
JP2013063834A5 (en)
JP2013166252A5 (en)
JP2017005650A (en) Electronic apparatus with human sensor
JP2019188724A (en) Image formation apparatus and notification method
JP2018157603A (en) Image forming apparatus, control method for image forming apparatus, and computer program
JP6362380B2 (en) Electronics
US11272068B2 (en) Post-processing apparatus and control method
JP6038852B2 (en) Image forming apparatus
JP6104830B2 (en) Information processing apparatus and information processing program
US20210070071A1 (en) Printing apparatus, notification control method and storage medium
US20230396900A1 (en) Configuration page notification items based on environmental conditions
JP6809383B2 (en) Sheet transfer device and image forming device
JP5854305B2 (en) Electronic device stopping device, image forming apparatus, and peripheral device of image forming apparatus
JP2009078897A (en) Conveying device, image processing device, and control method of conveying device
JP6455266B2 (en) Recording apparatus and recording method
JP2013160866A (en) Image forming apparatus

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140701