JP2012101430A - Recording apparatus, method for controlling the same, and program - Google Patents

Recording apparatus, method for controlling the same, and program Download PDF

Info

Publication number
JP2012101430A
JP2012101430A JP2010251566A JP2010251566A JP2012101430A JP 2012101430 A JP2012101430 A JP 2012101430A JP 2010251566 A JP2010251566 A JP 2010251566A JP 2010251566 A JP2010251566 A JP 2010251566A JP 2012101430 A JP2012101430 A JP 2012101430A
Authority
JP
Japan
Prior art keywords
sensor
detection value
cover
open
operation mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2010251566A
Other languages
Japanese (ja)
Inventor
Yusuke Tamura
佑輔 田村
Norio Tsuchiya
典生 土屋
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 JP2010251566A priority Critical patent/JP2012101430A/en
Publication of JP2012101430A publication Critical patent/JP2012101430A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow transition between operating modes as necessary and thereby achieve cost reduction.SOLUTION: A printer 1 includes: a real end sensor 41 used for the control of operation for recording; a cutter sensor 25; and a control section 40 for executing transition to a firm rewriting mode according to a detection value input from the sensors.

Description

本発明は、記録媒体に記録を行う記録装置、当該記録装置の制御方法、及び、当該記録装置を制御するためのプログラムに関する。   The present invention relates to a recording apparatus that performs recording on a recording medium, a control method for the recording apparatus, and a program for controlling the recording apparatus.

従来、ファームウェアを記憶し、このファームウェアの機能により、各種動作に係る制御を実行する記録装置が知られている(例えば、特許文献1参照)。
ここで、ファームウェアは、機能拡張や、プログラム修正を目的として、書き換えを行う必要が生じることがある一方で、記録装置の基本動作を制御するためのプログラムであり、書き換えが正常に行われなかった場合、記録装置の以後の動作に多大な悪影響を与えることがある。このため、ファームウェアの書き換えは、必要なときにだけ実行されることが求められる。これを踏まえ、従来の記録装置では、動作モードのひとつとして、ファームウェアの書き換えを実行可能な動作モード(以下、「ファーム書換モード」という)を設け、動作モードがファーム書換モードに移行している間のみ、ファームウェアの書き換えを実行できる構成とし、これにより、必要なときにだけファームウェアの書き換えを実行できるようにしたものがある。
2. Description of the Related Art Conventionally, a recording apparatus that stores firmware and performs control related to various operations by using the function of the firmware is known (see, for example, Patent Document 1).
Here, the firmware is a program for controlling the basic operation of the recording apparatus, and may not be rewritten normally, while it may be necessary to rewrite for the purpose of function expansion or program correction. In this case, the subsequent operation of the recording apparatus may be greatly adversely affected. For this reason, firmware rewriting is required to be executed only when necessary. Based on this, in the conventional recording apparatus, as one of the operation modes, an operation mode capable of executing firmware rewriting (hereinafter referred to as “firmware rewriting mode”) is provided, and the operation mode is shifted to the firmware rewriting mode. However, there is a configuration in which firmware rewriting can be executed, and firmware can be rewritten only when necessary.

特開2007−310783号公報JP 2007-310783 A

上述した記録装置のように、動作モードとして、ファーム書換モードを備えるものでは、例えば、基板上に動作モード移行用のディップスイッチを設ける等、記録装置の所定の位置に物理的なスイッチを設け、当該スイッチの状態に応じて、ファーム書換モードを移行するようにしていた。
この場合、スイッチを設ける分、製造コストが増大してしまう、という問題があった。特に、ファーム書換モードへの移行はほとんど行われない処理であり、ファーム書換モードへの移行に係る部材等に起因して製造コストが増大することは、できるだけ避けたいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、記録装置において、必要なときに動作モードを移行できるようにした上で、コストの削減を実現することを目的とする。
As in the recording apparatus described above, in the case of providing the firmware rewriting mode as the operation mode, for example, a physical switch is provided at a predetermined position of the recording apparatus, such as a dip switch for shifting the operation mode on the substrate. The firmware rewriting mode is shifted according to the state of the switch.
In this case, there is a problem that the manufacturing cost is increased by providing the switch. In particular, it is a process in which the shift to the firmware rewriting mode is hardly performed, and there is a need to avoid as much as possible the increase in manufacturing cost due to the members related to the shift to the firmware rewriting mode.
The present invention has been made in view of the above-described circumstances, and an object of the present invention is to realize a reduction in cost while enabling a recording apparatus to shift an operation mode when necessary.

上記目的を達成するために、本発明は、記録媒体に記録を行う記録装置であって、記録に係る動作の制御に利用するセンサーと、前記センサーから入力された検出値に応じて、動作モードの移行を実行する制御部と、を備えることを特徴とする。
この構成によれば、専用のスイッチ等を設けることなく、既存のセンサーを利用して動作モードを移行できるため、コストの削減を実現しつつ、必要なときに動作モードを移行することが可能となる。
In order to achieve the above object, the present invention provides a recording apparatus for recording on a recording medium, a sensor used for controlling an operation related to recording, and an operation mode according to a detection value input from the sensor. And a control unit for executing the transition.
According to this configuration, since the operation mode can be shifted using an existing sensor without providing a dedicated switch or the like, it is possible to shift the operation mode when necessary while realizing cost reduction. Become.

また、上記発明の記録装置であって、本発明は、前記制御部は、予め定められた所定の状況下で、前記センサーから所定の検出値が入力された場合に、動作モードの移行を実行することを特徴とする。
この構成によれば、所定の状況下において通常はあり得ない検出値が入力された場合に、意図的にセンサーの検出値が調整されたものとして、動作モードの移行を実行するようにすることができ、偶発的に動作モードが移行してしまうことを極力防止できる。
Further, in the recording apparatus according to the invention, the control unit executes the transition of the operation mode when a predetermined detection value is input from the sensor under a predetermined condition. It is characterized by doing.
According to this configuration, when a detection value that is not normally possible under a predetermined situation is input, it is assumed that the detection value of the sensor is intentionally adjusted, and the operation mode transition is executed. It is possible to prevent the operation mode from being shifted accidentally as much as possible.

また、上記発明の記録装置であって、本発明は、開閉カバーと、前記開閉カバーの開閉を検出するカバーセンサーと、前記開閉カバーが閉じているときに前記記録媒体が所定の位置に位置している場合は第1検出値を出力し、一方、前記記録媒体が当該所定の位置に位置していない場合は第2検出値を出力すると共に、前記開閉カバーが開いているときは前記記録媒体の状態にかかわらず前記第2検出値を出力するエンドセンサーと、を備え、前記制御部は、前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときに、前記エンドセンサーから前記第1検出値が入力された場合に、動作モードの移行を実行することを特徴とする。
この構成によれば、開閉カバーが開いているときはエンドセンサーから制御部に対して第2検出値が入力されることを利用して、開閉カバーが開いているときにエンドセンサーから第1検出値が入力されたときに動作モードを移行することにより、エンドセンサーを用いて必要なときに動作モードを移行可能となる。
Further, in the recording apparatus according to the invention, the present invention provides an opening / closing cover, a cover sensor for detecting opening / closing of the opening / closing cover, and the recording medium is positioned at a predetermined position when the opening / closing cover is closed. If the recording medium is not located at the predetermined position, the second detection value is output. When the opening / closing cover is open, the recording medium is output. An end sensor that outputs the second detection value regardless of the state of the sensor, and the control unit detects when the opening / closing cover is open based on the detection value of the cover sensor. When the first detection value is input from an end sensor, the operation mode transition is executed.
According to this configuration, when the open / close cover is open, the first detection value is input from the end sensor when the open / close cover is open by using the second detection value input from the end sensor to the control unit. By shifting the operation mode when a value is input, the operation mode can be shifted when necessary using an end sensor.

また、上記発明の記録装置であって、本発明は、前記制御部は、前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときに、前記エンドセンサーから前記第1検出値が所定の態様で入力された場合に、動作モードの移行を実行することを特徴とする。
この構成によれば、エンドセンサーから制御部に対して所定の態様で第1検出値が入力されたことをトリガーとして動作モードの移行を実行するため、例えば、所定の態様を、エンドセンサーに対して意図的に所定の複雑な操作を行った場合にエンドセンサーから制御部に対して出力される第1検出値の態様とすることにより、偶発的に動作モードが移行してしまうことを極力防止できる。
In the recording apparatus according to the invention described above, the control unit may detect the first sensor from the end sensor when the opening / closing cover is detected to be open based on a detection value of the cover sensor. When one detection value is input in a predetermined manner, the operation mode transition is performed.
According to this configuration, in order to execute the operation mode transition triggered by the input of the first detection value from the end sensor to the control unit in a predetermined mode, for example, the predetermined mode is set to the end sensor. By using the first detection value that is output from the end sensor to the control unit when a predetermined complicated operation is intentionally performed, it is possible to prevent the operation mode from being shifted accidentally. it can.

また、上記発明の記録装置であって、本発明は、開閉カバーと、前記開閉カバーの開閉を検出するカバーセンサーと、可動刃により前記記録媒体を切断する切断部と、前記可動刃が所定の位置に位置していることを検出するカッターセンサーと、を備え、前記開閉カバーが開いている場合は、前記可動刃の動作を停止して前記切断部による前記記録媒体の切断を停止する構成とし、前記制御部は、前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときにおける前記カッターセンサーから入力された検出値に応じて、動作モードの移行を実行することを特徴とする。
この構成によれば、開閉カバーが開いているときは可動刃の動作が停止し、これに伴いカッターセンサーの検出値が変化しないことを利用して、開閉カバーが開いているときにカッターセンサーから入力された検出値に応じて動作モードを移行することにより、カッターセンサーを用いて必要なときに動作モードを移行可能となる。
Further, in the recording apparatus according to the above invention, the present invention includes an opening / closing cover, a cover sensor that detects opening / closing of the opening / closing cover, a cutting unit that cuts the recording medium with a movable blade, and the movable blade having a predetermined shape. A cutter sensor that detects that the recording medium is in a position, and when the opening / closing cover is open, the operation of the movable blade is stopped and the cutting of the recording medium by the cutting unit is stopped. The control unit executes transition of the operation mode according to the detection value input from the cutter sensor when the opening / closing cover is detected to be open based on the detection value of the cover sensor. It is characterized by.
According to this configuration, when the opening / closing cover is open, the operation of the movable blade is stopped, and the detection value of the cutter sensor does not change accordingly. By shifting the operation mode according to the input detection value, the operation mode can be shifted when necessary using the cutter sensor.

