JP2017035856A - Printer and control method for the same - Google Patents

Printer and control method for the same Download PDF

Info

Publication number
JP2017035856A
JP2017035856A JP2015159838A JP2015159838A JP2017035856A JP 2017035856 A JP2017035856 A JP 2017035856A JP 2015159838 A JP2015159838 A JP 2015159838A JP 2015159838 A JP2015159838 A JP 2015159838A JP 2017035856 A JP2017035856 A JP 2017035856A
Authority
JP
Japan
Prior art keywords
paper
value
paper width
roll paper
setting value
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.)
Granted
Application number
JP2015159838A
Other languages
Japanese (ja)
Other versions
JP6551038B2 (en
JP2017035856A5 (en
Inventor
浩之 本山
Hiroyuki Motoyama
浩之 本山
英樹 西村
Hideki Nishimura
英樹 西村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2015159838A priority Critical patent/JP6551038B2/en
Priority to US15/235,594 priority patent/US10065434B2/en
Publication of JP2017035856A publication Critical patent/JP2017035856A/en
Publication of JP2017035856A5 publication Critical patent/JP2017035856A5/ja
Application granted granted Critical
Publication of JP6551038B2 publication Critical patent/JP6551038B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a printer suppressing occurrence of adverse effects due to inconsistency between a paper width value indicated by a setting value and a paper width value of a roll sheet stored.SOLUTION: A printer 1 comprises: a printing section 41 performing printing onto a roll sheet; a storage section storing the roll sheet; a paper guide regulating a position of the roll sheet; a paper guide sensor 46 outputting different detection values according to a state of the paper guide; a memory section 43 storing a paper width setting value indicating a paper width of the roll sheet; and a control section 40 causing the printing section 41 to perform the printing based on the paper width setting value stored by the memory section 43, detecting the state of the paper guide based on the detection value of the paper guide sensor 46 with activation or resetting as a trigger, changing the paper width setting value to a value indicating 58 mm when the paper guide is in a state of being attached to the storage section and the paper width setting value is a value indicating 80 mm, and, on the other hand, not changing the setting value irrespective of the value of the paper width setting value when the paper guide is in a state of not being attached to the storage section.SELECTED DRAWING: Figure 4

Description

本発明は、印刷装置、及び、印刷装置の制御方法に関する。   The present invention relates to a printing apparatus and a printing apparatus control method.

従来、ロール紙を収容可能な印刷装置(記録紙幅検出装置)において、記録媒体の収容部(ロール紙収容部)に、紙幅の異なるロール紙の位置を規制する紙ガイド(仕切板)を取り付け可能に構成し、センサーによって紙ガイドの状態を検出することによってロール紙の幅を検出するものが知られている(例えば、特許文献1参照)。   Conventionally, in a printing device (recording paper width detection device) that can store roll paper, a paper guide (partition plate) that regulates the position of roll paper with different paper widths can be attached to the recording medium storage portion (roll paper storage portion) It is known that the width of the roll paper is detected by detecting the state of the paper guide by a sensor (see, for example, Patent Document 1).

実開平4−77471号公報Japanese Utility Model Publication No. 4-77471

上述した印刷装置では、所定のタイミングで、センサーの検出値に基づく紙幅の検出を行うことにより、消費電力を抑制しつつ、効率よく検出を行うことができる。この場合、印刷装置は、検出した紙幅を示す設定値を設定ファイル等に記録し、設定値に基づいて印刷に係る処理を実行する。しかしながら、上記の場合、センサーの検出値に基づく紙幅の検出を行うタイミングと、紙ガイドが取り付けられるタイミングとのタイムラグに起因して、設定値が示す紙幅の値と、印刷装置に実際に収容されたロール紙の紙幅の値とが一致しない場合が生じ得る。そして、印刷装置は、設定値に基づいて印刷に係る処理を実行するため、設定値が示す紙幅の値と、印刷装置に実際に収容されたロール紙の紙幅の値とが一致しない状態で印刷に係る処理を実行した場合、値の不一致に起因して、印刷装置の機構や、印刷結果に悪影響が生じる場合がある。
本発明は、上述した事情に鑑みてなされたものであり、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して悪影響が生じることを抑制することを目的とする。
In the printing apparatus described above, by detecting the paper width based on the detection value of the sensor at a predetermined timing, it is possible to efficiently perform detection while suppressing power consumption. In this case, the printing apparatus records a setting value indicating the detected paper width in a setting file or the like, and executes processing related to printing based on the setting value. However, in the above case, due to the time lag between the timing of detecting the paper width based on the detection value of the sensor and the timing of attaching the paper guide, the value of the paper width indicated by the set value and the actual size stored in the printing apparatus. In some cases, the roll width of the roll paper does not match. Since the printing apparatus executes processing related to printing based on the setting value, printing is performed in a state where the paper width value indicated by the setting value does not match the paper width value of the roll paper actually stored in the printing apparatus. When the process related to the above is executed, the mechanism of the printing apparatus and the printing result may be adversely affected due to the mismatch of values.
The present invention has been made in view of the above-described circumstances, and suppresses adverse effects caused by a mismatch between the paper width value indicated by the set value and the paper width value of the roll paper accommodated in the printing apparatus. The purpose is to do.

上記目的を達成するために、本発明は、ロール紙を収容可能な印刷装置であって、前記ロール紙に印刷する印刷部と、前記ロール紙を収容する収容部と、前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、前記紙ガイドの取り付けの状態を検出するセンサーと、前記ロール紙の紙幅を示す設定値を記憶する記憶部と、前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させ、また、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、第1の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記第1の紙幅以外の紙幅を示す値の場合、前記設定値を前記第1の紙幅を示す値へと変更する一方、検出した前記紙ガイドの取り付けの状態が前記第1の紙幅以外の紙幅の前記ロール紙に対応する取り付けの状態の場合、前記設定値の値にかかわらず前記設定値を変更しない制御部と、を備えることを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して悪影響が生じることを抑制できる。
In order to achieve the above object, the present invention provides a printing apparatus capable of storing roll paper, wherein a printing unit that prints on the roll paper, a storage unit that stores the roll paper, and a paper width of the roll paper. A setting that indicates the paper width of the roll paper, a paper guide that regulates the position of the roll paper in the storage unit, a sensor that detects the attachment state of the paper guide, depending on whether or not the attachment is appropriate or the attachment position. A storage unit that stores a value, and a printing unit that causes the printing unit to print based on the setting value stored in the storage unit, and the state of attachment of the paper guide that is detected by the sensor using a predetermined event as a trigger. In the case of an attachment state corresponding to the roll paper having a paper width of 1, when the set value is a value indicating a paper width other than the first paper width, the set value is changed to a value indicating the first paper width. On the other hand, when the detected attachment state of the paper guide is an attachment state corresponding to the roll paper having a paper width other than the first paper width, the setting value is not changed regardless of the setting value. And a section.
According to the configuration of the present invention, it is possible to suppress an adverse effect caused by a mismatch between the paper width value indicated by the set value and the paper width value of the roll paper accommodated in the printing apparatus.

また、本発明は、前記制御部は、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、前記第1の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記第1の紙幅よりも大きい第2の紙幅を示す値の場合、前記設定値を前記第1の紙幅を示す値とする一方、検出した前記紙ガイドの取り付けの状態が前記第2の紙幅の前記ロール紙に対応する取り付けの状態の場合、前記設定値の値にかかわらず前記設定値を変更しないことを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して悪影響が生じることを抑制できる。
Further, the present invention is a case where the attachment state of the paper guide detected by the sensor using a predetermined event as a trigger is an attachment state corresponding to the roll paper having the first paper width. When the set value is a value indicating a second paper width larger than the first paper width, the set value is set to a value indicating the first paper width, while the detected state of the paper guide is detected. In the attachment state corresponding to the roll paper having the second paper width, the setting value is not changed regardless of the value of the setting value.
According to the configuration of the present invention, it is possible to suppress an adverse effect caused by a mismatch between the paper width value indicated by the set value and the paper width value of the roll paper accommodated in the printing apparatus.

また、本発明は、外部装置が送信する制御コマンドによる指示、又は、ソフトウェアスイッチ又はハードウェアスイッチの設定によって、前記記憶部が記憶する前記設定値を変更可能とし、前記第1の紙幅を示す値へ変更した前記設定値を前記外部装置へ送信することを特徴とする。
本発明の構成によれば、ユーザーは、意図的に、設定値を変更できる。また、検出され設定された第1の紙幅を外部装置が知ることができる。
In the present invention, the setting value stored in the storage unit can be changed by an instruction by a control command transmitted by an external device or a setting of a software switch or a hardware switch, and a value indicating the first paper width. The setting value changed to is transmitted to the external device.
According to the configuration of the present invention, the user can intentionally change the setting value. Further, the external device can know the first paper width detected and set.

また、本発明は、サーマルヘッドと、プラテンローラーとによって前記ロール紙を挟持して前記ロール紙を搬送する搬送部を備え、前記制御部は、前記設定値が示す紙幅が小さいほど、前記プラテンローラーを駆動するモーターを高トルクとすることを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して、設定値が示す紙幅が小さいほど、プラテンローラーを駆動するモーターを高トルクとすることにより生じる悪影響を抑制できる。
Further, the present invention includes a transport unit that transports the roll paper by sandwiching the roll paper by a thermal head and a platen roller, and the control unit is configured to reduce the platen roller as the paper width indicated by the set value is smaller. The motor that drives the motor has a high torque.
According to the configuration of the present invention, the platen roller is driven as the paper width indicated by the setting value is smaller due to the mismatch between the paper width value indicated by the setting value and the paper width value of the roll paper accommodated in the printing apparatus. The adverse effect caused by the high torque of the motor is reduced.

また、本発明は、前記制御部は、前記印刷部に文字列を印刷させる場合、前記設定値が示す紙幅に応じて、1行に印刷する文字の桁数の態様を変更することを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して、設定値が示す紙幅に応じて、1行に印刷する文字の桁数の態様を変更することにより生じる悪影響を抑制できる。
Furthermore, the present invention is characterized in that, when the printing unit prints a character string, the control unit changes a mode of the number of characters printed on one line according to a paper width indicated by the setting value. To do.
According to the configuration of the present invention, printing is performed on one line according to the paper width indicated by the setting value due to the mismatch between the paper width value indicated by the setting value and the paper width value of the roll paper accommodated in the printing apparatus. It is possible to suppress adverse effects caused by changing the mode of the number of digits of characters to be performed.

また、上記目的を達成するために、本発明は、ロール紙を収容可能な印刷装置であって、前記ロール紙に印刷する印刷部と、前記ロール紙を収容する収容部と、前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、前記紙ガイドの取り付けの状態を検出するセンサーと、前記ロール紙の紙幅を示す設定値を記憶する記憶部と、前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させ、また、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、所定の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記所定の紙幅以外の紙幅を示す値の場合、前記設定値を前記所定の紙幅を示す値へと変更し、後は、前記設定値を変更しない制御部と、を備えることを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して悪影響が生じることを抑制できる。
In order to achieve the above object, the present invention provides a printing apparatus that can store roll paper, a printing unit that prints on the roll paper, a storage unit that stores the roll paper, The paper guide that regulates the position of the roll paper in the storage unit according to the presence or absence of attachment according to the paper width, or the attachment position, the sensor that detects the attachment state of the paper guide, and the paper width of the roll paper A storage unit that stores a set value to be displayed, and a printing unit that causes the printing unit to print based on the set value stored in the storage unit, and that the attachment state of the paper guide detected by the sensor using a predetermined event as a trigger is In the case of an attachment state corresponding to the roll paper having a predetermined paper width, when the set value is a value indicating a paper width other than the predetermined paper width, the set value indicates the predetermined paper width. Change to a value, then it is characterized by comprising a control unit which does not change the set value.
According to the configuration of the present invention, it is possible to suppress an adverse effect caused by a mismatch between the paper width value indicated by the set value and the paper width value of the roll paper accommodated in the printing apparatus.

また、上記目的を達成するために、本発明は、ロール紙を収容可能であり、前記ロール紙に印刷する印刷部と、前記ロール紙を収容する収容部と、前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、前記紙ガイドの取り付けの状態を検出するセンサーと、前記ロール紙の紙幅を示す設定値を記憶する記憶部と、前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させる制御部とを備える印刷装置の制御方法であって、前記制御部により、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、第1の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記第1の紙幅以外の紙幅を示す値の場合、前記設定値を前記第1の紙幅を示す値へと変更する一方、検出した前記紙ガイドの取り付けの状態が前記第1の紙幅以外の紙幅の前記ロール紙に対応する取り付けの状態の場合、前記設定値の値にかかわらず前記設定値を変更しないことを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して悪影響が生じることを抑制できる。
In order to achieve the above object, the present invention can accommodate roll paper, and is in accordance with a printing unit that prints on the roll paper, a storage unit that stores the roll paper, and a paper width of the roll paper. A paper guide that regulates the position of the roll paper in the storage unit depending on whether or not the paper is attached, a sensor that detects a state of attachment of the paper guide, and a setting value that indicates a paper width of the roll paper. A control method for a printing apparatus comprising: a storage unit that stores data; and a control unit that causes the printing unit to print based on the setting value stored in the storage unit, wherein the control unit triggers a predetermined event as the trigger. The attachment state of the paper guide detected by the sensor is an attachment state corresponding to the roll paper having the first paper width, and the set value is a paper width other than the first paper width. In the case of the value, the setting value is changed to a value indicating the first paper width, while the detected attachment state of the paper guide is an attachment amount corresponding to the roll paper having a paper width other than the first paper width. In the case of a state, the set value is not changed regardless of the value of the set value.
According to the configuration of the present invention, it is possible to suppress an adverse effect caused by a mismatch between the paper width value indicated by the set value and the paper width value of the roll paper accommodated in the printing apparatus.

また、上記目的を達成するために、本発明は、ロール紙を収容可能であり、前記ロール紙に印刷する印刷部と、前記ロール紙を収容する収容部と、前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、前記紙ガイドの取り付けの状態を検出するセンサーと、前記ロール紙の紙幅を示す設定値を記憶する記憶部と、前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させる制御部と、を備える印刷装置の制御方法であって、前記制御部により、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、所定の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記所定の紙幅以外の紙幅を示す値の場合、前記設定値を前記所定の紙幅を示す値へと変更し、後は、前記設定値を変更しないことを特徴とする。
本発明の構成によれば、設定値が示す紙幅の値と、印刷装置に収容されたロール紙の紙幅の値との不一致に起因して悪影響が生じることを抑制できる。
In order to achieve the above object, the present invention can accommodate roll paper, and is in accordance with a printing unit that prints on the roll paper, a storage unit that stores the roll paper, and a paper width of the roll paper. A paper guide that regulates the position of the roll paper in the storage unit depending on whether or not the paper is attached, a sensor that detects a state of attachment of the paper guide, and a setting value that indicates a paper width of the roll paper. A control method of a printing apparatus comprising: a storage unit that stores data; and a control unit that causes the printing unit to print based on the setting value stored in the storage unit, wherein the control unit triggers a predetermined event The attachment state of the paper guide detected by the sensor is an attachment state corresponding to the roll paper having a predetermined paper width, and the set value is a paper width other than the predetermined paper width. For a value indicating, the set value is changed to a value indicating the predetermined width, later, characterized in that it does not change the set value.
According to the configuration of the present invention, it is possible to suppress an adverse effect caused by a mismatch between the paper width value indicated by the set value and the paper width value of the roll paper accommodated in the printing apparatus.

本実施形態に係る印刷装置の斜視図。1 is a perspective view of a printing apparatus according to an embodiment. カバーが開状態の印刷装置の斜視図。FIG. 3 is a perspective view of the printing apparatus with the cover open. 印刷装置の内部構造を示す図。FIG. 3 is a diagram illustrating an internal structure of a printing apparatus. 印刷装置、ホストコンピューターの機能的構成を示すブロック図。FIG. 2 is a block diagram illustrating a functional configuration of a printing apparatus and a host computer. ホストコンピューター、印刷装置の動作を示すフローチャート。6 is a flowchart illustrating operations of a host computer and a printing apparatus. 印刷装置、ホストコンピューターの動作を示すフローチャート。6 is a flowchart showing operations of the printing apparatus and the host computer. 印刷装置の動作を示すフローチャート。6 is a flowchart showing the operation of the printing apparatus.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る印刷装置1の斜視図である。以下の説明では、上下、左右、前後方向は、図1において矢印で示す方向に準じるものとする。
印刷装置1は、ロール紙R(図3)を収容し、収容したロール紙Rに画像を印刷し、画像が印刷されたロール紙Rを切断して、紙片を発行する機能を有する。例えば、印刷装置1は、スーパーマーケットや、コンビニエンスストアー等の小売店や、居酒屋や喫茶店等の飲食店等に設けられたレジカウンターに設けられ、会計に応じてレシートを発行する装置として使用される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a perspective view of a printing apparatus 1 according to the present embodiment. In the following description, the up / down, left / right, and front / rear directions are in accordance with the directions indicated by arrows in FIG.
The printing apparatus 1 has a function of storing roll paper R (FIG. 3), printing an image on the stored roll paper R, cutting the roll paper R on which the image is printed, and issuing a piece of paper. For example, the printing apparatus 1 is provided at a cashier counter provided in a retail store such as a supermarket or a convenience store, a restaurant such as a tavern or a coffee shop, and is used as an apparatus that issues a receipt according to a transaction.

図1に示すように、印刷装置1は、略立方体の筐体10を備える。
筐体10の前面10aには、印刷装置1の電源をオン/オフする電源スイッチ12が設けられる。
筐体10の上面10bの中央部の前方には、印刷装置1の収容部20に収容されたロール紙Rを排出する排紙口11が設けられる。
筐体10の上面10bにおいて、排紙口11の左後方には、パネル13が設けられる。パネル13には、ロール紙Rの搬送を指示する押下式のオートフィードスイッチ14が設けられる。オートフィードスイッチ14が押下されている間、ロール紙Rが搬送方向H1(図3)に自動で搬送される。また、パネル13には、LED表示ユニット15が設けられる。LED表示ユニット15は、複数のLEDを備え、各LEDが所定の態様で点灯/消灯することにより、印刷装置1の動作モードや、エラーの状態等、印刷装置1に関する情報を報知する。
パネル13の前方には、カバー18を開状態とするレバー16が設けられる。カバー18が閉状態のときにレバー16が押し下げられることによって、カバー18が閉状態から開状態へと移行する。
カバー18は、筐体10の内部に設けられた収容部20(図2)にロール紙Rを出し入れするための開口22(図2)を開閉する部材である。
As shown in FIG. 1, the printing apparatus 1 includes a substantially cubic housing 10.
On the front surface 10 a of the housing 10, a power switch 12 that turns on / off the power of the printing apparatus 1 is provided.
In front of the center portion of the upper surface 10 b of the housing 10, a paper discharge port 11 that discharges the roll paper R stored in the storage unit 20 of the printing apparatus 1 is provided.
On the upper surface 10 b of the housing 10, a panel 13 is provided on the left rear side of the paper discharge outlet 11. The panel 13 is provided with a push-down type auto feed switch 14 that instructs conveyance of the roll paper R. While the auto feed switch 14 is pressed, the roll paper R is automatically conveyed in the conveyance direction H1 (FIG. 3). The panel 13 is provided with an LED display unit 15. The LED display unit 15 includes a plurality of LEDs, and each LED is turned on / off in a predetermined manner to notify information related to the printing apparatus 1 such as an operation mode of the printing apparatus 1 and an error state.
A lever 16 that opens the cover 18 is provided in front of the panel 13. When the lever 16 is pushed down when the cover 18 is in the closed state, the cover 18 shifts from the closed state to the open state.
The cover 18 is a member that opens and closes an opening 22 (FIG. 2) for inserting and removing the roll paper R into and from a housing portion 20 (FIG. 2) provided inside the housing 10.

図2は、カバー18が開状態のときの印刷装置1の斜視図である。
図2に示すように、カバー18が開状態へ移行すると、筐体10の内部に形成された収容部20が露出する。収容部20は、ロール状のロール紙Rを収容可能な空洞である。収容部20には、カバー18によって開閉される開口22を介してロール紙Rが出し入れされる。
図2に示すように、カバー18の先端には、プラテンローラー23が設けられる。また、排紙口11の下方であって、カバー18を閉状態としたときにプラテンローラー23に対向する位置には、サーマルヘッド24が設けられる。
プラテンローラー23は、ロール紙Rを搬送するローラーである。プラテンローラー23は、サーマルヘッド24とロール紙Rを挟持した状態で所定方向へ回転し、回転に応じて、ロール紙Rを搬送方向H1へ搬送する。プラテンローラー23と、サーマルヘッド24とによるロール紙Rの搬送については、後述する。
サーマルヘッド24は、ロール紙Rの搬送方向H1と交わる方向に複数の発熱素子が並んで設けられたサーマル式の印刷ヘッドであり、発熱素子により感熱紙であるロール紙Rにドットを形成することによって、ロール紙Rに画像を印刷する。
図2に示すように、筐体10の前部には、カッターユニット28が設けられる。カッターユニット28は、固定刃に対して可動刃が相対的に移動して、これら刃によりロール紙Rを切断する。
また、筐体10の内部における前部には、CPUや、メモリー、その他制御回路が実装された制御基板や、電源ユニット、その他の機構、部品が設けられる。
FIG. 2 is a perspective view of the printing apparatus 1 when the cover 18 is open.
As shown in FIG. 2, when the cover 18 shifts to the open state, the accommodating portion 20 formed inside the housing 10 is exposed. The accommodating portion 20 is a cavity that can accommodate the roll-shaped roll paper R. The roll paper R is put into and out of the accommodating portion 20 through the opening 22 opened and closed by the cover 18.
As shown in FIG. 2, a platen roller 23 is provided at the tip of the cover 18. A thermal head 24 is provided below the paper discharge port 11 and at a position facing the platen roller 23 when the cover 18 is closed.
The platen roller 23 is a roller that conveys the roll paper R. The platen roller 23 rotates in a predetermined direction while sandwiching the thermal head 24 and the roll paper R, and conveys the roll paper R in the conveyance direction H1 according to the rotation. The conveyance of the roll paper R by the platen roller 23 and the thermal head 24 will be described later.
The thermal head 24 is a thermal print head in which a plurality of heat generating elements are arranged in a direction intersecting the transport direction H1 of the roll paper R, and dots are formed on the roll paper R, which is thermal paper, by the heat generating elements. Thus, an image is printed on the roll paper R.
As shown in FIG. 2, a cutter unit 28 is provided at the front portion of the housing 10. In the cutter unit 28, the movable blade moves relative to the fixed blade, and the roll paper R is cut by these blades.
In addition, a control board on which a CPU, a memory, and other control circuits are mounted, a power supply unit, and other mechanisms and components are provided in the front portion inside the housing 10.

本実施形態に係る印刷装置1は、幅58mm(第1の紙幅)のロール紙R(以下、「58mmロール紙」という。)、及び、幅80mm(第2の紙幅)のロール紙R(以下、「80mmロール紙」という。)に対応しており、これら2種類の幅のロール紙Rへの印刷について、動作保証がされる。そして、印刷装置1の収容部20には、ロール紙Rとして、58mmロール紙と、80mmロール紙とが収容可能である。   The printing apparatus 1 according to this embodiment includes a roll paper R (hereinafter referred to as “58 mm roll paper”) having a width of 58 mm (first paper width) and a roll paper R (hereinafter referred to as “58 mm roll paper”). , Which is referred to as “80 mm roll paper”), and operation is guaranteed for printing on these two types of width roll paper R. The storage unit 20 of the printing apparatus 1 can store 58 mm roll paper and 80 mm roll paper as the roll paper R.

80mmロール紙が収容部20に収容される場合、収容部20から紙ガイド25(後述)が取り外された状態で収容される。紙ガイド25が取り外された状態で80mmロール紙が収容部20に収容されると、収容部20の右側の側面である右側面20r、及び、左側の側面である左側面20lによって、収容部20における80mmロール紙の左右方向の位置が規制される。これにより、ロール紙Rへの画像の印刷中にロール紙Rが左右方向にずれ、これに起因して、印刷品質が低下することが防止される。   When the 80 mm roll paper is stored in the storage unit 20, the paper guide 25 (described later) is removed from the storage unit 20. When the 80 mm roll paper is stored in the storage unit 20 with the paper guide 25 removed, the storage unit 20 is formed by the right side surface 20r that is the right side surface of the storage unit 20 and the left side surface 20l that is the left side surface. The position in the left-right direction of the 80 mm roll paper is regulated. This prevents the roll paper R from shifting in the left-right direction during the printing of the image on the roll paper R, thereby preventing the print quality from deteriorating.

58mmロール紙が収容部20に収容される場合、収容部20の内部の左端部T1に、紙ガイド25が取り付けられる。
紙ガイド25が取り付けられた状態で58mmロール紙が収容部20に収容されると、収容部20の右側面20rと、収容部20に取り付けられた状態で右側面20rと対向する紙ガイド25の面25aによって、収容部20における58mmロール紙の左右方向の位置が規制される。これにより、ロール紙Rへの画像の印刷中にロール紙Rが左右方向にずれ、これに起因して、印刷品質が低下することが防止される。
When 58 mm roll paper is stored in the storage unit 20, the paper guide 25 is attached to the left end T <b> 1 inside the storage unit 20.
When the 58 mm roll paper is stored in the storage unit 20 with the paper guide 25 attached, the right side 20r of the storage unit 20 and the paper guide 25 facing the right side 20r in the state attached to the storage unit 20 The position in the left-right direction of the 58 mm roll paper in the storage unit 20 is regulated by the surface 25a. This prevents the roll paper R from shifting in the left-right direction during the printing of the image on the roll paper R, thereby preventing the print quality from deteriorating.

紙ガイド25は、収容部20に設けられた係止部に係止することによって、収容部20の左端部T1に位置決めされる。
詳述すると、図2に示すように、紙ガイド25は、前部に前方へ向かって突出した突起26が設けられると共に、下部に下方へ向かって突出した係止爪27が設けられる。
また、収容部20において、紙ガイド25が左端部T1に位置したときにおける突起26の位置に対応する位置には、突起26が挿通可能な挿通孔(不図示)が設けられると共に、紙ガイド25が左端部T1に位置したときにおける係止爪27の位置に対応する位置には、係止溝(不図示)が設けられる。本実施形態では、挿通孔、及び、係止溝が「係止部」として機能する。
紙ガイド25が収容部20に取り付けられる場合、まず、収容部20の挿通孔に突起26が挿入されて、紙ガイド25の左右方向の動きが規制される。次いで、紙ガイド25の本体が、収容部20の挿通孔に突起26が挿入された状態で、突起26を支点として回動しつつ下方へ向かって押し下げられる。紙ガイド25の本体の下方への移動に応じて、係止爪27の爪部27aが係止溝の縁に接触して、係止爪27を矢印Y1方向へ弾性変形させ、紙ガイド25の本体がさらに下方へ移動すると、爪部27aと係止溝が弾発的に係止する。爪部27aが係止溝に係止することにより、突起26、及び、係止爪27によって紙ガイド25が係止部に係止した状態となり、紙ガイド25の上下、前後、及び、左右方向の移動が規制され、紙ガイド25が左端部T1に位置決めされた状態となる。
The paper guide 25 is positioned at the left end T <b> 1 of the storage portion 20 by being locked to a locking portion provided in the storage portion 20.
More specifically, as shown in FIG. 2, the paper guide 25 is provided with a protrusion 26 protruding forward at the front portion and a locking claw 27 protruding downward at the lower portion.
Further, in the accommodating portion 20, an insertion hole (not shown) through which the protrusion 26 can be inserted is provided at a position corresponding to the position of the protrusion 26 when the paper guide 25 is positioned at the left end T 1. A locking groove (not shown) is provided at a position corresponding to the position of the locking claw 27 when is positioned at the left end T1. In the present embodiment, the insertion hole and the locking groove function as a “locking portion”.
When the paper guide 25 is attached to the storage unit 20, first, the protrusion 26 is inserted into the insertion hole of the storage unit 20, and the movement of the paper guide 25 in the left-right direction is restricted. Next, the main body of the paper guide 25 is pushed downward while rotating with the protrusion 26 as a fulcrum in a state where the protrusion 26 is inserted into the insertion hole of the housing portion 20. As the paper guide 25 moves downward, the claw portion 27a of the locking claw 27 comes into contact with the edge of the locking groove, elastically deforming the locking claw 27 in the direction of the arrow Y1, and the paper guide 25 When the main body moves further downward, the claw portion 27a and the locking groove are elastically locked. When the claw portion 27a is locked in the locking groove, the paper guide 25 is locked to the locking portion by the protrusion 26 and the locking claw 27, and the paper guide 25 is moved up and down, front and rear, and left and right. And the paper guide 25 is positioned at the left end T1.

なお、カバー18が開状態の場合に、紙ガイド25が、突起26が挿通孔に挿入された状態である一方、係止爪27が係止溝に係止していない状態(係止部に係止していない状態)で、収容部20に設けられた状態となることがある。例えば、ユーザーが人為的に係止爪27の係止溝への係止状態を解除したり、また、印刷装置1の落下や、印刷装置1への物体の衝突等、印刷装置1に何らかの衝撃があった場合に偶発的に係止爪27の係止溝への係止状態が解除されたりする場合である。
本実施形態に係る印刷装置1では、紙ガイド25が上記状態の場合に、カバー18が開状態から閉状態へ移行した場合、カバー18の回動に応じて、カバー18と紙ガイド25が接触し、カバー18が紙ガイド25を下方へ向かって押し下げて、係止爪27を係止溝に係止させる構成となっている。すなわち、紙ガイド25が上記状態の場合であっても、カバー18を開状態から閉状態へと移行すれば、紙ガイド25は自動で係止部に係止した状態となる。
When the cover 18 is in the open state, the paper guide 25 is in a state where the projection 26 is inserted into the insertion hole, while the locking claw 27 is not locked in the locking groove (in the locking portion). In a state where it is not locked, it may be in a state of being provided in the accommodating portion 20. For example, the user manually releases the locking state of the locking claw 27 in the locking groove, or some impact is applied to the printing apparatus 1 such as dropping of the printing apparatus 1 or collision of an object with the printing apparatus 1. This is a case where the locking state of the locking claw 27 in the locking groove is released accidentally.
In the printing apparatus 1 according to the present embodiment, when the paper guide 25 is in the above state and the cover 18 shifts from the open state to the closed state, the cover 18 and the paper guide 25 come into contact with each other according to the rotation of the cover 18. The cover 18 pushes down the paper guide 25 downward, and the locking claw 27 is locked in the locking groove. That is, even if the paper guide 25 is in the above state, the paper guide 25 is automatically locked to the locking portion when the cover 18 is shifted from the open state to the closed state.

図3は、印刷装置1の内部構造を説明に適した態様で模式的に示す図である。
以下の説明において、ロール紙Rについて、収容部20に収容されたロール状の部分をロール紙本体と表現し、ロール紙本体から繰り出された部分を搬送ロール紙と表現する。
印刷装置1において、収容部20に収容されたロール紙本体から、搬送ロール紙が繰り出されて搬送方向H1へ向かって搬送される。図2に示すように、収容部20の搬送方向H1の下流には、プラテンローラー23と、サーマルヘッド24とが対向して設けられる。プラテンローラー23は、サーマルヘッド24と搬送ロール紙を挟持しつつ、矢印Y2方向へ回動することによって、搬送ロール紙を搬送方向H1へ搬送する。サーマルヘッド24は、搬送方向H1へ搬送される搬送ロール紙に対して発熱素子によりドットを形成して画像を印刷する。
図3に示すように、プラテンローラー23、及び、サーマルヘッド24の搬送方向H1の下流には、カッターユニット28が設けられる。カッターユニット28は、固定刃に対して可動刃が相対的に移動し、これら刃が交差することによって、搬送ロール紙を切断する。カッターユニット28によって切断された搬送ロール紙は、紙片として排紙口11から排出される。
FIG. 3 is a diagram schematically showing the internal structure of the printing apparatus 1 in a mode suitable for explanation.
In the following description, regarding the roll paper R, a roll-shaped portion accommodated in the accommodating portion 20 is expressed as a roll paper main body, and a portion fed out from the roll paper main body is expressed as a transport roll paper.
In the printing apparatus 1, the transport roll paper is fed out from the roll paper main body stored in the storage unit 20 and transported in the transport direction H <b> 1. As shown in FIG. 2, a platen roller 23 and a thermal head 24 are provided facing each other downstream in the transport direction H <b> 1 of the storage unit 20. The platen roller 23 conveys the transport roll paper in the transport direction H1 by rotating in the arrow Y2 direction while sandwiching the thermal head 24 and the transport roll paper. The thermal head 24 prints an image by forming dots with heating elements on the transport roll paper transported in the transport direction H1.
As shown in FIG. 3, a cutter unit 28 is provided downstream of the platen roller 23 and the thermal head 24 in the transport direction H <b> 1. In the cutter unit 28, the movable blade moves relative to the fixed blade, and these blades intersect to cut the transport roll paper. The transport roll paper cut by the cutter unit 28 is discharged from the paper discharge outlet 11 as a piece of paper.

図4は、印刷装置1、及び、印刷装置1を制御するホストコンピューター2(外部装置)の機能的構成を示すブロック図である。印刷装置1、及び、ホストコンピューター2により、印刷システム3が構成される。   FIG. 4 is a block diagram illustrating a functional configuration of the printing apparatus 1 and the host computer 2 (external apparatus) that controls the printing apparatus 1. A printing system 3 is configured by the printing apparatus 1 and the host computer 2.

図4に示すように、印刷装置1は、制御部40と、印刷部41と、搬送部42と、記憶部43と、通信部44と、入力部45と、紙ガイドセンサー46(センサー)と、カバーセンサー47と、切断部48と、を備える。
制御部40は、CPUや、ROM、RAM、その他周辺回路を備え、例えば、CPUが制御プログラムを読み出して実行する等して、印刷装置1を制御する。
印刷部41は、上述したサーマルヘッド24や、サーマルヘッド24を駆動する駆動回路、その他のロール紙への印刷に関する機構を備え、制御部40の制御で、ロール紙Rに画像を印刷する。
搬送部42は、上述したプラテンローラー23や、プラテンローラー23を回転させる搬送モーター、搬送モーターを駆動するモータードライバー、その他のロール紙Rの搬送に関する機構を備え、制御部40の制御で、ロール紙Rを搬送する。
記憶部43は、EERPOM等の不揮発性メモリーを備え、各種データを記憶する。記憶部43は、設定ファイル431を記憶する。設定ファイル431については、後述する。
通信部44は、USBや、RS−232等の所定の通信規格に対応した通信モジュール、その他の外部装置(ホストコンピューター2)との通信に関する機構を備え、制御部40の制御で、所定の通信規格に従って通信する。なお、外部装置との通信は、有線で行われてもよく、無線で行われてもよい。
入力部45は、上述した電源スイッチ12や、オートフィードスイッチ14等の操作スイッチに接続され、操作スイッチに対する操作を検出して、制御部40に出力する。制御部40は、入力部45からの入力に基づいて、操作スイッチに対して行われた操作に対応する処理を実行する。
As shown in FIG. 4, the printing apparatus 1 includes a control unit 40, a printing unit 41, a transport unit 42, a storage unit 43, a communication unit 44, an input unit 45, and a paper guide sensor 46 (sensor). The cover sensor 47 and the cutting part 48 are provided.
The control unit 40 includes a CPU, ROM, RAM, and other peripheral circuits, and controls the printing apparatus 1 by, for example, the CPU reading and executing a control program.
The printing unit 41 includes the above-described thermal head 24, a drive circuit that drives the thermal head 24, and other mechanisms related to printing on roll paper, and prints an image on the roll paper R under the control of the control unit 40.
The transport unit 42 includes the above-described platen roller 23, a transport motor that rotates the platen roller 23, a motor driver that drives the transport motor, and other mechanisms related to transport of the roll paper R. The control unit 40 controls the roll paper Carry R.
The storage unit 43 includes a non-volatile memory such as EERPOM and stores various data. The storage unit 43 stores a setting file 431. The setting file 431 will be described later.
The communication unit 44 includes a communication module corresponding to a predetermined communication standard such as USB and RS-232, and a mechanism related to communication with other external devices (host computer 2), and performs predetermined communication under the control of the control unit 40. Communicate according to the standard. Note that communication with an external device may be performed by wire or wirelessly.
The input unit 45 is connected to the operation switch such as the power switch 12 or the auto feed switch 14 described above, detects an operation on the operation switch, and outputs it to the control unit 40. Based on the input from the input unit 45, the control unit 40 executes processing corresponding to the operation performed on the operation switch.

紙ガイドセンサー46は、紙ガイド25が収容部20に取り付けられた状態か否かに応じて、異なる検出値を出力する機械式のセンサーである。なお、紙ガイド25が収容部20に取り付けられた状態とは、紙ガイド25が収容部20の係止部に係止した状態をいう。
紙ガイドセンサー46について詳述すると、紙ガイドセンサー46は、上述した紙ガイド25の係止爪27が係止する係止溝の内部において、上方へ向かって付勢された突出部を備える。紙ガイド25の係止爪27が収容部20の係止溝に係止した状態の場合は、突出部が係止爪27によって押下された状態となり、突出部が機械式スイッチを電気的にオン状態に作動させ、紙ガイドセンサー46から紙ガイド25が取り付けられた状態であることを示す信号が検出値として制御部40に出力される。一方で、紙ガイド25の係止爪27が収容部20の係止溝に係止した状態ではない場合は、突出部が押下された状態が解除され、紙ガイドセンサー46から紙ガイド25が取り付けられた状態でないことを示す信号が検出値として制御部40に出力される。設定する紙幅の数が多い場合、それに応じた位置に係止溝を複数形成し、それぞれ対応する紙ガイド25の係止爪27を検出するように複数の紙ガイドセンサー46を設置してもよい。
制御部40は、紙ガイドセンサー46から入力された検出値に基づいて、紙ガイドセンサー46が収容部20に取り付けられた状態か否かを検出する。
The paper guide sensor 46 is a mechanical sensor that outputs different detection values depending on whether or not the paper guide 25 is attached to the storage unit 20. The state in which the paper guide 25 is attached to the storage unit 20 refers to a state in which the paper guide 25 is locked to the locking unit of the storage unit 20.
The paper guide sensor 46 will be described in detail. The paper guide sensor 46 includes a protrusion that is urged upward in the locking groove in which the locking claw 27 of the paper guide 25 is locked. When the locking claw 27 of the paper guide 25 is locked in the locking groove of the accommodating portion 20, the protruding portion is pressed by the locking claw 27, and the protruding portion electrically turns on the mechanical switch. A signal indicating that the paper guide 25 is attached from the paper guide sensor 46 is output to the control unit 40 as a detection value. On the other hand, when the locking claw 27 of the paper guide 25 is not in the locked state in the locking groove of the housing portion 20, the pressed state is released and the paper guide 25 is attached from the paper guide sensor 46. A signal indicating that the state is not set is output to the control unit 40 as a detection value. When the number of paper widths to be set is large, a plurality of locking grooves may be formed at corresponding positions, and a plurality of paper guide sensors 46 may be installed so as to detect the locking claws 27 of the corresponding paper guides 25 respectively. .
The control unit 40 detects whether or not the paper guide sensor 46 is attached to the storage unit 20 based on the detection value input from the paper guide sensor 46.

カバーセンサー47は、カバー18が開状態か閉状態かに応じて、異なる検出値を出力するセンサーである。カバーセンサー47は、カバー18が開状態の場合、カバー18が開状態であることを示す信号を検出値として制御部40に出力し、カバー18が閉状態の場合、カバー18が閉状態であることを示す信号を検出値として制御部40に出力する。
制御部40は、カバーセンサー47から入力された検出値に基づいて、カバー18が開状態か閉状態かを検出する。
The cover sensor 47 is a sensor that outputs different detection values depending on whether the cover 18 is open or closed. When the cover 18 is in the open state, the cover sensor 47 outputs a signal indicating that the cover 18 is in the open state to the control unit 40 as a detection value. When the cover 18 is in the closed state, the cover 18 is in the closed state. A signal indicating this is output to the control unit 40 as a detection value.
The control unit 40 detects whether the cover 18 is open or closed based on the detection value input from the cover sensor 47.

切断部48は、上述したカッターユニット28や、カッターユニット28が有する可動刃を移動させるカッターモーター、カッターモーターを駆動するモータードライバー、その他のロール紙Rの切断に係る機構を備え、制御部40の制御で、ロール紙Rを切断する。   The cutting unit 48 includes the above-described cutter unit 28, a cutter motor that moves the movable blade of the cutter unit 28, a motor driver that drives the cutter motor, and other mechanisms for cutting the roll paper R. The roll paper R is cut by control.

ホストコンピューター2は、印刷装置1に制御コマンドを送信して、印刷装置1を制御するコンピューターである。印刷装置1がレジカウンターにおいてレシートを発行する装置として使用される場合、ホストコンピューター2は、レジカウンターで行われる会計に基づいて、会計に関する情報が印刷されたレシートの発行を指示する制御コマンドを生成して印刷装置1に送信し、印刷装置1にレシートを発行させる。   The host computer 2 is a computer that controls the printing apparatus 1 by transmitting a control command to the printing apparatus 1. When the printing apparatus 1 is used as an apparatus for issuing a receipt at a checkout counter, the host computer 2 generates a control command that instructs the issuance of a receipt on which information related to the payment is printed based on the checkout performed at the checkout counter. Then, the data is transmitted to the printing apparatus 1 to cause the printing apparatus 1 to issue a receipt.

図4に示すように、ホストコンピューター2は、ホスト制御部50と、ホスト入力部51と、ホスト表示部52と、ホスト記憶部53と、ホスト通信部54とを備える。
ホスト制御部50は、CPUや、ROM、RAM、その他周辺回路を備え、例えば、CPUが制御プログラムを読み出して実行する等して、ホストコンピューター2を制御する。
ホスト入力部51は、ホストコンピューター2に設けられた操作スイッチや、ホストコンピューター2に接続されたキーボード等の入力デバイスに対する操作を検出して、制御部40に出力する。制御部40は、ホスト入力部51からの入力に基づいて、ユーザーが行った操作に対応する処理を実行する。
ホスト表示部52は、液晶表パネル等の表示パネル、その他の表示手段を備え、ホスト制御部50の制御で、表示手段に各種画像を表示する。
ホスト記憶部53は、不揮発性メモリーを備え、各種データを記憶する。
ホスト通信部54は、ホスト制御部50の制御で、所定の通信規格に従って、印刷装置1と通信する。
As shown in FIG. 4, the host computer 2 includes a host control unit 50, a host input unit 51, a host display unit 52, a host storage unit 53, and a host communication unit 54.
The host control unit 50 includes a CPU, ROM, RAM, and other peripheral circuits, and controls the host computer 2 by, for example, the CPU reading and executing a control program.
The host input unit 51 detects an operation on an input device such as an operation switch provided in the host computer 2 or a keyboard connected to the host computer 2 and outputs the operation to the control unit 40. Based on the input from the host input unit 51, the control unit 40 executes processing corresponding to the operation performed by the user.
The host display unit 52 includes a display panel such as a liquid crystal display panel and other display means, and displays various images on the display means under the control of the host control unit 50.
The host storage unit 53 includes a nonvolatile memory and stores various data.
The host communication unit 54 communicates with the printing apparatus 1 according to a predetermined communication standard under the control of the host control unit 50.

次に、ロール紙Rに画像を印刷するときの印刷装置1の基本的な動作について説明する。
図5は、ホストコンピューター2の制御で、印刷装置1がロール紙Rに画像を印刷するときの、ホストコンピューター2、及び、印刷装置1の動作を示すフローチャートである。図5(A)はホストコンピューター2の動作を示し、(B)は印刷装置1の動作を示す。
Next, a basic operation of the printing apparatus 1 when printing an image on the roll paper R will be described.
FIG. 5 is a flowchart illustrating operations of the host computer 2 and the printing apparatus 1 when the printing apparatus 1 prints an image on the roll paper R under the control of the host computer 2. FIG. 5A shows the operation of the host computer 2, and FIG. 5B shows the operation of the printing apparatus 1.

図5(A)に示すように、ホストコンピューター2のホスト制御部50は、ロール紙Rへの画像の印刷を指示する制御コマンドを生成する(ステップSA1)。ここで、ホストコンピューター2には、所定のアプリケーションと、プリンタードライバーとがインストールされる。所定のアプリケーションは、プリンタードライバーに対して、印刷装置1に印刷させる画像に関する情報を出力する機能を有する。また、プリンタードライバーは、所定のアプリケーションから入力された情報に基づいて、印刷装置1のコマンド体系に対応した制御コマンドを生成する機能を有する。ステップSA1において、ホスト制御部50は、所定のアプリケーション、及び、プリンタードライバーの機能により、制御コマンドを生成する。
次いで、ホスト制御部50は、ホスト通信部54を制御して、生成した制御コマンドを、印刷装置1に送信する(ステップSA2)。
As shown in FIG. 5A, the host control unit 50 of the host computer 2 generates a control command for instructing printing of an image on the roll paper R (step SA1). Here, a predetermined application and a printer driver are installed in the host computer 2. The predetermined application has a function of outputting information regarding an image to be printed by the printing apparatus 1 to the printer driver. The printer driver also has a function of generating a control command corresponding to the command system of the printing apparatus 1 based on information input from a predetermined application. In step SA1, the host control unit 50 generates a control command by a predetermined application and the function of the printer driver.
Next, the host control unit 50 controls the host communication unit 54 to transmit the generated control command to the printing apparatus 1 (step SA2).

図5(B)に示すように、印刷装置1の制御部40は、通信部44を制御して、ホストコンピューター2が送信した制御コマンドを受信する(ステップSB1)。
次いで、制御部40は、記憶部43が記憶する設定ファイル431を参照する(ステップSB2)。
As shown in FIG. 5B, the control unit 40 of the printing apparatus 1 controls the communication unit 44 to receive a control command transmitted by the host computer 2 (step SB1).
Next, the control unit 40 refers to the setting file 431 stored in the storage unit 43 (step SB2).

設定ファイル431とは、印刷に関する設定値(例えば、印刷速度に関する設定値や、印刷濃度に関する設定値)や、通信に関する設定値、その他の印刷装置1に関する設定値が記録されたファイルである。制御部40は、設定ファイル431に記録された設定値を反映して、各種処理を実行する。
本実施形態では、設定ファイル431には、印刷に関する設定値として、ロール紙Rの紙幅を示す設定値(以下、「紙幅設定値」という。)が記録される。
The setting file 431 is a file in which setting values relating to printing (for example, setting values relating to printing speed and setting values relating to print density), setting values relating to communication, and other setting values relating to the printing apparatus 1 are recorded. The control unit 40 reflects the setting value recorded in the setting file 431 and executes various processes.
In the present embodiment, a setting value indicating the paper width of the roll paper R (hereinafter referred to as “paper width setting value”) is recorded in the setting file 431 as a setting value relating to printing.

次いで、制御部40は、ステップSB1で受信した制御コマンドに基づいて、設定ファイル431に記録された設定値を反映して、印刷部41を制御して、ロール紙Rに画像を印刷する。
特に、制御部40は、印刷部41の制御に際し、設定ファイル431に記録された紙幅設定値に基づいて、以下の処理を実行する。
すなわち、制御部40は、紙幅設定値が58mmを示す値の場合、80mmを示す値の場合と比較して、ロール紙Rを搬送するときに、プラテンローラー23を回転させる搬送モーターのトルクを高くする。これは、以下の理由による。すなわち、ロール紙Rの紙幅が58mmの場合、80mmの場合と比較して、プラテンローラー23とサーマルヘッド24との間でロール紙Rが介在する部分が小さく、プラテンローラー23とサーマルヘッド24とが直接接触する部分が大きい。このため、ロール紙Rの紙幅が58mmの場合、80mmの場合と比較して、プラテンローラー23の回転時にプラテンローラー23に発生する摩擦力が大きくなるからである。
このように、本実施形態に係る印刷装置1の制御部40は、紙幅設定値が58mmを示す値の場合、80mmを示す値の場合と比較して、ロール紙Rを搬送するときに、プラテンローラー23を回転させる搬送モーターのトルクを高くする。このような構成のため、紙幅設定値が示す紙幅が80mmである一方、実際に印刷装置1に収容されたロール紙Rの紙幅が58mmである場合、以下の事態が生じる可能性がある。すなわち、ロール紙Rを所定の速度で搬送するために必要なトルクが得られず、印刷品質が低下する可能性がある。また、搬送モーターにかかる負荷が大きくなり、搬送モーターが脱調する可能性がある。また、搬送モーターの回転を遅くし、印刷速度を遅くしてもよい。
Next, based on the control command received in step SB1, the control unit 40 reflects the setting value recorded in the setting file 431 and controls the printing unit 41 to print an image on the roll paper R.
In particular, the control unit 40 executes the following processing based on the paper width setting value recorded in the setting file 431 when the printing unit 41 is controlled.
That is, when the paper width setting value is 58 mm, the control unit 40 increases the torque of the transport motor that rotates the platen roller 23 when transporting the roll paper R, compared to the value indicating 80 mm. To do. This is due to the following reason. That is, when the paper width of the roll paper R is 58 mm, compared with the case of 80 mm, the portion where the roll paper R is interposed between the platen roller 23 and the thermal head 24 is small, and the platen roller 23 and the thermal head 24 are Large direct contact area. For this reason, when the paper width of the roll paper R is 58 mm, the frictional force generated in the platen roller 23 when the platen roller 23 rotates is larger than in the case of 80 mm.
As described above, the control unit 40 of the printing apparatus 1 according to the present embodiment, when the paper width setting value is a value indicating 58 mm, compares the platen when transporting the roll paper R as compared with the value indicating 80 mm. The torque of the transport motor that rotates the roller 23 is increased. Due to such a configuration, when the paper width indicated by the paper width setting value is 80 mm, and the roll paper R actually accommodated in the printing apparatus 1 has a paper width of 58 mm, the following situation may occur. That is, there is a possibility that the torque necessary for transporting the roll paper R at a predetermined speed cannot be obtained, and the print quality is deteriorated. In addition, the load applied to the transport motor increases, and the transport motor may step out. Further, the rotation of the transport motor may be slowed to slow down the printing speed.

また、制御部40は、文字列を印刷する場合に、紙幅設定値が示す紙幅に応じて、文字列の改行の態様を変更する。以下、詳述する。
記憶部43には、事前に、フォントテーブルが記憶される。フォントテーブルとは、文字ごとにフォントデータ(ビットマップデータや、スケーラブルフォントデータ等)を集合的に記憶するテーブルである。
制御部40は、文字列を印刷する場合、フォントテーブルを参照し、文字列を構成する文字のそれぞれのフォントデータを取得する。ホストコンピューター2が送信する制御コマンドにおいて、文字列は、文字列を構成する各文字の文字コードの組み合わせとして表現されており、制御部40は、文字コードとフォントデータとを対応付けて記憶する情報に基づいて、文字列を構成する文字のそれぞれのフォントデータを取得する。
次いで、制御部40は、バッファーに一行分の文字列のフォントデータを展開する。バッファーへのフォントデータの展開に際し、制御部40は、設定ファイル431に記録された紙幅設定値に応じて、バッファーに展開可能なフォントデータの数を調整する。説明の便宜を考慮して単純化して説明すると、例えば、58mmのロール紙Rには一行あたり10文字の文字(桁数)を印刷可能であり、80mmのロール紙Rには一行あたり15文字の文字(桁数)を印刷可能であるとする。この場合、制御部40は、設定ファイル431に記録された紙幅設定値が58mmを示す場合は、バッファーに展開可能なフォントデータの数を10個とし、紙幅設定値が80mmを示す場合は、バッファーに展開可能なフォントデータの数を15個とする。そして、例えば、20文字からなる文字列を印刷する場合において、紙幅設定値が58mmを示す場合、制御部40は、10文字分のフォントデータをバッファーに展開した後、バッファーに展開したフォントデータに基づいて、一行に10文字を印刷した後、残りの10文字分のフォントデータをバッファーに展開し、バッファーに展開したフォントデータに基づいて、次の一行に10文字を印刷する。
以上の処理が行われることにより、紙幅に応じた適切な文字列の改行が行われ、改行が行われず文字列が印刷されることに起因した情報の喪失が防止される。
Further, when printing a character string, the control unit 40 changes the line feed mode of the character string according to the paper width indicated by the paper width setting value. Details will be described below.
The storage unit 43 stores a font table in advance. The font table is a table that collectively stores font data (bitmap data, scalable font data, etc.) for each character.
When the character string is printed, the control unit 40 refers to the font table and acquires the font data of each character constituting the character string. In the control command transmitted by the host computer 2, the character string is expressed as a combination of character codes of characters constituting the character string, and the control unit 40 stores the character code and font data in association with each other. Based on the above, the respective font data of the characters constituting the character string are obtained.
Next, the control unit 40 expands font data of a character string for one line in the buffer. When the font data is expanded in the buffer, the control unit 40 adjusts the number of font data that can be expanded in the buffer according to the paper width setting value recorded in the setting file 431. For simplicity, for example, 10 characters (number of digits) per line can be printed on a 58 mm roll paper R, and 15 characters per line can be printed on an 80 mm roll paper R. Assume that characters (number of digits) can be printed. In this case, when the paper width setting value recorded in the setting file 431 indicates 58 mm, the control unit 40 sets the number of font data that can be developed in the buffer to 10 and when the paper width setting value indicates 80 mm, the control unit 40 The number of font data that can be expanded to 15 is assumed to be 15. For example, when printing a character string of 20 characters, when the paper width setting value indicates 58 mm, the control unit 40 expands the font data for 10 characters into the buffer, and then converts the font data into the buffer expanded into the buffer. Based on this, after printing 10 characters on one line, the remaining 10 characters of font data are expanded in a buffer, and 10 characters are printed on the next line based on the font data expanded in the buffer.
By performing the above processing, line feed of an appropriate character string according to the paper width is performed, and loss of information due to printing of the character string without line break is prevented.

このように、本実施形態に係る印刷装置1の制御部40は、文字列を印刷する場合に、紙幅設定値が示す紙幅に応じて、文字列の改行の態様を変更する。このような構成のため、実際に印刷装置1に収容されたロール紙Rの紙幅の値と、設定ファイル431に記録された紙幅設定値が示す紙幅の値とが一致しない場合、以下の事態が生じる可能性がある。すなわち、紙幅設定値が示す紙幅が80mmである一方、実際に印刷装置1に収容されたロール紙Rの紙幅が58mmである場合、紙幅をはみ出して印刷してしまい、必要な改行が行われず情報が消失する可能性がある。また、紙幅設定値が示す紙幅が58mmである一方、実際に印刷装置1に収容されたロール紙Rの紙幅が80mmである場合、余白を残して改行してしまい、不必要な改行が行われて印刷品質が低下する可能性がある。   As described above, when printing a character string, the control unit 40 of the printing apparatus 1 according to the present embodiment changes the line feed mode of the character string according to the paper width indicated by the paper width setting value. Due to such a configuration, when the paper width value of the roll paper R actually stored in the printing apparatus 1 does not match the paper width value indicated by the paper width setting value recorded in the setting file 431, the following situation occurs. It can happen. That is, when the paper width indicated by the paper width setting value is 80 mm and the paper width of the roll paper R actually accommodated in the printing apparatus 1 is 58 mm, printing is performed by protruding the paper width, and the necessary line feed is not performed. May disappear. On the other hand, when the paper width indicated by the paper width setting value is 58 mm and the paper width of the roll paper R actually accommodated in the printing apparatus 1 is 80 mm, a line feed is performed leaving a margin, and an unnecessary line feed is performed. Print quality may be reduced.

なお、設定ファイル431に記録された紙幅設定値のデフォルト値は、80mmを示す値である。従って、後述するように、紙ガイドセンサー46の検出値に基づいて紙幅設定値の変更が行われた場合、制御コマンドによる指示に基づいて紙幅設定値の変更が行われた場合、又は、スイッチの操作による指示に基づいて紙幅設定値の変更が行われた場合を除いて、紙幅設定値は、80mmを示す値である。   Note that the default value of the paper width setting value recorded in the setting file 431 is a value indicating 80 mm. Therefore, as will be described later, when the paper width setting value is changed based on the detection value of the paper guide sensor 46, when the paper width setting value is changed based on an instruction by the control command, or when the switch The paper width setting value is a value indicating 80 mm except when the paper width setting value is changed based on an instruction by operation.

ところで、上述したように、本実施形態に係る印刷装置1には、ロール紙Rとして、58mmロール紙と、80mmロール紙とが収容可能である。
そして、印刷装置1を提供する主体(例えば、印刷装置1を製造し、販売する会社)により、以下の場合、印刷装置1の印刷品質について保障されないことが、事前にユーザーに伝えられる。以下の場合とは、一旦、58mmロール紙に印刷する装置として印刷装置1を使用した後、80mmロール紙に印刷する装置として印刷装置1を使用する場合である。これは、以下の理由による。
すなわち、印刷装置1を、58mmロール紙に印刷する装置として使用した場合、使用に応じて、プラテンローラー23、及び、サーマルヘッド24が経年劣化する。ここで、プラテンローラー23は、搬送方向H1と交わる方向に、80mmロール紙を搬送するのに十分な長さを有するローラーである。従って、プラテンローラー23には、58mmロール紙の搬送に際し、58mmロール紙が接触する部分と、接触しない部分があり、各部分の時間の経過に応じた経年劣化の度合いが異なる。また、サーマルヘッド24は、搬送方向H1と交わる方向に、80mmロール紙にドットを形成するのに十分な長さで複数の発熱素子が延在する印刷ヘッドである。従って、プラテンローラー23には、58mmロール紙へのドットの形成に際し、使用する部分と、使用しない部分があり、各部分の時間の経過に応じた経年劣化の度合いが異なる。
以上を踏まえ、58mmロール紙に印刷する装置として印刷装置1を使用した後、80mmロール紙に印刷する装置として印刷装置1を使用した場合、プラテンローラー23、及び、サーマルヘッド24の部分的な経年劣化の度合いの相違に起因して、ロール紙Rの搬送の蛇行や、ロール紙Rに形成されるドットの状態の不均一性が生じ、印刷品質が低下する可能性がある。
以上の理由により、58mmロール紙に印刷する装置として印刷装置1を使用した後、80mmロール紙に印刷する装置として印刷装置1を使用する場合、印刷品質が保証されないことが事前にユーザーに通知される。
従って、ユーザーは、印刷装置1を、一旦、58mmロール紙に印刷する装置として使用した場合は、継続して、印刷装置1を58mmロール紙に印刷する装置として使用するものと想定される。
Incidentally, as described above, the printing apparatus 1 according to the present embodiment can accommodate 58 mm roll paper and 80 mm roll paper as the roll paper R.
Then, an entity that provides the printing apparatus 1 (for example, a company that manufactures and sells the printing apparatus 1) informs the user in advance that the printing quality of the printing apparatus 1 is not guaranteed in the following cases. The following case is a case where the printing apparatus 1 is once used as an apparatus for printing on 58 mm roll paper and then the printing apparatus 1 is used as an apparatus for printing on 80 mm roll paper. This is due to the following reason.
That is, when the printing apparatus 1 is used as an apparatus for printing on 58 mm roll paper, the platen roller 23 and the thermal head 24 are deteriorated with age according to use. Here, the platen roller 23 is a roller having a length sufficient to transport 80 mm roll paper in a direction intersecting with the transport direction H1. Accordingly, the platen roller 23 includes a portion that contacts the 58 mm roll paper and a portion that does not contact the 58 mm roll paper, and the degree of aging of each portion varies with time. The thermal head 24 is a print head in which a plurality of heating elements extend in a length sufficient to form dots on 80 mm roll paper in a direction crossing the transport direction H1. Accordingly, the platen roller 23 has a portion that is used and a portion that is not used when forming dots on the 58 mm roll paper, and the degree of aging of each portion varies with time.
Based on the above, when the printing apparatus 1 is used as an apparatus for printing on 58 mm roll paper and then the printing apparatus 1 is used as an apparatus for printing on 80 mm roll paper, the partial aging of the platen roller 23 and the thermal head 24 is performed. Due to the difference in the degree of deterioration, there is a possibility that the meandering of the transport of the roll paper R and the non-uniformity of the state of the dots formed on the roll paper R may occur, resulting in a decrease in print quality.
For the above reasons, when the printing apparatus 1 is used as an apparatus for printing on 58 mm roll paper and then the printing apparatus 1 is used as an apparatus for printing on 80 mm roll paper, the user is notified in advance that the print quality is not guaranteed. The
Therefore, if the user once uses the printing apparatus 1 as an apparatus for printing on 58 mm roll paper, it is assumed that the user continues to use the printing apparatus 1 as an apparatus for printing on 58 mm roll paper.

ここで、上述したように、印刷装置1に58mmロール紙が収容される場合、紙ガイド25が収容部に取り付けられる。そして、紙ガイド25は、ネジや、溶接、接着、その他の手段により収容部20に対して取り外しが困難な態様で固定的に取り付けられるのではなく、係止部に係止させることによって収容部20に取り付けられる。これにより、部品点数の削減、部品点数の削減に伴う製造コストの低減、紙ガイド25の取り付けに係る作業の簡易化等が実現される。一方で、紙ガイド25は、ネジや、溶接、接着、その他の手段により収容部20に対して取り外しが困難な態様で固定的に取り付けられるのではないため、印刷装置1の落下や、印刷装置1への物体の衝突等、印刷装置1に何らかの衝撃があった場合に偶発的に係止爪27の係止溝への係止状態が解除されてしまう場合がある。
本実施形態に係る印刷装置1は、このような場合に生じ得る事態に対応した処理を実行する。以下、このような場合が起こった場合に生じ得る事態と併せて、印刷装置1の動作について説明する。
Here, as described above, when 58 mm roll paper is stored in the printing apparatus 1, the paper guide 25 is attached to the storage unit. The paper guide 25 is not fixedly attached to the storage unit 20 in a manner that is difficult to remove from the storage unit 20 by screws, welding, adhesion, or other means, but is locked by the locking unit. 20 is attached. Thereby, the reduction of the number of parts, the reduction of the manufacturing cost associated with the reduction of the number of parts, the simplification of the work related to the attachment of the paper guide 25, and the like are realized. On the other hand, the paper guide 25 is not fixedly attached to the housing portion 20 in a manner that is difficult to remove from the housing portion 20 by screws, welding, adhesion, or other means. When there is some impact on the printing apparatus 1 such as a collision of an object with 1, the locking state of the locking claw 27 in the locking groove may be accidentally released.
The printing apparatus 1 according to the present embodiment executes processing corresponding to a situation that may occur in such a case. Hereinafter, the operation of the printing apparatus 1 will be described together with situations that may occur when such a case occurs.

図6は、起動する場合、及び、リセット(再起動)を実行する場合に、起動、及び、リセットに伴って印刷装置1が実行する初期処理、及び、印刷装置1が実行する初期処理に応じてホストコンピューター2が実行する処理を説明するフローチャートである。図6(A)は印刷装置1の動作を示し、(B)はホストコンピューター2の動作を示す。
なお、図6(A)のフローチャートは、印刷装置1が行う初期処理の一部の処理を示している。
FIG. 6 shows the initial processing executed by the printing apparatus 1 when starting and resetting (restarting), and the initial processing executed by the printing apparatus 1 according to the starting and resetting. 5 is a flowchart illustrating processing executed by the host computer 2. FIG. 6A shows the operation of the printing apparatus 1, and FIG. 6B shows the operation of the host computer 2.
Note that the flowchart in FIG. 6A illustrates a part of the initial process performed by the printing apparatus 1.

図6(A)に示すように、印刷装置1の制御部40は、電源のオンによる起動の指示、リセットの指示、その他の事象をトリガーとして、起動、又は、リセットを開始する(ステップSC1)。
起動、又は、リセットを開始すると、制御部40は、紙ガイドセンサー46から入力される検出値に基づいて、紙ガイド25の状態(紙ガイド25の取り付けの状態)を検出する(ステップSC2)。
このように、本実施形態では、電源のオンによる印刷装置1の制御部40の起動、又は、電源のオン状態でのリセットスイッチやリセット信号によるリセット(再起動)をトリガーとして、紙ガイド25の状態を検出する。これにより、紙ガイドセンサー46の検出値に基づいて、紙ガイド25の状態を継続して監視する構成と比較して、消費電力を抑制しつつ、効率よく検出を行うことができる。
As shown in FIG. 6A, the control unit 40 of the printing apparatus 1 starts activation or reset by using a power-on instruction, a reset instruction, and other events as triggers (step SC1). .
When starting or resetting is started, the control unit 40 detects the state of the paper guide 25 (attachment state of the paper guide 25) based on the detection value input from the paper guide sensor 46 (step SC2).
As described above, in the present embodiment, activation of the control unit 40 of the printing apparatus 1 when the power is turned on or reset (reactivation) by the reset switch or reset signal when the power is turned on is used as a trigger. Detect state. Thereby, based on the detection value of the paper guide sensor 46, compared with the structure which monitors the state of the paper guide 25 continuously, it can detect efficiently, suppressing power consumption.

次いで、制御部40は、ステップSC2の検出結果に基づいて、紙ガイド25が取り付けられた状態か否かを判別する(ステップSC3)。
紙ガイド25が取り付けられた状態の場合(ステップSC3:YES)、制御部40は、設定ファイル431に記録された紙幅設定値が80mmを示す値のときは、58mmを示す値へと変更し、一方、紙幅設定値が58mmを示す値の場合は、紙幅設定値を変更せず、紙幅設定値が58mmを示す値である状態を維持する(ステップSC4)。その後、制御部40は、処理手順をステップSC6へ移行する。
このステップSC4の処理により、紙ガイド25が収容部20に取り付けられた状態場合、換言すれば、収容部20に58mmロール紙が収容されて、印刷装置1が58mmロール紙に印刷する装置として使用される場合に、印刷装置1に実際に収容されたロール紙Rの紙幅の値と、設定ファイル431に記録された紙幅設定値の値とが相違することがなく、これら値の不一致に起因して、上述した所定の事態が発生することがない。
Next, the control unit 40 determines whether or not the paper guide 25 is attached based on the detection result of step SC2 (step SC3).
When the paper guide 25 is attached (step SC3: YES), when the paper width setting value recorded in the setting file 431 is a value indicating 80 mm, the control unit 40 changes the value to a value indicating 58 mm. On the other hand, if the paper width setting value is a value indicating 58 mm, the paper width setting value is not changed, and the state where the paper width setting value is a value indicating 58 mm is maintained (step SC4). Thereafter, the control unit 40 proceeds to step SC6.
When the paper guide 25 is attached to the storage unit 20 by the process of step SC4, in other words, 58 mm roll paper is stored in the storage unit 20, and the printing apparatus 1 is used as a device for printing on 58mm roll paper. In this case, the value of the paper width of the roll paper R actually accommodated in the printing apparatus 1 and the value of the paper width setting value recorded in the setting file 431 are not different, and are caused by a mismatch between these values. Thus, the predetermined situation described above does not occur.

一方、紙ガイド25が取り付けられた状態ではない場合(ステップSC3:NO)、制御部40は、設定ファイル431に記録された紙幅設定値の値にかかわらず、紙幅設定値を変更しない(ステップSC5)。従って、紙幅設定値が58mmを示す値の場合、この状態が維持される。その後、制御部40は、処理手順をステップSC6へ移行する。
このステップSC5の処理が行われる理由は、以下である。
すなわち、上述したように、紙幅設定値のデフォルト値は、80mmを示す値である。従って、紙幅設定値が58mmを示す値であるということは、ステップSC4の処理が過去に行われて紙ガイドセンサー46の検出値に基づいて紙幅設定値の変更が行われたか、又は、後述するように、制御コマンドによる指示又はスイッチの操作による指示に基づいて紙幅設定値の変更が行われたということである。そして、上述したように、印刷装置1について、58mmロール紙を使用した状態から、80mmロール紙を使用する状態へと変更した場合、印刷品質の保証がされないことから、印刷装置1は、一旦、58mmロール紙に印刷する装置として使用された場合は、継続して、58mmロール紙に印刷する装置として使用される。
以上を踏まえると、紙ガイド25が取り付けられておらず、かつ、紙幅設定値が58mmを示す値の状態の場合、印刷装置1の落下や、印刷装置1への物体の衝突等、印刷装置1に何らかの衝撃があり偶発的に係止爪27の係止溝への係止状態が解除された状態のときに、カバー18が開状態のまま起動、又は、リセットが開始されたと想定される。
この場合、印刷装置1は、引き続き、58mmロール紙に印刷する装置として使用されるため、印刷の処理が開始される前に、ユーザーにより紙ガイド25が収容部20に取り付けられ、又は、カバー18の開状態から閉状態への移行に伴って紙ガイド25が収容部20に取り付けられる。
以上の理由により、ステップSC5において、制御部40は、紙ガイド25が取り付けられた状態ではない場合であっても、設定ファイル431に記録された紙幅設定値の値にかかわらず、紙幅設定値を変更しない。つまり、制御部40は、紙ガイド25が取り付けられた状態ではない場合、紙幅設定値が58mmを示す値の場合であっても、紙幅設定値を変更しない。これにより、印刷装置1に実際に収容されたロール紙Rの紙幅の値と、設定ファイル431に記録された紙幅設定値の値とが相違することを抑制でき、これら値の不一致に起因して上述した所定の事態が発生することを抑制できる。
On the other hand, when the paper guide 25 is not attached (step SC3: NO), the control unit 40 does not change the paper width setting value regardless of the paper width setting value recorded in the setting file 431 (step SC5). ). Therefore, this state is maintained when the paper width setting value is 58 mm. Thereafter, the control unit 40 proceeds to step SC6.
The reason why the process of step SC5 is performed is as follows.
That is, as described above, the default value of the paper width setting value is a value indicating 80 mm. Therefore, the paper width setting value being a value indicating 58 mm means that the process of step SC4 was performed in the past and the paper width setting value was changed based on the detection value of the paper guide sensor 46, or will be described later. As described above, the paper width setting value is changed based on the instruction by the control command or the instruction by the operation of the switch. As described above, when the printing apparatus 1 is changed from a state using 58 mm roll paper to a state using 80 mm roll paper, the printing quality is not guaranteed. When used as a device for printing on 58 mm roll paper, it is continuously used as a device for printing on 58 mm roll paper.
In consideration of the above, when the paper guide 25 is not attached and the paper width setting value is a value indicating 58 mm, the printing apparatus 1 such as a drop of the printing apparatus 1 or an object collision with the printing apparatus 1 may be used. It is assumed that the cover 18 is activated or reset is started while the cover 18 is in the open state when there is some impact and the lock state of the lock claw 27 in the lock groove is released.
In this case, since the printing apparatus 1 is continuously used as an apparatus for printing on 58 mm roll paper, the paper guide 25 is attached to the storage unit 20 by the user or the cover 18 before the printing process is started. With the transition from the open state to the closed state, the paper guide 25 is attached to the storage unit 20.
For the reasons described above, in step SC5, the control unit 40 sets the paper width setting value regardless of the value of the paper width setting value recorded in the setting file 431 even when the paper guide 25 is not attached. Not going to change. That is, when the paper guide 25 is not attached, the control unit 40 does not change the paper width setting value even if the paper width setting value is a value indicating 58 mm. Thereby, it is possible to suppress the difference between the paper width value of the roll paper R actually accommodated in the printing apparatus 1 and the value of the paper width setting value recorded in the setting file 431, which is caused by a mismatch between these values. Occurrence of the predetermined situation described above can be suppressed.

