JP2014233878A - Printing device - Google Patents

Printing device Download PDF

Info

Publication number
JP2014233878A
JP2014233878A JP2013115666A JP2013115666A JP2014233878A JP 2014233878 A JP2014233878 A JP 2014233878A JP 2013115666 A JP2013115666 A JP 2013115666A JP 2013115666 A JP2013115666 A JP 2013115666A JP 2014233878 A JP2014233878 A JP 2014233878A
Authority
JP
Japan
Prior art keywords
paper
printing
paper feed
roll paper
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013115666A
Other languages
Japanese (ja)
Inventor
孝明 齊藤
Takaaki Saito
孝明 齊藤
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 Solutions Inc.
Original Assignee
Seiko Solutions Inc.
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 Solutions Inc. filed Critical Seiko Solutions Inc.
Priority to JP2013115666A priority Critical patent/JP2014233878A/en
Publication of JP2014233878A publication Critical patent/JP2014233878A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controlling Rewinding, Feeding, Winding, Or Abnormalities Of Webs (AREA)
  • Handling Of Sheets (AREA)
  • Handling Of Continuous Sheets Of Paper (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Electronic Switches (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately detect a paper jam of roll paper.SOLUTION: A slip output device 2 includes: a print head 207 for printing on roll paper; a paper feed roller 208 for feeding the roll paper; a slit detection sensor control circuit 28 for detecting an amount of rotation of the roll paper; and a CPU 21 that counts an amount of paper feed fed by the paper feed roller 208 while the roll paper is rotated by a predetermined amount, and compares an amount of paper feed counted and an amount of paper feed counted immediately before that to determine a paper jam.

Description

本発明は、印字装置に関する。   The present invention relates to a printing apparatus.

レストラン等の飲食店では、ロール紙に注文内容を印字して伝票を出力する伝票出力装置が利用されている。伝票出力装置内で紙詰まりが発生すると、印字された伝票が排出口から排出されない。このため、特許文献1及び2に記載の技術では、伝票出力装置のロール紙芯ホルダーにロール紙の回転に合わせて動作する回転機構及びスリットと、スリットを検出可能な光センサとを設け、スリットの回転率とプラテンローラの紙送り量(紙送りパルス数)とを把握し、紙詰まりの発生を判定している。   In restaurants such as restaurants, a slip output device is used that prints out order contents on roll paper and outputs a slip. When a paper jam occurs in the slip output device, the printed slip is not discharged from the discharge port. For this reason, in the techniques described in Patent Documents 1 and 2, the roll paper core holder of the slip output device is provided with a rotation mechanism and a slit that operate according to the rotation of the roll paper, and an optical sensor that can detect the slit. The rotation rate of the platen and the paper feed amount (paper feed pulse number) of the platen roller are grasped, and occurrence of paper jam is determined.

特開2007−008692号公報JP 2007-008692 A 特開2007−190847号公報JP 2007-190847 A

しかしながら、ロール紙の交換が行われるとロール紙のサイズやスリット位置が変化するため、ロール紙交換前から交換後はスリットの回転率が大きく変化する。このため、特許文献1及び2に記載された技術では、ロール紙の交換が行われると、紙詰まりを誤検出することがある、という問題がある。   However, when roll paper is replaced, the size and slit position of the roll paper change, so that the rotation rate of the slit changes greatly before and after the roll paper replacement. For this reason, the techniques described in Patent Documents 1 and 2 have a problem that a paper jam may be erroneously detected when roll paper is replaced.

そこで、本発明は上述の事情を鑑みてなされたものであり、ロール紙の紙詰まりを精度良く検出することができる印字装置を提供することを目的とする。   Accordingly, the present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide a printing apparatus that can accurately detect paper jams in roll paper.

本発明は、ロール紙に印字する印字部と、前記ロール紙を紙送りする紙送り部と、前記ロール紙の回転量を検出する回転量検出部と、前記ロール紙が所定量回転する毎に、当該所定量回転する間に前記紙送り部が紙送りした紙送り量をカウントし、当該カウントした紙送り量とその直前にカウントした紙送り量とを比較して紙詰まりを判定する判定部と、を備えることを特徴とする印字装置である。   The present invention provides a printing unit that prints on roll paper, a paper feed unit that feeds the roll paper, a rotation amount detection unit that detects the amount of rotation of the roll paper, and each time the roll paper rotates a predetermined amount. A determination unit that counts the paper feed amount fed by the paper feed unit during the predetermined amount of rotation and compares the counted paper feed amount with the paper feed amount counted immediately before the paper feed amount to determine a paper jam And a printing apparatus comprising:

また、本発明の印字装置において、前記ロール紙の交換を検出する交換検出部を備え、前記判定部は、前記交換検出部が前記ロール紙の交換を検出した後、前記ロール紙が前記所定量回転する間に前記紙送り部が紙送りした紙送り量が所定量より大きい場合、紙詰まりと判定することを特徴とする。   The printing apparatus according to the present invention further includes a replacement detection unit that detects replacement of the roll paper, and the determination unit detects the replacement of the roll paper after the replacement detection unit detects replacement of the roll paper. If the paper feed amount fed by the paper feed unit during rotation is greater than a predetermined amount, it is determined that a paper jam has occurred.

また、本発明の印字装置において、前記判定部は、前記交換検出部が前記ロール紙の交換を検出した後、前記ロール紙が前記所定量回転する間に前記紙送り部が紙送りした紙送り量が前記所定量より小さい場合、前記ロール紙が更に2回前記所定量回転した後から、カウントした紙送り量とその直前にカウントした紙送り量とを比較して紙詰まりを判定することを特徴とする。   In the printing apparatus according to the aspect of the invention, the determination unit may feed the paper fed by the paper feeding unit while the roll paper is rotated by the predetermined amount after the replacement detection unit detects the replacement of the roll paper. When the amount is smaller than the predetermined amount, the paper roll is further rotated twice by the predetermined amount, and then the paper feed amount counted and the paper feed amount counted immediately before are compared to determine a paper jam. Features.

また、本発明の印字装置は、注文情報の入力を受け付ける注文入力装置と、前記注文情報を管理するコントローラとを含む注文情報処理システムに含まれ、前記印字部は、前記コントローラから受信した前記注文情報に関する印字情報に基づいて伝票を印字することを特徴とする。   The printing apparatus of the present invention is included in an order information processing system including an order input device that receives input of order information and a controller that manages the order information, and the printing unit receives the order received from the controller. A slip is printed on the basis of print information relating to the information.

また、本発明の印字装置において、前記判定部は、紙詰まりを判定した場合、前記注文入力装置に対して、自装置を識別する情報とともに紙詰まりに関する情報を送信して報知させることを特徴とする。   Further, in the printing apparatus of the present invention, when the determination unit determines a paper jam, the order input device transmits information about the paper jam together with information for identifying the own device to notify the order input device. To do.

また、本発明の印字装置において、前記判定部は、紙詰まりの復旧を判定した場合、前記注文入力装置に対して、自装置を識別する情報とともに紙詰まりの復旧に関する情報を送信して報知させることを特徴とする。   In the printing apparatus according to the aspect of the invention, when the determination unit determines that the paper jam has been recovered, the order input device transmits information regarding the recovery of the paper jam together with information for identifying the own device. It is characterized by that.

本発明によれば、ロール紙が所定量回転する間の紙送り量をカウントし、カウントした紙送り量とその直前にカウントした紙送り量とを比較して紙詰まりを判定している。これにより、印字する度にその巻き量(直径)が減り、紙送り量に対する回転量が徐々に増えるロール紙の紙詰まりを精度良く検出することができる。   According to the present invention, the paper feed amount while the roll paper rotates by a predetermined amount is counted, and a paper jam is determined by comparing the counted paper feed amount with the paper feed amount counted immediately before. As a result, it is possible to accurately detect a paper jam of the roll paper in which the winding amount (diameter) decreases each time printing is performed and the rotation amount with respect to the paper feeding amount gradually increases.

本発明の一実施形態によるオーダリングシステムの全体構成を示す図である。It is a figure showing the whole ordering system composition by one embodiment of the present invention. 本実施形態による伝票出力装置の内部構造の一部を示す断面図である。It is sectional drawing which shows a part of internal structure of the slip output apparatus by this embodiment. 本実施形態による給紙部の概略構成を示す斜視図である。It is a perspective view which shows schematic structure of the paper feed part by this embodiment. 本実施形態による伝票出力装置の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of the slip output apparatus by this embodiment. 本実施形態による伝票出力装置におけるタイミングチャートである。It is a timing chart in the slip output device by this embodiment. 本実施形態による伝票出力装置におけるタイミングチャートである。It is a timing chart in the slip output device by this embodiment. 本実施形態による伝票出力装置におけるタイミングチャートである。It is a timing chart in the slip output device by this embodiment. 本実施形態による伝票出力装置におけるタイミングチャートである。It is a timing chart in the slip output device by this embodiment. 本実施形態による伝票出力装置におけるタイミングチャートである。It is a timing chart in the slip output device by this embodiment. 本実施形態における伝票出力装置が実行する紙詰まり判定処理の処理手順を示したフローチャートである。It is the flowchart which showed the process sequence of the paper jam determination process which the slip output device in this embodiment performs. 本実施形態における伝票出力装置が実行するエラー処理の処理手順を示したフローチャートである。It is the flowchart which showed the process sequence of the error process which the slip output apparatus in this embodiment performs. 本実施形態における伝票出力装置が表示するエラー表示の一例を示した概略図である。It is the schematic which showed an example of the error display which the slip output device in this embodiment displays.

以下、本発明の一実施形態について、図面を参照しながら説明する。図1は、本発明の一実施形態によるオーダリングシステムの全体構成を示す図である。オーダリングシステムは、飲食店の店舗に設置され、客の注文を管理するシステムである。同図に示すように、オーダリングシステムは、コントローラ1と、伝票出力装置2(配膳プリンタ)と、伝票出力装置2(厨房プリンタ)と、複数のハンディターミナル4とを含んでいる。コントローラ1と、伝票出力装置2(配膳プリンタ)と、伝票出力装置2(厨房プリンタ)と、複数のハンディターミナル4とは、通信部を備え、他の装置とデータの送受信を行う。なお、図示する例では、伝票出力装置2は、厨房プリンタと配膳プリンタとをそれぞれ1台のみ示しているが、それぞれ複数台が備えられていてもよい。また、各機器からコントローラ1への通信を中継するため、店舗内に、図示しない中継装置を配置してもよい。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing an overall configuration of an ordering system according to an embodiment of the present invention. The ordering system is a system that is installed in restaurants and manages customer orders. As shown in the figure, the ordering system includes a controller 1, a slip output device 2 (layout printer), a slip output device 2 (kitchen printer), and a plurality of handy terminals 4. The controller 1, the slip output device 2 (layout printer), the slip output device 2 (kitchen printer), and the plurality of handy terminals 4 include a communication unit, and exchange data with other devices. In the illustrated example, the slip output device 2 shows only one kitchen printer and one layout printer, but a plurality of slip printers may be provided. Moreover, in order to relay communication from each device to the controller 1, a relay device (not shown) may be arranged in the store.

ハンディターミナル4(注文入力装置)は、注文の入力を受け付ける装置である。ハンディターミナル4は、店舗におけるフロアスタッフに携帯され、入力される注文に基づく注文情報をコントローラ1に送信する。注文情報には、注文されたメニューとその数量と注文された日時とが含まれる。また同図には含まれないが、ハンディターミナル4の代わりに据え置き型の入力端末でもよい。   The handy terminal 4 (order input device) is a device that receives an input of an order. The handy terminal 4 is carried by the floor staff in the store and transmits order information based on the input order to the controller 1. The order information includes the ordered menu, its quantity, and the date and time of order. Although not included in the figure, a stationary input terminal may be used instead of the handy terminal 4.

コントローラ1は、伝票出力装置2と、各ハンディターミナル4と無線LAN(Local Area Network)を用いて無線通信を行う。なお、同図において、コントローラ1と各機器との通信には無線を使用しているが、有線による通信であってもよい。コントローラ1は、オーダリングシステム全体を管理する制御装置である。コントローラ1は、各ハンディターミナル4から注文情報を受信し、受信した注文情報を記憶管理する。また、コントローラ1は、各ハンディターミナル4から受信した注文情報に関する印字情報を送信して、調理指示伝票を厨房プリンタに出力させる。調理指示伝票は、厨房にメニューの調理を指示する伝票であり、注文されたメニューとその数量が印字される。印字情報は、伝票出力装置2に印字させる情報を示すデータである。また、コントローラ1は、メニューの調理が完了したことを示す調理完了通知を受信すると、当該調理完了通知に関する伝票情報を送信して、配膳指示伝票又は勘定伝票を配膳プリンタに出力させる。配膳指示伝票は、メニューの配膳を指示する伝票であり、調理が完了したメニューとその数量が印字される。また、勘定伝票は、客が勘定をするための伝票であり、客が注文したメニューとその数量と合計金額とが印字される。   The controller 1 performs wireless communication using the slip output device 2, each handy terminal 4, and a wireless LAN (Local Area Network). In the figure, wireless communication is used for communication between the controller 1 and each device, but wired communication may also be used. The controller 1 is a control device that manages the entire ordering system. The controller 1 receives the order information from each handy terminal 4 and stores and manages the received order information. Moreover, the controller 1 transmits the printing information regarding the order information received from each handy terminal 4 to output the cooking instruction slip to the kitchen printer. The cooking instruction slip is a slip for instructing the kitchen to prepare the menu, and the ordered menu and its quantity are printed. The print information is data indicating information to be printed on the slip output device 2. In addition, when the controller 1 receives a cooking completion notification indicating that cooking of the menu has been completed, the controller 1 transmits slip information related to the cooking completion notification, and causes the layout printer to output a serving instruction slip or a bill slip. The serving instruction slip is a slip for instructing menu serving, and the menu for which cooking has been completed and its quantity are printed. The account slip is a slip for the customer to check, and the menu ordered by the customer, its quantity and the total amount are printed.

伝票出力装置2(厨房プリンタまたは配膳プリンタ)は、感熱式のプリンタ装置であり、コントローラ1から受信した印字情報に基づいて用紙に印字し、伝票を出力する。   The slip output device 2 (kitchen printer or distribution printer) is a thermal printer device that prints on a sheet based on print information received from the controller 1 and outputs a slip.

図2は、本実施形態による伝票出力装置2の内部構造の一部を示す断面図である。伝票出力装置2は、伝票TD1〜TD3を出力する印字装置である。   FIG. 2 is a sectional view showing a part of the internal structure of the slip output device 2 according to the present embodiment. The slip output device 2 is a printing device that outputs slips TD1 to TD3.

伝票出力装置2の筐体201には、ロール状に巻かれた記録紙(以下、ロール紙Rとする)の交換や紙詰まりを解消するために開閉するドアである開閉部211が備えられている。また、伝票出力装置2の筐体201内部には、カッタ可動刃205と、固定刃206と、印字ヘッド207と、紙送りローラ208と、ロール紙検出センサ209と、開閉検出部212と、給紙部220とが設けられている。   The case 201 of the slip output device 2 is provided with an opening / closing portion 211 that is a door that opens and closes in order to replace a recording paper (hereinafter referred to as roll paper R) wound in a roll and to clear a paper jam. Yes. Further, inside the casing 201 of the slip output device 2, a cutter movable blade 205, a fixed blade 206, a print head 207, a paper feed roller 208, a roll paper detection sensor 209, an open / close detection unit 212, A paper section 220 is provided.

紙送りローラ208は、ロール紙Rの紙送りを行う機構部品である。具体的には、ロール紙Rが紙送りローラ208と印字ヘッド207の間に保持されており、紙送りローラ208が回転することによって、ロール紙Rが紙送りされる。   The paper feed roller 208 is a mechanical component that feeds the roll paper R. Specifically, the roll paper R is held between the paper feed roller 208 and the print head 207, and the roll paper R is fed by rotating the paper feed roller 208.

印字ヘッド207は、ロール紙Rに印字を行う部品である。本実施形態では、ロール紙Rとして熱を加えると色が変化する感熱紙を使用し、印字ヘッド207としてロール紙Rに熱を加えることによって印字を行う加熱型の印字ヘッドを適用するものとする。ロール紙検出センサ209は、光を照射し、その反射光を検出することでロール紙Rの有無を検出するセンサであり、印字ヘッド207の近傍に設けられている。   The print head 207 is a component that performs printing on the roll paper R. In the present embodiment, thermal paper that changes color when heat is applied is used as the roll paper R, and a heating type print head that performs printing by applying heat to the roll paper R is applied as the print head 207. . The roll paper detection sensor 209 is a sensor that detects the presence or absence of the roll paper R by irradiating light and detecting the reflected light, and is provided in the vicinity of the print head 207.

カッタ可動刃205と固定刃206とは、小片として切り取ることができるように印字されたロール紙Rに切り込みを入れる(パーシャルカットする)カッタ部である。カッタ可動刃205は図中の上下方向に移動可能となっており、このカッタ可動刃205が下方へ動いて固定刃206とカッタ可動刃205の間にロール紙Rを挟み込むことによって、ロール紙Rがパーシャルカットされて伝票が形成される。開閉検出部212は、開閉部211の開閉を検出するセンサである。開閉検出部212は、開閉部211がドアロックされている場合に閉を検出し、開閉部211のドアロックが解除された場合に開を検出する。   The cutter movable blade 205 and the fixed blade 206 are cutter units that cut (partial cut) the printed roll paper R so as to be cut out as small pieces. The cutter movable blade 205 is movable in the vertical direction in the figure. When the cutter movable blade 205 moves downward and the roll paper R is sandwiched between the fixed blade 206 and the cutter movable blade 205, the roll paper R Is partially cut to form a slip. The opening / closing detection unit 212 is a sensor that detects opening / closing of the opening / closing unit 211. The opening / closing detection unit 212 detects closing when the opening / closing unit 211 is locked, and detects opening when the door lock of the opening / closing unit 211 is released.

図3は、本実施形態による給紙部220の概略構成を示す斜視図である。給紙部220は、ロール紙Rを給紙する機構であり、スリット板221と、複数のスリット222と、スリット検出センサ223とを備える。給紙部220では、巻芯に巻かれたロール紙Rがスリット板221に軸支されており、所定の給紙位置にセットされている。スリット板221は、ロール紙Rが紙送りされると、ロール紙Rの回転に合わせて回転する回転機構である。スリット板221には、円周方向に複数のスリット222が形成されている。また、スリット222を挟んで対向する位置には、スリット222を検出するスリット検出センサ223が設置されている。   FIG. 3 is a perspective view illustrating a schematic configuration of the sheet feeding unit 220 according to the present embodiment. The paper feeding unit 220 is a mechanism that feeds the roll paper R, and includes a slit plate 221, a plurality of slits 222, and a slit detection sensor 223. In the paper supply unit 220, the roll paper R wound around the winding core is pivotally supported by the slit plate 221 and is set at a predetermined paper supply position. The slit plate 221 is a rotation mechanism that rotates in accordance with the rotation of the roll paper R when the roll paper R is fed. A plurality of slits 222 are formed in the slit plate 221 in the circumferential direction. In addition, a slit detection sensor 223 that detects the slit 222 is installed at a position facing the slit 222 therebetween.

スリット検出センサ223は、光を照射し、その反射光を検出することでスリット222を検出する。伝票出力装置2は、スリット検出センサ223における検出結果をモニタすることにより、ロール紙Rの回転数(回転量)を検出する。以下、スリット検出センサ223によるスリット222の検出を、スリット検出と称する。   The slit detection sensor 223 detects the slit 222 by irradiating light and detecting the reflected light. The slip output device 2 detects the number of rotations (the amount of rotation) of the roll paper R by monitoring the detection result of the slit detection sensor 223. Hereinafter, detection of the slit 222 by the slit detection sensor 223 is referred to as slit detection.

図4は、本実施形態による伝票出力装置2の電気的構成を示すブロック図である。伝票出力装置2は、伝票出力装置2を統括して制御するプリンタ制御ボード200を備える。プリンタ制御ボード200は、CPU(Central Processing Unit)21(判定部)と、ROM(Read Only Memory、読み出し専用メモリ)22と、不揮発性メモリ23と、プリンタ部制御回路24と、カッタ部制御回路25と、用紙有無センサ制御回路26と、開閉検出制御回路27と、スリット検出センサ制御回路28とを有している。   FIG. 4 is a block diagram showing an electrical configuration of the slip output apparatus 2 according to the present embodiment. The slip output device 2 includes a printer control board 200 that controls the slip output device 2 in an integrated manner. The printer control board 200 includes a CPU (Central Processing Unit) 21 (determination unit), a ROM (Read Only Memory) 22, a non-volatile memory 23, a printer unit control circuit 24, and a cutter unit control circuit 25. A sheet presence / absence sensor control circuit 26, an open / close detection control circuit 27, and a slit detection sensor control circuit 28.

CPU21は、プリンタ制御ボード200全体を統括して制御する。例えば、CPU21は、ロール紙Rが所定量回転する間の紙送り量を、今回と前回とで比較して紙詰まりを判定する。具体的には、CPU21は、今回の紙送り量と前回の紙送り量との差が所定値大きい場合に紙詰まりと判定する。   The CPU 21 controls the printer control board 200 as a whole. For example, the CPU 21 determines a paper jam by comparing the paper feed amount during the rotation of the roll paper R by a predetermined amount between this time and the previous time. Specifically, the CPU 21 determines that a paper jam has occurred when the difference between the current paper feed amount and the previous paper feed amount is larger by a predetermined value.

例えば、本実施形態では、CPU21は、スリット検出から次のスリット検出までの間の紙送りパルス数(以下、判定パルス数とする)をカウントする。紙送りパルス数は、紙送りのための紙送りパルスが発生した数である。そして、CPU21は、今回の判定パルス数と前回の判定パルス数との差が所定の閾値βより大きい場合に、ロール紙Rの紙詰まりと判定する。前回の判定パルス数は、今回の判定パルス数に対して直前の判定パルス数である。閾値βは、ロール紙Rの直径とスリット板221のスリット222数によって決まる値であり、予め決められている。   For example, in the present embodiment, the CPU 21 counts the number of paper feed pulses (hereinafter referred to as the determination pulse number) between the slit detection and the next slit detection. The number of paper feed pulses is the number of paper feed pulses for paper feed. Then, the CPU 21 determines that the roll paper R is jammed when the difference between the current determination pulse number and the previous determination pulse number is larger than a predetermined threshold value β. The previous determination pulse number is the previous determination pulse number with respect to the current determination pulse number. The threshold value β is a value determined by the diameter of the roll paper R and the number of slits 222 of the slit plate 221 and is determined in advance.

また、CPU21は、開閉部211の開閉が検出された後(ロール紙Rの交換を検出した後)、ロール紙Rが所定量回転する間の紙送り量が所定量以上である場合、紙詰まりと判定する。具体的には、CPU21は、開閉部211の開閉が検出された後、印字開始(または印字再開)から1回目のスリット検出までの間の紙送りパルス数が、所定の閾値αより大きい場合に、紙詰まりと判定する。閾値αは、ロール紙Rの直径とスリット板221のスリット222数によって決まる値であり、予め決められている。なお、閾値αは、正常時に検出する判定パルス数より大きい値である。   Further, the CPU 21 detects that the paper feed amount is equal to or larger than the predetermined amount after the roll paper R rotates by a predetermined amount after the opening / closing of the opening / closing unit 211 is detected (after the replacement of the roll paper R is detected). Is determined. Specifically, the CPU 21 detects when the number of paper feed pulses from the start of printing (or restart of printing) to the first slit detection after the opening / closing of the opening / closing unit 211 is detected is greater than a predetermined threshold value α. Judge as paper jam. The threshold value α is a value determined by the diameter of the roll paper R and the number of slits 222 of the slit plate 221 and is determined in advance. Note that the threshold value α is a value larger than the number of determination pulses detected during normal operation.

具体的には、正常時に検出する判定パルス数が8である場合には、閾値αは9以上の値である。また、CPU21は、開閉部211の開閉が検出された後、印字開始(または印字再開)から1回目のスリット検出までの間の紙送りパルス数が閾値α以下である場合、印刷開始(または印刷再開)から3回目のスリット検出から、今回の判定パルス数と前回の判定パルス数とを比較して紙詰まりを判定する。すなわち、CPU21は、開閉部211の開閉が検出された後、印字開始(または印字再開)から1回目のスリット検出までの間の紙送りパルス数が閾値α以下である場合、印刷開始(または印刷再開)から2回目のスリット検出時には、紙詰まりの判定を行わない。   Specifically, when the number of determination pulses detected at normal time is 8, the threshold value α is a value of 9 or more. Further, the CPU 21 starts printing (or printing) when the number of paper feed pulses from the start of printing (or restart of printing) to the first slit detection after the opening / closing of the opening / closing unit 211 is detected is equal to or less than the threshold value α. From the third slit detection from the (resume), the current judgment pulse number is compared with the previous judgment pulse number to judge paper jam. In other words, the CPU 21 starts printing (or prints) when the number of paper feed pulses from the start of printing (or printing restart) to the first slit detection after the opening / closing of the opening / closing unit 211 is detected is equal to or less than the threshold value α. When the second slit is detected from (Resume), the paper jam is not determined.

ROM22は、CPU21が実行する動作用プログラムを予め記憶している。この動作用プログラムは、CPU21の起動時に読み出される。不揮発性メモリ23は、パルス設定値記憶部231と、パルス数記憶部232とを有する。パルス設定値記憶部231は、紙詰まりの判定に用いる閾値α及び閾値βを記憶する。パルス数記憶部232は、前回の判定パルス数A、今回の判定パルス数A1、印字終了(または印字中断)直前のスリット検出から印字終了(または印字中断)までの紙送りパルス数B、印字開始(または印字再開)からその直後のスリット検出までの紙送りパルス数C、及び、開閉部211の開閉があった後印字開始(または印字再開)からスリット検出までの紙送りパルス数A0を記憶する。   The ROM 22 stores an operation program executed by the CPU 21 in advance. This operation program is read when the CPU 21 is activated. The nonvolatile memory 23 includes a pulse set value storage unit 231 and a pulse number storage unit 232. The pulse set value storage unit 231 stores a threshold value α and a threshold value β that are used for determining a paper jam. The pulse number storage unit 232 includes the previous determination pulse number A, the current determination pulse number A1, the paper feed pulse number B from the slit detection immediately before the end of printing (or printing interruption) to the end of printing (or printing interruption), and the printing start. The paper feed pulse number C from (or resumption of printing) to the next slit detection and the paper feed pulse number A0 from the start of printing (or resumption of printing) to the slit detection after opening / closing of the opening / closing unit 211 are stored. .

プリンタ部制御回路24は、紙送りローラ208と印字ヘッド207とを制御してロール紙Rに印字データを印字する制御回路である。プリンタ部制御回路24は、紙送りローラ208に紙送りパルス信号を出力するパルス発生部241を有する。プリンタ部制御回路24と印字ヘッド207が、ロール紙Rに印字する印字部を構成する。また、プリンタ部制御回路24と紙送りローラ208とが、ロール紙Rを紙送りする紙送り部を構成する。   The printer unit control circuit 24 is a control circuit that controls the paper feed roller 208 and the print head 207 to print print data on the roll paper R. The printer unit control circuit 24 includes a pulse generation unit 241 that outputs a paper feed pulse signal to the paper feed roller 208. The printer unit control circuit 24 and the print head 207 constitute a printing unit that prints on the roll paper R. The printer unit control circuit 24 and the paper feed roller 208 constitute a paper feed unit that feeds the roll paper R.

カッタ部制御回路25は、カッタ可動刃205を制御してロール紙Rに切り込みを入れる制御回路である。用紙有無センサ制御回路26は、ロール紙検出センサ209の検出結果に基づいて、ロール紙Rの紙切れを検出する。具体的には、用紙有無センサ制御回路26は、ロール紙検出センサ209がロール紙Rの無を検出すると、紙切れと判定する。開閉検出制御回路27は、開閉検出部212の検出結果に基づいて、開閉部211の開閉を検出する。本実施形態では、伝票出力装置2は、開閉部211が開閉されると、ロール紙Rが交換されたと判定する。このため、開閉検出制御回路27と開閉検出部212は、ロール紙Rの交換を検出する交換検出部を構成する。   The cutter unit control circuit 25 is a control circuit that controls the cutter movable blade 205 to cut the roll paper R. The paper presence / absence sensor control circuit 26 detects a paper break of the roll paper R based on the detection result of the roll paper detection sensor 209. Specifically, the paper presence / absence sensor control circuit 26 determines that the paper is out when the roll paper detection sensor 209 detects the absence of the roll paper R. The opening / closing detection control circuit 27 detects opening / closing of the opening / closing unit 211 based on the detection result of the opening / closing detection unit 212. In the present embodiment, the slip output device 2 determines that the roll paper R has been replaced when the opening / closing unit 211 is opened / closed. Therefore, the open / close detection control circuit 27 and the open / close detection unit 212 constitute an exchange detection unit that detects the exchange of the roll paper R.

スリット検出センサ制御回路28は、スリット検出センサ223を制御して紙詰まりを検出するための制御回路である。スリット検出センサ制御回路28は、スリット検出から次のスリット検出までの間の紙送りパルス数をカウントするパルスカウント部281を有する。スリット検出センサ制御回路28とスリット検出センサ223とスリット222とが、ロール紙Rの回転量を検出する回転量検出部を構成する。   The slit detection sensor control circuit 28 is a control circuit for detecting a paper jam by controlling the slit detection sensor 223. The slit detection sensor control circuit 28 has a pulse count unit 281 that counts the number of paper feed pulses between the slit detection and the next slit detection. The slit detection sensor control circuit 28, the slit detection sensor 223, and the slit 222 constitute a rotation amount detection unit that detects the rotation amount of the roll paper R.

次に、図5から図9を参照して、本実施形態による伝票出力装置2における紙詰まりの検出方法を説明する。図5から図9は、本実施形態による伝票出力装置2におけるタイミングチャートである。図5から図9において、横軸は時間であり、上段の信号P1はパルス発生部241が発生する紙送りパルス信号P1を示し、中段の信号P2は開閉検出部212が検出する開閉部211の開閉信号P2を示し、下段の信号P3はスリット検出センサ223が検出するスリット検出信号P3を示す。紙送りパルス信号P1は、紙送りパルスが発生したときはHighであり、紙送りパルスが発生していないときはLowである。開閉信号P2は、開閉部211の開閉を検出したときにはHighであり、開閉を検出していないときはLowである。スリット検出信号P3は、スリット222を検出したときはHighであり、スリット222を検出していないときはLowである。また、図5から図9において、スリット検出信号P3上の数字は、スリット検出からその直後のスリット検出までの間に発生した紙送りパルス数を示す。   Next, a paper jam detection method in the slip output apparatus 2 according to the present embodiment will be described with reference to FIGS. 5 to 9 are timing charts in the slip output apparatus 2 according to the present embodiment. 5 to 9, the horizontal axis represents time, the upper signal P1 indicates the paper feed pulse signal P1 generated by the pulse generator 241, and the middle signal P2 indicates the opening / closing unit 211 detected by the opening / closing detector 212. The open / close signal P2 is shown, and the lower signal P3 shows the slit detection signal P3 detected by the slit detection sensor 223. The paper feed pulse signal P1 is High when the paper feed pulse is generated, and is Low when the paper feed pulse is not generated. The opening / closing signal P2 is High when the opening / closing of the opening / closing unit 211 is detected, and is Low when the opening / closing is not detected. The slit detection signal P3 is High when the slit 222 is detected, and is Low when the slit 222 is not detected. 5 to 9, the numbers on the slit detection signal P3 indicate the number of paper feed pulses generated between the slit detection and the slit detection immediately thereafter.

図5は、印字中におけるタイミングチャートである。図示するように、時間の経過とともに(印字する度に)、紙送りパルス信号P1の紙送りパルス数に対して、スリット検出信号P3のスリット検出数は徐々に多くなる。つまり、印字する度に、スリット検出から次のスリット検出までの間における紙送りパルス数が徐々に少なくなる。すなわち、印字する度に、一定の紙送り量に対して、ロール紙Rの回転量が徐々に多くなる。これは、印字する度に、セットされたロール紙Rの巻き量が減ってロール紙Rの直径が小さくなるためである。   FIG. 5 is a timing chart during printing. As shown in the figure, the number of slit detections of the slit detection signal P3 gradually increases with the passage of time (every time printing) with respect to the number of paper feed pulses of the paper feed pulse signal P1. That is, every time printing is performed, the number of paper feed pulses between the slit detection and the next slit detection gradually decreases. That is, every time printing is performed, the rotation amount of the roll paper R gradually increases with respect to a certain paper feed amount. This is because the roll amount of the set roll paper R decreases and the diameter of the roll paper R decreases each time printing is performed.

図6は、印字中に紙詰まりが発生した場合におけるタイミングチャートである。図示するように、紙詰まりが発生すると、紙送りパルス信号P1の紙送りパルス数に対して、スリット検出信号P3のスリット検出数が急激に少なくなる。つまり、スリット検出から次のスリット検出までの間に発生した紙送りパルス数が急激に多くなる。すなわち、一定の紙送り量に対して、ロール紙Rの回転量が急激に少なくなる。これは、伝票出力装置2内で紙詰まりが発生すると、紙送りパルス信号P1を発生してもロール紙Rが紙送りされないためである。   FIG. 6 is a timing chart when a paper jam occurs during printing. As shown in the figure, when a paper jam occurs, the number of slit detections of the slit detection signal P3 is rapidly reduced with respect to the number of paper feed pulses of the paper feed pulse signal P1. That is, the number of paper feed pulses generated between the slit detection and the next slit detection increases rapidly. That is, the rotation amount of the roll paper R is drastically reduced with respect to a certain paper feed amount. This is because when a paper jam occurs in the slip output device 2, the roll paper R is not fed even if the paper feed pulse signal P1 is generated.

そこで、本実施形態による伝票出力装置2のCPU21は、スリット検出から次のスリット検出までの間に発生した紙送りパルス数(判定パルス数)を比較することにより紙詰まりを判定する。具体的には、CPU21は、今回の判定パルス数A1と前回の判定パルス数Aとの差(判定パルス数の変化量)が閾値βより大きい場合に紙詰まりと判定する。図6に示す例では、閾値β=2であり、今回の判定パルス数A1=7であり、前回の判定パルス数A=3である。このため、本例では、CPU21は、今回の判定パルス数A1=7と前回の判定パルス数A=3との差4(=7−3)が、閾値β=2以上であるため、紙詰まりが発生したと判定する。   Therefore, the CPU 21 of the slip output device 2 according to the present embodiment determines a paper jam by comparing the number of paper feed pulses (the number of determination pulses) generated between the slit detection and the next slit detection. Specifically, the CPU 21 determines that a paper jam has occurred when the difference (the amount of change in the number of determination pulses) between the current determination pulse number A1 and the previous determination pulse number A is greater than the threshold value β. In the example shown in FIG. 6, the threshold β = 2, the current determination pulse number A1 = 7, and the previous determination pulse number A = 3. For this reason, in this example, the CPU 21 detects that the difference 4 (= 7-3) between the current determination pulse number A1 = 7 and the previous determination pulse number A = 3 is equal to or greater than the threshold value β = 2, and therefore a paper jam. Is determined to have occurred.

図7は、印字を一旦終了した後、印字を開始したときのタイミングチャートである。この場合、CPU21は、印字終了直前のスリット検出から印字終了までの紙送りパルス数3をB(B=3)する。続いて、CPU21は、印字開始からその直後のスリット検出までのパルス数2をC(C=2)とする。続いて、CPU21は、BにCを加算した値を今回の判定パルス数A1(=B+C=3+2=5)とする。そして、CPU21は、今回の判定パルス数A1=5と前回の判定パルス数A=5との差に基づいて、紙詰まりを判定する。本例では、CPU21は、今回の判定パルス数A1=5と前回の判定パルス数Aとの差が0であるため、紙詰まりは発生していないと判定する。   FIG. 7 is a timing chart when printing is started after printing is once completed. In this case, the CPU 21 B (B = 3) the number of paper feed pulses 3 from the slit detection immediately before the end of printing to the end of printing. Subsequently, the CPU 21 sets C (C = 2) as the number of pulses 2 from the start of printing to the detection of the slit immediately thereafter. Subsequently, the CPU 21 sets a value obtained by adding C to B as the current determination pulse number A1 (= B + C = 3 + 2 = 5). Then, the CPU 21 determines paper jam based on the difference between the current determination pulse number A1 = 5 and the previous determination pulse number A = 5. In this example, the CPU 21 determines that no paper jam has occurred because the difference between the current determination pulse number A1 = 5 and the previous determination pulse number A is zero.

図8及び図9は、印字を一旦終了(または中断)した後、印字を開始(または再開)するまでの間に開閉部211が開閉された場合におけるタイミングチャートである。CPU21は、開閉部211が開閉されると、ロール紙Rが交換されたと判定する。ロール紙R交換直後は、スリット板221が動いてスリット222の位置が不明確になる。このため、CPU21は、印字開始(または印字再開)後1回目のスリット検出のときはA1(=B+C)を算出しない。CPU21は、印字開始(または印字再開)から1回目のスリット222検出までのパルス数4をA0=4とする。そして、CPU21は、A0が所定の閾値αより大きい場合に、紙詰まりと判定する。或いは、CPU21は、印字開始(または印字再開)後の紙送りパルス数が閾値αを超えてもスリット222が検出されない場合、紙詰まりと判定してもよい。   8 and 9 are timing charts in a case where the opening / closing part 211 is opened / closed after the printing is once ended (or interrupted) and before the printing is started (or resumed). When the opening / closing unit 211 is opened / closed, the CPU 21 determines that the roll paper R has been replaced. Immediately after the roll paper R is exchanged, the slit plate 221 moves and the position of the slit 222 becomes unclear. For this reason, the CPU 21 does not calculate A1 (= B + C) when the first slit is detected after printing is started (or printing is resumed). The CPU 21 sets A0 = 4 as the number of pulses 4 from the start of printing (or resumption of printing) to the first detection of the slit 222. The CPU 21 determines that a paper jam has occurred when A0 is larger than the predetermined threshold value α. Alternatively, the CPU 21 may determine that a paper jam has occurred when the slit 222 is not detected even when the number of paper feed pulses after the start of printing (or resumption of printing) exceeds the threshold value α.

また、CPU21は、印字開始(または印字再開)後、1回目のスリット検出から2回目のスリット検出までの判定パルス数は、前回の判定パルス数と比較せず、その値8を前回の判定パルス数Aとする。すなわち、CPU21は、印字開始(または印字再開)後2回目のスリット検出時には紙詰まりの判定を行わない。CPU21は、印字開始(または印字再開後)3回目のスリット検出から、今回の判定パルス数A1と前回の判定パルス数Aとを比較して紙詰まりを判定する。   Further, the CPU 21 does not compare the number of determination pulses from the first slit detection to the second slit detection after the start of printing (or restart of printing) with the previous determination pulse number, and the value 8 is used as the previous determination pulse. The number A. That is, the CPU 21 does not determine a paper jam when the second slit is detected after printing is started (or printing is resumed). The CPU 21 compares the current determination pulse number A1 with the previous determination pulse number A from the third slit detection at the start of printing (or after resuming printing), and determines paper jam.

次に、図10及び図11を参照して、本実施形態における伝票出力装置2における動作を説明する。図10は、本実施形態における伝票出力装置2が実行する紙詰まり判定処理の処理手順を示したフローチャートである。本図に示す処理は、伝票出力装置2において印字が開始されたときに実行される。   Next, with reference to FIGS. 10 and 11, the operation of the slip output apparatus 2 in the present embodiment will be described. FIG. 10 is a flowchart illustrating a processing procedure of a paper jam determination process executed by the slip output apparatus 2 according to the present embodiment. The processing shown in this figure is executed when printing is started in the slip output device 2.

(ステップS101)プリンタ部制御回路24は、紙送りローラ208を制御してロール紙Rをフィード(紙送り)する。このとき、パルス発生部241は、紙送りパルスを発生する。その後、ステップS102の処理に進む。
(ステップS102)スリット検出センサ223がスリット222を検出する。その後、ステップS103の処理に進む。
(Step S101) The printer unit control circuit 24 controls the paper feed roller 208 to feed the roll paper R (paper feed). At this time, the pulse generator 241 generates a paper feed pulse. Thereafter, the process proceeds to step S102.
(Step S <b> 102) The slit detection sensor 223 detects the slit 222. Thereafter, the process proceeds to step S103.

(ステップS103)CPU21は、前回(直近)の印字終了後に開閉部211の開閉があったか否かを判定する。すなわち、CPU21は、ロール紙Rの交換があったか否かを判定する。CPU21は、前回の印字終了後に開閉部211の開閉があった場合(ステップS103:Yes)には、ステップS106の処理に進む。一方、CPU21は、前回の印字終了後に開閉部211の開閉がなかった場合(ステップS103:No)には、ステップS104の処理に進む。   (Step S <b> 103) The CPU 21 determines whether or not the opening / closing part 211 has been opened / closed after the end of the previous (most recent) printing. That is, the CPU 21 determines whether or not the roll paper R has been replaced. If the open / close unit 211 is opened / closed after the previous printing is completed (step S103: Yes), the CPU 21 proceeds to the process of step S106. On the other hand, if the opening / closing part 211 has not been opened / closed after the end of the previous printing (step S103: No), the CPU 21 proceeds to the process of step S104.

(ステップS104)CPU21は、印字開始からステップS102におけるスリット検出までの間の紙送りパルス数nをCに代入する。その後、ステップS105の処理に進む。
(ステップS105)CPU21は、前回(直近)の印字終了時に記憶したB(印字終了直前のスリット検出から印字終了までの紙送りパルス数B)に、ステップS104で設定したCを加算して、今回の判定パルス数A1に代入する。その後、ステップS120の処理に進む。
(Step S104) The CPU 21 substitutes C for the number n of paper feed pulses from the start of printing to the slit detection in step S102. Thereafter, the process proceeds to step S105.
(Step S105) The CPU 21 adds C set in step S104 to B (the number B of paper feed pulses from the slit detection immediately before the end of printing until the end of printing) B stored at the end of the previous (most recent) printing. Is substituted for the number A1 of determination pulses. Thereafter, the process proceeds to step S120.

(ステップS106)CPU21は、印字開始からステップS102におけるスリット検出までの間の紙送りパルス数nをA0に代入する。ただし、CPU21は、後述するエラー処理(1)後の場合には、印字再開からステップS204におけるスリット検出までの間の紙送りパルス数nをA0に代入する。その後、ステップS107の処理に進む。
(ステップS107)CPU21は、A0が閾値α以下であるか否かを判定する。CPU21は、A0が閾値α以下である場合(ステップS107:Yes)には、ステップS109の処理に進む。一方、CPU21は、A0が閾値αより大きい場合(ステップS107:No)には、ステップS108の処理に進む。
(ステップS108)CPU21は、ロール紙Rが紙詰まりしたと判定する。その後、後述するエラー処理(1)に進む。
(Step S106) The CPU 21 substitutes A0 for the paper feed pulse number n from the start of printing to the slit detection in step S102. However, in the case of error processing (1) described later, the CPU 21 substitutes A0 for the number of paper feed pulses from the restart of printing to the slit detection in step S204. Thereafter, the process proceeds to step S107.
(Step S107) The CPU 21 determines whether or not A0 is equal to or less than the threshold value α. If A0 is equal to or less than the threshold value α (step S107: Yes), the CPU 21 proceeds to the process of step S109. On the other hand, when A0 is larger than the threshold value α (step S107: No), the CPU 21 proceeds to the process of step S108.
(Step S108) The CPU 21 determines that the roll paper R is jammed. Thereafter, the process proceeds to error processing (1) described later.

(ステップS109)プリンタ部制御回路24は、紙送りローラ208を制御してロール紙Rをフィード(紙送り)する。このとき、パルス発生部241は、紙送りパルスを発生する。その後、ステップS110の処理に進む。
(ステップS110)CPU21は、ロール紙Rに印字するための印字データがあるか否かを判定する。CPU21は、印字データがある場合(ステップS110:Yes)には、ステップS112の処理に進む。一方、CPU21は、印字データがない場合(ステップS110:No)には、ステップS111の処理に進む。
(ステップS111)CPU21は、ステップS102におけるスリット検出から現在(印字終了)までのパルス数nをBに代入する。その後、印字を終了する。
(Step S109) The printer unit control circuit 24 controls the paper feed roller 208 to feed the roll paper R (paper feed). At this time, the pulse generator 241 generates a paper feed pulse. Thereafter, the process proceeds to step S110.
(Step S110) The CPU 21 determines whether there is print data for printing on the roll paper R. If there is print data (step S110: Yes), the CPU 21 proceeds to the process of step S112. On the other hand, if there is no print data (step S110: No), the CPU 21 proceeds to the process of step S111.
(Step S111) The CPU 21 substitutes B for the pulse number n from the slit detection in step S102 to the present (printing end). Thereafter, printing is terminated.

(ステップS112)CPU21は、用紙エラーが発生したか否かを判定する。用紙エラーとは、紙切れや開閉部211が開いている状態等である。CPU21は、ロール紙検出センサ209がロール紙Rの無を検出した場合、或は、開閉検出部212が開閉部211の開を検出した場合に、用紙エラーが発生したと判定する。CPU21は、用紙エラーが発生した場合(ステップS112:Yes)には、後述するエラー処理(1)に進む。一方、CPU21は、用紙エラーが発生していない場合(ステップS112:No)には、ステップS113の処理に進む。   (Step S112) The CPU 21 determines whether a paper error has occurred. The paper error is a paper out or a state where the opening / closing unit 211 is open. The CPU 21 determines that a paper error has occurred when the roll paper detection sensor 209 detects the absence of the roll paper R or when the open / close detection unit 212 detects the open of the open / close unit 211. If a paper error has occurred (step S112: Yes), the CPU 21 proceeds to error processing (1) described later. On the other hand, if a paper error has not occurred (step S112: No), the CPU 21 proceeds to the process of step S113.

(ステップS113)スリット検出センサ223がスリット222を検出する。その後、ステップS114の処理に進む。
(ステップS114)CPU21は、ステップS102におけるスリット検出からステップS113におけるスリット検出までの間のパルス数nを前回の判定パルス数Aに代入する。ただし、CPU21は、後述するエラー処理(1)後の場合には、ステップS204におけるスリット検出からステップS113におけるスリット検出までの間の紙送りパルス数nをA0に代入する。その後、ステップS115の処理に進む。
(Step S113) The slit detection sensor 223 detects the slit 222. Thereafter, the process proceeds to step S114.
(Step S114) The CPU 21 substitutes the number n of pulses from the slit detection in step S102 to the slit detection in step S113 for the previous determination pulse number A. However, in the case of error processing (1) to be described later, the CPU 21 substitutes A0 for the paper feed pulse number n from the slit detection in step S204 to the slit detection in step S113. Thereafter, the process proceeds to step S115.

(ステップS115)プリンタ部制御回路24は、紙送りローラ208を制御してロール紙Rをフィード(紙送り)する。このとき、パルス発生部241は、紙送りパルスを発生する。その後、ステップS116の処理に進む。
(ステップS116)CPU21は、ロール紙Rに印字するための印字データがあるか否かを判定する。CPU21は、印字データがある場合(ステップS116:Yes)には、ステップS117の処理に進む。一方、CPU21は、印字データがない場合(ステップS116:No)には、ステップS111の処理に進む。
(Step S115) The printer unit control circuit 24 controls the paper feed roller 208 to feed the roll paper R (paper feed). At this time, the pulse generator 241 generates a paper feed pulse. Thereafter, the process proceeds to step S116.
(Step S116) The CPU 21 determines whether there is print data for printing on the roll paper R. If there is print data (step S116: Yes), the CPU 21 proceeds to the process of step S117. On the other hand, if there is no print data (step S116: No), the CPU 21 proceeds to the process of step S111.

(ステップS117)CPU21は、用紙エラーが発生したか否かを判定する。CPU21は、用紙エラーが発生した場合(ステップS117:Yes)には、後述するエラー処理(1)に進む。一方、CPU21は、用紙エラーが発生していない場合(ステップS117:No)には、ステップS118の処理に進む。
(ステップS118)スリット検出センサ223がスリット222を検出する。その後、ステップS119の処理に進む。
(ステップS119)CPU21は、ステップS113におけるスリット検出からステップS118におけるスリット検出までの間のパルス数nを今回の判定パルス数A1に代入する。その後、ステップS120の処理に進む。
(Step S117) The CPU 21 determines whether a paper error has occurred. If a paper error has occurred (step S117: Yes), the CPU 21 proceeds to error processing (1) described later. On the other hand, if a paper error has not occurred (step S117: No), the CPU 21 proceeds to the process of step S118.
(Step S118) The slit detection sensor 223 detects the slit 222. Thereafter, the process proceeds to step S119.
(Step S119) The CPU 21 substitutes the number n of pulses from the slit detection in step S113 to the slit detection in step S118 into the current determination pulse number A1. Thereafter, the process proceeds to step S120.

(ステップS120)CPU21は、前回の判定パルス数Aと今回の判定パルス数A1との差(変化量)が閾値β以下であるか否かを判定する。CPU21は、変化量が閾値β以下である場合(ステップS120:Yes)には、ステップS122の処理に進む。一方、CPU21は、変化量が閾値βより大きい場合(ステップS120:No)には、ステップS121の処理に進む。   (Step S120) The CPU 21 determines whether or not the difference (change amount) between the previous determination pulse number A and the current determination pulse number A1 is equal to or less than the threshold value β. When the change amount is equal to or less than the threshold value β (step S120: Yes), the CPU 21 proceeds to the process of step S122. On the other hand, when the amount of change is larger than the threshold β (step S120: No), the CPU 21 proceeds to the process of step S121.

(ステップS121)CPU21は、ロール紙Rが紙詰まりしたと判定する。その後、後述するエラー処理(1)に進む。
(ステップS122)CPU21は、今回の判定パルス数A1を前回の判定パルス数Aに代入する。その後、ステップS115の処理に戻る。
(Step S121) The CPU 21 determines that the roll paper R is jammed. Thereafter, the process proceeds to error processing (1) described later.
(Step S122) The CPU 21 substitutes the current determination pulse number A1 for the previous determination pulse number A. Thereafter, the process returns to step S115.

図11は、本実施形態における伝票出力装置2が実行するエラー処理の処理手順を示したフローチャートである。
(ステップS201)プリンタ部制御回路24は印字を中断する。その後、ステップS202の処理に進む。
(ステップS202)CPU21は、用紙確認が完了したか否かを判定する。用紙確認とは、用紙エラーが解消したことである。CPU21は、ロール紙検出センサ209がロール紙Rの有を検出し、かつ、開閉検出部212が開閉部211の閉を検出した場合に、用紙確認が完了したと判定する。CPU21は、用紙確認が完了した場合(ステップS202:Yes)には、ステップS203の処理に進む。一方、CPU21は、用紙確認が完了していない場合(ステップS202:No)には、ステップS201の処理に戻る。
FIG. 11 is a flowchart showing a processing procedure of error processing executed by the slip output apparatus 2 in the present embodiment.
(Step S201) The printer control circuit 24 interrupts printing. Thereafter, the process proceeds to step S202.
(Step S202) The CPU 21 determines whether or not the paper check is completed. Paper confirmation means that the paper error has been resolved. When the roll paper detection sensor 209 detects the presence of the roll paper R and the open / close detection unit 212 detects that the open / close unit 211 is closed, the CPU 21 determines that the paper check has been completed. When the paper check is completed (step S202: Yes), the CPU 21 proceeds to the process of step S203. On the other hand, if the paper check is not completed (step S202: No), the CPU 21 returns to the process of step S201.

(ステップS203)プリンタ部制御回路24は、紙送りローラ208を制御してロール紙Rをフィード(紙送り)して印字を再開する。このとき、パルス発生部241は、紙送りパルスを発生する。その後、ステップS204の処理に進む。
(ステップS204)スリット検出センサ223がスリット222を検出する。その後、ステップS106の処理(2)に進む。
(Step S203) The printer control circuit 24 controls the paper feed roller 208 to feed the roll paper R (paper feed) and resume printing. At this time, the pulse generator 241 generates a paper feed pulse. Thereafter, the process proceeds to step S204.
(Step S <b> 204) The slit detection sensor 223 detects the slit 222. Then, it progresses to the process (2) of step S106.

上述したとおり、本実施形態では、伝票出力装置2は、前回の判定パルス数Aと今回の判定パルス数との差(変化量)に基づいて、紙詰まりを判定する。これにより、伝票出力装置2は、印字する度にその巻き量(直径)が減り、紙送り量に対する回転量が徐々に増えるロール紙Rの紙詰まりを精度良く検出することができる。   As described above, in the present embodiment, the slip output apparatus 2 determines a paper jam based on the difference (change amount) between the previous determination pulse number A and the current determination pulse number. As a result, the slip output device 2 can accurately detect a paper jam of the roll paper R in which the winding amount (diameter) decreases each time printing is performed and the rotation amount with respect to the paper feeding amount gradually increases.

また、伝票出力装置2は、印字終了(または印字中断)から印字開始(または印字再開)までの間に開閉部211が開閉された場合は、印字開始(または印字再開)からその直後のスリット検出までの間のパルス数A0が閾値αより大きいときに、紙詰まりと判定する。これにより、伝票出力装置2は、ロール紙Rの交換が行われてスリット222の位置が変化した場合であっても、紙詰まりを精度良く検出することができる。   Further, when the opening / closing part 211 is opened / closed between the end of printing (or interruption of printing) and the start of printing (or resumption of printing), the slip output device 2 detects the slit immediately after the start of printing (or resumption of printing). When the number of pulses A0 until this time is greater than the threshold value α, it is determined that a paper jam has occurred. As a result, the slip output device 2 can accurately detect a paper jam even when the roll paper R is replaced and the position of the slit 222 is changed.

また、伝票出力装置2は、印字終了(または印字中断)から印字開始(または印字再開)までの間に開閉部211が開閉された場合は、印字開始(または印字再開)後3回目のスリット検出から、判定パルス数に基づく紙詰まりの判定を行う。すなわち、印字開始(または印字再開)後2回目のスリット検出時には、判定パルス数に基づく紙詰まりの判定を行わない。これにより、伝票出力装置2は、ロール紙Rの交換によりスリット222の位置が変化した場合であっても、紙詰まりの誤検出を防ぐことができる。   The slip output device 2 detects the third slit after the start of printing (or restart of printing) when the opening / closing part 211 is opened and closed between the end of printing (or interruption of printing) and the start of printing (or resumption of printing). Therefore, the paper jam is determined based on the determination pulse number. That is, when the second slit is detected after printing is started (or printing is resumed), the paper jam is not determined based on the number of determination pulses. As a result, the slip output device 2 can prevent erroneous detection of a paper jam even when the position of the slit 222 changes due to the replacement of the roll paper R.

なお、ステップS201の処理の後、伝票出力装置2は、自装置の表示画面にエラー表示を行ったり、ブザー等によりエラー報知を行ったりするようにしてもよい。図12は、本実施形態における伝票出力装置2が表示するエラー表示の一例を示した概略図である。図示する例では、伝票出力装置2は、表示画面901にエラー表示として「紙セットエラー」と表示し、エラー表示ランプ902を点灯している。これにより、紙詰まり等のエラーを従業員に素早く知らせ、伝票出力装置2をエラー状態から迅速に復帰させることができる。   Note that after the process of step S201, the slip output apparatus 2 may display an error on its own display screen or notify the error by a buzzer or the like. FIG. 12 is a schematic diagram illustrating an example of an error display displayed by the slip output apparatus 2 according to the present embodiment. In the illustrated example, the slip output apparatus 2 displays “paper setting error” on the display screen 901 as an error display, and the error display lamp 902 is lit. Thereby, an error such as a paper jam can be quickly notified to the employee, and the slip output device 2 can be quickly returned from the error state.

また、ステップS201の処理の後、伝票出力装置2は、コントローラ1を介してハンディターミナル4に、紙詰まりが発生したことを報知させるようにしてもよい。具体的には、伝票出力装置2のCPU21(判定部)は、コントローラ1に対して、伝票出力装置2(自装置)を識別する情報とエラー情報(紙詰まりに関する情報)とを送信する。エラー情報は、紙詰まり等のエラーが発生したことを示す情報である。   In addition, after the process of step S201, the slip output device 2 may notify the handy terminal 4 that a paper jam has occurred via the controller 1. Specifically, the CPU 21 (determination unit) of the slip output device 2 transmits information identifying the slip output device 2 (own device) and error information (information regarding paper jam) to the controller 1. The error information is information indicating that an error such as a paper jam has occurred.

エラー情報を受信したコントローラ1は、従業員が携帯するハンディターミナル4に対して、エラー情報を送信した伝票出力装置2を識別する情報とエラー情報とを送信する。ハンディターミナル4は、伝票出力装置2を識別する情報とエラー情報を受信した場合、当該受信した情報に基づいて当該伝票出力装置2において紙詰まりが起きたことの表示や報知を行う。これにより、伝票出力装置2の近傍に従業員がいない場合でも、伝票出力装置2の緊急事態を多くの従業員知らしめ、迅速に復旧対応することができる。   The controller 1 that has received the error information transmits information identifying the slip output device 2 that has transmitted the error information and error information to the handy terminal 4 carried by the employee. When the handy terminal 4 receives the information for identifying the slip output device 2 and the error information, the handy terminal 4 displays or notifies that a paper jam has occurred in the slip output device 2 based on the received information. Thereby, even when there is no employee in the vicinity of the slip output device 2, many employees can be informed of the emergency situation of the slip output device 2 and can be quickly recovered.

さらに、伝票出力装置2は、エラーから復旧したのちには(ステップS202のYes)、コントローラ1を介してハンディターミナル4に、紙詰まりから復旧したことを報知させるようにしてもよい。具体的には、伝票出力装置2のCPU21(判定部)は、コントローラ1に対して、伝票出力装置2(自装置)を識別する情報とエラー解除情報(紙詰まりの復旧に関する情報)とを送信する。エラー解除情報は、紙詰まり等のエラーが解除された(復旧した)ことを示す情報である。   Further, after recovering from the error (Yes in step S202), the slip output device 2 may notify the handy terminal 4 via the controller 1 that the paper jam has been recovered. Specifically, the CPU 21 (determination unit) of the slip output device 2 transmits information for identifying the slip output device 2 (own device) and error release information (information on recovery from paper jam) to the controller 1. To do. The error release information is information indicating that an error such as a paper jam has been released (recovered).

エラー解除情報を受信したコントローラ1は、従業員が携帯するハンディターミナル4に対して、エラー解除情報を送信した伝票出力装置2を識別する情報とエラー解除情報とを送信する。ハンディターミナル4は、伝票出力装置2を識別する情報とエラー解除情報とを受信した場合、当該受信した情報に基づいて当該伝票出力装置2においてエラーが解除されたことの表示や報知を行う。これにより、復旧したことを知らずに、当該伝票出力装置2を復旧させようと、業務の合間に従業員が伝票出力装置2に訪れることを防止することができる。   The controller 1 that has received the error release information transmits information identifying the slip output device 2 that has transmitted the error release information and the error release information to the handy terminal 4 carried by the employee. When the handy terminal 4 receives the information for identifying the slip output device 2 and the error release information, the handy terminal 4 displays or notifies that the error has been canceled in the slip output device 2 based on the received information. Thereby, it is possible to prevent an employee from visiting the slip output device 2 between tasks in an attempt to recover the slip output device 2 without knowing that it has been recovered.

なお、上述した実施形態における伝票出力装置2が備える各部の機能全体あるいはその一部は、これらの機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。   Note that all or some of the functions of the units included in the slip output device 2 in the above-described embodiment are recorded on a computer-readable recording medium by recording a program for realizing these functions. Alternatively, the program may be read by a computer system and executed. Here, the “computer system” includes an OS and hardware such as peripheral devices.

また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶部のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでも良い。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。   The “computer-readable recording medium” refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, and a CD-ROM, and a storage unit such as a hard disk built in the computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory inside a computer system serving as a server or a client in that case may be included and a program that holds a program for a certain period of time. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲において種々の変更を加えることが可能である。   Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention.

例えば、上述した実施形態では、複数のスリット222及びスリット検出センサ223を用いてロール紙Rの回転量を検出しているが、これに限らず、複数の磁石と磁石を検出する磁気センサとを用いてロール紙Rの回転量を検出してもよい。この場合、スリット222に代えて磁石をスリット板221に設置し、スリット検出センサ223に代えて磁気センサを設置する。   For example, in the above-described embodiment, the rotation amount of the roll paper R is detected using the plurality of slits 222 and the slit detection sensor 223, but not limited to this, a plurality of magnets and a magnetic sensor that detects the magnets are used. It may be used to detect the rotation amount of the roll paper R. In this case, a magnet is installed on the slit plate 221 instead of the slit 222, and a magnetic sensor is installed instead of the slit detection sensor 223.

1・・・コントローラ、2・・・伝票出力装置、4・・・ハンディターミナル、21・・・CPU、22・・・ROM、23・・・不揮発性メモリ、24・・・プリンタ部制御回路、25・・・カッタ部制御回路、26・・・用紙有無センサ制御回路、27・・・開閉検出制御回路、28・・・スリット検出センサ制御回路、200・・・プリンタ制御ボード、205・・・カッタ可動刃、206・・・固定刃、207・・・印字ヘッド、208・・・紙送りローラ、209・・・ロール紙検出センサ、211・・・開閉部、212・・・開閉検出部、220・・・収納部、221・・・スリット板、222・・・スリット、223・・・スリット検出センサ、231・・・パルス数設定値記憶部、232・・・パルス数記憶部、241・・・パルス発生部、281・・・パルスカウント部   DESCRIPTION OF SYMBOLS 1 ... Controller, 2 ... Voucher output device, 4 ... Handy terminal, 21 ... CPU, 22 ... ROM, 23 ... Non-volatile memory, 24 ... Printer part control circuit, 25 ... Cutter control circuit, 26 ... Paper presence / absence sensor control circuit, 27 ... Open / close detection control circuit, 28 ... Slit detection sensor control circuit, 200 ... Printer control board, 205 ... Cutter movable blade, 206 ... Fixed blade, 207 ... Print head, 208 ... Paper feed roller, 209 ... Roll paper detection sensor, 211 ... Opening / closing section, 212 ... Opening / closing detection section, 220 ... storage unit, 221 ... slit plate, 222 ... slit, 223 ... slit detection sensor, 231 ... pulse number set value storage unit, 232 ... pulse number storage unit, 241,・Pulse generating unit, 281 ... pulse counting unit

Claims (6)

ロール紙に印字する印字部と、
前記ロール紙を紙送りする紙送り部と、
前記ロール紙の回転量を検出する回転量検出部と、
前記ロール紙が所定量回転する毎に、当該所定量回転する間に前記紙送り部が紙送りした紙送り量をカウントし、当該カウントした紙送り量とその直前にカウントした紙送り量とを比較して紙詰まりを判定する判定部と、
を備えることを特徴とする印字装置。
A printing section for printing on roll paper;
A paper feed section for feeding the roll paper;
A rotation amount detection unit for detecting the rotation amount of the roll paper;
Each time the roll paper is rotated by a predetermined amount, the paper feed unit counts the paper feed amount fed by the paper feed unit while the roll paper is rotated by the predetermined amount, and the counted paper feed amount and the paper feed amount counted immediately before are counted. A determination unit for comparing paper jam to compare,
A printing apparatus comprising:
前記ロール紙の交換を検出する交換検出部を備え、
前記判定部は、前記交換検出部が前記ロール紙の交換を検出した後、前記ロール紙が前記所定量回転する間に前記紙送り部が紙送りした紙送り量が所定量より大きい場合、紙詰まりと判定する
ことを特徴とする請求項1に記載の印字装置。
An exchange detection unit for detecting the exchange of the roll paper;
When the paper feed amount fed by the paper feed unit while the roll paper rotates by the predetermined amount after the replacement detection unit detects the replacement of the roll paper is larger than the predetermined amount, The printing apparatus according to claim 1, wherein the printer is determined to be clogged.
前記判定部は、前記交換検出部が前記ロール紙の交換を検出した後、前記ロール紙が前記所定量回転する間に前記紙送り部が紙送りした紙送り量が前記所定量より小さい場合、前記ロール紙が更に2回前記所定量回転した後から、カウントした紙送り量とその直前にカウントした紙送り量とを比較して紙詰まりを判定する
ことを特徴とする請求項2に記載の印字装置。
When the paper feed amount fed by the paper feed unit is smaller than the predetermined amount while the roll paper is rotated by the predetermined amount after the replacement detection unit detects the replacement of the roll paper, 3. The paper jam is determined by comparing the counted paper feed amount with the paper feed amount counted immediately before the roll paper is further rotated twice by the predetermined amount. Printing device.
前記印字装置は、注文情報の入力を受け付ける注文入力装置と、前記注文情報を管理するコントローラとを含む注文情報処理システムに含まれ、
前記印字部は、前記コントローラから受信した前記注文情報に関する印字情報に基づいて伝票を印字する
ことを特徴とする請求項1から3のいずれか1項に記載の印字装置。
The printing device is included in an order information processing system including an order input device that receives input of order information and a controller that manages the order information;
The printing apparatus according to any one of claims 1 to 3, wherein the printing unit prints a slip based on print information related to the order information received from the controller.
前記判定部は、紙詰まりを判定した場合、前記注文入力装置に対して、自装置を識別する情報とともに紙詰まりに関する情報を送信して報知させる
ことを特徴とする請求項4に記載の印字装置。
5. The printing apparatus according to claim 4, wherein, when determining a paper jam, the determination unit transmits information about the paper jam together with information for identifying the device itself to the order input device, and notifies the order input device. .
前記判定部は、紙詰まりの復旧を判定した場合、前記注文入力装置に対して、自装置を識別する情報とともに紙詰まりの復旧に関する情報を送信して報知させる
ことを特徴とする請求項5に記載の印字装置。
6. The determination unit according to claim 5, wherein when the paper jam recovery is determined, the order input device transmits information regarding the paper jam recovery together with information for identifying the device itself. The printing device described.
JP2013115666A 2013-05-31 2013-05-31 Printing device Pending JP2014233878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013115666A JP2014233878A (en) 2013-05-31 2013-05-31 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013115666A JP2014233878A (en) 2013-05-31 2013-05-31 Printing device

Publications (1)

Publication Number Publication Date
JP2014233878A true JP2014233878A (en) 2014-12-15

Family

ID=52136948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013115666A Pending JP2014233878A (en) 2013-05-31 2013-05-31 Printing device

Country Status (1)

Country Link
JP (1) JP2014233878A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017177709A (en) * 2016-03-31 2017-10-05 ブラザー工業株式会社 Printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017177709A (en) * 2016-03-31 2017-10-05 ブラザー工業株式会社 Printing device

Similar Documents

Publication Publication Date Title
US8374521B2 (en) Image forming apparatus, method of controlling image forming apparatus, and storage medium storing program
US20120055272A1 (en) Paper roll detection apparatus and method, and printer
EP1930806B1 (en) Monitoring apparatus, image forming apparatus, monitoring system, method of changing network setting, and program
US20180141358A1 (en) Printing apparatus and control method for printing apparatus
JP2014010506A (en) Operation terminal and printer
JP2010001151A (en) Imaging device, method for controlling imaging device, computer program, and storage medium
JP6700668B2 (en) Image forming apparatus, control method of the apparatus, and program
JP2010094920A (en) Image forming apparatus
JP2014233878A (en) Printing device
JP2014040014A (en) Printing device and printing method
CN110031129B (en) Motor temperature estimation device and control method thereof
JP2009234039A (en) Image forming apparatus
JP6108956B2 (en) Ordering system
US9141319B2 (en) Imaging system with reduced function mode, and methods therefor
JP2013166252A5 (en)
JP2017087658A (en) Recording device and control method for the same
US20230322001A1 (en) Printing apparatus, control method, program, information processing apparatus, and printing system
JP2015123667A (en) Printer and method for discriminating front and rear sides
EP4364956A1 (en) Printer
JP2018092029A (en) Image forming apparatus
JP7259460B2 (en) IMAGE RECORDING DEVICE AND FAILURE PREDICTION SYSTEM FOR IMAGE RECORDING DEVICE
JP6957674B2 (en) Image forming apparatus and its control method
JP5868621B2 (en) Plate making equipment
JP5924143B2 (en) Printing device
JP2016175197A (en) Image forming device