また、上記発明の記録装置であって、本発明は、前記制御部は、前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときに、前記カッターセンサーから所定の態様で検出値が入力された場合に、動作モードの移行を実行することを特徴とする。
この構成によれば、カッターセンサーから制御部に対して所定の態様で検出値が入力されたことをトリガーとして動作モードの移行を実行するため、例えば、所定の態様を、カッターセンサーに対して意図的に所定の複雑な操作を行った場合にカッターセンサーから制御部に対して出力される検出値の態様とすることにより、偶発的に動作モードが移行してしまうことを極力防止できる。
Further, in the recording apparatus according to the invention, the control unit is configured to detect a predetermined value from the cutter sensor when the opening / closing cover is detected to be open based on a detection value of the cover sensor. When the detected value is input in the aspect, the operation mode transition is executed.
According to this configuration, in order to execute the operation mode transition triggered by the detection value input from the cutter sensor to the control unit in a predetermined mode, for example, the predetermined mode is intended for the cutter sensor. In particular, when the predetermined complicated operation is performed, the mode of the detection value output from the cutter sensor to the control unit can be prevented as much as possible from accidentally shifting the operation mode.

また、上記発明の記録装置であって、本発明は、開閉カバーと、前記開閉カバーの開閉を検出するカバーセンサーと、前記開閉カバーが閉じているときに前記記録媒体が所定の位置に位置している場合は第1検出値を出力し、一方、前記記録媒体が当該所定の位置に位置していない場合は第2検出値を出力すると共に、前記開閉カバーが開いているときは前記記録媒体の状態にかかわらず前記第2検出値を出力するエンドセンサーと、可動刃により前記記録媒体を切断する切断部と、前記可動刃が所定の位置に位置していることを検出するカッターセンサーと、を備え、前記開閉カバーが開いている場合は、前記可動刃の動作を停止して前記切断部による前記記録媒体の切断を停止する構成とし、前記制御部は、前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときの、前記エンドセンサーから入力された検出値、及び、前記カッターセンサーから入力された検出値の組み合わせに応じて、動作モードの移行を実行することを特徴とする。
この構成によれば、開閉カバーが開いているときはエンドセンサーから制御部に対して第2検出値が入力されること、及び、開閉カバーが開いているときは可動刃の動作が停止し、これに伴いカッターセンサーの検出値が変化しないことを利用して、カッターセンサー、及び、エンドセンサーを用いて、必要なときに動作モードを移行することが可能となる。さらに、動作モードを移行するトリガーとして、複数のセンサーの検出値を利用するため、偶発的に動作モードが移行してしまうことをより防止できる。
Further, in the recording apparatus according to the invention, the present invention provides an opening / closing cover, a cover sensor for detecting opening / closing of the opening / closing cover, and the recording medium is positioned at a predetermined position when the opening / closing cover is closed. If the recording medium is not located at the predetermined position, the second detection value is output. When the opening / closing cover is open, the recording medium is output. An end sensor that outputs the second detection value regardless of the state, a cutting unit that cuts the recording medium with a movable blade, a cutter sensor that detects that the movable blade is located at a predetermined position, And when the opening / closing cover is open, the operation of the movable blade is stopped to stop the cutting of the recording medium by the cutting unit, and the control unit detects a value detected by the cover sensor. Thus, when the opening / closing cover is detected to be opened, the operation mode transition is performed according to the combination of the detection value input from the end sensor and the detection value input from the cutter sensor. It is characterized by performing.
According to this configuration, when the open / close cover is open, the second detection value is input from the end sensor to the control unit, and when the open / close cover is open, the operation of the movable blade is stopped. Along with this, it is possible to shift the operation mode when necessary by using the cutter sensor and the end sensor by utilizing the fact that the detection value of the cutter sensor does not change. Furthermore, since the detection values of a plurality of sensors are used as a trigger for shifting the operation mode, it is possible to further prevent the operation mode from shifting accidentally.

また、上記目的を達成するために、本発明は、記録に係る動作の制御に利用するセンサーを備え、記録媒体に記録を行う記録装置の制御方法であって、前記センサーから入力された検出値に基づいて、動作モードを移行するか否かを判別し、動作モードを移行すると判別した場合、動作モードの移行を実行することを特徴とする。
この制御方法によれば、専用のスイッチ等を設けることなく、既存のセンサーを利用して動作モードを移行できるため、コストの削減を実現しつつ、必要なときに動作モードを移行することが可能となる。
In order to achieve the above object, the present invention provides a control method for a recording apparatus that includes a sensor that is used to control an operation related to recording, and that performs recording on a recording medium, the detection value being input from the sensor. Based on the above, it is determined whether or not to shift the operation mode, and when it is determined that the operation mode is to be transferred, the operation mode is transferred.
According to this control method, the operation mode can be shifted using an existing sensor without providing a dedicated switch, etc., so that it is possible to shift the operation mode when necessary while realizing cost reduction. It becomes.

また、上記目的を達成するために、本発明は、記録に係る動作の制御に利用するセンサーを備え、記録媒体に記録を行う記録装置を制御する制御部により実行されるプログラムであって、前記制御部を、前記センサーから入力された検出値に応じて、動作モードの移行を実行する手段として機能させることを特徴とする。
このプログラムを実行すれば、専用のスイッチ等を設けることなく、既存のセンサーを利用して動作モードを移行できるため、コストの削減を実現しつつ、必要なときに動作モードを移行することが可能となる。
In order to achieve the above object, the present invention is a program that includes a sensor that is used to control an operation related to recording, and that is executed by a control unit that controls a recording apparatus that performs recording on a recording medium. The control unit is made to function as means for executing a transition of an operation mode in accordance with a detection value input from the sensor.
If this program is executed, the operation mode can be transferred using an existing sensor without providing a dedicated switch, etc., so it is possible to change the operation mode when necessary while realizing cost reduction. It becomes.

本発明によれば、必要なときに動作モードを移行できるようにした上で、コストの削減を実現できる。   According to the present invention, it is possible to realize a reduction in cost while enabling the operation mode to be shifted when necessary.

プリンターの内部構造を示す斜視図である。It is a perspective view which shows the internal structure of a printer. プリンターの内部構造を示す斜視図である。It is a perspective view which shows the internal structure of a printer. プリンターの側面図である。It is a side view of a printer. プリンターの上面図である。It is a top view of a printer. プリンターの側面を模式的に示す図である。FIG. 2 is a diagram schematically illustrating a side surface of a printer. プリンターの機能的構成を示すブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of a printer. プリンターの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer. プリンターの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer.

以下、図面を参照して本発明の実施形態について説明する。
図1及び図2は、本実施形態に係るプリンター1(記録装置)の内部構成を示す斜視図であり、特に、図1は、カッターユニット4の内部がわかるように、カッターユニットフレーム11のカバー11aを開けた状態を示し、図2は、カッターユニット4のカッターユニットフレーム11のカバー11aを閉じた状態を示している。図3は、プリンター1にロール紙S(記録媒体)をセットするために、カバーフレーム8を開いた状態を示す側面図である。図4は、カッターユニット4(切断部)の可動刃9の動きを示す上面図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
1 and 2 are perspective views showing the internal configuration of the printer 1 (recording apparatus) according to the present embodiment. In particular, FIG. 1 shows a cover of the cutter unit frame 11 so that the inside of the cutter unit 4 can be seen. FIG. 2 shows a state in which the cover 11a of the cutter unit frame 11 of the cutter unit 4 is closed. FIG. 3 is a side view showing a state in which the cover frame 8 is opened in order to set the roll paper S (recording medium) in the printer 1. FIG. 4 is a top view showing the movement of the movable blade 9 of the cutter unit 4 (cutting portion).

本実施形態に係るプリンター1は、ホストコンピューター等の外部機器に接続され、当該外部機器の制御に従って、ロール紙Sに画像を記録し、所定の長さでロール紙Sを切断することにより、レシートを発行するサーマルプリンターである。
図2に示すように、本実施形態に係るプリンター1は、例えば金属等からなる本体フレーム7の上方に、開閉自在のカバーフレーム8と、後述する可動刃9及びその駆動手段10を収容するためのカッターユニットフレーム11を備えるカッターユニット4と、が設けられている。
図3に示すように、カバーフレーム8は、本体フレーム7の後方の上端部の両側に設けられた支軸12を中心として、本体フレーム7に対して開閉自在に取り付けられている。
図1及び図2に示すように、本体フレーム7の内部には、ロール紙Sを収容する収納部3が形成されている。図示は省略したが、カバーフレーム8には、カバーフレーム8を覆うように板状の蓋体が取り付けられており、カバーフレーム8が開いたときに、収納部3の上面に形成された開口が露出し、一方、カバーフレーム8が閉じたときに、収納部3の開口が塞がれる構成となっている。すなわち、カバーフレーム8は蓋体が取り付けられた状態において、プリンター1本体の開口(収納部3の開口)を開閉する開閉カバーとして機能する。
The printer 1 according to the present embodiment is connected to an external device such as a host computer, records an image on the roll paper S according to the control of the external device, and cuts the roll paper S by a predetermined length, thereby receiving a receipt. Is a thermal printer.
As shown in FIG. 2, the printer 1 according to the present embodiment accommodates an openable / closable cover frame 8, a movable blade 9, which will be described later, and its driving means 10 above a main body frame 7 made of, for example, metal. And a cutter unit 4 including the cutter unit frame 11.
As shown in FIG. 3, the cover frame 8 is attached to the main body frame 7 so as to be openable and closable around the support shafts 12 provided on both sides of the rear upper end of the main body frame 7.
As shown in FIGS. 1 and 2, a storage unit 3 for storing the roll paper S is formed inside the main body frame 7. Although not shown, the cover frame 8 is provided with a plate-shaped lid so as to cover the cover frame 8, and when the cover frame 8 is opened, an opening formed on the upper surface of the storage unit 3 is formed. On the other hand, when the cover frame 8 is closed, the opening of the storage portion 3 is closed. That is, the cover frame 8 functions as an open / close cover that opens and closes the opening of the main body of the printer 1 (the opening of the storage unit 3) in a state where the cover is attached.