ステップSC6において、制御部40は、通信部44を制御して、起動、又は、リセットを行ったことを通知するデータを、ホストコンピューター2に送信する。   In step SC <b> 6, the control unit 40 controls the communication unit 44 to transmit data notifying that activation or reset has been performed to the host computer 2.

図6(B)に示すように、ホストコンピューター2のホスト制御部50は、ホスト通信部54を制御して、ステップSC6で印刷装置1が送信したデータを受信する(ステップSD1)。
次いで、ホスト制御部50は、ステップSD1で受信したデータに基づいて、印刷装置1が起動、又は、リセットを実行したことを認識し、ホスト通信部54を制御して、印刷装置1の設定ファイル431に記録された紙幅設定値(変更後の設定値)の応答を要求するデータを印刷装置1に送信する(ステップSD2)。
As shown in FIG. 6B, the host control unit 50 of the host computer 2 controls the host communication unit 54 to receive the data transmitted by the printing apparatus 1 in step SC6 (step SD1).
Next, the host control unit 50 recognizes that the printing apparatus 1 has been activated or reset based on the data received in step SD1, and controls the host communication unit 54 to set the setting file of the printing apparatus 1. Data for requesting a response to the paper width setting value (set value after change) recorded in 431 is transmitted to the printing apparatus 1 (step SD2).