図1に示すように、本実施形態に係るプリンター1では、カバーフレーム8の上面におけるカッターユニット4側の端部に、固定刃14が配置されている。この固定刃14は、例えば金属製の長板状の板状部材からなるものである。固定刃14は、カバーフレーム8の端部において、その刃部14aがカッターユニット4に対向するように配置される。
図1及び図2に示すように、固定刃14の両端部には、カッター位置決め部16が形成されている。カッター位置決め部16では、固定刃14の両端部に形成された凹みと、カバーフレーム8の両端部において上記凹みと対応する位置に設けられた支持部材とが嵌合し、これにより、カバーフレーム8に対して固定刃14が位置決めされる。固定刃14は、カバーフレーム8に固定された2つの押さえバネ17によって、カバーフレーム8の表面に対して押さえつけられ、これにより、カバーフレーム8に対して固定されている。
また、固定刃14の刃部14aとカッターユニットフレーム11の本体11bとの間には、ロール紙Sを搬送し排出する為のスリット状の排紙口15が設けられている。
As shown in FIG. 1, in the printer 1 according to the present embodiment, a fixed blade 14 is disposed at the end of the upper surface of the cover frame 8 on the cutter unit 4 side. The fixed blade 14 is made of a long plate-like plate member made of metal, for example. The fixed blade 14 is disposed at the end of the cover frame 8 so that the blade portion 14 a faces the cutter unit 4.
As shown in FIGS. 1 and 2, cutter positioning portions 16 are formed at both ends of the fixed blade 14. In the cutter positioning portion 16, the recesses formed at both ends of the fixed blade 14 and the support members provided at the positions corresponding to the recesses at both ends of the cover frame 8 are fitted, whereby the cover frame 8 The fixed blade 14 is positioned with respect to. The fixed blade 14 is pressed against the surface of the cover frame 8 by two pressing springs 17 fixed to the cover frame 8, thereby being fixed to the cover frame 8.
Further, a slit-shaped discharge port 15 for conveying and discharging the roll paper S is provided between the blade portion 14 a of the fixed blade 14 and the main body 11 b of the cutter unit frame 11.

一方、カッターユニットフレーム11の本体11bの底部110には、固定刃14と交差し、ロール紙Sを切断するための可動刃9が設けられる。可動刃9は、カッターユニットフレーム11の一方の端部に設けた支軸18を中心として、図1の矢印A方向又はその反対である矢印B方向へ回動自在に取り付けられる。
また、可動刃9は、この支軸18の周囲に設けれ、上端を支軸18に取り付けられたプッシュナットで係止されたコイルばね19によって、カッターユニットフレーム11の本体11bの底部110に押し付けられる。可動刃9のほぼ中央部には、可動刃9を駆動するための長孔20が設けられている。
On the other hand, a movable blade 9 for cutting the roll paper S is provided at the bottom 110 of the main body 11 b of the cutter unit frame 11 so as to intersect the fixed blade 14. The movable blade 9 is attached so as to be rotatable in the direction of arrow A in FIG. 1 or in the direction of arrow B, which is the opposite of the support shaft 18 provided at one end of the cutter unit frame 11.
The movable blade 9 is provided around the support shaft 18 and is pressed against the bottom 110 of the main body 11b of the cutter unit frame 11 by a coil spring 19 which is locked at the upper end by a push nut attached to the support shaft 18. It is done. A long hole 20 for driving the movable blade 9 is provided in a substantially central portion of the movable blade 9.

図1に示すように、カッターユニットフレーム11のカバー11aの裏面には、可動刃9を駆動するための駆動手段10が設けられる。詳細には、駆動手段10において、カバー11aの裏面に駆動モーター21が取り付けられるとともに、駆動モーター21の回転軸にウォーム歯車22が取り付けられている。そして、このウォーム歯車22と噛み合うようにウォームホイール23が配置され、このウォームホイール23には可動刃9の長孔20と係合するクランクピン24が設けられている。
これにより、図4に示すように、可動刃9が待機位置(図4において二点鎖線で示す位置)に位置している場合において、ウォームホイール23が所定の方向に1回転すると、可動刃9が矢印A方向へ向かって回動して、最も収納部3に近い位置(図4において実線で示す位置)に至った後、矢印B方向へ向かって回動し、再び、待機位置に至る。この一連の動作に伴って、可動刃9と固定刃14とが交差し、これら刃の交差に伴ってロール紙Sが切断される。
As shown in FIG. 1, driving means 10 for driving the movable blade 9 is provided on the back surface of the cover 11 a of the cutter unit frame 11. Specifically, in the drive means 10, a drive motor 21 is attached to the back surface of the cover 11 a, and a worm gear 22 is attached to the rotation shaft of the drive motor 21. A worm wheel 23 is disposed so as to mesh with the worm gear 22, and the worm wheel 23 is provided with a crank pin 24 that engages with the long hole 20 of the movable blade 9.
Thus, as shown in FIG. 4, when the movable blade 9 is located at the standby position (the position indicated by the two-dot chain line in FIG. 4), when the worm wheel 23 rotates once in a predetermined direction, the movable blade 9 Rotates in the direction of arrow A and reaches the position closest to the storage unit 3 (the position indicated by the solid line in FIG. 4), then rotates in the direction of arrow B and again reaches the standby position. With this series of operations, the movable blade 9 and the fixed blade 14 intersect, and the roll paper S is cut along with the intersection of these blades.

ウォームホイール23とカバー11aとの間には、ウォームホイール23の状態を検出することにより、可動刃9が待機位置に位置しているか否かを検出するためのカッターセンサー25が設けられている。カッターセンサー25は、リード線26を介して回路基板27に接続されており、ウォームホイール23の位置が、可動刃9を待機位置に位置させるような位置の場合、回路基板27に実装された制御部40に対してその旨の信号(検出値)を出力し、一方、ウォームホイール23の位置が、可動刃9を待機位置以外の位置に位置させるような位置の場合、制御部40に対してその旨の信号(検出値)を出力する。
なお、ウォーム歯車22の基端部には平歯車部29が形成されており、図2に示すように、この平歯車部29は、カッターユニットフレーム11のカバー11aから露出するように構成される。これにより、手動によって駆動モーター21の回転軸を回転させ、固定刃14を移動させることが可能となっている。
A cutter sensor 25 is provided between the worm wheel 23 and the cover 11a to detect whether or not the movable blade 9 is located at the standby position by detecting the state of the worm wheel 23. The cutter sensor 25 is connected to the circuit board 27 via the lead wire 26. When the position of the worm wheel 23 is such a position that the movable blade 9 is positioned at the standby position, the control mounted on the circuit board 27 is provided. When a signal (detection value) to that effect is output to the unit 40 and the position of the worm wheel 23 is such a position that the movable blade 9 is positioned at a position other than the standby position, the control unit 40 A signal to that effect (detection value) is output.
A spur gear portion 29 is formed at the base end portion of the worm gear 22, and the spur gear portion 29 is configured to be exposed from the cover 11 a of the cutter unit frame 11 as shown in FIG. 2. . Thereby, it is possible to manually rotate the rotating shaft of the drive motor 21 and move the fixed blade 14.

図2に示すように、カッターユニットフレーム11のカバー11aには、窓部111が設けられている。そして、ウォームホイール23の上面には、可動刃9が待機位置にある場合において窓部111に対応する位置に目印が設けられている。これにより、可動刃9が待機位置にあるときには、窓部111を介して、ウォームホイール23に設けられた目印が視認可能な構成となっており、ユーザーは、窓部111を介して目印が視認できるか否かを確認することにより、可動刃9が待機位置に位置しているか否かを迅速かつ容易に把握でき、また、必要な場合には、平歯車部29を操作して、可動刃9を待機位置へ移動させることができる。   As shown in FIG. 2, a window 111 is provided on the cover 11 a of the cutter unit frame 11. A mark is provided on the upper surface of the worm wheel 23 at a position corresponding to the window 111 when the movable blade 9 is in the standby position. Thereby, when the movable blade 9 is in the standby position, the mark provided on the worm wheel 23 is visible through the window 111, and the user can visually recognize the mark through the window 111. By confirming whether or not it is possible, it is possible to quickly and easily grasp whether or not the movable blade 9 is located at the standby position. If necessary, the spur gear portion 29 is operated to move the movable blade 9 9 can be moved to the standby position.

図1及び図2を参照し、矢印L1で示す位置に対応する位置には、リアルエンドセンサー41(エンドセンサー)が設けられている。
リアルエンドセンサー41は、ロール紙Sが完全に消費されたことを検出するためのセンサーである。
Referring to FIGS. 1 and 2, a real end sensor 41 (end sensor) is provided at a position corresponding to the position indicated by arrow L1.
The real end sensor 41 is a sensor for detecting that the roll paper S is completely consumed.

図5は、リアルエンドセンサー41を説明するため、プリンター1の要部を模式的に示す図である。
図5に示すように、リアルエンドセンサー41は、スイッチ式のセンサーであり、何も力が加わっていない状態(図5(B)に示す状態)のときはオフであり、押し下げられた状態(図5(A)に示す状態)のときにオンとなる。リアルエンドセンサー41は、後述する制御部40と信号通信可能に接続されており、オンのときはその旨の信号(第1検出値)を制御部40に対し出力し、また、オフのときはその旨の信号(第2検出値)を制御部40に対し出力する。
図5(A)に示すように、ロール紙Sが正常にセットされている状態において、カバーフレーム8(開閉カバー)が閉じた状態の場合、リアルエンドセンサー41付近のロール紙Sがカバーフレーム8により下方へ向かって押圧され、これに伴ってロール紙Sによりリアルエンドセンサー41が下方へ向かって押し下げられ、オンとなる。この場合、リアルエンドセンサー41から制御部40に対して第1検出値が出力される。一方、ロール紙Sが完全に消費され、いわゆる紙切れの状態となった場合、より詳細には、ロール紙Sの末端が、リアルエンドセンサー41を通過した場合、ロール紙Sによるリアルエンドセンサー41の押圧が解除され、リアルエンドセンサー41に力が加わっていない状態となり、オフとなる。この場合、リアルエンドセンサー41から制御部40に対して第2検出値が出力される。
また、図5(B)に示すように、カバーフレーム8(開閉カバー)が開いた状態の場合、リアルエンドセンサー41に対してカバーフレーム8を介して力が加わることがないため、リアルエンドセンサー41付近にロール紙Sが存在するか否かにかかわらず、リアルエンドセンサー41は、オフとなる。この場合、リアルエンドセンサー41から制御部40に対して第2検出値が出力される。
リアルエンドセンサー41は、上記構成を有するため、プリンター1の通常使用時においては、カバーフレーム8が開いた状態のときに、リアルエンドセンサー41がオンとなることはない。
なお、リアルエンドセンサー41は、押下可能なスイッチ式センサーであるため、ユーザーは、カバーフレーム8を開いた状態とした後、リアルエンドセンサー41を押下することにより、リアルエンドセンサー41をオンすることができる。
FIG. 5 is a diagram schematically illustrating a main part of the printer 1 in order to explain the real end sensor 41.
As shown in FIG. 5, the real end sensor 41 is a switch type sensor, and is off when no force is applied (the state shown in FIG. 5B), and is pushed down ( (A state shown in FIG. 5A). The real end sensor 41 is connected to a control unit 40, which will be described later, so as to be able to perform signal communication. When the real end sensor 41 is on, the real end sensor 41 outputs a signal to that effect (first detection value) to the control unit 40. A signal to that effect (second detection value) is output to the control unit 40.
As shown in FIG. 5A, when the roll paper S is normally set and the cover frame 8 (opening / closing cover) is closed, the roll paper S near the real end sensor 41 is covered with the cover frame 8. , The real end sensor 41 is pushed downward by the roll paper S and turned on. In this case, the first detection value is output from the real end sensor 41 to the control unit 40. On the other hand, when the roll paper S is completely consumed and is in a so-called out-of-paper state, more specifically, when the end of the roll paper S passes through the real end sensor 41, The pressure is released, no force is applied to the real end sensor 41, and the real end sensor 41 is turned off. In this case, the second detection value is output from the real end sensor 41 to the control unit 40.
Further, as shown in FIG. 5B, when the cover frame 8 (opening / closing cover) is in an open state, no force is applied to the real end sensor 41 via the cover frame 8, so that the real end sensor Regardless of whether roll paper S is present in the vicinity of 41, the real end sensor 41 is turned off. In this case, the second detection value is output from the real end sensor 41 to the control unit 40.
Since the real end sensor 41 has the above configuration, the real end sensor 41 is not turned on when the cover frame 8 is opened during normal use of the printer 1.
Since the real end sensor 41 is a switchable sensor that can be pressed, the user can turn on the real end sensor 41 by pressing the real end sensor 41 after opening the cover frame 8. Can do.

図6は、プリンター1の機能的構成を示すブロック図である。
制御部40は、CPU43や、ファームウェア44を含む各種制御プログラムや、各種データを書き換え可能に記憶するROM45、ワークエリアとして機能するRAM46、その他の周辺回路を備え、プリンター1の各部を中枢的に制御する。また、制御部40は、図示せぬ発振器が生成した基準クロックに基づいて各種計時動作を実行可能である。
カバーセンサー47は、カバーフレーム8が閉じられた状態(カバーセンサー47が本体フレーム7に対して正常に嵌合した状態)であるか否かを検出するためのセンサーであり、カバーフレーム8が閉じられた状態のときは、その旨の信号(検出値)を、また、開いた状態のときは、その旨の信号(検出値)を制御部40に出力する。
制御部40は、このカバーセンサー47や、上述したカッターセンサー25、リアルエンドセンサー41を含む各種センサーの検出値に基づいて、駆動モーター21を含むプリンター1の各部を制御する。
入力部50は、プリンター1に設けられた電源スイッチや、紙送り用のスイッチ等に接続され、スイッチに対する操作を検出し、制御部40に出力する。
表示部51は、プリンター1に設けられたLEDに接続され、制御部40の制御の下、LEDに対して制御信号を出力して、LEDを所定の態様で点灯/消灯させる。液晶表示パネル等の表示パネルを設け、表示部51により表示パネルに各種情報を表示する構成としてもよい。
プリントエンジン52は、制御部40の制御の下、接続された外部機器から送信された印刷用データやコマンドに基づき、プリンター1が備える記録機構を制御して、ロール紙Sに記録を行う。詳細には、プリンター1は、ロール紙Sの記録面に熱を与える記録ヘッド、ロール紙Sに対して記録ヘッドを移動させる記録ヘッド駆動機構、ロール紙Sを搬送する搬送機構等を有する記録機構を備えており、この記録機構がプリントエンジン52によって制御される。
FIG. 6 is a block diagram illustrating a functional configuration of the printer 1.
The control unit 40 includes a CPU 43, various control programs including firmware 44, a ROM 45 that stores various data in a rewritable manner, a RAM 46 that functions as a work area, and other peripheral circuits, and centrally controls each unit of the printer 1. To do. Further, the control unit 40 can execute various timing operations based on a reference clock generated by an oscillator (not shown).
The cover sensor 47 is a sensor for detecting whether or not the cover frame 8 is in a closed state (a state in which the cover sensor 47 is normally fitted to the main body frame 7), and the cover frame 8 is closed. When it is in the open state, a signal to that effect (detection value) is output to the control unit 40, and when in the open state, a signal to that effect (detection value) is output to the control unit 40.
The control unit 40 controls each unit of the printer 1 including the drive motor 21 based on detection values of various sensors including the cover sensor 47 and the above-described cutter sensor 25 and real end sensor 41.
The input unit 50 is connected to a power switch, a paper feed switch, or the like provided in the printer 1, detects an operation on the switch, and outputs the operation to the control unit 40.
The display unit 51 is connected to an LED provided in the printer 1 and outputs a control signal to the LED under the control of the control unit 40 to turn on / off the LED in a predetermined manner. A display panel such as a liquid crystal display panel may be provided, and various types of information may be displayed on the display panel by the display unit 51.
The print engine 52 performs recording on the roll paper S by controlling the recording mechanism provided in the printer 1 based on the printing data and commands transmitted from the connected external device under the control of the control unit 40. Specifically, the printer 1 includes a recording head that applies heat to the recording surface of the roll paper S, a recording head drive mechanism that moves the recording head relative to the roll paper S, a transport mechanism that transports the roll paper S, and the like. The recording mechanism is controlled by the print engine 52.

本実施形態に係るプリンター1は、カバーフレーム8が開いた状態の場合、カッターユニット4の駆動モーター21の駆動を停止し、可動刃9の移動が行われない構成としている。
詳述すると、プリンター1の制御部40は、カバーセンサー47の検出値に基づいて、カバーフレーム8の状態を監視する。そして、カバーセンサー47が閉じている状態であることが検出されている間は、必要に応じて、駆動モーター21を駆動して、可動刃9を移動する。一方、カバーセンサー47が開いている状態であることが検出されている場合は、制御部40は、駆動モーター21の駆動を停止し、可動刃9の移動を停止する。特に、可動刃9が移動している途中に、カバーフレーム8が閉じた状態から開いた状態となったことが検出された場合、制御部40は、その時点で駆動モーター21の駆動を停止することにより可動刃9の移動を停止する。
このように、プリンター1の通常使用時においては、カバーフレーム8が開いた状態のときは可動刃9が必ず停止した状態となるため、カバーフレーム8が開いた状態のときに、カッターセンサー25の検出値が、可動刃9が待機位置に位置していることを示す信号(以下、「待機位置検出値」という)から、可動刃9が待機位置に位置していないことを示す信号(以下、「移動位置検出値」という)へ変位することも、また、その逆に変位することも基本的には、ない。
The printer 1 according to the present embodiment is configured such that when the cover frame 8 is in an open state, the drive motor 21 of the cutter unit 4 is stopped and the movable blade 9 is not moved.
More specifically, the control unit 40 of the printer 1 monitors the state of the cover frame 8 based on the detection value of the cover sensor 47. And while it is detected that the cover sensor 47 is in the closed state, the drive motor 21 is driven as necessary to move the movable blade 9. On the other hand, when it is detected that the cover sensor 47 is in an open state, the control unit 40 stops driving the drive motor 21 and stops the movement of the movable blade 9. In particular, when it is detected that the cover frame 8 has been opened from the closed state while the movable blade 9 is moving, the control unit 40 stops driving the drive motor 21 at that time. As a result, the movement of the movable blade 9 is stopped.
Thus, during normal use of the printer 1, since the movable blade 9 is always stopped when the cover frame 8 is open, the cutter sensor 25 is not open when the cover frame 8 is open. From the signal indicating that the movable blade 9 is located at the standby position (hereinafter referred to as “standby position detection value”), the detection value is a signal indicating that the movable blade 9 is not located at the standby position (hereinafter referred to as “standby position detection value”). Basically, there is no displacement to “moving position detection value” and vice versa.

また、制御部40は、リアルエンドセンサー41の検出値に基づいて、ロール紙Sの紙切れが発生したか否かを検出する。
詳述すると、制御部40は、カバーセンサー47の検出値に基づいて、カバーフレーム8が閉じているか否かを判別する。そして、制御部40は、カバーフレーム8が閉じている場合に、リアルエンドセンサー41から第1検出値が入力されている場合は、紙切れが発生していないと判別し、一方、リアルエンドセンサー41から第2検出値が入力されている場合は、紙切れが発生していると判別する。本実施形態では、紙切れが発生していることを検出した場合、制御部40は、表示部51を制御して、プリンター1に設けられたLEDを所定の態様で点灯/消灯させ、その旨報知する。
なお、上述したように、カバーセンサー47が開いた状態のときは、ロール紙Sに紙切れが発生しているか否かにかかわらず、リアルエンドセンサー41から制御部40に対して第2検出値が入力されるため、制御部40は、カバーセンサー47が開いているときには、ロール紙Sの紙切れの検出を行わない。
Further, the control unit 40 detects whether or not the roll paper S has run out based on the detection value of the real end sensor 41.
More specifically, the control unit 40 determines whether or not the cover frame 8 is closed based on the detection value of the cover sensor 47. Then, when the cover frame 8 is closed and the first detection value is input from the real end sensor 41, the control unit 40 determines that no paper break has occurred, while the real end sensor 41 If the second detection value is input from, it is determined that a piece of paper has occurred. In the present embodiment, when it is detected that a piece of paper has occurred, the control unit 40 controls the display unit 51 to turn on / off the LEDs provided in the printer 1 in a predetermined manner, and notify that effect. To do.
As described above, when the cover sensor 47 is in the open state, the second detection value is sent from the real end sensor 41 to the control unit 40 regardless of whether or not the roll paper S is out of paper. Therefore, when the cover sensor 47 is open, the control unit 40 does not detect that the roll paper S is out of paper.

ところで、上述したように、ROM45には、プリンター1の基本的な制御するためのプログラム群であるファームウェア44が記憶されている。ファームウェア44は、機能拡張や、プログラム修正を目的として、書き換えを行う必要が生じることがある一方で、プリンター1の基本動作を制御するためのプログラムであり、書き換えが正常に行われなかった場合、プリンター1の以後の動作に多大な悪影響を与えることがある。
このため、ファームウェア44の書き換えは、必要なときにだけ実行されることが求められており、本実施形態に係るプリンター1では、動作モードのひとつとして、ファームウェアの書き換えを実行可能な動作モード(以下、「ファーム書換モード」という)が設けられ、プリンター1側で、動作モードが、ファーム書換モードに移行しない限り、ファームウェア44の一切の書き換えが実行できない構成となっている。
ここで、従来は、回路基板27に、動作モードをファーム書換モードへ移行させるための専用のディップスイッチを設ける等、物理的なスイッチを設け、スイッチの状態に応じて、動作モードをファーム書換モードへ移行していた。この場合、物理的なスイッチを設ける必要がある分、製造コストが増大してしまうという問題があり、さらに、例えば、回路基板27のディップスイッチが設けられた面が露出する程度に、プリンター1を解体する必要があり、ファーム書換モードへ移行させる際に行う作業が非常に煩雑であるという問題があった。
以上を踏まえ、本実施形態に係るプリンター1は、以下の動作を実行することにより、製造コストの増大を抑制しつつ、必要なときにファーム書換モードへ移行できるようにしており、特に、偶発的にファーム書換モードに移行してしまうことを極力防止した上で、これらのことを実現している。
Incidentally, as described above, the ROM 45 stores the firmware 44 that is a program group for basic control of the printer 1. The firmware 44 is a program for controlling the basic operation of the printer 1 while it may be necessary to perform rewriting for the purpose of function expansion or program correction. If rewriting is not performed normally, The subsequent operation of the printer 1 may be greatly adversely affected.
For this reason, the rewriting of the firmware 44 is required to be executed only when necessary. In the printer 1 according to the present embodiment, as one of the operation modes, an operation mode (hereinafter referred to as firmware rewrite) can be executed. , “Firmware rewriting mode” is provided, and the firmware 1 cannot be rewritten at all unless the operation mode shifts to the firmware rewriting mode on the printer 1 side.
Here, conventionally, a physical switch such as a dedicated dip switch for shifting the operation mode to the firmware rewriting mode is provided on the circuit board 27, and the operation mode is changed to the firmware rewriting mode according to the state of the switch. Had moved to. In this case, there is a problem that the manufacturing cost increases because it is necessary to provide a physical switch. Further, for example, the printer 1 is mounted to such an extent that the surface of the circuit board 27 provided with the dip switch is exposed. There is a problem that it is necessary to dismantle and the work to be performed when shifting to the firmware rewriting mode is very complicated.
Based on the above, the printer 1 according to the present embodiment can shift to the firmware rewriting mode when necessary while suppressing an increase in manufacturing cost by executing the following operations. This is achieved by preventing the shift to the firmware rewriting mode as much as possible.

図7は、プリンター1のファーム書換モードの移行に係る動作を示すフローチャートである。
なお、図7の動作の開始時点では、カバーフレーム8は閉じられた状態であるものとする。
図7を参照し、プリンター1の制御部40は、カバーセンサー47から入力された検出値に基づいて、カバーフレーム8が開いた状態となったか否かを監視する(ステップSA1)。
カバーフレーム8が開いた状態となった場合(ステップSA1:YES)、制御部40は、リアルエンドセンサー41から第1検出値が所定の態様(後述)で入力されたか否かを判別する(ステップSA2)。所定の態様で第1検出値が入力された場合は(ステップSA2:YES)、制御部40は、動作モードをファーム書換モードへ移行し(ステップSA3)、処理を終了する。
一方、ステップSA2において、所定の態様で第1検出値が入力されていない場合(ステップSA2:NO)、制御部40は、カッターセンサー25から所定の態様(後述)で検出値が入力されたか否かを判別する(ステップSA4)。所定の態様で検出値が入力された場合(ステップSA4:YES)、制御部40は、動作モードをファーム書換モードへ移行し(ステップSA3)、所定の態様で検出値が入力されていない場合(ステップSA4:NO)、制御部40は、処理手順をステップSA2へ戻す。
すなわち、本実施形態では、カバーフレーム8が開いた状態となった後、制御部40は、リアルエンドセンサー41から第1検出値が所定の態様で入力されたか否か、及び、カッターセンサー25から検出値が所定の態様で入力されたか否かを監視し、いずれかのセンサーから所定の態様で検出値が入力された場合は、動作モードをファーム書換モードへ移行する一方、入力されない場合は、入力される検出値の監視を継続して行う。
以下、ステップSA2〜SA4について、詳細に説明する。
FIG. 7 is a flowchart illustrating an operation related to the shift of the firmware rewriting mode of the printer 1.
It is assumed that the cover frame 8 is in a closed state at the start of the operation of FIG.
Referring to FIG. 7, the control unit 40 of the printer 1 monitors whether or not the cover frame 8 has been opened based on the detection value input from the cover sensor 47 (step SA1).
When the cover frame 8 is in an open state (step SA1: YES), the control unit 40 determines whether or not the first detection value is input from the real end sensor 41 in a predetermined mode (described later) (step S1). SA2). When the first detection value is input in a predetermined manner (step SA2: YES), the control unit 40 shifts the operation mode to the firmware rewriting mode (step SA3) and ends the process.
On the other hand, when the first detection value is not input in a predetermined manner in Step SA2 (Step SA2: NO), the control unit 40 determines whether or not the detection value is input in a predetermined manner (described later) from the cutter sensor 25. Is determined (step SA4). When the detection value is input in a predetermined mode (step SA4: YES), the control unit 40 shifts the operation mode to the firmware rewriting mode (step SA3), and when the detection value is not input in the predetermined mode (step SA3). Step SA4: NO), the control unit 40 returns the processing procedure to Step SA2.
That is, in the present embodiment, after the cover frame 8 is opened, the control unit 40 determines whether or not the first detection value is input from the real end sensor 41 in a predetermined manner and from the cutter sensor 25. Monitors whether or not the detection value is input in a predetermined manner, and if the detection value is input in a predetermined manner from any of the sensors, the operation mode is shifted to the firmware rewriting mode. Continue to monitor the input detection value.
Hereinafter, steps SA2 to SA4 will be described in detail.