図6(A)に示すように、印刷装置1の制御部40は、通信部44を制御して、ステップSD2でホストコンピューター2が送信したデータを受信する(ステップSC7)。
次いで、制御部40は、ステップSC7で受信したデータに基づいて、設定ファイル431を参照して紙幅設定値を取得し、通信部44を制御して、取得した紙幅設定値を含むデータをホストコンピューター2に送信する(ステップSC8)。
As shown in FIG. 6A, the control unit 40 of the printing apparatus 1 controls the communication unit 44 to receive the data transmitted by the host computer 2 in step SD2 (step SC7).
Next, the control unit 40 acquires the paper width setting value with reference to the setting file 431 based on the data received in step SC7, and controls the communication unit 44 to transmit the data including the acquired paper width setting value to the host computer. 2 (step SC8).

図6(B)に示すように、ホストコンピューター2のホスト制御部50は、ホスト通信部54を制御して、ステップSC8で印刷装置1が送信したデータを受信し、受信したデータに含まれる紙幅設定値を所定の記憶領域に記憶する(ステップSD3)。   As shown in FIG. 6B, the host control unit 50 of the host computer 2 controls the host communication unit 54 to receive the data transmitted by the printing apparatus 1 in step SC8, and the paper width included in the received data. The set value is stored in a predetermined storage area (step SD3).