ステップSA2では、制御部40は、リアルエンドセンサー41から第1検出値が所定の態様(後述)で入力されたか否かを判別している。
上述したように、プリンター1の通常の使用時は、カバーフレーム8が開いている限り、リアルエンドセンサー41から制御部40に対して第2検出値が入力される。一方で、カバーフレーム8が開いている状態のときに、リアルエンドセンサー41が意図的に押下された場合は、リアルエンドセンサー41から制御部40に対して第1検出値が入力されることとなる。
これを踏まえ、本実施形態では、ファーム書換モードへ移行するトリガーの1つとして「カバーフレーム8が開いているときにリアルエンドセンサー41が押下されること」が、予め定められ、かつ、ファーム書換モードへ移行する権限を有する者に当該トリガーが予め知らされている。そして、ステップSA2において、制御部40は、カバーフレーム8が開いた状態でリアルエンドセンサー41から第1検出値が入力されたか否かを判別し、第1検出値が入力された場合(ステップSA2:YES)、動作モードをファーム書換モードへ移行することを意図した者が、意識的にカバーフレーム8を開いた上でリアルエンドセンサー41を押下したものとして、ファーム書換モードへの移行を実行する(ステップSA3)。これにより、ディップスイッチ等の専用のスイッチを設けることなく、既存のリアルエンドセンサー41を利用して、必要なときにファーム書換モードへ移行できるようにしている。
In step SA2, the control unit 40 determines whether or not the first detection value is input from the real end sensor 41 in a predetermined manner (described later).
As described above, during normal use of the printer 1, the second detection value is input from the real end sensor 41 to the control unit 40 as long as the cover frame 8 is open. On the other hand, when the real end sensor 41 is intentionally pressed while the cover frame 8 is open, the first detection value is input from the real end sensor 41 to the control unit 40. Become.
Based on this, in the present embodiment, as one of the triggers for shifting to the firmware rewriting mode, “the real end sensor 41 is pressed when the cover frame 8 is open” is predetermined and the firmware rewriting is performed. The trigger is informed beforehand to those who have the authority to enter the mode. In step SA2, the control unit 40 determines whether or not the first detection value is input from the real end sensor 41 in a state where the cover frame 8 is opened, and when the first detection value is input (step SA2). : YES), the person who intends to shift the operation mode to the firmware rewriting mode performs the transition to the firmware rewriting mode on the assumption that the real end sensor 41 is pressed after the cover frame 8 is intentionally opened. (Step SA3). This makes it possible to shift to the firmware rewrite mode when necessary using the existing real end sensor 41 without providing a dedicated switch such as a dip switch.

なお、カバーフレーム8が開いた状態で、偶発的にリアルエンドセンサー41が押下されてしまうことがある。
これを踏まえ、本実施形態では、所定の態様で第1検出値が入力された場合に初めてファーム書換モードへ移行する構成となっている。
所定の態様とは、動作モードをファーム書換モードへ移行することを意図した者(以下、単に「作業者」という)が、意識的に所定の操作したときに初めて現出するような第1検出値の態様のことである。これにより、作業者が、動作モードをファーム書換モードへ移行する意図で、リアルエンドセンサー41に対して所定の複雑な動作を行った場合にのみ、動作モードがファーム書換モードへ移行することとなり、偶発的に、動作モードがファーム書換モードへ移行してしまうことが極力防止される。
所定の態様として、例えば、作業者が所定の時間(例えば5秒)内で所定の回数(例えば5回)以上、リアルエンドセンサー41を押下したときに出力される信号に対応する態様や、作業者が所定の時間以上の間継続してリアルエンドセンサー41を押下したときに出力される信号に対応する態様等を設定可能である。
なお、ファーム書換モードへ移行するためにユーザーがリアルエンドセンサー41に対して行うべき動作を複雑化すればするほど、偶発的に動作モードがファーム書換モードへ移行してしまうことを防止できるものの、ユーザーが行うべき作業が煩雑化してしまうため、所定の態様は、ユーザーの利便性を考慮して適切に定められる。
Note that the real end sensor 41 may be accidentally pressed in a state where the cover frame 8 is opened.
Based on this, the present embodiment is configured to shift to the firmware rewriting mode for the first time when the first detection value is input in a predetermined manner.
The predetermined mode is the first detection that appears for the first time when a person who intends to shift the operation mode to the firmware rewriting mode (hereinafter simply referred to as “worker”) consciously performs a predetermined operation. It is the aspect of the value. Thereby, only when the operator performs a predetermined complicated operation on the real end sensor 41 with the intention of shifting the operation mode to the firmware rewriting mode, the operation mode shifts to the firmware rewriting mode. Accidentally shifting the operation mode to the firmware rewriting mode is prevented as much as possible.
As a predetermined mode, for example, a mode corresponding to a signal output when the worker presses the real end sensor 41 a predetermined number of times (for example, 5 times) or more within a predetermined time (for example, 5 seconds) It is possible to set a mode corresponding to a signal output when the person continuously presses down the real end sensor 41 for a predetermined time or more.
Note that the more complicated the operation that the user should perform on the real end sensor 41 in order to shift to the firmware rewriting mode, the more the accidental operation mode can be prevented from shifting to the firmware rewriting mode. Since the work to be performed by the user becomes complicated, the predetermined mode is appropriately determined in consideration of user convenience.

また、ステップSA4では、制御部40は、カッターセンサー25から所定の態様の検出値が入力されたか否かを判別する。
上述したように、プリンター1の通常の使用時は、駆動モーター21の駆動が停止されることにより可動刃9の移動が停止されるため、カッターセンサー25から制御部40に出力される検出値は変位しない。すなわち、可動刃9が待機位置に位置している場合は、カバーフレーム8が開いた状態の間、可動刃9が待機位置に位置している状態が維持され、カッターセンサー25から制御部40に対して上述した待機位置検出値が出力され、また、可動刃9が待機位置に位置していない場合は、カバーフレーム8が開いた状態の間、可動刃9が待機位置に位置していない状態が維持され、カッターセンサー25から制御部40に対して上述した移動位置検出値が出力される。
これを踏まえ、本実施形態では、ファーム書換モードへ移行するトリガーの1つとして「カバーフレーム8が開いているときに、可動刃9が待機位置と、待機位置以外の位置との間で移動すること」が、予め定められ、かつ、ファーム書換モードへ移行する権限を有する者に当該トリガーが予め知らされている。なお、上述したように、ユーザーは、カッターユニットフレーム11のカバー11aに形成された窓部111を介して、ウォームホイール23の上面に設けられた目印を確認しつつ、ウォーム歯車22の基端部に設けられた平歯車部29を操作することにより、待機位置に位置する可動刃9を待機位置以外の位置へ移動でき、また、待機位置以外の位置に位置する可動刃9を待機位置へ移動することができる。
そして、ステップSA4において、制御部40は、カバーフレーム8が開いた状態で、待機位置検出値と移動位置検出値との間で検出値が変位したか否かを検出し、当該変位が検出された場合(ステップSA4:YES)、動作モードをファーム書換モードへ移行することを意図した者が、意識的にカバーフレーム8を開いた上で可動刃9を移動させたものとして、ファーム書換モードへの移行を実行する(ステップSA3)。これにより、ディップスイッチ等の専用のスイッチを設けることなく、既存のカッターセンサー25を利用して、必要なときにファーム書換モードへ移行できるようにしている。
In step SA4, the control unit 40 determines whether or not a detection value of a predetermined mode is input from the cutter sensor 25.
As described above, during normal use of the printer 1, since the movement of the movable blade 9 is stopped by stopping the driving of the drive motor 21, the detection value output from the cutter sensor 25 to the control unit 40 is Does not displace. That is, when the movable blade 9 is located at the standby position, the state where the movable blade 9 is located at the standby position is maintained while the cover frame 8 is opened, and the cutter sensor 25 sends the control unit 40 to the control unit 40. In contrast, when the above-described standby position detection value is output and the movable blade 9 is not positioned at the standby position, the movable blade 9 is not positioned at the standby position while the cover frame 8 is open. Is maintained, and the movement position detection value described above is output from the cutter sensor 25 to the control unit 40.
Based on this, in this embodiment, as one of the triggers for shifting to the firmware rewriting mode, “when the cover frame 8 is open, the movable blade 9 moves between the standby position and a position other than the standby position. The trigger is informed beforehand to a person who is predetermined and has the authority to shift to the firmware rewriting mode. As described above, the user confirms the mark provided on the upper surface of the worm wheel 23 through the window 111 formed in the cover 11a of the cutter unit frame 11, and the base end portion of the worm gear 22 By operating the spur gear portion 29 provided on the movable blade 9, the movable blade 9 positioned at the standby position can be moved to a position other than the standby position, and the movable blade 9 positioned at a position other than the standby position is moved to the standby position. can do.
In step SA4, the control unit 40 detects whether or not the detection value is displaced between the standby position detection value and the movement position detection value with the cover frame 8 being opened, and the displacement is detected. (Step SA4: YES), it is assumed that the person who intends to shift the operation mode to the firmware rewriting mode has moved the movable blade 9 after opening the cover frame 8 consciously, and enters the firmware rewriting mode. (Step SA3). This makes it possible to shift to the firmware rewriting mode when necessary using the existing cutter sensor 25 without providing a dedicated switch such as a dip switch.

なお、可動刃9の位置を修正すべく、カバーフレーム8が開いた状態で、可動刃9が移動されることがある。
これを踏まえ、本実施形態では、カッターセンサー25から所定の態様で検出値が入力された場合に初めてファーム書換モードへ移行する構成となっている。
所定の態様とは、上記作業者が、動作モードをファーム書換モードへ移行することを意図して、意識的に可動刃9を移動させたときに初めて現出するような検出値の態様のことである。これにより、作業者が、動作モードをファーム書換モードへ移行する意図で、可動刃9を複雑に移動させた場合にのみ、動作モードがファーム書換モードへ移行することとなり、偶発的に、動作モードがファーム書換モードへ移行してしまうことが極力防止される。
所定の態様として、例えば、作業者が所定の時間(例えば5秒)内で所定の回数(例えば3回)以上、待機位置と、待機位置以外の位置との間を行き来するように可動刃9を移動させたときに出力される信号に対応する態様や、作業者が所定の間隔(例えば3秒ごと)で所定の回数(例えば5回)以上、待機位置と、待機位置以外の位置との間を行き来するように可動刃9を移動させたときに出力される信号に対応する態様等を設定可能である。
なお、ファーム書換モードへ移行するためにユーザーが可動刃9に対して行うべき動作を複雑化すればするほど、偶発的に動作モードがファーム書換モードへ移行してしまうことを防止できるものの、ユーザーが行うべき作業が煩雑化してしまうため、所定の態様は、ユーザーの利便性を考慮して適切に定められる。
In order to correct the position of the movable blade 9, the movable blade 9 may be moved while the cover frame 8 is open.
Based on this, the present embodiment is configured to shift to the firmware rewriting mode for the first time when a detection value is input from the cutter sensor 25 in a predetermined manner.
The predetermined mode is a mode of a detected value that appears for the first time when the operator intentionally moves the movable blade 9 with the intention of shifting the operation mode to the firmware rewriting mode. It is. Thereby, only when the operator moves the movable blade 9 in a complicated manner with the intention of shifting the operation mode to the firmware rewriting mode, the operation mode is shifted to the firmware rewriting mode. Is prevented as much as possible from entering the firmware rewriting mode.
As the predetermined mode, for example, the movable blade 9 is moved so that the operator moves back and forth between the standby position and a position other than the standby position for a predetermined number of times (for example, 3 times) within a predetermined time (for example, 5 seconds). Between the standby position and a position other than the standby position at a predetermined number of times (for example, 5 times) or more at a predetermined interval (for example, every 3 seconds) A mode corresponding to a signal output when the movable blade 9 is moved so as to move back and forth can be set.
The more complicated the operation that the user should perform on the movable blade 9 in order to shift to the firmware rewriting mode, the more the operation mode can be prevented from shifting to the firmware rewriting mode. Therefore, the predetermined mode is appropriately determined in consideration of user convenience.

以上のように、図7示す動作では、カバーフレーム8が開いた状態となった後、制御部40は、リアルエンドセンサー41から第1検出値が所定の態様で入力されたか否か、及び、カッターセンサー25から検出値が所定の態様で入力されたか否かを監視し、いずれかのセンサーから所定の態様で検出値が入力された場合は、動作モードをファーム書換モードへ移行する一方、入力されない場合は、入力される検出値の監視を継続して行っていた。
しかしながら、これに限らず、カバーフレーム8が開いた状態となった後に、制御部40は、リアルエンドセンサー41から第1検出値が所定の態様で入力されたか否かのみを監視するようにしてもよく、また、カッターセンサー25から検出値が所定の態様で入力されたか否かのみを監視するようにしてもよい。また、いずれのセンサーの検出値を監視するのかを切り替え可能に構成してもよい。
また、リアルエンドセンサー41の検出値と、カッターセンサー25の検出値との組み合わせに応じて、動作モードをファーム書換モードへ移行するか否か判別する構成としてもよい。例えば、制御部40は、カバーフレーム8が開いている状態において、リアルエンドセンサー41から第1検出値が入力されている間に、カッターセンサー25から入力された検出値が変位したことが検出された場合に、動作モードをファーム書換モードへ移行する構成としてもよい。また例えば、制御部40は、リアルエンドセンサー41から所定の態様で検出値が入力された直後に、カッターセンサー25から所定の態様で検出値が入力された場合に、動作モードをファーム書換モードへ移行する構成としてもよい。このように、リアルエンドセンサー41の検出値、及び、カッターセンサー25の検出値の2つのセンサーの検出値の組み合わせを利用して、動作モードをファーム書換モードへ移行するか否かを判別する構成とすることにより、ファーム書換モードに移行する際に作業者が行うべき作業がより複雑化し、偶発的に動作モードがファーム書換モードへ移行してしまうことをより防止できる。
また、既存のスイッチをさらに利用してファーム書換モードへ移行するか否かを判別する構成としてもよい。
As described above, in the operation illustrated in FIG. 7, after the cover frame 8 is in the open state, the control unit 40 determines whether or not the first detection value is input from the real end sensor 41 in a predetermined manner, and It is monitored whether or not a detection value is input from the cutter sensor 25 in a predetermined manner. When a detection value is input from any sensor in a predetermined manner, the operation mode is shifted to the firmware rewriting mode while the input is performed. If not, the input detection value was continuously monitored.
However, the present invention is not limited to this, and after the cover frame 8 is opened, the control unit 40 only monitors whether or not the first detection value is input from the real end sensor 41 in a predetermined manner. Alternatively, only whether or not the detection value is input from the cutter sensor 25 in a predetermined manner may be monitored. Moreover, you may comprise so that switching which detection value of which sensor is monitored is possible.
Moreover, it is good also as a structure which discriminate | determines whether an operation mode transfers to firm rewriting mode according to the combination of the detected value of the real end sensor 41, and the detected value of the cutter sensor 25. FIG. For example, the control unit 40 detects that the detection value input from the cutter sensor 25 is displaced while the first detection value is input from the real end sensor 41 while the cover frame 8 is open. In such a case, the operation mode may be shifted to the firmware rewriting mode. Further, for example, the control unit 40 switches the operation mode to the firmware rewriting mode when the detection value is input in a predetermined manner from the cutter sensor 25 immediately after the detection value is input in a predetermined manner from the real end sensor 41. It is good also as a structure which transfers. As described above, a configuration for determining whether or not to shift the operation mode to the firmware rewriting mode by using a combination of the detection values of the two sensors of the detection value of the real end sensor 41 and the detection value of the cutter sensor 25. By doing so, the work to be performed by the operator when shifting to the firmware rewriting mode is further complicated, and it is possible to further prevent the operation mode from being accidentally shifted to the firmware rewriting mode.
Moreover, it is good also as a structure which discriminate | determines whether it transfers to firmware rewriting mode further using the existing switch.

図8は、既存のスイッチを利用してファーム書換モードへ移行するか否かを判別する場合におけるプリンター1の動作の一例を示すフローチャートである。
なお、図8の例では、動作モードをファーム書換モードへ移行するトリガーとして「電源投入時に、カバーフレーム8が開いた状態でかつリアルエンドセンサー41が押下されていること」が予め定められ、かつ、ファーム書換モードへ移行する権限を有する者に当該トリガーが予め知らされているものとする。
また、図8のフローチャートの動作の開始時点では、ユーザーにより、電源がオフからオンへと移行されたものとする。
FIG. 8 is a flowchart illustrating an example of the operation of the printer 1 when determining whether or not to shift to the firmware rewriting mode using an existing switch.
In the example of FIG. 8, “when the power is turned on, the cover frame 8 is opened and the real end sensor 41 is pressed” is determined in advance as a trigger for shifting the operation mode to the firmware rewriting mode. It is assumed that the trigger is informed in advance to those who have the authority to shift to the firmware rewriting mode.
Further, it is assumed that at the start of the operation of the flowchart of FIG. 8, the user has switched the power from off to on.