以上のような処理が行われることにより、印刷装置1の設定ファイル431に記録された紙幅設定値の値と、ホストコンピューター2の所定の記憶領域に記憶された紙幅設定値の値とが一致した状態となる。
以後、ホスト制御部50は、制御コマンドを生成する際、所定の記憶領域に記憶した紙幅設定値が示す紙幅に対応する制御コマンドを生成する。例えば、ホスト制御部50は、印刷装置1に送信する制御コマンドに画像データが含まれる場合、必要に応じて、画像データに対して紙幅に応じた加工を行う。
By performing the processing as described above, the value of the paper width setting value recorded in the setting file 431 of the printing apparatus 1 matches the value of the paper width setting value stored in the predetermined storage area of the host computer 2. It becomes a state.
Thereafter, when the control command is generated, the host control unit 50 generates a control command corresponding to the paper width indicated by the paper width setting value stored in the predetermined storage area. For example, when image data is included in the control command transmitted to the printing apparatus 1, the host control unit 50 processes the image data according to the paper width as necessary.

次に、電源のオン時に、印刷装置1が行う処理について説明する。
図7は、電源のオン時における印刷装置1の動作を示すフローチャートである。
図7に示すように、印刷装置1の制御部40は、カバーセンサー47から入力された検出値に基づいて、カバー18が開状態から閉状態へと移行したか否かを監視する(ステップSE1)。
カバー18が開状態から閉状態へと移行したことを検出した場合(ステップSE1:YES)、制御部40は、紙ガイドセンサー46から入力された検出値に基づいて、紙ガイド25の状態を検出する(ステップSE2)。
次いで、制御部40は、ステップSE2の検出結果に基づいて、紙ガイド25が取り付けられた状態か否かを判別する(ステップSE3)。
Next, processing performed by the printing apparatus 1 when the power is turned on will be described.
FIG. 7 is a flowchart showing the operation of the printing apparatus 1 when the power is turned on.
As shown in FIG. 7, the control unit 40 of the printing apparatus 1 monitors whether or not the cover 18 has shifted from the open state to the closed state based on the detection value input from the cover sensor 47 (step SE1). ).
When it is detected that the cover 18 has shifted from the open state to the closed state (step SE1: YES), the control unit 40 detects the state of the paper guide 25 based on the detection value input from the paper guide sensor 46. (Step SE2).
Next, the control unit 40 determines whether or not the paper guide 25 is attached based on the detection result of step SE2 (step SE3).