プリンター1の電源がオンされたことを検出すると(ステップSB1)、制御部40は、カバーフレーム8が開いた状態であるか否かを判別する(ステップSB2)。カバーフレーム8が開いていない場合(ステップSB2:NO)、制御部40は、動作モードの移行を行うことなく処理を終了する。
一方、カバーフレーム8が開いている場合(ステップSB2:YES)、制御部40は、リアルエンドセンサー41から第1検出値が入力されているか否かを判別する(ステップSB3)。
第1検出値が入力されていない場合(ステップSB3:NO)、制御部40は、動作モードの移行を行うことなく処理を終了する。
一方、第1検出値が入力されている場合(ステップSB3:YES)、制御部40は、動作モードをファーム書換モードへ移行する(ステップSB4)。なお、第1検出値が入力されているということは、電源投入時に、カバーフレーム8が開けられた状態で、リアルエンドセンサー41が押下されているということである。
このような動作をすることにより、作業者は、動作モードをファーム書換モードへ移行したいと考えた場合、一旦、プリンター1の電源をオフした後、カバーフレーム8を開き、リアルエンドセンサー41を押下した状態で、電源を投入すればよい。すなわち、図8の例では、ディップスイッチ等の専用のスイッチを設けることなく、既存のスイッチ、及び、既存のセンサーを利用して、必要なときに動作モードをファーム書換モードへ移行することができる。
なお、図8の例では、「電源投入時にカバーフレーム8が開いた状態でかつリアルエンドセンサー41が押下されていること」が、動作モードをファーム書換モードへ移行するトリガーであったが、プリンター1に各種リセット動作の実行を指示するためのリセットスイッチを設け、「リセットスイッチが操作されたときに、リアルエンドセンサー41が押下されていること」をトリガーとするようにしてもよい。
When it is detected that the printer 1 is turned on (step SB1), the control unit 40 determines whether or not the cover frame 8 is open (step SB2). When the cover frame 8 is not open (step SB2: NO), the control unit 40 ends the process without shifting the operation mode.
On the other hand, when the cover frame 8 is open (step SB2: YES), the control unit 40 determines whether or not the first detection value is input from the real end sensor 41 (step SB3).
When the first detection value is not input (step SB3: NO), the control unit 40 ends the process without performing the operation mode transition.
On the other hand, when the first detection value is input (step SB3: YES), the control unit 40 shifts the operation mode to the firmware rewriting mode (step SB4). The input of the first detection value means that the real end sensor 41 is pressed with the cover frame 8 opened when the power is turned on.
By performing such an operation, when the operator wishes to shift the operation mode to the firmware rewriting mode, the printer 1 is once turned off, and then the cover frame 8 is opened and the real end sensor 41 is pressed. In this state, the power can be turned on. That is, in the example of FIG. 8, the operation mode can be shifted to the firmware rewriting mode when necessary using an existing switch and an existing sensor without providing a dedicated switch such as a dip switch. .
In the example of FIG. 8, “the cover frame 8 is open and the real end sensor 41 is pressed when the power is turned on” was a trigger for shifting the operation mode to the firmware rewriting mode. 1 may be provided with a reset switch for instructing execution of various reset operations, and the trigger may be “the real end sensor 41 is pressed when the reset switch is operated”.

以上説明したように、本実施形態に係るプリンター1は、記録に係る動作の制御に利用するリアルエンドセンサー41、及び、カッターセンサー25を備え、制御部40は、これらセンサーから入力された検出値に応じて、ファーム書換モードへの移行を実行する。
これによれば、専用のスイッチ等を設けることなく、既存のセンサーを利用してファーム書換モードへの移行を実行できるため、コストの削減を実現しつつ、必要なときにファーム書換モードへ移行への移行を実行することが可能となる。
As described above, the printer 1 according to the present embodiment includes the real end sensor 41 and the cutter sensor 25 that are used for controlling the operation related to recording, and the control unit 40 detects the detection values input from these sensors. In response to this, the transition to the firmware rewrite mode is executed.
According to this, since the transition to the firmware rewriting mode can be executed using an existing sensor without providing a dedicated switch or the like, the transition to the firmware rewriting mode is performed when necessary while realizing cost reduction. Can be executed.

また、本実施形態では、制御部40は、予め定められた所定の状況下で、リアルエンドセンサー41、及び、カッターセンサー25から所定の検出値が入力された場合に、ファーム書換モードへの移行を実行する。
詳細には、制御部40は、カバーセンサー47の検出値により、カバーフレーム8(開閉カバー)が開いていることが検出されているときに、リアルエンドセンサー41から第1検出値が所定の態様で入力された場合に、ファーム書換モードへの移行を実行する。
これによれば、カバーフレーム8が開いているときはリアルエンドセンサー41から制御部40に対して第2検出値が入力されることを利用して、リアルエンドセンサー41を用いて必要なときにファーム書換モードへの移行が可能となる。
ここで、所定の態様とは、動作モードをファーム書換モードへ移行することを意図した者が、意識的に所定の操作したときに初めて現出するような第1検出値の態様のことである。そして、リアルエンドセンサー41から第1検出値が所定の態様で入力された場合に、ファーム書換モードへの移行を実行する構成とすることにより、作業者が、動作モードをファーム書換モードへ移行する意図で、リアルエンドセンサー41に対して所定の複雑な動作を行った場合にのみ、動作モードがファーム書換モードへ移行することとなり、偶発的に、動作モードがファーム書換モードへ移行してしまうことが極力防止される。
In the present embodiment, the control unit 40 shifts to the firmware rewriting mode when predetermined detection values are input from the real end sensor 41 and the cutter sensor 25 under a predetermined condition. Execute.
Specifically, the control unit 40 determines that the first detection value from the real end sensor 41 is a predetermined mode when it is detected from the detection value of the cover sensor 47 that the cover frame 8 (open / close cover) is open. When entered in, transfer to the firmware rewrite mode is executed.
According to this, when the cover frame 8 is open, when the second end detection value is input from the real end sensor 41 to the control unit 40, the real end sensor 41 is used when necessary. Transition to the firmware rewrite mode is possible.
Here, the predetermined mode is a mode of the first detection value that appears for the first time when a person who intends to shift the operation mode to the firmware rewriting mode consciously performs a predetermined operation. . Then, when the first detection value is input from the real end sensor 41 in a predetermined manner, the operator shifts the operation mode to the firmware rewriting mode by performing the transition to the firmware rewriting mode. Only when a predetermined complicated operation is performed on the real end sensor 41 by intention, the operation mode shifts to the firmware rewriting mode, and the operation mode accidentally shifts to the firmware rewriting mode. Is prevented as much as possible.

また、本実施形態では、制御部40は、カバーセンサー47の検出値により、カバーフレーム8が開いていることが検出されているときに、カッターセンサー25から所定の態様で検出値が入力された場合に、ファーム書換モードへの移行を実行する。
これによれば、カバーフレーム8が開いているときは可動刃9の動作が停止し、これに伴いカッターセンサー25の検出値が変化しないことを利用して、カッターセンサー25を用いて必要なときに動作モードをファーム書換モードへ移行できる。
ここで、所定の態様とは、動作モードをファーム書換モードへ移行することを意図した者が、動作モードをファーム書換モードへ移行することを意図して、意識的に可動刃9を移動させたときに初めて現出するような検出値の態様のことである。これにより、作業者が、動作モードをファーム書換モードへ移行する意図で、可動刃9を複雑に移動させた場合にのみ、動作モードがファーム書換モードへ移行することとなり、偶発的に、動作モードがファーム書換モードへ移行してしまうことが極力防止される。
In the present embodiment, the control unit 40 receives the detection value from the cutter sensor 25 in a predetermined manner when the cover frame 8 is detected to be open based on the detection value of the cover sensor 47. In this case, the shift to the firmware rewriting mode is executed.
According to this, when the cover frame 8 is open, the operation of the movable blade 9 is stopped, and the detection value of the cutter sensor 25 does not change accordingly, and when necessary using the cutter sensor 25. The operation mode can be shifted to the firmware rewrite mode.
Here, the predetermined mode is that a person who intends to shift the operation mode to the firmware rewriting mode intentionally moves the movable blade 9 with the intention of shifting the operation mode to the firmware rewriting mode. It is a mode of detected values that sometimes appears for the first time. Thereby, only when the operator moves the movable blade 9 in a complicated manner with the intention of shifting the operation mode to the firmware rewriting mode, the operation mode is shifted to the firmware rewriting mode. Is prevented as much as possible from entering the firmware rewriting mode.

また、一例として説明したように、本実施形態に係るプリンター1において、リアルエンドセンサー41の検出値と、カッターセンサー25の検出値との組み合わせに応じて、動作モードをファーム書換モードへ移行するか否か判別する構成としてもよい。例えば、制御部40は、カバーフレーム8が開いている状態において、リアルエンドセンサー41から第1検出値が入力されている間に、カッターセンサー25から入力された検出値が変位したことが検出された場合に、動作モードをファーム書換モードへ移行する構成としてもよい。また例えば、制御部40は、リアルエンドセンサー41から所定の態様で検出値が入力された直後に、カッターセンサー25から所定の態様で検出値が入力された場合に、動作モードをファーム書換モードへ移行する構成としてもよい。このように、リアルエンドセンサー41の検出値、及び、カッターセンサー25の検出値の2つのセンサーの検出値を利用して、動作モードをファーム書換モードへ移行するか否かを判別する構成とすることにより、ファーム書換モードに移行する際に作業者が行うべき作業がより複雑化し、偶発的に動作モードがファーム書換モードへ移行してしまうことをより防止できる。   Further, as described as an example, in the printer 1 according to the present embodiment, whether the operation mode is shifted to the firmware rewriting mode according to the combination of the detection value of the real end sensor 41 and the detection value of the cutter sensor 25. It may be configured to determine whether or not. For example, the control unit 40 detects that the detection value input from the cutter sensor 25 is displaced while the first detection value is input from the real end sensor 41 while the cover frame 8 is open. In such a case, the operation mode may be shifted to the firmware rewriting mode. Further, for example, the control unit 40 switches the operation mode to the firmware rewriting mode when the detection value is input in a predetermined manner from the cutter sensor 25 immediately after the detection value is input in a predetermined manner from the real end sensor 41. It is good also as a structure which transfers. As described above, the detection value of the two sensors, the detection value of the real end sensor 41 and the detection value of the cutter sensor 25, is used to determine whether or not to shift the operation mode to the firmware rewriting mode. Accordingly, it is possible to further prevent the operation to be performed by the worker when shifting to the firmware rewriting mode, and to prevent the operation mode from shifting to the firmware rewriting mode accidentally.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、本実施形態では、既存のセンサーを用いて、動作モードをファーム書換モードへ移行する場合を例にして、発明を説明したが、移行する動作モードは、ファーム書換モードに限らず、例えば、所定のテストが可能なテストモードや、所定のメンテナンスが可能なメンテナンスモードであってもよい。すなわち、記録装置において、動作モードを移行する場合に、広く本発明を適用可能である。
また、本実施形態に係るプリンター1は、サーマルプリンターであったが、本発明が適用される記録装置は、サーマルプリンターに限らず、例えば、インクジェット式プリンターや、ドットインパクト式プリンターであってもよい。すなわち、本発明は、記録媒体に記録を行う記録装置に広く適用可能である。
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 present embodiment, the invention has been described by taking an example in which the operation mode is shifted to the firmware rewriting mode using an existing sensor. However, the operation mode to be shifted is not limited to the firmware rewriting mode. It may be a test mode in which a predetermined test is possible or a maintenance mode in which a predetermined maintenance is possible. That is, the present invention can be widely applied to a recording apparatus when the operation mode is shifted.
The printer 1 according to this embodiment is a thermal printer, but the recording apparatus to which the present invention is applied is not limited to a thermal printer, and may be, for example, an ink jet printer or a dot impact printer. . That is, the present invention can be widely applied to recording apparatuses that perform recording on a recording medium.