紙ガイド25が取り付けられた状態ではない場合(ステップSE3:NO)、制御部40は、処理手順をステップSE1へ戻す。カバー18が閉状態であって、紙ガイド25が取り付けられた状態ではない場合、紙ガイド25の係止が偶発的に解除された状態ではない。なぜなら、この場合、上述したように、カバー18の開状態から閉状態への移行に伴って、紙ガイド25が自動で係止部に係止するからである。従って、カバー18が閉状態であって、紙ガイド25が取り付けられた状態ではない場合、ユーザーが意図的に紙ガイド25を取り付けず、かつ、ユーザーは紙ガイド25が取り付けられてないことを認識している。従って、カバー18が閉状態となったときに、紙ガイド25が取り付けられた状態ではない場合は、印刷装置1が、80mmロール紙に印刷する装置として継続して使用されており、設定ファイル431に記録された紙幅設定値は80mmを示す値であると想定される。
以上を踏まえ、ステップSE3において、紙ガイド25が取り付けられた状態と判別した場合、リセットを実行することなく、処理手順をステップSE1へ移行する。
When the paper guide 25 is not attached (step SE3: NO), the control unit 40 returns the processing procedure to step SE1. When the cover 18 is closed and the paper guide 25 is not attached, the paper guide 25 is not accidentally released. This is because in this case, as described above, the paper guide 25 is automatically locked to the locking portion as the cover 18 shifts from the open state to the closed state. Therefore, when the cover 18 is in the closed state and the paper guide 25 is not attached, the user deliberately does not attach the paper guide 25 and the user recognizes that the paper guide 25 is not attached. doing. Therefore, if the paper guide 25 is not attached when the cover 18 is closed, the printing apparatus 1 is continuously used as an apparatus for printing on 80 mm roll paper, and the setting file 431 is used. The paper width setting value recorded in is assumed to be a value indicating 80 mm.
Based on the above, when it is determined in step SE3 that the paper guide 25 is attached, the processing procedure is shifted to step SE1 without executing reset.

ステップSE3において紙ガイド25が取り付けられた状態であると判別した場合(ステップSE3:YES)、制御部40は、設定ファイル431を参照し、設定ファイル431に記録された紙幅設定値が80mmを示す値であるか否かを判別する(ステップSE4)。
設定ファイル431に記録された紙幅設定値が80mmを示す値でない場合(ステップSE4:NO)、換言すれば、設定ファイル431に記録された紙幅設定値が58mmを示す値の場合、制御部40は、処理手順をステップSE1へ移行する。これは、実際に収容部20に収容されるロール紙の紙幅の値と、設定ファイル431に記録された紙幅設定値の値とが一致するからである。
When it is determined in step SE3 that the paper guide 25 is attached (step SE3: YES), the control unit 40 refers to the setting file 431, and the paper width setting value recorded in the setting file 431 indicates 80 mm. Whether it is a value or not is discriminated (step SE4).
When the paper width setting value recorded in the setting file 431 is not a value indicating 80 mm (step SE4: NO), in other words, when the paper width setting value recorded in the setting file 431 is a value indicating 58 mm, the control unit 40 Then, the process proceeds to step SE1. This is because the paper width value of the roll paper actually stored in the storage unit 20 matches the paper width setting value recorded in the setting file 431.

一方、設定ファイル431に記録された紙幅設定値が80mmを示す値の場合(ステップSE4:YES)、制御部40は、リセットを実行する(ステップSE5)。ステップSE5でリセットが実行されると、リセットに伴って、図6(A)のフローチャートで示す初期処理が行われる。この初期処理において、制御部40は、ステップSC4の処理により、紙幅設定値を、58mmを示す値へと変更する。これにより、実際に収容部20に収容されるロール紙の紙幅の値と、設定ファイル431に記録された紙幅設定値の値とが一致した状態となる。さらに、制御部40は、ステップSC8の処理により、変更後の紙幅設定値をホストコンピューター2に通知する。これにより、印刷装置1の設定ファイル431に記録された紙幅設定値の値と、ホストコンピューター2の所定の記憶領域に記憶された紙幅設定値の値とが一致した状態となる。   On the other hand, when the paper width setting value recorded in the setting file 431 is a value indicating 80 mm (step SE4: YES), the control unit 40 executes reset (step SE5). When reset is executed in step SE5, initial processing shown in the flowchart of FIG. 6A is performed along with the reset. In this initial process, the control unit 40 changes the paper width setting value to a value indicating 58 mm by the process of step SC4. As a result, the paper width value of the roll paper actually stored in the storage unit 20 and the paper width setting value recorded in the setting file 431 coincide with each other. Further, the control unit 40 notifies the host computer 2 of the changed paper width setting value through the process of step SC8. As a result, the paper width setting value recorded in the setting file 431 of the printing apparatus 1 matches the paper width setting value stored in the predetermined storage area of the host computer 2.

このように、制御部40は、紙ガイドセンサー46の検出値に基づいて紙ガイド25が取り付けられた状態であると判別し、かつ、設定ファイル431に記録された紙幅設定値の値が80mmを示す値である場合に、リセットを実行し、リセットに伴って行われる初期処理で、紙幅設定値の書き換え、及び、紙幅設定値のホストコンピューター2への通知を実行する。
ここで、紙ガイド25が取り付けられた状態であり、かつ、設定ファイル431に記録された紙幅設定値の値が80mmを示す値である場合は、実際に収容部20に収容されるロール紙Rの紙幅の値と、紙幅設定値の値との不一致を解消するため、紙幅設定値の書き換え、及び、紙幅設定値のホストコンピューター2への通知を実行する必要がある。一方、カバー18の閉状態時に紙ガイド25が取り付けられてない状態の場合、又は、紙ガイド25が取り付けられた状態であると共に紙幅設定値の値が58mmを示す状態の場合は、実際に収容部20に収容されるロール紙Rの紙幅の値と、紙幅設定値の値とが一致しているため、紙幅設定値の書き換え、及び、紙幅設定値のホストコンピューター2への通知を実行する必要がない。
そして、制御部40は、紙ガイドセンサー46の検出値に基づいて紙ガイド25が取り付けられた状態であると判別し、かつ、設定ファイル431に記録された紙幅設定値の値が80mmを示す値である場合に、リセットを実行するため、不必要にリセットが実行されることを防止でき、リセット中の印刷装置1を使用できない期間が発生することを抑制でき、ユーザーの利便性、満足度を向上できる。
As described above, the control unit 40 determines that the paper guide 25 is attached based on the detection value of the paper guide sensor 46, and the value of the paper width setting value recorded in the setting file 431 is 80 mm. If the value is the value shown, reset is executed, and the paper width setting value is rewritten and notification of the paper width setting value to the host computer 2 is executed in the initial processing that is performed along with the reset.
Here, when the paper guide 25 is attached and the value of the paper width setting value recorded in the setting file 431 is a value indicating 80 mm, the roll paper R actually stored in the storage unit 20 is stored. In order to eliminate the discrepancy between the paper width value and the paper width setting value, it is necessary to rewrite the paper width setting value and notify the host computer 2 of the paper width setting value. On the other hand, if the paper guide 25 is not attached when the cover 18 is closed, or if the paper guide 25 is attached and the paper width setting value indicates 58 mm, the paper is actually accommodated. Since the paper width value of the roll paper R accommodated in the unit 20 matches the paper width setting value, it is necessary to rewrite the paper width setting value and notify the host computer 2 of the paper width setting value. There is no.
Then, the control unit 40 determines that the paper guide 25 is attached based on the detection value of the paper guide sensor 46, and the value of the paper width setting value recorded in the setting file 431 indicates 80 mm. In this case, since the reset is executed, it is possible to prevent the reset from being performed unnecessarily, and to prevent a period during which the printing apparatus 1 being reset cannot be used, thereby improving user convenience and satisfaction. Can be improved.

ここで、設定ファイル431に記録された紙幅設定値について、ユーザーは、以下の手段で変更することができる。
すなわち、ユーザーは、所定の手段でメモリースイッチ(ソフトウェアスイッチ)の操作による指示によって、設定ファイル431に記録された紙幅設定値の値を変更できる。所定の手段とは、例えば、印刷装置1のメンテナンス用のソフトウェアツールがインストールされた端末が提供する所定のユーザーインターフェースへの入力である。
また、ユーザーは、制御基板に実装された専用のディップスイッチ(ハードウェアスイッチ)の操作による指示によって、設定ファイル431に記録された紙幅設定値の値を変更できる。
また、ユーザーは、印刷装置1に接続された外部装置から専用の制御コマンドを印刷装置1に送信することによって(制御コマンドによる指示によって)、設定ファイル431に記録された紙幅設定値の値を変更できる。外部装置は、ホストコンピューター2でもよく、印刷装置1のメンテナンス用のソフトウェアツールがインストールされた端末等のホストコンピューター2以外の装置でもよい。
このように、ユーザーは、意図的に、設定ファイル431に記録された紙幅設定値の値を変更できる。このため、58mmロール紙に印刷する装置として印刷装置1を使用した場合に、所定の事情により、印刷装置1を80mmロール紙に印刷する装置として使用することとなった場合であっても、ユーザーは、設定ファイル431に記録された紙幅設定値の値を変更して、印刷装置1に実際に収容されるロール紙の紙幅の値と、設定ファイル431に記録された紙幅設定値の値との不一致が発生することを防止できる。
Here, the user can change the paper width setting value recorded in the setting file 431 by the following means.
That is, the user can change the value of the paper width setting value recorded in the setting file 431 by an instruction by operating a memory switch (software switch) with a predetermined means. The predetermined means is, for example, an input to a predetermined user interface provided by a terminal in which a software tool for maintenance of the printing apparatus 1 is installed.
Further, the user can change the value of the paper width setting value recorded in the setting file 431 by an instruction by operating a dedicated dip switch (hardware switch) mounted on the control board.
In addition, the user changes the value of the paper width setting value recorded in the setting file 431 by transmitting a dedicated control command to the printing apparatus 1 from an external device connected to the printing apparatus 1 (in response to an instruction by the control command). it can. The external apparatus may be the host computer 2 or an apparatus other than the host computer 2 such as a terminal in which a software tool for maintenance of the printing apparatus 1 is installed.
Thus, the user can intentionally change the value of the paper width setting value recorded in the setting file 431. Therefore, when the printing apparatus 1 is used as an apparatus for printing on 58 mm roll paper, even if the printing apparatus 1 is used as an apparatus for printing on 80 mm roll paper due to predetermined circumstances, Changes the value of the paper width setting value recorded in the setting file 431, and sets the value of the paper width of the roll paper actually stored in the printing apparatus 1 and the value of the paper width setting value recorded in the setting file 431. It is possible to prevent a mismatch.