1…プリンター(記録装置)、4…カッターユニット(切断部)、8…カバーフレーム(開閉カバー)、9…可動刃、25…カッターセンサー(センサー)、40…制御部、41…リアルエンドセンサー(センサー、エンドセンサー)、S…ロール紙(記録媒体)。   DESCRIPTION OF SYMBOLS 1 ... Printer (recording device), 4 ... Cutter unit (cutting part), 8 ... Cover frame (opening / closing cover), 9 ... Movable blade, 25 ... Cutter sensor (sensor), 40 ... Control part, 41 ... Real end sensor ( Sensor, end sensor), S ... roll paper (recording medium).

Claims (9)

記録媒体に記録を行う記録装置であって、
記録に係る動作の制御に利用するセンサーと、
前記センサーから入力された検出値に応じて、動作モードの移行を実行する制御部と、を備えることを特徴とする記録装置。
A recording device for recording on a recording medium,
A sensor used for controlling the operation related to recording;
And a control unit that executes a transition of an operation mode in accordance with a detection value input from the sensor.
前記制御部は、
予め定められた所定の状況下で、前記センサーから所定の検出値が入力された場合に、動作モードの移行を実行することを特徴とする請求項1に記載の記録装置。
The controller is
The recording apparatus according to claim 1, wherein, when a predetermined detection value is input from the sensor under a predetermined condition, the operation mode transition is executed.
開閉カバーと、前記開閉カバーの開閉を検出するカバーセンサーと、
前記開閉カバーが閉じているときに前記記録媒体が所定の位置に位置している場合は第1検出値を出力し、一方、前記記録媒体が当該所定の位置に位置していない場合は第2検出値を出力すると共に、前記開閉カバーが開いているときは前記記録媒体の状態にかかわらず前記第2検出値を出力するエンドセンサーと、を備え、
前記制御部は、
前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときに、前記エンドセンサーから前記第1検出値が入力された場合に、動作モードの移行を実行することを特徴とする請求項2に記載の記録装置。
An opening / closing cover, a cover sensor for detecting opening / closing of the opening / closing cover,
When the recording medium is located at a predetermined position when the opening / closing cover is closed, a first detection value is output, while when the recording medium is not located at the predetermined position, the second detection value is output. An end sensor that outputs a detection value and outputs the second detection value regardless of the state of the recording medium when the open / close cover is open,
The controller is
When it is detected by the detection value of the cover sensor that the open / close cover is open, the operation mode transition is executed when the first detection value is input from the end sensor. The recording apparatus according to claim 2.
前記制御部は、
前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときに、前記エンドセンサーから前記第1検出値が所定の態様で入力された場合に、動作モードの移行を実行することを特徴とする請求項3に記載の記録装置。
The controller is
When the detection value of the cover sensor detects that the open / close cover is open, the operation mode transition is executed when the first detection value is input in a predetermined manner from the end sensor. The recording apparatus according to claim 3.
開閉カバーと、前記開閉カバーの開閉を検出するカバーセンサーと、
可動刃により前記記録媒体を切断する切断部と、
前記可動刃が所定の位置に位置していることを検出するカッターセンサーと、を備え、
前記開閉カバーが開いている場合は、前記可動刃の動作を停止して前記切断部による前記記録媒体の切断を停止する構成とし、
前記制御部は、
前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときにおける前記カッターセンサーから入力された検出値に応じて、動作モードの移行を実行することを特徴とする請求項2に記載の記録装置。
An opening / closing cover, a cover sensor for detecting opening / closing of the opening / closing cover,
A cutting section for cutting the recording medium with a movable blade;
A cutter sensor for detecting that the movable blade is located at a predetermined position,
When the open / close cover is open, the operation of the movable blade is stopped and the cutting of the recording medium by the cutting unit is stopped.
The controller is
The operation mode transition is executed in accordance with a detection value input from the cutter sensor when the opening / closing cover is detected to be open based on a detection value of the cover sensor. 2. The recording apparatus according to 2.
前記制御部は、
前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときに、前記カッターセンサーから所定の態様で検出値が入力された場合に、動作モードの移行を実行することを特徴とする請求項5に記載の記録装置。
The controller is
When it is detected by the detection value of the cover sensor that the open / close cover is open, the transition of the operation mode is performed when the detection value is input in a predetermined manner from the cutter sensor. The recording apparatus according to claim 5, wherein:
開閉カバーと、前記開閉カバーの開閉を検出するカバーセンサーと、
前記開閉カバーが閉じているときに前記記録媒体が所定の位置に位置している場合は第1検出値を出力し、一方、前記記録媒体が当該所定の位置に位置していない場合は第2検出値を出力すると共に、前記開閉カバーが開いているときは前記記録媒体の状態にかかわらず前記第2検出値を出力するエンドセンサーと、可動刃により前記記録媒体を切断する切断部と、前記可動刃が所定の位置に位置していることを検出するカッターセンサーと、を備え、
前記開閉カバーが開いている場合は、前記可動刃の動作を停止して前記切断部による前記記録媒体の切断を停止する構成とし、
前記制御部は、
前記カバーセンサーの検出値により、前記開閉カバーが開いていることが検出されているときの、前記エンドセンサーから入力された検出値、及び、前記カッターセンサーから入力された検出値の組み合わせに応じて、動作モードの移行を実行することを特徴とする請求項2に記載の記録装置。
An opening / closing cover, a cover sensor for detecting opening / closing of the opening / closing cover,
When the recording medium is located at a predetermined position when the opening / closing cover is closed, a first detection value is output, while when the recording medium is not located at the predetermined position, the second detection value is output. An end sensor that outputs a detection value and outputs the second detection value regardless of a state of the recording medium when the open / close cover is open; a cutting unit that cuts the recording medium by a movable blade; A cutter sensor for detecting that the movable blade is located at a predetermined position,
When the open / close cover is open, the operation of the movable blade is stopped and the cutting of the recording medium by the cutting unit is stopped.
The controller is
According to the combination of the detection value input from the end sensor and the detection value input from the cutter sensor when the detection value of the cover sensor detects that the opening / closing cover is open. The recording apparatus according to claim 2, wherein the operation mode transition is executed.
記録に係る動作の制御に利用するセンサーを備え、記録媒体に記録を行う記録装置の制御方法であって、
前記センサーから入力された検出値に基づいて、動作モードを移行するか否かを判別し、動作モードを移行すると判別した場合、動作モードの移行を実行することを特徴とする記録装置の制御方法。
A control method of a recording apparatus that includes a sensor used for controlling an operation related to recording and performs recording on a recording medium,
A control method for a recording apparatus, wherein, based on a detection value input from the sensor, it is determined whether or not the operation mode is to be shifted, and when it is determined that the operation mode is to be shifted, the operation mode is shifted. .
記録に係る動作の制御に利用するセンサーを備え、記録媒体に記録を行う記録装置を制御する制御部により実行されるプログラムであって、
前記制御部を、
前記センサーから入力された検出値に応じて、動作モードの移行を実行する手段として機能させることを特徴とするプログラム。
A program that includes a sensor that is used to control an operation related to recording, and that is executed by a control unit that controls a recording apparatus that performs recording on a recording medium,
The control unit
A program that functions as means for executing a transition of an operation mode in accordance with a detection value input from the sensor.
JP2010251566A 2010-11-10 2010-11-10 Recording apparatus, method for controlling the same, and program Withdrawn JP2012101430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010251566A JP2012101430A (en) 2010-11-10 2010-11-10 Recording apparatus, method for controlling the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010251566A JP2012101430A (en) 2010-11-10 2010-11-10 Recording apparatus, method for controlling the same, and program

Publications (1)

Publication Number Publication Date
JP2012101430A true JP2012101430A (en) 2012-05-31

Family

ID=46392438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010251566A Withdrawn JP2012101430A (en) 2010-11-10 2010-11-10 Recording apparatus, method for controlling the same, and program

Country Status (1)

Country Link
JP (1) JP2012101430A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018118398A (en) * 2017-01-23 2018-08-02 東芝テック株式会社 Printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018118398A (en) * 2017-01-23 2018-08-02 東芝テック株式会社 Printer

Similar Documents

Publication Publication Date Title
JP6769255B2 (en) Printing device and control method of printing device
JP6421846B2 (en) Printing apparatus, printing method, and program
JP5891713B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2012101430A (en) Recording apparatus, method for controlling the same, and program
JP5915060B2 (en) AUTO CUTTER DEVICE, PRINTER DEVICE, AND AUTO CUTTER DEVICE CONTROL METHOD
JP6207123B2 (en) Printer control method and printer
CA3006458C (en) Cutter accessory for printing system
JP4069593B2 (en) Printer and printer error processing method
JP5321909B2 (en) Tape printer
US20200230980A1 (en) Printing apparatus and method of controlling printing apparatus
JP2009143061A (en) Solder printer and solder printing method
JP5163405B2 (en) Printing device
JP2020116658A (en) Printer, and control method of printer
JP6731797B2 (en) Printer
JP6810419B2 (en) Thermal printer, print control method of thermal printer, and program
JP2009234176A (en) Printer
JP6160723B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2015123634A (en) Printer
JP6305808B2 (en) Printing device
JP4589780B2 (en) Recording apparatus and gap measuring method in recording apparatus
JP6181481B2 (en) Printing apparatus and program
JP3904126B2 (en) Printer device
JP2009045787A (en) Method for controlling printer and motor
JP2011026073A (en) Control device, recording device control method, recording device, and program
JPH0564932A (en) Printer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140204