以上説明したように、本実施形態に係る印刷装置1は、ロール紙Rに印刷する印刷部41と、ロール紙Rを収容する収容部20と、収容部20に収容されるロール紙Rの紙幅に応じて、取り付けの有無が変化して、ロール紙Rの収容部20における位置を規制する紙ガイド25と、紙ガイド25の状態に応じて異なる検出値を出力する紙ガイドセンサー46(センサー)と、ロール紙Rの紙幅を示す紙幅設定値(設定値)を記憶する記憶部43と、記憶部43が記憶する紙幅設定値に基づいて印刷部41に印刷させる制御部40と、を備える。そして、制御部40は、起動、又は、リセット(再起動)をトリガーとして紙ガイドセンサー46の検出値に基づいて紙ガイド25の状態を検出し、紙ガイド25が収容部20に取り付けられた状態(第1の紙幅のロール紙Rに対応する状態)の場合であって、紙幅設定値が80mm(第2の紙幅)を示す値(第1の紙幅以外の紙幅を示す値)の場合、紙幅設定値を58mmを示す値へと変更する一方、紙ガイド25が収容部20に取り付けられていない状態(第1の紙幅以外の紙幅のロール紙Rに対応する状態)の場合、紙幅設定値の値にかかわらず設定値を変更しない。
また、一旦、紙幅設定値を58mmを示す値へと変更した後、起動、又は、リセット(再起動)したときに、仮に紙ガイドセンサー46の検出値に基づいて紙ガイド25の状態を検出して、紙ガイド25が収容部20に取り付けられていない状態、又は他の紙幅として取り付けられている状態(所定の紙幅以外の紙幅のロール紙Rに対応する状態)の場合であっても紙幅設定値の値を変えない。
この構成によれば、紙ガイド25が取り付けられた状態の場合に、収容部20に実際に収容されるロール紙Rの紙幅の値と、紙幅設定値の値とに不一致が生じることを防止できる。また、紙ガイド25の係止部への係止状態が偶発的に解除された状態であり、印刷が開始される前に、紙ガイド25が取り付けられた状態となるにもかかわらず、紙幅設定値が80mmを示す値へと変更され、これに起因して収容部20に実際に収容されるロール紙Rの紙幅の値と、紙幅設定値の値とに不一致が生じることを防止できる。これにより、紙幅設定値が示す紙幅の値と、印刷装置1に収容されるロール紙Rの紙幅の値との不一致に起因して悪影響が生じることを抑制できる。
As described above, the printing apparatus 1 according to this embodiment includes the printing unit 41 that prints on the roll paper R, the storage unit 20 that stores the roll paper R, and the paper width of the roll paper R that is stored in the storage unit 20. Accordingly, the presence or absence of attachment changes, and a paper guide 25 that regulates the position of the roll paper R in the storage unit 20 and a paper guide sensor 46 (sensor) that outputs different detection values depending on the state of the paper guide 25. A storage unit 43 that stores a paper width setting value (setting value) indicating the paper width of the roll paper R, and a control unit 40 that causes the printing unit 41 to print based on the paper width setting value stored in the storage unit 43. The control unit 40 detects the state of the paper guide 25 based on the detection value of the paper guide sensor 46 using activation or reset (reactivation) as a trigger, and the paper guide 25 is attached to the storage unit 20. In the case of (a state corresponding to the roll paper R having the first paper width), when the paper width setting value is a value indicating 80 mm (second paper width) (a value indicating a paper width other than the first paper width), the paper width While the setting value is changed to a value indicating 58 mm, when the paper guide 25 is not attached to the storage unit 20 (a state corresponding to the roll paper R having a paper width other than the first paper width), the paper width setting value The set value is not changed regardless of the value.
Further, when the paper width setting value is once changed to a value indicating 58 mm and then activated or reset (reactivated), the state of the paper guide 25 is temporarily detected based on the detection value of the paper guide sensor 46. Thus, even when the paper guide 25 is not attached to the storage unit 20 or is attached as another paper width (a state corresponding to the roll paper R having a paper width other than the predetermined paper width), the paper width is set. Do not change the value.
According to this configuration, when the paper guide 25 is attached, it is possible to prevent a mismatch between the value of the paper width of the roll paper R actually stored in the storage unit 20 and the value of the paper width setting value. . In addition, the paper guide 25 is in a state in which the paper guide 25 is in the locked state accidentally released and the paper guide 25 is attached before the printing is started. Since the value is changed to a value indicating 80 mm, it is possible to prevent a mismatch between the value of the paper width of the roll paper R actually stored in the storage unit 20 and the value of the paper width setting value. Thereby, it is possible to suppress an adverse effect caused by a mismatch between the paper width value indicated by the paper width setting value and the paper width value of the roll paper R accommodated in the printing apparatus 1.

また、本実施形態では、外部装置が送信する制御コマンドによる指示、又は、ソフトウェアスイッチ又はハードウェアスイッチの操作による指示によって、記憶部43が記憶する紙幅設定値を変更可能である。
この構成によれば、58mmロール紙に印刷する装置として印刷装置1を使用した場合に、所定の事情により、印刷装置1を80mmロール紙に印刷する装置として使用することとなった場合であっても、ユーザーは、設定ファイル431に記録された紙幅設定値の値を変更して、印刷装置1に実際に収容されるロール紙の紙幅の値と、設定ファイル431に記録された紙幅設定値の値との不一致が発生することを防止できる。
Further, in the present embodiment, the paper width setting value stored in the storage unit 43 can be changed by an instruction by a control command transmitted by an external device or an instruction by an operation of a software switch or a hardware switch.
According to this configuration, when the printing apparatus 1 is used as an apparatus for printing on 58 mm roll paper, the printing apparatus 1 is used as an apparatus for printing on 80 mm roll paper due to predetermined circumstances. In addition, the user changes the value of the paper width setting value recorded in the setting file 431, and sets the value of the paper width of the roll paper actually stored in the printing apparatus 1 and the paper width setting value recorded in the setting file 431. It is possible to prevent a mismatch with the value.

また、本実施形態に係る印刷装置1は、サーマルヘッド24と、プラテンローラー23とによって前記記録媒体を挟持してロール紙Rを搬送する搬送部42を備える。そして、制御部40は、紙幅設定値が示す紙幅が小さいほど、プラテンローラー23を駆動するモーターを高トルクとする。
この構成によれば、紙幅設定値が示す紙幅の値と、印刷装置1に収容されるロール紙Rの紙幅の値との不一致に起因して、紙幅設定値が示す紙幅が小さいほど、プラテンローラー23を駆動するモーターを高トルクとすることにより生じる悪影響を抑制できる。
Further, the printing apparatus 1 according to the present embodiment includes a transport unit 42 that transports the roll paper R while sandwiching the recording medium by the thermal head 24 and the platen roller 23. And the control part 40 makes the motor which drives the platen roller 23 high torque, so that the paper width which a paper width setting value shows is small.
According to this configuration, the platen roller becomes smaller as the paper width indicated by the paper width setting value is smaller due to the mismatch between the paper width value indicated by the paper width setting value and the paper width value of the roll paper R accommodated in the printing apparatus 1. The bad influence which arises by making the motor which drives 23 into high torque can be controlled.

また、本実施形態では、制御部40は、印刷部41に文字列を印刷させる場合、紙幅設定値が示す紙幅に応じて、文字列の改行の態様を変更する。
この構成によれば、紙幅設定値が示す紙幅の値と、印刷装置1に収容されるロール紙Rの紙幅の値との不一致に起因して、紙幅設定値が示す紙幅に応じて、1行の文字の桁数の態様を変更することより生じる悪影響を抑制できる。
Further, in the present embodiment, when the control unit 40 causes the printing unit 41 to print a character string, the control unit 40 changes the line feed mode of the character string according to the paper width indicated by the paper width setting value.
According to this configuration, one line according to the paper width indicated by the paper width setting value due to the mismatch between the paper width value indicated by the paper width setting value and the paper width value of the roll paper R accommodated in the printing apparatus 1. It is possible to suppress adverse effects caused by changing the number of digits of the characters.

また以上説明したように、本実施形態に係る印刷装置1は、カバー18の開閉状態に応じて異なる検出値を出力するカバーセンサー47と、ホストコンピューター2(外部装置)と通信する通信部44と、を備える。そして、制御部40は、カバーセンサー47の検出値に基づいてカバー18が開状態から閉状態へと移行したことを検出した場合、紙ガイドセンサー46の検出値に基づいて紙ガイド25の状態を検出し、紙ガイド25が取り付けられた状態(第1の紙幅のロール紙Rに対応する状態)の場合であって、紙幅設定値が80mmを示す値(第1の紙幅以外の紙幅を示す値)の場合、紙幅設定値を、58mmを示す値へと変更する処理、及び、変更後の紙幅設定値をホストコンピューター2に通知する処理を実行する。
この構成によれば、紙ガイド25が取り付けられた状態の場合に、収容部20に実際に収容されるロール紙Rの紙幅の値と、紙幅設定値の値とに不一致が生じることを防止できる。さらに、変更後の紙幅設定値がホストコンピューター2に通知されるため、紙幅設定値の値と、ホストコンピューター2が管理する紙幅設定値の値とに不一致が生じることを防止できR。すなわち、紙幅設定値がしめす紙幅の値と、ホストコンピューター2が管理する紙幅の値とが一致せず、また、紙幅設定値が示す紙幅の値と、印刷装置1に実際に収容されるロール紙Rの紙幅の値とが一致しないことに起因して悪影響が生じることを抑制できる。
As described above, the printing apparatus 1 according to the present embodiment includes the cover sensor 47 that outputs different detection values according to the open / closed state of the cover 18, and the communication unit 44 that communicates with the host computer 2 (external device). . When the control unit 40 detects that the cover 18 has shifted from the open state to the closed state based on the detection value of the cover sensor 47, the control unit 40 changes the state of the paper guide 25 based on the detection value of the paper guide sensor 46. Detected and in a state where the paper guide 25 is attached (a state corresponding to the roll paper R having the first paper width), a value indicating that the paper width setting value is 80 mm (a value indicating a paper width other than the first paper width) ), A process of changing the paper width setting value to a value indicating 58 mm, and a process of notifying the host computer 2 of the changed paper width setting value are executed.
According to this configuration, when the paper guide 25 is attached, it is possible to prevent a mismatch between the value of the paper width of the roll paper R actually stored in the storage unit 20 and the value of the paper width setting value. . Further, since the paper width setting value after the change is notified to the host computer 2, it is possible to prevent a mismatch between the paper width setting value and the paper width setting value managed by the host computer 2. In other words, the paper width value indicated by the paper width setting value and the paper width value managed by the host computer 2 do not match, and the paper width value indicated by the paper width setting value and the roll paper actually accommodated in the printing apparatus 1 It is possible to suppress an adverse effect caused by a mismatch between the R paper width value.

また、本実施形態では、制御部40は、紙ガイド25が取り付けられた状態であって、紙幅設定値が80mmを示す値の場合、リセットを実行し、リセットに伴って行われる初期処理で、紙幅設定値を、58mmを示す値へと変更する処理、及び、変更後の紙幅設定値をホストコンピューター2に通知する処理を実行する。
この構成によれば、リセットに伴って行われる初期処理に、紙幅設定値をホストコンピューター2に通知する処理が含まれることを利用して、効率的に、紙幅設定値をホストコンピューター2に通知できる。
In the present embodiment, the control unit 40 performs a reset when the paper guide 25 is attached and the paper width setting value is a value indicating 80 mm, and is an initial process performed along with the reset. Processing to change the paper width setting value to a value indicating 58 mm and processing to notify the host computer 2 of the changed paper width setting value are executed.
According to this configuration, it is possible to efficiently notify the host computer 2 of the paper width setting value by using the fact that the initial process performed in association with the reset includes the process of notifying the host computer 2 of the paper width setting value. .

また、本実施形態では、制御部40は、初期処理において、リセットが行われたことをホストコンピューター2に通知し、当該通知に応じてホストコンピューター2から受信する問い合わせに応じて、紙幅設定値をホストコンピューター2に通知する。
この構成によれば、印刷装置1は、ホストコンピューター2に確実に紙幅設定値を通知できる。
In the present embodiment, the control unit 40 notifies the host computer 2 that the reset has been performed in the initial processing, and sets the paper width setting value in response to an inquiry received from the host computer 2 in response to the notification. Notify the host computer 2.
According to this configuration, the printing apparatus 1 can reliably notify the host computer 2 of the paper width setting value.

また、本実施形態では、紙ガイド25は、収容部20に設けられた係止部に係止した場合に、紙ガイドセンサー46が出力する検出値を変化させる。そして、紙ガイド25が係止部に係止せずに、収容部20に設けられている状態の場合に、カバー18が開状態から閉状態へ移行した場合、カバー18の状態の移行に応じて、紙ガイド25が係止部に係止する。
この構成によれば、カバー18を閉状態へと移行することによって、紙ガイド25を収容部20に係止できると共に、カバー18が閉状態とされたときに、実際に収容されるロール紙Rの紙幅の値と、紙幅設定値の値との不一致が生じている場合は、当該不一致を解消できる。
In the present embodiment, the paper guide 25 changes the detection value output from the paper guide sensor 46 when the paper guide 25 is locked to a locking portion provided in the storage unit 20. When the cover 18 is shifted from the open state to the closed state in a state where the paper guide 25 is not locked to the locking portion and is provided in the housing portion 20, the state of the cover 18 is changed. The paper guide 25 is locked to the locking portion.
According to this configuration, the paper guide 25 can be locked to the storage unit 20 by shifting the cover 18 to the closed state, and the roll paper R that is actually stored when the cover 18 is closed. If there is a discrepancy between the paper width value and the paper width setting value, the discrepancy can be resolved.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、紙ガイド25は、取り付けられた状態と、取り付けられてない状態とで、異なる紙幅のロール紙Rの位置を規制していた。しかしながら、紙ガイド25は、その位置が変更されることによって、異なる紙幅のロール紙Rの位置を規制する構成でもよい。
また、上述した実施形態では、印刷装置1は、58mmと、80mmとの2種類の紙幅のロール紙Rを収容可能であった後、印刷装置1に収容可能な紙幅の種類は2種類に限らず、また、紙幅の種類は58mm及び80mmに限られない。
また例えば、図を用いて説明した各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, in the above-described embodiment, the paper guide 25 regulates the position of the roll paper R having different paper widths depending on whether the paper guide 25 is attached or not attached. However, the paper guide 25 may be configured to regulate the position of the roll paper R having a different paper width by changing the position thereof.
In the above-described embodiment, the printing apparatus 1 can accommodate roll paper R having two types of paper widths of 58 mm and 80 mm, and then the number of paper widths that can be accommodated in the printing apparatus 1 is limited to two. In addition, the types of paper width are not limited to 58 mm and 80 mm.
Further, for example, each functional block described with reference to the drawings can be arbitrarily realized by hardware and software, and does not suggest a specific hardware configuration.

1…印刷装置、2…ホストコンピューター、20…収容部、22…開口、23…プラテンローラー、24…サーマルヘッド、25…紙ガイド、40…制御部、41…印刷部、43…記憶部、44…通信部、46…紙ガイドセンサー(センサー)、47…カバーセンサー、R…ロール紙。   DESCRIPTION OF SYMBOLS 1 ... Printing apparatus, 2 ... Host computer, 20 ... Storage part, 22 ... Opening, 23 ... Platen roller, 24 ... Thermal head, 25 ... Paper guide, 40 ... Control part, 41 ... Printing part, 43 ... Storage part, 44 Communication unit 46 Paper guide sensor (sensor) 47 Cover sensor R Roll paper

Claims (8)

ロール紙を収容可能な印刷装置であって、
前記ロール紙に印刷する印刷部と、
前記ロール紙を収容する収容部と、
前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、
前記紙ガイドの取り付けの状態を検出するセンサーと、
前記ロール紙の紙幅を示す設定値を記憶する記憶部と、
前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させ、また、
所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、第1の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記第1の紙幅以外の紙幅を示す値の場合、前記設定値を前記第1の紙幅を示す値へと変更する一方、検出した前記紙ガイドの取り付けの状態が前記第1の紙幅以外の紙幅の前記ロール紙に対応する取り付けの状態の場合、前記設定値の値にかかわらず前記設定値を変更しない制御部と、
を備えることを特徴とする印刷装置。
A printing apparatus that can accommodate roll paper,
A printing unit for printing on the roll paper;
An accommodating portion for accommodating the roll paper;
A paper guide that regulates the position of the roll paper in the storage unit according to the presence or absence of attachment according to the paper width of the roll paper, or the attachment position;
A sensor for detecting the state of attachment of the paper guide;
A storage unit for storing a setting value indicating a paper width of the roll paper;
Causing the printing unit to print based on the setting value stored in the storage unit, and
The attachment state of the paper guide detected by the sensor using a predetermined event as a trigger is an attachment state corresponding to the roll paper having the first paper width, and the set value is other than the first paper width. In the case of the value indicating the paper width, the setting value is changed to a value indicating the first paper width, while the detected attachment state of the paper guide corresponds to the roll paper having a paper width other than the first paper width. In the state of mounting to be performed, a control unit that does not change the set value regardless of the value of the set value;
A printing apparatus comprising:
前記制御部は、
所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、前記第1の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記第1の紙幅よりも大きい第2の紙幅を示す値の場合、前記設定値を前記第1の紙幅を示す値とする一方、検出した前記紙ガイドの取り付けの状態が前記第2の紙幅の前記ロール紙に対応する取り付けの状態の場合、前記設定値の値にかかわらず前記設定値を変更しない
ことを特徴とする請求項1に記載の印刷装置。
The controller is
The attachment state of the paper guide detected by the sensor using a predetermined event as a trigger is an attachment state corresponding to the roll paper of the first paper width, and the set value is the first paper width. In the case of a value indicating a second paper width larger than the value, the set value is set to a value indicating the first paper width, and the detected attachment state of the paper guide corresponds to the roll paper having the second paper width. 2. The printing apparatus according to claim 1, wherein the setting value is not changed regardless of the value of the setting value in a mounted state.
外部装置が送信する制御コマンドによる指示、又は、ソフトウェアスイッチ又はハードウェアスイッチの設定によって、前記記憶部が記憶する前記設定値を変更可能とし、前記第1の紙幅を示す値へ変更した前記設定値を前記外部装置へ送信することを特徴とする請求項1又は2に記載の印刷装置。   The setting value stored in the storage unit can be changed according to an instruction by a control command transmitted by an external device or a setting of a software switch or a hardware switch, and the setting value is changed to a value indicating the first paper width. The printing apparatus according to claim 1, wherein the printer is transmitted to the external apparatus. サーマルヘッドと、プラテンローラーとによって前記ロール紙を挟持して前記ロール紙を搬送する搬送部を備え、
前記制御部は、
前記設定値が示す紙幅が小さいほど、前記プラテンローラーを駆動するモーターを高トルクとする
ことを特徴とする請求項1乃至3のいずれか1項に記載の印刷装置。
A transport unit that transports the roll paper by sandwiching the roll paper by a thermal head and a platen roller;
The controller is
The printing apparatus according to any one of claims 1 to 3, wherein a motor that drives the platen roller is set to a higher torque as the paper width indicated by the set value is smaller.
前記制御部は、
前記印刷部に文字列を印刷させる場合、前記設定値が示す紙幅に応じて、1行に印刷する文字の桁数の態様を変更する
ことを特徴とする請求項1乃至4のいずれか1項に記載の印刷装置。
The controller is
5. When printing a character string on the printing unit, the aspect of the number of characters printed on one line is changed according to the paper width indicated by the setting value. 6. The printing apparatus as described in.
ロール紙を収容可能な印刷装置であって、
前記ロール紙に印刷する印刷部と、
前記ロール紙を収容する収容部と、
前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、
前記紙ガイドの取り付けの状態を検出するセンサーと、
前記ロール紙の紙幅を示す設定値を記憶する記憶部と、
前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させ、また、
所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、所定の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記所定の紙幅以外の紙幅を示す値の場合、前記設定値を前記所定の紙幅を示す値へと変更し、後は、前記設定値を変更しない制御部と、
を備えることを特徴とする印刷装置。
A printing apparatus that can accommodate roll paper,
A printing unit for printing on the roll paper;
An accommodating portion for accommodating the roll paper;
A paper guide that regulates the position of the roll paper in the storage unit according to the presence or absence of attachment according to the paper width of the roll paper, or the attachment position;
A sensor for detecting the state of attachment of the paper guide;
A storage unit for storing a setting value indicating a paper width of the roll paper;
Causing the printing unit to print based on the setting value stored in the storage unit, and
The attachment state of the paper guide detected by the sensor using a predetermined event as a trigger is an attachment state corresponding to the roll paper having a predetermined paper width, and the set value is a paper width other than the predetermined paper width. In the case of a value indicating, the setting value is changed to a value indicating the predetermined paper width, and thereafter, the control unit that does not change the setting value;
A printing apparatus comprising:
ロール紙を収容可能であり、前記ロール紙に印刷する印刷部と、前記ロール紙を収容する収容部と、前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、前記紙ガイドの取り付けの状態を検出するセンサーと、前記ロール紙の紙幅を示す設定値を記憶する記憶部と、前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させる制御部とを備える印刷装置の制御方法であって、
前記制御部により、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、第1の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記第1の紙幅以外の紙幅を示す値の場合、前記設定値を前記第1の紙幅を示す値へと変更する一方、検出した前記紙ガイドの取り付けの状態が前記第1の紙幅以外の紙幅の前記ロール紙に対応する取り付けの状態の場合、前記設定値の値にかかわらず前記設定値を変更しないことを特徴とする印刷装置の制御方法。
Roll paper can be accommodated, and the roll paper can be printed according to a printing unit that prints on the roll paper, a storage unit that accommodates the roll paper, and whether or not the roll paper is attached according to the paper width of the roll paper. A paper guide that regulates the position of the paper guide, a sensor that detects the attachment state of the paper guide, a storage unit that stores a setting value that indicates a paper width of the roll paper, and the setting that the storage unit stores A control method of a printing apparatus comprising a control unit that causes the printing unit to print based on a value,
When the paper guide is attached by the control unit detected by the sensor using a predetermined event as a trigger, the paper guide is attached corresponding to the roll paper having the first paper width, and the set value is In the case of a value indicating a paper width other than the first paper width, the set value is changed to a value indicating the first paper width, while the detected attachment state of the paper guide is a paper width other than the first paper width. A control method for a printing apparatus, characterized in that the setting value is not changed regardless of the value of the setting value in the state of attachment corresponding to the roll paper.
ロール紙を収容可能であり、前記ロール紙に印刷する印刷部と、前記ロール紙を収容する収容部と、前記ロール紙の紙幅に応じた取り付けの有無、又は、取り付けの位置により、前記ロール紙の前記収容部における位置を規制する紙ガイドと、前記紙ガイドの取り付けの状態を検出するセンサーと、前記ロール紙の紙幅を示す設定値を記憶する記憶部と、前記記憶部が記憶する前記設定値に基づいて前記印刷部に印刷させる制御部と、を備える印刷装置の制御方法であって、
前記制御部により、所定の事象をトリガーとして前記センサーが検出した前記紙ガイドの取り付けの状態が、所定の紙幅の前記ロール紙に対応する取り付けの状態の場合であって、前記設定値が前記所定の紙幅以外の紙幅を示す値の場合、前記設定値を前記所定の紙幅を示す値へと変更し、後は、前記設定値を変更しないことを特徴とする印刷装置の制御方法。
Roll paper can be accommodated, and the roll paper can be printed according to a printing unit that prints on the roll paper, a storage unit that accommodates the roll paper, and whether or not the roll paper is attached according to the paper width of the roll paper. A paper guide that regulates the position of the paper guide, a sensor that detects the attachment state of the paper guide, a storage unit that stores a setting value that indicates a paper width of the roll paper, and the setting that the storage unit stores A control unit that causes the printing unit to print based on a value, and a control method for a printing apparatus,
When the paper guide is attached by the control unit triggered by a predetermined event, the paper guide is attached to the roll paper having a predetermined paper width, and the set value is the predetermined value. When the value indicates a paper width other than the paper width, the setting value is changed to a value indicating the predetermined paper width, and the setting value is not changed thereafter.
JP2015159838A 2015-08-13 2015-08-13 Printing apparatus and printing apparatus control method Active JP6551038B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015159838A JP6551038B2 (en) 2015-08-13 2015-08-13 Printing apparatus and printing apparatus control method
US15/235,594 US10065434B2 (en) 2015-08-13 2016-08-12 Printing device and control method of a printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015159838A JP6551038B2 (en) 2015-08-13 2015-08-13 Printing apparatus and printing apparatus control method

Publications (3)

Publication Number Publication Date
JP2017035856A true JP2017035856A (en) 2017-02-16
JP2017035856A5 JP2017035856A5 (en) 2018-08-30
JP6551038B2 JP6551038B2 (en) 2019-07-31

Family

ID=58048470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015159838A Active JP6551038B2 (en) 2015-08-13 2015-08-13 Printing apparatus and printing apparatus control method

Country Status (1)

Country Link
JP (1) JP6551038B2 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0327958A (en) * 1989-06-27 1991-02-06 Mutoh Ind Ltd Thermal transfer printer
JP2001334729A (en) * 2000-05-26 2001-12-04 Seiko Epson Corp Printer, host computer, and printer control method
JP2007118210A (en) * 2005-10-25 2007-05-17 Toshiba Tec Corp Printer
JP2008221543A (en) * 2007-03-12 2008-09-25 Ricoh Co Ltd Image forming device
JP2010030183A (en) * 2008-07-30 2010-02-12 Seiko Epson Corp Paper width detection method of label printer, print control method of label printer, and label printer
JP2012025588A (en) * 2010-06-21 2012-02-09 Seiko I Infotech Inc Image forming apparatus
JP2012229074A (en) * 2011-04-25 2012-11-22 Seiko Epson Corp Conveyance device and image forming apparatus
US20130183075A1 (en) * 2012-01-16 2013-07-18 Bixolon Co.,Ltd. Apparatus for adjusting print width in pos printer
US20130243510A1 (en) * 2012-03-14 2013-09-19 Transact Technologies Incorporated Configurable printer for different paper sizes and methods for configuring a printer for different paper sizes
JP2013188986A (en) * 2012-03-15 2013-09-26 Canon Inc Printing device, control method therefor, program, and recording medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0327958A (en) * 1989-06-27 1991-02-06 Mutoh Ind Ltd Thermal transfer printer
JP2001334729A (en) * 2000-05-26 2001-12-04 Seiko Epson Corp Printer, host computer, and printer control method
JP2007118210A (en) * 2005-10-25 2007-05-17 Toshiba Tec Corp Printer
JP2008221543A (en) * 2007-03-12 2008-09-25 Ricoh Co Ltd Image forming device
JP2010030183A (en) * 2008-07-30 2010-02-12 Seiko Epson Corp Paper width detection method of label printer, print control method of label printer, and label printer
JP2012025588A (en) * 2010-06-21 2012-02-09 Seiko I Infotech Inc Image forming apparatus
JP2012229074A (en) * 2011-04-25 2012-11-22 Seiko Epson Corp Conveyance device and image forming apparatus
US20130183075A1 (en) * 2012-01-16 2013-07-18 Bixolon Co.,Ltd. Apparatus for adjusting print width in pos printer
US20130243510A1 (en) * 2012-03-14 2013-09-19 Transact Technologies Incorporated Configurable printer for different paper sizes and methods for configuring a printer for different paper sizes
JP2013188986A (en) * 2012-03-15 2013-09-26 Canon Inc Printing device, control method therefor, program, and recording medium

Also Published As

Publication number Publication date
JP6551038B2 (en) 2019-07-31

Similar Documents

Publication Publication Date Title
US7869063B2 (en) Printing apparatus, printer control method, printer control program, and printing system
US7503712B2 (en) Printing apparatus for selecting the appropriate error state mode according to the application type and user desired print results
JP5739919B2 (en) Thermal printer device
US10137708B2 (en) Printing device and control method of a printing device
JP6769255B2 (en) Printing device and control method of printing device
JP5803243B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2010530816A (en) Double-sided thermal printer control
US20090207444A1 (en) Printer and control method for a printer
JP6561673B2 (en) Printing apparatus and printing apparatus control method
US9058133B2 (en) Control device, control method for a control device, and recording medium
JP2010513088A (en) Double-sided thermal printing detection
JP6551038B2 (en) Printing apparatus and printing apparatus control method
JP2017047584A (en) Printer and control method of printer
JP2013071227A (en) Automatic cutter device, printer device, and control method of automatic cutter device
JP2011098440A (en) Recorder, control method for recorder, and program
US10065434B2 (en) Printing device and control method of a printing device
CN110936733B (en) Printer, control method, computer-readable storage medium, and electronic device
JP6260099B2 (en) Printing apparatus, printing apparatus control method, and program
JP2007018127A (en) Printing system, control method therefor and program
JP2018062122A (en) Printing device and method for controlling printing device
JP2017060245A (en) Printer and control method of printer
JP5924126B2 (en) Medium processing apparatus and POS system
JP2013257744A (en) Control device, control method for control device, and program
JP2017056561A (en) Recording device and control method for the same
JP2013158952A (en) Recording device, method for controlling recording device, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180717

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180717

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190319

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190509

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190604

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190617

R150 Certificate of patent or registration of utility model

Ref document number: 6551038

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150