JP5937370B2 - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP5937370B2
JP5937370B2 JP2012019931A JP2012019931A JP5937370B2 JP 5937370 B2 JP5937370 B2 JP 5937370B2 JP 2012019931 A JP2012019931 A JP 2012019931A JP 2012019931 A JP2012019931 A JP 2012019931A JP 5937370 B2 JP5937370 B2 JP 5937370B2
Authority
JP
Japan
Prior art keywords
print medium
sensor
printing
resistor
type
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.)
Active
Application number
JP2012019931A
Other languages
Japanese (ja)
Other versions
JP2013158920A (en
Inventor
小林 剛士
剛士 小林
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.)
Nisca Corp
Original Assignee
Nisca 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 Nisca Corp filed Critical Nisca Corp
Priority to JP2012019931A priority Critical patent/JP5937370B2/en
Publication of JP2013158920A publication Critical patent/JP2013158920A/en
Application granted granted Critical
Publication of JP5937370B2 publication Critical patent/JP5937370B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明はプリンタに係り、特に、反射型センサの出力電圧と閾値とを比較し、該比較結果に基づいて印刷媒体の搬送方向端検知する制御手段を備えたプリンタに関する。 The present invention relates to a printer, and more particularly, to a printer including a control unit that compares an output voltage of a reflective sensor with a threshold value and detects an end in a conveyance direction of a print medium based on the comparison result.

従来、プレートやシート等の印刷媒体に印刷処理を施すプリンタが知られている(例えば、特許文献1参照)。このプリンタで印刷処理を行う際は、反射型センサで印刷媒体の搬送方向端を検出して印刷媒体に印刷を行う。反射型センサは、発光素子(例えば、LED)と受光素子(例えば、フォトトランジスタ)とで構成されており、発光素子からの光が、搬送される印刷媒体で反射しその反射光を受光素子で検知して印刷媒体の搬送方向端が検出される。   2. Description of the Related Art Conventionally, a printer that performs a printing process on a printing medium such as a plate or a sheet is known (see, for example, Patent Document 1). When printing is performed by this printer, printing is performed on the print medium by detecting the conveyance direction end of the print medium with a reflective sensor. A reflective sensor is composed of a light emitting element (for example, LED) and a light receiving element (for example, a phototransistor). Light from the light emitting element is reflected by a print medium being conveyed, and the reflected light is reflected by the light receiving element. The end of the print medium in the conveyance direction is detected.

このような機能を発揮させるため、一般に、図10に示すようなセンサ制御回路が用いられている。このセンサ制御回路では、LEDのアノード側は定電圧電源(例えば、+5V)に接続されており、カソード側はトランジスタのコレクタ側に接続されている。トランジスタのエミッタ側は抵抗を介してグランド(GND)に接続されている。また、トランジスタのベース側はOPアンプ、DAコンバータを介してマイクロコンピュータMCに接続されている。このため、マイクロコンピュータMCからデジタル電圧を出力することでLEDを発光させることができる。なお、デジタル電圧の出力を調整することでLEDの発光量(輝度)の調整を行うことも可能である。一方、フォトトランジスタのコレクタ側は抵抗R(例えば、抵抗値:47kΩ)を介して定電圧電源(例えば、+3.3V)に接続されており、エミッタ側はグランドに接続されている。フォトトランジスタのコレクタの出力電圧(図10の電圧測定点参照)はADコンバータを介してマイクロコンピュータMCに取り込まれる。   In order to exert such a function, a sensor control circuit as shown in FIG. 10 is generally used. In this sensor control circuit, the anode side of the LED is connected to a constant voltage power supply (for example, +5 V), and the cathode side is connected to the collector side of the transistor. The emitter side of the transistor is connected to the ground (GND) through a resistor. The base side of the transistor is connected to the microcomputer MC through an OP amplifier and a DA converter. For this reason, LED can be light-emitted by outputting a digital voltage from microcomputer MC. It is also possible to adjust the light emission amount (luminance) of the LED by adjusting the output of the digital voltage. On the other hand, the collector side of the phototransistor is connected to a constant voltage power source (for example, +3.3 V) via a resistor R (for example, resistance value: 47 kΩ), and the emitter side is connected to the ground. The output voltage of the collector of the phototransistor (see the voltage measurement point in FIG. 10) is taken into the microcomputer MC via the AD converter.

フォトトランジスタに反射光が入力されると、コレクタ側からエミッタ側に電流が流れ定電圧電源に接続された抵抗Rの両端に電圧が生じ電圧測定点での電圧が下がるため、図11(A)に示すように、電圧測定点での電圧(反射型センサの出力電圧)が反射型センサによる印刷媒体(プレートP参照)の非検出電圧(+3.3V)側から反射型センサの飽和電圧(0V)側に向けて予め設定された閾値(例えば、2.8V)を越えたときに印刷媒体の搬送方向先端を検出し、反射型センサの飽和電圧側から反射型センサによる印刷媒体の非検出電圧側に向けて再度閾値を越えたときに印刷媒体の搬送方向後端を検出することができる。   When reflected light is input to the phototransistor, a current flows from the collector side to the emitter side, a voltage is generated at both ends of the resistor R connected to the constant voltage power source, and the voltage at the voltage measurement point is lowered. As shown in FIG. 3, the voltage at the voltage measurement point (output voltage of the reflection type sensor) is the saturation voltage (0 V) of the reflection type sensor from the non-detection voltage (+3.3 V) side of the print medium (see plate P) by the reflection type sensor. ) Side of the printing medium is detected when a preset threshold value (for example, 2.8 V) is exceeded, and the non-detected voltage of the printing medium by the reflective sensor is detected from the saturation voltage side of the reflective sensor. The trailing edge of the print medium in the transport direction can be detected when the threshold is exceeded again toward the side.

また、このようなセンサ制御回路を用いて印刷媒体の搬送方向端を検出する際は、印刷媒体の種類によって反射率が異なることから、搬送方向端の検出位置のばらつきを解消するために、印刷媒体の種類に応じて閾値を変更していた(例えば、特許文献2参照)。印刷媒体の色や材質がほぼ一定の場合(例えば、白い紙で、薄紙、普通紙、厚紙の場合)は、上述したセンサ制御回路を用いて(1つの抵抗Rを用いて)、印刷媒体に応じて閾値を変更することにより印刷媒体の搬送方向端の位置を正確に検出することができる。   In addition, when detecting the conveyance direction end of the print medium using such a sensor control circuit, since the reflectance varies depending on the type of the print medium, in order to eliminate variations in the detection position of the conveyance direction end, The threshold value was changed according to the type of medium (see, for example, Patent Document 2). When the color and material of the print medium are almost constant (for example, white paper, thin paper, plain paper, and thick paper), the above-described sensor control circuit (using one resistor R) is used for the print medium. By changing the threshold value accordingly, the position of the end of the print medium in the conveyance direction can be accurately detected.

なお、上記では反射型センサの受光素子の例として3.3V系のフォトトランジスタを示したが、他に、例えば1.8V系、5V系、12V系等のフォトトランジスタも広く用いられている。   In the above description, a 3.3V phototransistor is shown as an example of the light receiving element of the reflective sensor. However, for example, 1.8V, 5V, and 12V phototransistors are also widely used.

特開2002−137471号公報JP 2002-137471 A 特開2007−003734号公報JP 2007-003734 A

近時、多岐にわたる印刷媒体(例えば、つや有黒プレート、つや無黒プレート、白プレート、ロール紙、台紙に所定間隔でラベルを配したダイカットラベル等)に高精度に印刷可能なプリンタのニーズがますます高まっている。しかしながら、上述したセンサ制御回路を用いて印刷媒体に応じて閾値を変更する場合には、これら全部の印刷媒体の搬送方向端を正確に検出することは難しい。以下に具体的に説明する。   Recently, there is a need for printers capable of printing with high accuracy on a wide variety of printing media (for example, glossy black plates, glossy black plates, white plates, roll paper, die-cut labels with labels on the mount at predetermined intervals). Increasingly. However, when the threshold value is changed according to the print medium using the sensor control circuit described above, it is difficult to accurately detect the conveyance direction ends of all the print media. This will be specifically described below.

通常、この種のプリンタでは、反射率の低いつや有黒プレートが基準印刷媒体とされ、これに応じて図10の抵抗Rの抵抗値も設定されている(反射率の低いつや無黒プレートを基準印刷媒体とすることにより、それより反射率の高い印刷媒体の搬送方向端の検出は可能である。)。しかし、従来と同様に、つや有黒プレートを基準印刷媒体とした場合に、つや有黒プレートよりも反射率の低い、つや無黒プレートの搬送方向端を検出しようとすると、電圧測定点での電圧が閾値まで到達せずつや無黒プレートの搬送方向端を検出することが難しくなる(図11(B)参照)。そこで、基準印刷媒体をつや無黒プレートとするために抵抗Rの抵抗値を大きくすれば(例えば、図10の抵抗Rの抵抗値を82kΩとすると)、電圧測定点での電圧が閾値を越えるためこの問題を解決することができる(図12(A)参照)。ところが、他の印刷媒体に対してはセンサ出力波形が潰れてしまう、という問題がある。例えば、ダイカットラベルではラベルと台紙との反射率の違いを利用してラベルの切れ目の位置(ラベルに対する印刷開始および終了可能位置)を検出するが、波形が潰れるためノイズ等の影響を考慮するとラベルの切れ目の位置を精度よく検出することができない(図12(B)参照)。   Normally, in this type of printer, a glossy plate with a low reflectance is used as a reference print medium, and the resistance value of the resistor R in FIG. 10 is set accordingly (a glossy or black plate with a low reflectance is used). By using the reference print medium, it is possible to detect the conveyance direction end of the print medium having a higher reflectance. However, as in the past, when the glossy black plate is used as the reference print medium, the detection at the end of the glossy black plate, which has a lower reflectance than the glossy black plate, in the transport direction is performed at the voltage measurement point. It becomes difficult to detect the end of the black plate in the conveyance direction as the voltage reaches the threshold (see FIG. 11B). Therefore, if the resistance value of the resistor R is increased in order to make the reference print medium a non-black plate (for example, if the resistance value of the resistor R in FIG. 10 is 82 kΩ), the voltage at the voltage measurement point exceeds the threshold value. Therefore, this problem can be solved (see FIG. 12A). However, there is a problem that the sensor output waveform is crushed for other print media. For example, in die-cut labels, the position of the label break (position where printing can be started and finished with respect to the label) is detected by using the difference in reflectance between the label and the backing sheet. The position of the break cannot be detected with high accuracy (see FIG. 12B).

本発明は上記事案に鑑み、多種の印刷媒体に高精度に印刷可能なプリンタを提供することを課題とする。   An object of the present invention is to provide a printer capable of printing on various types of print media with high accuracy.

上記課題を解決するために、本発明は、印刷媒体を搬送する搬送手段と、前記搬送手段で搬送される印刷媒体に印刷処理を施す印刷手段と、前記印刷手段の上流側に配置され、発光素子と受光素子とを有する反射型センサと、前記受光素子に接続される負荷抵抗の抵抗値が可変に構成され、前記反射型センサを制御するセンサ制御回路と、前記印刷媒体の種類に関する情報を取得する種類情報取得手段と、前記反射型センサの出力電圧と閾値とを比較し、該比較結果に基づいて前記搬送手段で搬送される前記印刷媒体の搬送方向先端および後端検知する制御手段と、を備え、記制御手段は、前記種類情報取得手段で取得した前記印刷媒体の種類に関する情報に応じて、前記負荷抵抗の抵抗値を設定するように前記センサ制御回路を制御するとともに、予め定められた複数の閾値の中から閾値を選択する、ことを特徴とする。 In order to solve the above-described problems, the present invention provides a transport unit that transports a print medium, a print unit that performs a printing process on the print medium transported by the transport unit, an upstream side of the print unit, and a light emission A reflection type sensor having an element and a light receiving element, a resistance control value of a load resistance connected to the light receiving element, a sensor control circuit for controlling the reflection type sensor, and information on the type of the print medium. and type information acquisition means for acquiring, comparing the output voltage with the threshold of the reflective sensor, control means for detecting the conveying direction leading end and the trailing end of the print medium that will be conveyed by said conveying means on the basis of the comparison result If, with the previous SL control means, in accordance with the information on the type of the printing medium acquired by the type information acquiring unit, to control the sensor control circuit to set the resistance value of the load resistor Together, select the threshold from a plurality of predetermined threshold value, characterized in that.

本発明において、センサ制御回路は、スイッチ素子と負荷抵抗とで構成されたスイッチ抵抗回路を並列に複数有しており、定電圧電源とグランドとの間で受光素子と直列に接続されていてもよい。このとき、印刷媒体の種類に関する情報と、複数のスイッチ抵抗回路を構成するそれぞれのスイッチ素子のオン、オフ制御情報と、反射型センサから出力される出力電圧に対する閾値との関係を定めたテーブルを予め記憶した記憶手段をさらに備え、制御手段は、記憶手段に記憶されたテーブルに基づいて、種類情報取得手段で取得した印刷媒体の種類に関する情報に応じて、負荷抵抗の抵抗値を設定するように複数のスイッチ抵抗回路を構成するそれぞれのスイッチ素子のオン、オフを制御するようにしてもよい。また、複数のスイッチ抵抗回路を構成する負荷抵抗の抵抗値がそれぞれ異なるようにしてもよい。さらに、複数のスイッチ抵抗回路はそれぞれスイッチ素子と負荷抵抗とが直列に接続されており、スイッチ素子のそれぞれの一側が定電圧電源に接続されており、一端がスイッチ素子の他側にそれぞれ接続された負荷抵抗の他端が受光素子に接続されており、負荷抵抗のそれぞれの他端と受光素子との接続点が反射型センサの出力電圧の出力点とされているようにしてもよい。 In the present invention, the sensor control circuit has a plurality of switch resistor circuits each composed of a switch element and a load resistor in parallel, and may be connected in series with the light receiving element between the constant voltage power source and the ground. Good. At this time, a table defining the relationship between the information on the type of print medium, the on / off control information of each switch element constituting the plurality of switch resistance circuits, and the threshold value for the output voltage output from the reflective sensor Storage means stored in advance is further provided, and the control means sets the resistance value of the load resistance according to the information about the type of the print medium acquired by the type information acquisition means based on the table stored in the storage means. on the respective switch elements constituting the plurality of switch resistance circuit may by that control off Unishi. Further, the resistance values of the load resistors constituting the plurality of switch resistance circuits may be different from each other. Further, each of the plurality of switch resistor circuits has a switch element and a load resistor connected in series, one side of each switch element is connected to a constant voltage power source, and one end is connected to the other side of the switch element. The other end of the load resistor may be connected to the light receiving element, and the connection point between each other end of the load resistor and the light receiving element may be the output point of the output voltage of the reflective sensor.

また、センサ制御回路は反射型センサの発光素子を制御する発光制御部を有しており、該発光制御部は、制御手段の出力ポートに接続されたDAコンバータと、正相入力端子がDAコンバータに接続されたOPアンプと、OPアンプの出力端子から抵抗を介してベースに接続されているとともにコレクタが発光素子の一側に接続されたトランジスタと、トランジスタのエミッタおよびOPアンプの逆相入力端子に一端が接続され他端がグランドに接続された抵抗とを有しており、発光素子の他側は定電圧電源に接続されているようにしてもよい。さらに、印刷処理可能な印刷媒体の種類を表示する表示手段をさらに備えるようにしてもよい。   The sensor control circuit has a light emission control unit for controlling the light emitting element of the reflective sensor. The light emission control unit includes a DA converter connected to the output port of the control means, and a positive phase input terminal connected to the DA converter. An amplifier connected to the base, a transistor connected to the base from the output terminal of the OP amplifier via a resistor and a collector connected to one side of the light emitting element, an emitter of the transistor, and a negative phase input terminal of the OP amplifier The other end of the light emitting element may be connected to a constant voltage power source. Furthermore, display means for displaying the type of print medium that can be printed may be further provided.

本発明によれば、制御手段が種類情報取得手段で取得した印刷媒体の種類に関する情報に応じて、負荷抵抗の抵抗値を設定するようにセンサ制御回路を制御するとともに、予め定められた複数の閾値の中から閾値を選択するので、反射型センサの出力電圧の波形の潰れによるノイズ等の影響を防止して、印刷媒体の種類に拘わらず印刷媒体の搬送方向端を正確に検知できるため、印刷媒体に高精度に印刷することができる、という効果を得ることができる。 According to the present invention, the control means, in response to information about the type of print medium acquired by the type information acquiring unit controls the sensor control circuit to set the resistance value of the load resistor, predetermined since selecting a threshold from a plurality of threshold values, to prevent the influence of noise due collapse of the waveform of the output voltage of the reflection type sensor, it can be accurately detected in the conveying direction end of the print medium regardless of the type of print media Therefore, it is possible to obtain an effect that printing can be performed with high accuracy on a print medium.

本発明が適用可能な実施形態のプリンタの概略正面図である。1 is a schematic front view of a printer according to an embodiment to which the present invention is applicable. 実施形態のプリンタの印刷部近傍の拡大正面図である。It is an enlarged front view of the vicinity of the printing unit of the printer of the embodiment. 実施形態のプリンタの操作パネルの拡大図である。It is an enlarged view of the operation panel of the printer of the embodiment. 実施形態のプリンタのセンサ制御回路の回路図である。It is a circuit diagram of a sensor control circuit of the printer of the embodiment. 実施形態のプリンタのマイクロコンピュータのCPUが実行する印刷ルーチンのフローチャートである。It is a flowchart of a printing routine executed by the CPU of the microcomputer of the printer according to the embodiment. 図5に示す印刷ルーチンのセット処理の詳細を示すフローチャートである。6 is a flowchart showing details of a setting process of the printing routine shown in FIG. 5. 図5に示す印刷ルーチンの印刷処理の詳細を示すフローチャートである。6 is a flowchart showing details of a printing process of the printing routine shown in FIG. 5. 印刷媒体の厚さを検出するときの動作状態を示す部分正面図であり、(A)は印刷媒体がプレートの場合、(B)は印刷媒体がラベルシートの場合を示す。It is a partial front view which shows the operation state when detecting the thickness of a printing medium, (A) shows the case where a printing medium is a plate, (B) shows the case where a printing medium is a label sheet. 縦軸に反射型センサの出力電圧、横軸に時間をとったときのダイカットラベルに対する実施形態のプリンタの反射型センサの出力電圧、閾値、ラベルの切れ目および先後端検出の関係を示す説明図である。The vertical axis represents the output voltage of the reflection type sensor, and the horizontal axis represents the relationship between the output voltage of the reflection type sensor of the printer of the embodiment, the threshold value, the label break, and the leading and trailing edge detection with respect to the die-cut label. is there. 反射型センサを制御する従来のセンサ制御回路の回路図である。It is a circuit diagram of the conventional sensor control circuit which controls a reflection type sensor. 縦軸に反射型センサの出力電圧、横軸に時間をとったときの反射型センサの出力電圧、閾値および先後端検出の関係を示す説明図であり、(A)はつや有黒プレートに対する反射型センサの出力電圧、閾値および先後端検出の関係を示し、(B)はつや無黒プレートに対する反射型センサの出力電圧、閾値および先後端検出の関係を示す。It is explanatory drawing which shows the relationship between the output voltage of a reflection type sensor on a vertical axis | shaft, the output voltage of a reflection type sensor when time is taken on a horizontal axis, a threshold value, and the front-and-rear end detection, (A) is the reflection with respect to a glossy black plate The relationship between the output voltage of the mold sensor, the threshold value, and the front and rear end detection is shown, and FIG. 縦軸に反射型センサの出力電圧、横軸に時間をとり図10に示すセンサ制御回路の抵抗の抵抗値を大きくしたときの反射型センサの出力電圧、閾値および先後端検出の関係を示す説明図であり、(A)はつや無黒プレートに対する反射型センサの出力電圧、閾値および先後端検出の関係を示し、(B)はダイカットラベルに対する反射型センサの出力電圧およびラベルの切れ目の関係を示す。Description of the relationship between the output voltage of the reflective sensor, the threshold value, and the detection of the leading and trailing edges when the vertical axis represents the output voltage of the reflective sensor and the horizontal axis represents time, and the resistance value of the resistance of the sensor control circuit shown in FIG. (A) shows the relationship between the output voltage, threshold value, and leading and trailing edge detection of the reflective sensor with respect to the glossless black plate, and (B) shows the relationship between the output voltage of the reflective sensor with respect to the die-cut label and the label break. Show.

(構成)
以下に本発明の実施の形態を、図に基づいて詳細に説明する。図1〜図3に示すように、本実施形態のプリンタ1は厚さ0.5mm程度から3mm程度のプレートPのような比較的厚みのある材質の印刷媒体と、ロール状に巻回されたラベルシートSや軟質塩化ビニールシートのような比較的柔らか薄い材質の印刷媒体を印刷するサーマル方式のプリンタである。
(Constitution)
Embodiments of the present invention will be described below in detail with reference to the drawings. As shown in FIGS. 1 to 3, the printer 1 according to the present embodiment is wound in a roll shape with a relatively thick printing medium such as a plate P having a thickness of about 0.5 mm to about 3 mm. It is a thermal printer that prints a relatively soft and thin print medium such as a label sheet S or a soft vinyl chloride sheet.

プリンタ1には印刷前にプレートPやラベルシートSの印刷面をクリーニングする粘着性を有するシリコンゴム等のクリーニングローラ2と、このクリーニングローラ2の粘着性を維持するためその表面に付着したゴミを定期的に除去するクリーニング部3が設けられている。クリーニング部3は、クリーニングシートを引き出し可能に収容する収容カセット4と、装着された収納カセット4のクリーニングシートをクリーニングローラ2に搬送するクリーニングシート搬送ローラ5を有している。   The printer 1 has a cleaning roller 2 such as adhesive silicon rubber that cleans the printing surface of the plate P and the label sheet S before printing, and dust adhered to the surface of the cleaning roller 2 in order to maintain the adhesiveness of the cleaning roller 2. A cleaning unit 3 for periodic removal is provided. The cleaning unit 3 includes a storage cassette 4 that stores a cleaning sheet so that the cleaning sheet can be pulled out, and a cleaning sheet transport roller 5 that transports the cleaning sheet of the mounted storage cassette 4 to the cleaning roller 2.

クリーニングローラ2はプリンタ本体に対して揺動自在に設けられた揺動杆8に回動自在に設けられており、この揺動杆8はモータ9と不図示の歯車列とカム10によって軸8aを中心に揺動され、クリーニングローラ2を上下方向に移動させている。なお、図2に示すクリーニングローラ2の位置は後述するプレート類給送条件での印刷媒体搬送前の状態であり、プレートP等の印刷媒体が搬送されると下方の搬送ローラ11に向けて移動し、クリーニングローラ2のクリーニングを行う場合には上方のクリーニングシート搬送ローラ5に向けて移動する。   The cleaning roller 2 is rotatably provided on a swing rod 8 that is swingable with respect to the printer body. The swing rod 8 is a shaft 8a formed by a motor 9, a gear train (not shown), and a cam 10. The cleaning roller 2 is moved in the vertical direction. The position of the cleaning roller 2 shown in FIG. 2 is a state before the printing medium is transported under the plate feed condition described later, and moves toward the lower transporting roller 11 when the printing medium such as the plate P is transported. When cleaning the cleaning roller 2, it moves toward the upper cleaning sheet conveying roller 5.

クリーニングローラ2に対向する搬送ローラ11と、その下流側(図2中左側)に位置するプラテンローラ12およびもう一方の搬送ローラ13はプレートPなどの印刷媒体を図2の左方向に搬送するもので、図示しないステッピングモータや歯車列による駆動部により正逆回転駆動される。なお、上流側の搬送ローラ11にはクリーニングローラ2が対に、下流側の搬送ローラ13にはピンチローラ14が対となり印刷媒体を押し挟むようになっている。   A conveying roller 11 facing the cleaning roller 2, a platen roller 12 located on the downstream side (left side in FIG. 2), and the other conveying roller 13 convey a printing medium such as a plate P leftward in FIG. 2. Thus, it is driven to rotate in the forward and reverse directions by a driving unit (not shown) including a stepping motor and a gear train. The upstream conveying roller 11 is paired with the cleaning roller 2, and the downstream conveying roller 13 is paired with a pinch roller 14 to press and hold the print medium.

ピンチローラ14はプリンタ本体に対して軸15aを中心に揺動自在に設けられた揺動杆15に回動自在に設けられており、この揺動杆15は中間カム部16とスライドプレート17を介して揺動杆8と連結され、この揺動杆8に連動しそのピンチローラ14を上下方向に移動させている。この揺動杆8と揺動杆15と中間カム部16とスライドプレート17の関係は、クリーニングローラ2とピンチローラ14をそれぞれ搬送ローラ11と搬送ローラ13に対して等間隔に移動するように構成されている。   The pinch roller 14 is rotatably provided on a swing rod 15 that is swingable about a shaft 15a with respect to the printer main body. The swing rod 15 includes an intermediate cam portion 16 and a slide plate 17. And the pinch roller 14 is moved in the vertical direction in conjunction with the swing rod 8. The relationship between the swing rod 8, the swing rod 15, the intermediate cam portion 16, and the slide plate 17 is configured such that the cleaning roller 2 and the pinch roller 14 are moved at equal intervals with respect to the transport roller 11 and the transport roller 13, respectively. Has been.

このため、クリーニングローラ2が上下に移動するとピンチローラ14も同じように上下動し、さらにモータ9の駆動によりカム10を回転させると、クリーニングローラ2とピンチローラ14は連動して上下に移動する。なお、揺動杆8と揺動杆15のそれぞれ一端部に備えられるスプリング8b、15bはクリーニングローラ2とピンチローラ14をそれぞれ搬送ローラ11と搬送ローラ13に向けて付勢するものである。   Therefore, when the cleaning roller 2 moves up and down, the pinch roller 14 moves up and down in the same manner. When the cam 10 is further rotated by driving the motor 9, the cleaning roller 2 and the pinch roller 14 move up and down in conjunction with each other. . The springs 8b and 15b provided at one end portions of the swing rod 8 and the swing rod 15, respectively, bias the cleaning roller 2 and the pinch roller 14 toward the transport roller 11 and the transport roller 13, respectively.

上述した、搬送ローラ11、プラテンローラ12、搬送ローラ13およびピンチローラ14はそれぞれ金属軸部の表面にCR(クロロプレン)ゴムやEPDM(エチレンプロピレン)等のゴム材を巻いて搬送力を上げたものである。   The above-described transport roller 11, platen roller 12, transport roller 13 and pinch roller 14 are obtained by increasing the transport force by winding a rubber material such as CR (chloroprene) rubber or EPDM (ethylene propylene) around the surface of the metal shaft portion. It is.

サーマル方式の印刷ヘッド20は、プラテンローラ12に対向しプラテンローラ12に接離方向に移動可能に構成されている。すなわち、印刷ヘッド20の上端(ヘッドの上下方向反対側端)平面(図2参照)には図示を省略したカムが当接しており、このカムが図示を省略したモータの駆動力で回動することにより印刷ヘッド20がプラテンローラ12から離間した退避位置とプラテンローラ12に圧接する圧接位置との間で移動する。印刷中はプラテンローラ12に圧接しインクリボン21を介して印刷媒体に不図示のパーソナルコンピュータ(以下、パソコンと略称する。)等の上位機器より転送されてきた印刷データを印刷するものである。なお、インクリボン21はリボンカセット22に収容されており、リボンカセット22はプリンタ本体内に着脱可能に装着されている。   The thermal printing head 20 is configured to face the platen roller 12 and move in the contact / separation direction with respect to the platen roller 12. That is, a cam (not shown) is in contact with the upper end (opposite side opposite end of the head) plane (see FIG. 2) of the print head 20, and this cam is rotated by a driving force of a motor (not shown). As a result, the print head 20 moves between a retracted position separated from the platen roller 12 and a pressure contact position where the print head 20 is pressed against the platen roller 12. During printing, print data transferred from a higher-level device such as a personal computer (hereinafter abbreviated as a personal computer) (not shown) is printed onto the print medium via the ink ribbon 21 while being pressed against the platen roller 12. The ink ribbon 21 is accommodated in a ribbon cassette 22, and the ribbon cassette 22 is detachably mounted in the printer body.

図1および図3に示すように、プリンタ1は操作パネル23を備えている。図3に示すように、操作パネル23は、メニュー切り替えボタン24、25と、メニュー選択(エンター)ボタン26と、メニューキャンセル/排出ボタン27と、オペレータ(操作者)へプリンタ1の状態や操作メニューを表示するLCD等の表示部28と、上位機器のパソコンとのオンライン/オフライン切替えキー29を有している。   As shown in FIGS. 1 and 3, the printer 1 includes an operation panel 23. As shown in FIG. 3, the operation panel 23 includes menu switching buttons 24 and 25, a menu selection (enter) button 26, a menu cancel / discharge button 27, and the status and operation menu of the printer 1 to the operator (operator). And a display unit 28 such as an LCD for displaying and an online / offline switch key 29 for a personal computer as a host device.

図1に示すように、プリンタ1はラベルシートS等を切断するための切断装置30を有している。切断装置30は、固定刃と移動刃からなるカッタ31とこれを駆動するモータおよび歯車列(共に不図示)を内部に備えており、その動作は後述する制御部50で制御される。   As shown in FIG. 1, the printer 1 has a cutting device 30 for cutting the label sheet S and the like. The cutting device 30 includes a cutter 31 including a fixed blade and a moving blade, a motor for driving the cutter 31 and a gear train (both not shown), and the operation thereof is controlled by a control unit 50 described later.

搬送ローラ11とクリーニングローラ2の上流側(図中右方向)の搬送路の下部側には、主にオペレータによって印刷媒体がプリンタ1にセットされたことを検出する媒体検出センサ40(反射型センサ)が配置されている。また、印刷部(印刷部20、プラテンローラ12)の上流側かつ搬送ローラ11とクリーニングローラ2の下流側の搬送路の上部側には、搬送される印刷媒体の先端位置および後端位置を検出する反射型センサ41が配置されている。これらの媒体検出センサ40および反射型センサ41は搬送路の幅方向のほぼ中央にそれぞれ配設されている。さらに、スライドプレート17のほぼ中央部の突起17aにはスライドボリューム方式のリニアセンサ42が係合しており、リニアセンサ42はスライドプレート17の移動量をクリーニングローラ2と搬送ローラ11の間隔として検出する。   A medium detection sensor 40 (reflection type sensor) that detects that a print medium has been set in the printer 1 by an operator mainly on the lower side of the conveyance path on the upstream side (right direction in the drawing) of the conveyance roller 11 and the cleaning roller 2. ) Is arranged. Further, the leading end position and the trailing end position of the printing medium to be conveyed are detected on the upstream side of the printing section (printing section 20, platen roller 12) and on the upstream side of the conveying path on the downstream side of the conveying roller 11 and the cleaning roller 2. A reflective sensor 41 is disposed. The medium detection sensor 40 and the reflection type sensor 41 are respectively disposed at substantially the center in the width direction of the conveyance path. Further, a slide volume type linear sensor 42 is engaged with the protrusion 17 a at the substantially central portion of the slide plate 17, and the linear sensor 42 detects the movement amount of the slide plate 17 as an interval between the cleaning roller 2 and the conveying roller 11. To do.

また、プリンタ1には制御部50および図示しない電源部が設けられている。制御部50は、CPU、ROM、RAM等を有するマイクロコンピュータMC(以下、マイコンMCと略称する。)、EEPROM等の不揮発性メモリ、タイマIC、ADコンバータ等の基準電源を生成する基準電圧部、並びに、上述したモータ類、センサ類、操作パネル23、印刷ヘッド20およびUSB端子33(図1参照)を含んで構成されている。USB端子33は、USBメモリやUSBケーブルと接続するためのもので、USBメモリやUSBケーブルを介して接続されるパソコンとのインターフェースとして機能する。電源部は商業電力からモータ類等の駆動電源を生成するもので、後述する+3.3V電源、+5V電源もこの電源部により生成される。   Further, the printer 1 is provided with a control unit 50 and a power supply unit (not shown). The control unit 50 includes a microcomputer MC (hereinafter simply referred to as a microcomputer MC) having a CPU, a ROM, a RAM, a nonvolatile memory such as an EEPROM, a reference voltage unit that generates a reference power source such as a timer IC, an AD converter, In addition, the above-described motors, sensors, operation panel 23, print head 20, and USB terminal 33 (see FIG. 1) are included. The USB terminal 33 is for connecting to a USB memory or a USB cable, and functions as an interface with a personal computer connected via the USB memory or the USB cable. The power supply unit generates drive power such as motors from commercial power, and + 3.3V power source and + 5V power source described later are also generated by this power source unit.

(センサ制御回路)
本実施形態のプリンタ1では、図4に示すように、反射型センサ41を制御するセンサ制御回路60を有しており、センサ制御回路60は制御部50に配されている。センサ制御回路は、反射型センサ41の発光素子(LED)の発光量を制御する発光制御部62と、反射型センサ41の受光素子(フォトトランジスタ)の出力電圧を制御する受光制御部61とを有している。
(Sensor control circuit)
As shown in FIG. 4, the printer 1 of this embodiment includes a sensor control circuit 60 that controls the reflective sensor 41, and the sensor control circuit 60 is disposed in the control unit 50. The sensor control circuit includes a light emission control unit 62 that controls the light emission amount of the light emitting element (LED) of the reflective sensor 41, and a light reception control unit 61 that controls the output voltage of the light receiving element (phototransistor) of the reflective sensor 41. Have.

発光制御部62は図10に示した従来の回路と同じである。すなわち、発光制御部62は、一側がマイコンMCのDA出力ポートに接続されたDAコンバータと、正相入力端子がDAコンバータの他側に接続されたOPアンプと、OPアンプの出力端子から抵抗を介してベースに接続されているとともにコレクタがLEDのカソードに接続されたNPN型トランジスタと、トランジスタのエミッタおよびOPアンプの逆相入力端子に一端が接続され他端がグランドに接続された抵抗とを有して構成されている。LEDのアノードは定電圧電源(+5V)に接続されている。   The light emission control unit 62 is the same as the conventional circuit shown in FIG. That is, the light emission control unit 62 has a resistance from the DA converter whose one side is connected to the DA output port of the microcomputer MC, the OP amplifier whose positive phase input terminal is connected to the other side of the DA converter, and the output terminal of the OP amplifier. And an NPN transistor whose collector is connected to the cathode of the LED, and a resistor whose one end is connected to the emitter of the transistor and the negative phase input terminal of the OP amplifier and the other end is connected to the ground. It is configured. The anode of the LED is connected to a constant voltage power supply (+ 5V).

一方、受光制御部61は、PNP型トランジスタTR1〜TR3と、トランジスタTR1〜TR3のそれぞれのコレクタに接続された抵抗R1〜R3と、マイコンMCとトランジスタTR1〜TR3のベースとの間に挿入された抵抗とで構成されている。なお、マイコンMCとトランジスタTR1〜TR3のベースの間に抵抗が挿入されているのは、マイコンMCの破壊を防止するためである。   On the other hand, the light reception controller 61 is inserted between the PNP transistors TR1 to TR3, the resistors R1 to R3 connected to the collectors of the transistors TR1 to TR3, and the microcomputer MC and the bases of the transistors TR1 to TR3. It consists of resistors. The reason why the resistor is inserted between the microcomputer MC and the bases of the transistors TR1 to TR3 is to prevent destruction of the microcomputer MC.

具体的には、トランジスタTR1のベースは抵抗を介してマイコンMCの出力ポートP1に接続されており、エミッタは定電圧電源に接続されている。トランジスタTR1のコレクタは抵抗R1の一端に接続されており、抵抗R1の他端はフォトトランジスタのコレクタに接続されている。トランジスタTR2、TR3側も同様の回路構成であり、トランジスタTR2のベースは抵抗を介してマイコンMCの出力ポートP2に接続されており、エミッタは定電圧電源に接続されている。トランジスタTR2のコレクタは抵抗R2の一端に接続されており、抵抗R2の他端はフォトトランジスタのコレクタに接続されている。トランジスタTR3のベースは抵抗を介してマイコンMCの出力ポートP3に接続されており、エミッタは定電圧電源に接続されている。トランジスタTR3のコレクタは抵抗R3の一端に接続されており、抵抗R3の他端はフォトトランジスタのコレクタに接続されている。フォトトランジスタのエミッタはグランドに接続されている。   Specifically, the base of the transistor TR1 is connected to the output port P1 of the microcomputer MC via a resistor, and the emitter is connected to a constant voltage power source. The collector of the transistor TR1 is connected to one end of the resistor R1, and the other end of the resistor R1 is connected to the collector of the phototransistor. The transistors TR2 and TR3 have the same circuit configuration, the base of the transistor TR2 is connected to the output port P2 of the microcomputer MC via a resistor, and the emitter is connected to a constant voltage power source. The collector of the transistor TR2 is connected to one end of the resistor R2, and the other end of the resistor R2 is connected to the collector of the phototransistor. The base of the transistor TR3 is connected to the output port P3 of the microcomputer MC via a resistor, and the emitter is connected to a constant voltage power source. The collector of the transistor TR3 is connected to one end of the resistor R3, and the other end of the resistor R3 is connected to the collector of the phototransistor. The emitter of the phototransistor is connected to the ground.

すなわち、受光制御部61は、スイッチ素子(トランジスタ)と抵抗とを直列に接続することで構成されたスイッチ抵抗回路を並列に3つ有しており、定電圧電源とグランドとの間でフォトトランジスタと直列に接続されている。また、抵抗R1〜R3のそれぞれの他端とフォトトランジスタのコレクタとの接続点が反射型センサ41の出力電圧の出力点とされ、マイコンMCのAD入力ポートに接続されている。なお、本実施形態では、抵抗R1〜R3の抵抗値は異なっており、抵抗R1の抵抗値が47kΩ、抵抗R2の抵抗値が82kΩ、抵抗R3の抵抗値が150kΩに設定されている。   That is, the light reception control unit 61 has three switch resistance circuits configured in parallel by connecting a switch element (transistor) and a resistor in series, and a phototransistor is connected between the constant voltage power source and the ground. Connected in series. The connection point between the other end of each of the resistors R1 to R3 and the collector of the phototransistor is the output point of the output voltage of the reflective sensor 41, and is connected to the AD input port of the microcomputer MC. In this embodiment, the resistance values of the resistors R1 to R3 are different, the resistance value of the resistor R1 is set to 47 kΩ, the resistance value of the resistor R2 is set to 82 kΩ, and the resistance value of the resistor R3 is set to 150 kΩ.

マイコンMCの出力ポートP1からローレベル信号を出力すると、スイッチ素子のトランジスタTR1はオン状態となり、反射型センサ41のフォトトランジスタは抵抗R1を介して定電圧電源に接続される。同様に、マイコンMCの出力ポートP2からローレベル信号を出力すると、スイッチ素子のトランジスタTR2はオン状態となり、反射型センサ41のフォトトランジスタは抵抗R2を介して定電圧電源に接続され、マイコンMCの出力ポートP3からローレベル信号を出力すると、スイッチ素子のトランジスタTR3はオン状態となり、反射型センサ41のフォトトランジスタは抵抗R3を介して定電圧電源に接続される。出力ポートP1、P2から同時にローレベル信号を出力すれば、反射型センサ41のフォトトランジスタは並列に接続される抵抗R1と抵抗R2とを介して定電圧電源に接続される。同様に、出力ポートP1、P3から同時にローレベル信号を出力すれば、反射型センサ41のフォトトランジスタは並列に接続される抵抗R1と抵抗R3とを介して定電圧電源に接続され、出力ポートP2、P3から同時にローレベル信号を出力すれば、反射型センサ41のフォトトランジスタは並列に接続される抵抗R2と抵抗R3とを介して定電圧電源に接続される。さらに、出力ポートP1、P2、P3から同時にローレベル信号を出力すれば、反射型センサ41のフォトトランジスタは並列に接続される抵抗R1と抵抗R2と抵抗R3を介して定電圧電源に接続される。   When a low level signal is output from the output port P1 of the microcomputer MC, the transistor TR1 of the switch element is turned on, and the phototransistor of the reflective sensor 41 is connected to the constant voltage power supply via the resistor R1. Similarly, when a low level signal is output from the output port P2 of the microcomputer MC, the transistor TR2 of the switch element is turned on, and the phototransistor of the reflective sensor 41 is connected to the constant voltage power source via the resistor R2, and the microcomputer MC When a low level signal is output from the output port P3, the transistor TR3 of the switch element is turned on, and the phototransistor of the reflective sensor 41 is connected to the constant voltage power supply via the resistor R3. If a low level signal is simultaneously output from the output ports P1 and P2, the phototransistor of the reflective sensor 41 is connected to a constant voltage power source via a resistor R1 and a resistor R2 connected in parallel. Similarly, if a low level signal is simultaneously output from the output ports P1 and P3, the phototransistor of the reflective sensor 41 is connected to a constant voltage power source via a resistor R1 and a resistor R3 connected in parallel, and the output port P2 , P3 simultaneously outputs a low level signal, the phototransistor of the reflective sensor 41 is connected to a constant voltage power source via a resistor R2 and a resistor R3 connected in parallel. Furthermore, if a low level signal is output simultaneously from the output ports P1, P2, and P3, the phototransistor of the reflective sensor 41 is connected to a constant voltage power source via resistors R1, R2, and R3 connected in parallel. .

従って、本実施形態のセンサ制御回路60(受光制御部61)では、出力ポートP1〜P3からローレベル信号を出力しスイッチ素子のトランジスタTR1〜TR3のそれぞれをオン、オフ制御することにより、反射型センサ41のフォトトランジスタに接続される抵抗の抵抗値を7つの値から選択することができる(R1、R2、R3、R1とR2が並列、R1とR3が並列、R2とR3が並列、R1とR2とR3が並列)。このように複数の抵抗値を選択可能な構成としたのは、反射率が異なる多種の印刷媒体の搬送方向端を精度よく検出するためである。   Therefore, the sensor control circuit 60 (light reception control unit 61) of the present embodiment outputs a low level signal from the output ports P1 to P3, and controls each of the transistor TR1 to TR3 of the switch element to turn on and off, thereby reflecting the reflection type. The resistance value of the resistor connected to the phototransistor of the sensor 41 can be selected from seven values (R1, R2, R3, R1 and R2 are in parallel, R1 and R3 are in parallel, R2 and R3 are in parallel, R1 and R2 and R3 are in parallel). The reason why a plurality of resistance values can be selected in this way is to accurately detect the conveyance direction ends of various types of print media having different reflectances.

以上のように反射型センサ41のセンサ制御回路60が構成されているのに対し、媒体検出センサ40のセンサ制御回路は図10に示した1つの抵抗を有するセンサ制御回路が用いられている(ADコンバータは反射型センサ41のセンサ制御回路60と同様にマイコンMCに内蔵されている。)。   While the sensor control circuit 60 of the reflective sensor 41 is configured as described above, the sensor control circuit of the medium detection sensor 40 uses the sensor control circuit having one resistor shown in FIG. The AD converter is built in the microcomputer MC similarly to the sensor control circuit 60 of the reflective sensor 41.

(動作)
次に、プリンタ1の作動についてフローチャートに従って説明する。以下では、説明を簡単にするために、つや無黒色のアクリルプレートに印刷処理を施す場合を中心に例示し、併せてラベル間に切れ目のあるダイカットラベルに印刷処理を施す場合についても言及する。
(Operation)
Next, the operation of the printer 1 will be described with reference to a flowchart. In the following, for the sake of simplicity of explanation, the case where the printing process is applied to the glossy black acrylic plate will be mainly illustrated, and the case where the printing process is applied to the die-cut label having a gap between the labels will also be referred to.

プリンタ1に電源が投入されると、先ず、ROMに格納されたプログラムやプログラムデータ等のRAMへの展開、各機構部のホームポジションへの移動、EEPROM等の不揮発性メモリから印刷条件初期値の読み取りを行う初期設定処理が行われる。このとき読み出される条件として、操作パネル23で設定され不揮発性メモリに記憶されているプレート類かシート類かの給送条件が読み出される。このような初期設定処理を経て、マイクロコンピュータのCPUにより図5に示す印刷ルーチンが実行される。   When the printer 1 is turned on, first, the program and program data stored in the ROM are expanded into the RAM, moved to the home position of each mechanism, and the initial printing condition values are read from the nonvolatile memory such as the EEPROM. Initial setting processing for reading is performed. As a condition to be read at this time, a feeding condition for the plates or sheets set on the operation panel 23 and stored in the nonvolatile memory is read. After such an initial setting process, the print routine shown in FIG. 5 is executed by the CPU of the microcomputer.

印刷ルーチンでは、読み出された給送条件に基づいてプレート類かシート類かの判断が行われ(S102)、ここでプレートの設定がされていればモータ9の駆動によりカム10が回転しクリーニングローラ2と搬送ローラ11間の距離を所定間隔(例えば、4mm)に設定する(S104)(図2に示す状態)。なお、シート類の設定であれば搬送ローラ11と接触する位置にクリーニングローラ2を移動させる(S106)。この移動によって比較的硬質であるためセットが行いやすいプレート類と、柔らかく更に巻き癖があるためセットしにくいシート類とをそれぞれ容易に反射型センサ41が検出する位置までセットできるようにしている。なお、この条件は操作パネル23を操作することで簡単に変更可能である。   In the printing routine, a determination is made as to whether the plate type or the sheet type based on the read feeding condition (S102). If the plate is set here, the cam 10 is rotated by the driving of the motor 9 to perform cleaning. The distance between the roller 2 and the conveying roller 11 is set to a predetermined interval (for example, 4 mm) (S104) (state shown in FIG. 2). If the sheets are set, the cleaning roller 2 is moved to a position in contact with the conveying roller 11 (S106). By this movement, plates that are relatively hard and easy to set and sheets that are soft and difficult to set because of curling are easily set to positions where the reflective sensor 41 detects them. This condition can be easily changed by operating the operation panel 23.

次に、印刷データ取得の確認(S108)と、媒体検出センサ40からの印刷媒体有無の確認(S110)が継続的に行われる。なお、プリンタ1はUSB端子33および操作パネル23を備えているので、印刷データを取得する際には、USBケーブルを介して上位機器のパソコンから受信しても、USB端子33に接続されたUSBメモリと操作パネル23とにより印刷データを取得してもよい。このように操作パネル23を利用する場合に備え、オペレータがボタン24〜26を操作することにより表示部28にプリンタ1が印刷処理可能な印刷媒体の種類等の情報を表示し、印刷データを取得することも可能である。ステップ108で否定判断の場合に、印刷媒体が既にセットされているとき、つまり媒体検出センサ40が媒体有りを検出するときは、ステップ110で媒体有りと判断され、メニューキャンセル/排出ボタン27が押下されたか否かの判断(S112)が行われる。ステップ110で肯定判断の場合にメニューキャンセル/排出ボタン27が押下されたときは、図示しないステッピングモータを駆動し印刷媒体をプリンタ1から排出する(S114)。   Next, confirmation of print data acquisition (S108) and confirmation of presence / absence of a print medium from the medium detection sensor 40 (S110) are continuously performed. Since the printer 1 includes the USB terminal 33 and the operation panel 23, when acquiring print data, the USB connected to the USB terminal 33 is received even if it is received from a host computer via the USB cable. Print data may be acquired by the memory and the operation panel 23. In preparation for using the operation panel 23 as described above, the operator operates the buttons 24 to 26 to display information such as the type of print medium that can be processed by the printer 1 on the display unit 28 and acquire print data. It is also possible to do. If a negative determination is made in step 108, if the print medium is already set, that is, if the medium detection sensor 40 detects the presence of the medium, it is determined in step 110 that the medium is present, and the menu cancel / eject button 27 is pressed. A determination is made as to whether or not (S112). If the menu cancel / discharge button 27 is pressed in the case of an affirmative determination in step 110, a stepping motor (not shown) is driven to discharge the print medium from the printer 1 (S114).

一方、ステップ108で肯定判断の場合には、このアクリルプレートや塩ビ(PVC)プレートやダイカットラベルなどの印刷媒体の種類と、印刷濃度と、印刷枚数と、印刷色に関する印刷データをRAMに保管し(S116)、次のステップ118において、初期設定処理においてROMからRAMに展開された、印刷媒体の種類と、図4に示したスイッチ抵抗回路を構成するそれぞれのスイッチ素子(TR1〜TR3)のオン、オフ制御情報と、反射型センサ41から出力される出力電圧に対する閾値との関係を定めたテーブルを参照し、印刷媒体の種類に応じて、反射型センサ41の受光素子に接続される抵抗の抵抗値を設定するようにそれぞれTR1〜TR3のオン、オフを決定するとともに、反射型センサ41から出力される出力電圧に対する閾値を決定する。なお、印刷媒体の種類等は、例えば、デフォルト値(印刷媒体の種類に関する情報)を用いるようにしてもよい。   On the other hand, if the determination in step 108 is affirmative, the print data relating to the type of print medium such as acrylic plate, PVC (PVC) plate, die cut label, print density, number of prints, and print color is stored in the RAM. (S116) In the next step 118, the type of the printing medium developed from the ROM to the RAM in the initial setting process and the switching elements (TR1 to TR3) constituting the switch resistance circuit shown in FIG. 4 are turned on. , Referring to a table that defines the relationship between the off control information and the threshold value for the output voltage output from the reflective sensor 41, and the resistance connected to the light receiving element of the reflective sensor 41 according to the type of print medium. Outputs output from the reflective sensor 41 as well as determining ON / OFF of the TR1 to TR3 so as to set the resistance value. Determining a threshold for pressure. For example, a default value (information on the type of print medium) may be used as the type of print medium.

下表はそのテーブルの一例であり、以下では、印刷媒体がつや無黒色のアクリルプレートの場合と、ダイカットラベルの場合との抵抗値および閾値について具体的に説明する。なお、本実施形態では、マイコンの出力ポートがローレベルのときにトランジスタがオン状態となっているが、これは本実施形態がPNP型トランジスタを採用しているためである。従って、NPN型トランジスタの場合はマイコンの出力ポートがハイレベルのときにトランジスタがオン状態となる。   The table below is an example of the table, and the resistance values and threshold values in the case where the print medium is a glossy black acrylic plate and the case of a die-cut label will be specifically described below. In the present embodiment, the transistor is in the on state when the output port of the microcomputer is at a low level. This is because the present embodiment employs a PNP transistor. Therefore, in the case of an NPN type transistor, the transistor is turned on when the output port of the microcomputer is at a high level.

Figure 0005937370
Figure 0005937370

表1に示すように、印刷媒体がつや無黒色のアクリルプレートの場合には、マイコンMCの出力ポートP1をハイレベル(H)、出力ポートP2をローレベル(L)、出力ポートP3をハイレベル(H)とし、閾値を2.8Vに設定する。この設定により、図4に示すセンサ制御回路60(受光制御部61)では、マイコンMCからスイッチ素子のトランジスタTR2のベースにローレベル信号が出力されてトランジスタTR2はオン状態となり、反射型センサ41の受光素子は抵抗R2(抵抗値:82kΩ)を介して定電圧電源(+3.3V)に接続される。一方、印刷媒体がダイカットラベルの場合には、マイコンMCの出力ポートP1をローレベル(L)、出力ポートP2をローレベル(L)、出力ポートP3をハイレベル(H)とし、閾値を2.8Vおよび1.2Vに設定する。この設定より、図4に示すセンサ制御回路60(受光制御部61)では、マイコンMCからスイッチ素子のトランジスタTR1、TR2のそれぞれのベースにローレベル信号が出力されてトランジスタTR1、TR2はオン状態となり、反射型センサ41の受光素子は並列に接続された抵抗R1(抵抗値:47kΩ)および抵抗R2(抵抗値:82kΩ)を介して定電圧電源(+3.3V)に接続される。   As shown in Table 1, when the printing medium is a glossy black acrylic plate, the output port P1 of the microcomputer MC is high level (H), the output port P2 is low level (L), and the output port P3 is high level. (H) and the threshold is set to 2.8V. With this setting, in the sensor control circuit 60 (light reception control unit 61) shown in FIG. 4, a low level signal is output from the microcomputer MC to the base of the transistor TR2 of the switch element, the transistor TR2 is turned on, and the reflection sensor 41 The light receiving element is connected to a constant voltage power supply (+3.3 V) via a resistor R2 (resistance value: 82 kΩ). On the other hand, when the print medium is a die-cut label, the output port P1 of the microcomputer MC is set to the low level (L), the output port P2 is set to the low level (L), the output port P3 is set to the high level (H), and the threshold is set to 2. Set to 8V and 1.2V. With this setting, in the sensor control circuit 60 (light receiving control unit 61) shown in FIG. 4, a low level signal is output from the microcomputer MC to the bases of the transistors TR1 and TR2 of the switch elements, and the transistors TR1 and TR2 are turned on. The light receiving element of the reflective sensor 41 is connected to a constant voltage power supply (+3.3 V) via a resistor R1 (resistance value: 47 kΩ) and a resistor R2 (resistance value: 82 kΩ) connected in parallel.

次いで、再び印刷媒体の有無の判断がなされ(S120)、ここで印刷媒体がセットされていなければ、印刷媒体がセットされるまで待機し(S122)、オペレータによって印刷媒体がセットされると、ステップ124のセット処理に進む。   Next, the presence / absence of the print medium is determined again (S120). If the print medium is not set, the process waits until the print medium is set (S122). Proceed to the set process 124.

セット処理(S124)は、図6示すように、先ず図示しないステッピングモータの正転駆動により搬送ローラ11が回転し印刷媒体の搬送処理が行われる(S202)。これと同時に制御部50にてタイマICによるカウントが開始され(S204)、所定時間内に反射型センサ41が印刷媒体の先端を検出するまで搬送処理が行われる(S206、S208)。反射型センサ41が印刷媒体の先端を検出したら(S206、なお、詳細については後述するS312の説明も参照)、印刷媒体を所定位置まで搬送して(S210)、セット処理は正常に終了する。ステップ210では、図示しないステッピングモータの(正転)駆動を停止させることにより印刷媒体の搬送を一旦停止し、図示しないステッピングモータを逆転駆動させて所定ステップ数逆搬送した後、図示しないステッピングモータの駆動を停止させることにより印刷媒体をセット位置に位置付ける。このような逆搬送を行うのは、印刷処理において頭出し(印刷媒体の先端検出、図7のS312参照)を行うためである。   In the setting process (S124), as shown in FIG. 6, first, the conveyance roller 11 is rotated by forward rotation of a stepping motor (not shown), and the printing medium is conveyed (S202). At the same time, counting by the timer IC is started in the control unit 50 (S204), and conveyance processing is performed until the reflective sensor 41 detects the leading edge of the print medium within a predetermined time (S206, S208). When the reflective sensor 41 detects the leading edge of the print medium (S206, see also the description of S312 to be described later in detail), the print medium is transported to a predetermined position (S210), and the setting process ends normally. In step 210, the conveyance of the printing medium is temporarily stopped by stopping the (forward rotation) drive of the stepping motor (not shown), and the stepping motor (not shown) is reversely driven to reversely feed the predetermined number of steps. The print medium is positioned at the set position by stopping the driving. The reason why such reverse conveyance is performed is to perform cueing (detecting the leading edge of the print medium, see S312 in FIG. 7) in the printing process.

一方、所定時間の経過をタイマICから報知されたCPUはエラー処理を実行する。すなわち、印刷媒体の搬送を停止し(S212)、印刷媒体がプレートか否かを判断して(S214)、プレートの場合はモータ9の駆動によりカム10を回転させクリーニングローラ2を上方に移動させ(S216)、表示部28にエラー表示をさせて(S218)セット処理を終了し、プレートでない場合(例えば、ラベルシートの場合)は図示しないステッピングモータを逆転駆動させて印刷媒体をロールに巻き戻すように逆搬送し(S220)、ステップ216、218と同様に、クリーニングローラ2を上方に移動させ(S222)、表示部28にエラー表示をさせて(S224)セット処理を異常終了する。   On the other hand, the CPU notified of the elapse of the predetermined time from the timer IC executes error processing. That is, the conveyance of the printing medium is stopped (S212), and it is determined whether or not the printing medium is a plate (S214). If the printing medium is a plate, the cam 10 is rotated by driving the motor 9 and the cleaning roller 2 is moved upward. (S216) An error is displayed on the display unit 28 (S218), and the setting process is completed. If it is not a plate (for example, in the case of a label sheet), a stepping motor (not shown) is driven in reverse to rewind the printing medium onto the roll. In the same manner as in steps 216 and 218, the cleaning roller 2 is moved upward (S222), an error is displayed on the display unit 28 (S224), and the setting process is terminated abnormally.

次に、図5のステップ126では、印刷媒体の厚さを検出するためモータ9の駆動によりカム10を回転させクリーニングローラ2を搬送ローラ11に向けて移動させる。ここでクリーニングローラ2の位置は給送条件がプレート類であったので、4mmの位置から下方に移動する。給送条件がシート類であればクリーニングローラ2を一旦4mmの位置まで上方に移動させ搬送ローラ11に向けて移動させる。クリーニングローラ2はプレートPに接触するまで移動するとその移動は停止する。図8(A)はこの状態を示しており、CPUはクリーニングローラ2の移動に伴い移動したスライドプレート17の位置をセンサ42より読み出し、これをクリーニングローラ2と搬送ローラ11間の距離に置き換え印刷媒体の厚みとして算出する(S126)。この距離はクリーニングローラ2と搬送ローラ11の表面ゴム材の弾性変形分を考慮したものである。なお、図8(B)はダイカットラベルを含むラベルシートSの厚みを検出する場合の状態を示している。   Next, in step 126 in FIG. 5, the cam 10 is rotated by driving the motor 9 to detect the thickness of the print medium, and the cleaning roller 2 is moved toward the transport roller 11. Here, the position of the cleaning roller 2 moves downward from the position of 4 mm because the feeding conditions are plates. If the feeding conditions are sheets, the cleaning roller 2 is once moved upward to a position of 4 mm and moved toward the conveying roller 11. When the cleaning roller 2 moves until it contacts the plate P, the movement stops. FIG. 8A shows this state. The CPU reads the position of the slide plate 17 that has moved with the movement of the cleaning roller 2 from the sensor 42, and replaces it with the distance between the cleaning roller 2 and the transport roller 11 for printing. It is calculated as the thickness of the medium (S126). This distance takes into account the elastic deformation of the surface rubber material of the cleaning roller 2 and the conveying roller 11. FIG. 8B shows a state in which the thickness of the label sheet S including the die cut label is detected.

続いてCPUは、算出された印刷媒体の厚さ(例えば、2mm)より、この厚さのプレートPの搬送に最適なローラ間となるように、モータ9を制御してクリーニングローラ2の位置を移動させ(S128)、続いてこの厚さのデータをRAMに保管して(S130)、ステップ120に戻る。ステップ120では、既に印刷媒体のセットが確認されているので印刷処理が実行される(S132)。   Subsequently, the CPU controls the motor 9 to control the position of the cleaning roller 2 based on the calculated thickness (for example, 2 mm) of the print medium so that the distance between the rollers is optimum for conveying the plate P having this thickness. Then, the thickness data is stored in the RAM (S130), and the process returns to step 120. In step 120, since the print medium set has already been confirmed, the printing process is executed (S132).

印刷処理(S132)は、図7に示すように、先程保管された印刷データの印刷媒体種類がRAMより読み出されシート類であるか判断される(S302)。ここで受信された印刷データの情報がシート類であれば、図5のステップ130にてRAMに保管された印刷媒体の厚み(ここでは2mm)が読み出され、0.6mm以上の厚みなのでセットされた印刷媒体をプレートPと判断し(S304)、切断装置30による切断処理を無効とし(S308)、続いて印刷媒体の搬送と印刷が実行される。   In the printing process (S132), as shown in FIG. 7, it is determined whether the print medium type of the previously stored print data is read from the RAM and is a sheet (S302). If the print data information received here is a sheet, the thickness of the print medium stored in the RAM (2 mm in this case) is read in step 130 in FIG. The determined print medium is determined as the plate P (S304), the cutting process by the cutting device 30 is invalidated (S308), and then the printing medium is conveyed and printed.

なお、ラベルシートSのような0.6mm以下の印刷媒体がセットされている場合はステップ306にて0.6mm以下と判断される。ここで0.6mmの印刷媒体は殆どシート類であるが仮にプレートPであっても、この程度の薄さのプラスチックなら切断装置30のカッタ31が比較的大型のカッタであることもあり問題は生じない。   If a print medium of 0.6 mm or less such as the label sheet S is set, it is determined in step 306 that the print medium is 0.6 mm or less. Here, the 0.6 mm print medium is mostly sheets, but even if it is the plate P, the cutter 31 of the cutting device 30 may be a relatively large cutter if the plastic is thin like this. Does not occur.

次に、図示しないステッピングモータを正転駆動させてセット処理でセット位置に位置付けられた印刷媒体の搬送を開始し(S310)、印刷媒体の搬送方向先端を検出したか否かを判断する(S312)。すなわち、CPUは反射型センサ41の出力電圧をマイコンMCに内蔵されたADコンバータを介して所定時間毎に取り込み、取り込んだ電圧値が予め設定された閾値を越えているか否かを判断することにより、閾値を越えたときに印刷媒体の搬送方向先端を検出する。   Next, a stepping motor (not shown) is driven to rotate forward to start transporting the print medium positioned at the set position in the set process (S310), and it is determined whether or not the front end in the transport direction of the print medium has been detected (S312). ). That is, the CPU takes in the output voltage of the reflection type sensor 41 via the AD converter built in the microcomputer MC every predetermined time, and determines whether or not the taken-in voltage value exceeds a preset threshold value. When the threshold value is exceeded, the leading edge of the print medium in the conveyance direction is detected.

上述したように、印刷媒体の種類がアクリルプレートの場合には、上述したように閾値は2.8Vに設定されており(図12参照)、取り込んだ電圧値が設定された閾値の2.8Vを越えたかを判断することにより、印刷媒体の搬送方向先端を検出したか否かを判断する。一方、印刷媒体の種類がダイカットラベルの場合には閾値は2.8V(第1の閾値)および1.2V(第2の閾値)に設定されており(図9参照)、取り込んだ電圧値が第1の閾値の2.8Vを越えたかを判断することにより、印刷媒体の搬送方向先端を検出したか否かを判断する。ダイカットラベルの場合には、ラベル間に切れ目がありこの切れ目の箇所で台紙が露出していることから、この切れ目の箇所では反射型センサ41からの出力電圧が1.2V以下となるため、印刷媒体の搬送方向先端を検出した後、取り込んだ電圧値が第2の閾値1.2Vを越えたときにラベル端を検出することができ、1回の印刷中であってもラベル端に応じて各ラベルに印刷を施すことにより印刷(位置)精度を高めることができる。   As described above, when the type of print medium is an acrylic plate, the threshold value is set to 2.8V as described above (see FIG. 12), and the captured voltage value is set to the threshold value 2.8V. It is determined whether or not the leading edge of the print medium in the conveyance direction has been detected. On the other hand, when the type of print medium is a die-cut label, the threshold values are set to 2.8 V (first threshold value) and 1.2 V (second threshold value) (see FIG. 9), and the captured voltage value is By determining whether or not the first threshold value of 2.8 V has been exceeded, it is determined whether or not the leading edge of the print medium in the transport direction has been detected. In the case of a die-cut label, since there is a break between the labels and the mount is exposed at the cut portion, the output voltage from the reflective sensor 41 is 1.2 V or less at the cut portion. After detecting the leading edge in the conveyance direction of the medium, the label edge can be detected when the taken-in voltage value exceeds the second threshold value 1.2 V, and even during one printing, the label edge can be detected. Printing (position) accuracy can be increased by printing each label.

次いで、CPUは、図示を省略したモータを駆動し印刷ヘッド20の上端平面に当接している図示を省略したカムを回動させることで、印刷ヘッド20を退避位置から圧接位置に移動させ、印刷ヘッド20による印刷を開始させる(S314)。印刷ヘッド20は印刷データに従って搬送される印刷媒体に印刷処理を実行する。なお、印刷開始時点で、印刷ヘッド20(のヘッド部)はインクリボン21を介して印刷媒体の搬送方向先端に当接するように、印刷ヘッド20の下降速度、反射型センサ41の位置および搬送媒体の搬送速度等が設定されている。   Next, the CPU drives a motor (not shown) and rotates a cam (not shown) that is in contact with the upper end plane of the print head 20 to move the print head 20 from the retracted position to the press-contact position. Printing by the head 20 is started (S314). The print head 20 executes a printing process on a print medium conveyed according to the print data. Note that at the start of printing, the print head 20 (the head portion thereof) is in contact with the leading end of the print medium in the transport direction via the ink ribbon 21, the lowering speed of the print head 20, the position of the reflective sensor 41, and the transport medium. The transport speed is set.

続いて、印刷媒体の搬送方向後端を検出したか否かを判断する(S316)。すなわち、CPUは反射型センサ41からADコンバータを介して取り込んだ電圧値が閾値(変更閾値:2.8V)を越えているか否かを判断することにより、閾値を越えたときに印刷媒体の搬送方向後端を検出する。図12(アクリルプレート)および図9(ダイカットラベル)に示すように、印刷媒体の搬送方向先端検出後、反射型センサ41の出力電圧は概ね2.0V未満である。このため、2.8Vの閾値を越えたときに、印刷媒体の搬送方向後端を検出することができる。なお、このように後端を検出するのは、長さが決まっている定型の印刷媒体の他に、長尺の(細長い)印刷媒体にも印刷処理を可能にさせるためである。   Subsequently, it is determined whether or not the rear end in the transport direction of the print medium has been detected (S316). That is, the CPU determines whether the voltage value acquired from the reflective sensor 41 via the AD converter exceeds a threshold value (change threshold value: 2.8 V), thereby conveying the print medium when the threshold value is exceeded. The rear end of the direction is detected. As shown in FIG. 12 (acrylic plate) and FIG. 9 (die cut label), the output voltage of the reflective sensor 41 is generally less than 2.0 V after detecting the leading edge of the print medium in the conveyance direction. For this reason, when the threshold value of 2.8 V is exceeded, the trailing edge of the print medium in the conveyance direction can be detected. The reason why the rear end is detected in this manner is to enable printing processing on a long (elongated) print medium in addition to a standard print medium having a fixed length.

印刷媒体の搬送方向後端を検出すると、印刷ヘッド20による印刷媒体への印刷処理は印刷データに従ってなおも続行されるが、印刷媒体の搬送方向後端が印刷ヘッド20(のヘッド部)に至るときに、CPUは、図示を省略したモータを駆動し印刷ヘッド20の上端平面に当接している図示を省略したカムを回動させることで、印刷ヘッド20を圧接位置から退避位置に移動させ、印刷ヘッド20による印刷を終了させる(S318)。   When the rear end of the print medium in the transport direction is detected, the printing process on the print medium by the print head 20 is still continued according to the print data, but the rear end of the print medium in the transport direction reaches the print head 20 (the head portion thereof). When the CPU drives the motor (not shown) and rotates the cam (not shown) that is in contact with the upper end plane of the print head 20, the CPU moves the print head 20 from the press contact position to the retracted position, Printing by the print head 20 is terminated (S318).

次に、RAMを参照して切断が有効状態にセットされているか否かを判断し(S320)、肯定判断のときは印刷媒体の切断を行い(S322)、否定判断のときはステップ324に進む。ステップ324では、印刷媒体をプリンタ1から排出するために図示しないステッピングモータを所定ステップ数正転駆動させた後、停止させることにより印刷処理が終了する。   Next, referring to the RAM, it is determined whether or not cutting is set to the valid state (S320). If the determination is affirmative, the print medium is disconnected (S322). If the determination is negative, the process proceeds to step 324. . In step 324, a stepping motor (not shown) is driven to rotate forward a predetermined number of steps in order to eject the print medium from the printer 1, and then the printing process is terminated by stopping.

以上により、印刷ルーチンによる一色目の印刷が終了するが、オペレータが二色目の印刷処理を希望する場合には、装着されていたリボンカセット22を他の色のインクリボンを有するリボンカセット22と取り換えて(装着し)、二色目の印刷を行うために、操作パネル23のメニュー切り替えボタン24、25およびメニュー選択(エンター)ボタン26を操作して、または、上位機器のパソコンから二色目の印刷であることを入力する。これにより、CPUは図5に示した印刷ルーチンのステップ108以下のステップを実行する。   As described above, the printing of the first color by the printing routine is completed. However, when the operator desires the printing process of the second color, the mounted ribbon cassette 22 is replaced with a ribbon cassette 22 having ink ribbons of other colors. In order to perform the second color printing, the menu switching buttons 24 and 25 and the menu selection (enter) button 26 on the operation panel 23 are operated, or the second color printing is performed from the personal computer of the host device. Enter something. As a result, the CPU executes steps after step 108 of the printing routine shown in FIG.

(作用効果等)
次に、本実施形態のプリンタ1の作用効果等について説明する。
(Effects etc.)
Next, functions and effects of the printer 1 of the present embodiment will be described.

本実施形態のプリンタ1では、センサ制御回路60(受光制御部61)はトランジスタTR1〜TR3と抵抗R1〜R3とで構成されたスイッチ抵抗回路を並列に3つ有しており、定電源電圧(+3.3V)とグランドとの間で反射型センサ41の受光素子(フォトトランジスタ)と直列に接続されている(図4)。また、マイコンMCのCPUは、印刷媒体の種類(に関する情報)に応じて、3つのスイッチ抵抗回路を構成するトランジスタTR1〜TR3のそれぞれのオン、オフを制御する(表1)。このため、受光素子に直列に接続される抵抗の抵抗値を適正な値に設定できるとともに、出力電圧の波形の潰れを防止できる。従って、本実施形態のプリンタ1によれば、印刷媒体の種類が多岐にわたってもそれぞれの印刷媒体の搬送方向端を正確に把握でき印刷媒体に高精度に印刷することができる。   In the printer 1 of the present embodiment, the sensor control circuit 60 (light reception control unit 61) has three switch resistance circuits composed of transistors TR1 to TR3 and resistors R1 to R3 in parallel. The light receiving element (phototransistor) of the reflective sensor 41 is connected in series between +3.3 V) and the ground (FIG. 4). Further, the CPU of the microcomputer MC controls on and off of the transistors TR1 to TR3 constituting the three switch resistance circuits according to the type (information regarding the print medium) (Table 1). For this reason, the resistance value of the resistor connected in series to the light receiving element can be set to an appropriate value, and the collapse of the waveform of the output voltage can be prevented. Therefore, according to the printer 1 of the present embodiment, even when there are various types of print media, the end in the transport direction of each print medium can be accurately grasped, and printing on the print medium can be performed with high accuracy.

また、本実施形態のプリンタ1では、印刷媒体の種類(に関する情報)に応じて、複数のスイッチ抵抗回路を構成するそれぞれのTR1〜TR3のオン、オフを制御するとともに、予め定められた複数の閾値の中から閾値を選択している(表1)。このため、受光素子に直列に接続される抵抗の抵抗値が適正な値に設定され、閾値と反射型センサの出力電圧との関係を適正に確保でき、印刷媒体の種類に拘わらず印刷媒体の搬送方向端をより正確に把握できるので、印刷媒体に対しより高精度の印刷を確保することができる。   Further, in the printer 1 of the present embodiment, on / off of each of the TR1 to TR3 constituting the plurality of switch resistance circuits is controlled according to the type (information regarding the print medium), and a plurality of predetermined numbers are set. A threshold value is selected from the threshold values (Table 1). For this reason, the resistance value of the resistor connected in series to the light receiving element is set to an appropriate value, and the relationship between the threshold value and the output voltage of the reflection type sensor can be appropriately ensured. Since the conveyance direction end can be grasped more accurately, higher-precision printing can be ensured on the print medium.

さらに、本実施形態のプリンタ1では、印刷媒体の種類(に関する情報)と、トランジスタTR1〜TR3のオン、オフ制御情報と、反射型センサ41から出力される出力電圧に対する閾値との関係を定めたテーブルをROMに記憶しており、このテーブルに基づいて、取得した印刷媒体の種類(に関する情報)に応じて、反射型センサ41の受光素子に接続される抵抗の抵抗値を設定するようにTR1〜TR3のオン、オフを制御するとともに、閾値を決定するので、簡便かつ適正に、受光素子に接続される抵抗の抵抗値(反射型センサ41の出力電圧)と反射型センサ41の出力電圧に対する閾値を設定することができる。   Further, in the printer 1 of the present embodiment, the relationship between the type (information regarding the print medium), the on / off control information of the transistors TR1 to TR3, and the threshold for the output voltage output from the reflective sensor 41 is defined. A table is stored in the ROM, and based on this table, TR1 is set so that the resistance value of the resistor connected to the light receiving element of the reflective sensor 41 is set according to the type (information relating to) of the acquired print medium. Since the on / off of TR3 is controlled and the threshold value is determined, the resistance value of the resistor connected to the light receiving element (output voltage of the reflective sensor 41) and the output voltage of the reflective sensor 41 are simply and appropriately determined. A threshold can be set.

また、本実施形態のプリンタ1では、印刷媒体の厚さを検出し(S126)、印刷処理においてその厚さを考慮してカムにより印刷ヘッド20をプラテンローラ12との圧接位置に移動させることができるので(S314)、印刷媒体の厚さに拘わらず、印刷ヘッド20の、プラテンローラ12に支持された印刷媒体への圧力をほぼ一定とすることができる。このため、印刷品質を高めることができる。   In the printer 1 of the present embodiment, the thickness of the print medium is detected (S126), and the print head 20 is moved to the pressure contact position with the platen roller 12 by a cam in consideration of the thickness in the printing process. Since this is possible (S314), the pressure of the print head 20 on the print medium supported by the platen roller 12 can be made substantially constant regardless of the thickness of the print medium. For this reason, printing quality can be improved.

なお、本実施形態では、印刷部としてサーマル式の印刷ヘッド20を例示したが、本発明はこれに限ることなく、例えば、インクジェット式の印刷部にも適用可能である。また、印刷媒体に平面のプレートPを例示したが、本発明はこれに制限されず、例えば、複数の小チップを纏めて1つのプレート状とした媒体にも適用可能である。さらに、本実施形態では、ダイカットラベルで例示したように反射率の違いを利用して台紙とラベルを峻別する閾値(第1、第2の閾値)を設定することができるため、本発明は、同様に反射率の違いを利用して、例えば印刷媒体を搬送するキャリアやフィーダを用いて印刷媒体を搬送するタイプのプリンタにも適用可能である。その際、閾値は2つに限らず、3つ以上設定するようにしてもよい。   In the present embodiment, the thermal print head 20 is exemplified as the printing unit. However, the present invention is not limited to this, and can be applied to, for example, an ink jet printing unit. Further, although the flat plate P is exemplified as the print medium, the present invention is not limited to this, and can be applied to, for example, a medium in which a plurality of small chips are combined into one plate shape. Furthermore, in the present embodiment, as exemplified by the die-cut label, the threshold (first and second thresholds) for distinguishing the mount and the label can be set using the difference in reflectance, so that the present invention Similarly, the present invention can be applied to a printer of a type that conveys a print medium using, for example, a carrier or a feeder that conveys the print medium by utilizing the difference in reflectance. At that time, the threshold value is not limited to two, and three or more threshold values may be set.

また、本実施形態では、印刷媒体の頭出しを行うため(図7、S312)、セット処理で印刷媒体を逆搬送する(図6、S210)例を示したが、このような逆搬送をセット処理で行わず、図7のステップ310で印刷媒体を搬送する前に行ってもよい。さらに、本実施形態では、媒体検出センサ40で印刷媒体の有無を検知する例を示したが、印刷媒体を一旦搬送し反射型センサ41で印刷媒体(からの反射光)を検出することで印刷媒体の有無を検知するにより、媒体検出センサ40をなくするようにしてもよい。また、媒体検出センサ40は反射型センサに限らず、例えば、透過型センサとしてもよい。   Further, in the present embodiment, in order to perform the cueing of the print medium (FIG. 7, S312), an example is shown in which the print medium is reversely conveyed in the setting process (FIG. 6, S210), but such reverse conveyance is set. It may be performed before the print medium is conveyed in step 310 of FIG. Further, in the present embodiment, an example in which the presence or absence of the print medium is detected by the medium detection sensor 40 has been described. However, the print medium is temporarily conveyed and printed by detecting the print medium (reflected light from the reflection medium) by the reflective sensor 41. The medium detection sensor 40 may be eliminated by detecting the presence or absence of the medium. Further, the medium detection sensor 40 is not limited to a reflective sensor, and may be a transmissive sensor, for example.

また、本実施形態では、図4に示したように、スイッチ素子としてPNP型トランジスタTR1〜TR3を例示したが、本発明はこれに限ることなく、スイッチ素子に、例えば、NPN型トランジスタやFETを用いるようにしてもよい。本実施形態でPNP型トランジスタを用いた理由は、PNP型トランジスタのVceが0.1V程度で殆ど電圧降下がなく、安定した出力電圧となるためである。さらに、本実施形態では、タイマICにより計時する例を示したが(図6、S204、S208)、タイマICをなくしCPUが計時するようにしてもよい。   In the present embodiment, as shown in FIG. 4, the PNP transistors TR1 to TR3 are exemplified as the switch elements. However, the present invention is not limited to this, and for example, an NPN transistor or FET is used as the switch element. You may make it use. The reason why the PNP transistor is used in this embodiment is that when the Vce of the PNP transistor is about 0.1 V, there is almost no voltage drop and a stable output voltage is obtained. Furthermore, in the present embodiment, an example is shown in which the time is measured by the timer IC (FIG. 6, S204, S208), but the timer IC may be eliminated and the CPU may measure the time.

また、本実施形態では、図4に示したように、フォトトランジスタのコレクタ側を反射型センサの出力電圧とする例を示したが、本発明はこれに限らず、例えば、フォトトランジスタのエミッタ側を反射型センサの出力電圧とするようにしてもよい。この場合には、反射型出力電圧の波形は上下方向で逆となる。また、フォトトランジスタのエミッタ側を反射型センサの出力電圧とする場合に、定電圧電源(+3.3V)とフォトトランジスタのコレクタ側との間に挿入されていた3つのスイッチ抵抗回路を、フォトトランジスタのエミッタ側とグランド(GND)の間に挿入し(フォトトランジスタのエミッタ側にトランジスタTR1〜TR3のエミッタ側を接続して抵抗R1〜R3の他端をグランドに接続し)定電圧電源を直接フォトトランジスタのコレクタ側に接続するようにしてもよい。   Further, in the present embodiment, as shown in FIG. 4, an example in which the collector side of the phototransistor is used as the output voltage of the reflection type sensor is shown. However, the present invention is not limited to this, for example, the emitter side of the phototransistor May be the output voltage of the reflective sensor. In this case, the waveform of the reflection type output voltage is reversed in the vertical direction. When the emitter side of the phototransistor is used as the output voltage of the reflection type sensor, the three switch resistance circuits inserted between the constant voltage power supply (+3.3 V) and the collector side of the phototransistor are replaced with the phototransistor. Is inserted between the emitter side of the transistor and the ground (GND) (the emitter side of the transistors TR1 to TR3 is connected to the emitter side of the phototransistor and the other ends of the resistors R1 to R3 are connected to the ground), and the constant voltage power supply is directly You may make it connect to the collector side of a transistor.

さらに、反射型センサのフォトトランジスタは上述した3.3V系のものに限らず、例えば、1.8V、5V、12V系等のものを用いるようにしてもよい。また、反射型センサの発光素子、受光素子はLED、フォトトランジスタに限られるものではない。   Furthermore, the phototransistor of the reflective sensor is not limited to the above-described 3.3V system, and for example, a 1.8V, 5V, or 12V system may be used. Further, the light emitting element and the light receiving element of the reflective sensor are not limited to LEDs and phototransistors.

また、本実施形態では、種類情報取得手段の一部としてUSB端子を例示したが、本発明はこれに制限されることなく、例えば、パソコンと接続可能な公知のシリアル、パラレルインターフェースを用いるようにしてもよい。   In this embodiment, the USB terminal is exemplified as a part of the type information acquisition unit. However, the present invention is not limited to this, and for example, a known serial or parallel interface that can be connected to a personal computer is used. May be.

そして、本実施形態において各構成の形態および使用される材質や寸法或いは数値は、コストや相互の関係などによって変更されるべきもので本実施形態に限定されるべきものではなく、特許請求の範囲を逸脱しない範囲で、さらに公知技術を組み合わせて変更可能である。特に変更閾値は、印刷媒体の先端を検出した後で後端を検出する前に、反射型センサの出力電圧が超えない値に設定すればよい。   In the present embodiment, the form of each component and the materials, dimensions, or numerical values used should be changed according to cost, mutual relations, and the like, and should not be limited to the present embodiment. Further, it can be changed by combining known techniques without departing from the above. In particular, the change threshold may be set to a value that does not exceed the output voltage of the reflective sensor after detecting the leading edge of the print medium and before detecting the trailing edge.

以上説明した通り、本発明は多種の印刷媒体に高精度に印刷可能なプリンタを提供するものであるため、プリンタの製造、販売に寄与するので、産業上の利用可能性を有する。   As described above, the present invention provides a printer capable of printing with high accuracy on a variety of print media, and thus contributes to the manufacture and sale of the printer, and thus has industrial applicability.

1 プリンタ
9 モータ(搬送手段の一部)
11、13 搬送ローラ(搬送手段の一部)
20 印刷ヘッド(印刷手段の一部)
33 USB端子(種類情報取得手段の一部)
41 反射型センサ
50 制御部(制御手段、種類情報取得手段の一部)
60 センサ制御回路
61 受光制御部
62 発光制御部
P プレート(印刷媒体)
S ラベルシート(印刷媒体)
1 Printer 9 Motor (part of transport means)
11, 13 Conveying roller (part of conveying means)
20 Print head (part of printing means)
33 USB terminal (part of type information acquisition means)
41 reflective sensor 50 control unit (control means, part of type information acquisition means)
60 sensor control circuit 61 light reception control unit 62 light emission control unit P plate (print medium)
S Label sheet (printing medium)

Claims (7)

印刷媒体を搬送する搬送手段と、
前記搬送手段で搬送される印刷媒体に印刷処理を施す印刷手段と、
前記印刷手段の上流側に配置され、発光素子と受光素子とを有する反射型センサと、
前記受光素子に接続される負荷抵抗の抵抗値が可変に構成され、前記反射型センサを制御するセンサ制御回路と、
前記印刷媒体の種類に関する情報を取得する種類情報取得手段と、
前記反射型センサの出力電圧と閾値とを比較し、該比較結果に基づいて前記搬送手段で搬送される前記印刷媒体の搬送方向先端および後端検知する制御手段と、
を備え、
記制御手段は、前記種類情報取得手段で取得した前記印刷媒体の種類に関する情報に応じて、前記負荷抵抗の抵抗値を設定するように前記センサ制御回路を制御するとともに、予め定められた複数の閾値の中から閾値を選択する
ことを特徴とするプリンタ。
Conveying means for conveying the print medium;
Printing means for performing a printing process on a print medium conveyed by the conveying means;
A reflective sensor disposed upstream of the printing means and having a light emitting element and a light receiving element;
A resistance value of a load resistor connected to the light receiving element is variably configured, and a sensor control circuit for controlling the reflective sensor;
Type information acquisition means for acquiring information about the type of the print medium;
And control means for detecting the conveying direction leading end and the trailing end of the reflection type sensor compares the output voltage with a threshold, the printing medium that will be conveyed by said conveying means based on the comparison result,
With
Multiple pre-SL control means, in accordance with the information on the type of the printing medium acquired by the type information acquiring unit, and controls the sensor control circuit to set the resistance value of the load resistor, predetermined Select a threshold from among the thresholds of
A printer characterized by that.
前記センサ制御回路は、スイッチ素子と負荷抵抗とで構成されたスイッチ抵抗回路を並列に複数有しており、定電圧電源とグランドとの間で前記受光素子と直列に接続されていることを特徴とする請求項1に記載のプリンタ。 The sensor control circuit includes a plurality of switch resistor circuits each including a switch element and a load resistor, and is connected in series with the light receiving element between a constant voltage power source and a ground. The printer according to claim 1. 前記印刷媒体の種類に関する情報と、前記複数のスイッチ抵抗回路を構成するそれぞれのスイッチ素子のオン、オフ制御情報と、前記反射型センサから出力される出力電圧に対する閾値との関係を定めたテーブルを予め記憶した記憶手段をさらに備え、前記制御手段は、前記記憶手段に記憶されたテーブルに基づいて、前記種類情報取得手段で取得した前記印刷媒体の種類に関する情報に応じて、前記負荷抵抗の抵抗値を設定するように前記複数のスイッチ抵抗回路を構成するそれぞれのスイッチ素子のオン、オフを制御することを特徴とする請求項2に記載のプリンタ。 A table defining a relationship between information on the type of the print medium, on / off control information of each switch element constituting the plurality of switch resistance circuits, and a threshold for an output voltage output from the reflective sensor; A storage means stored in advance is further provided, and the control means determines the resistance of the load resistance according to information on the type of the print medium acquired by the type information acquisition means based on a table stored in the storage means. the printer of claim 2, on the respective switching elements constituting the plurality of switch resistance circuit to set the value, wherein the benzalkonium control the off. 前記複数のスイッチ抵抗回路を構成する負荷抵抗の抵抗値がそれぞれ異なることを特徴とする請求項2または請求項3に記載のプリンタ。 4. The printer according to claim 2 , wherein resistance values of load resistors constituting the plurality of switch resistance circuits are different from each other. 前記複数のスイッチ抵抗回路はそれぞれ前記スイッチ素子と前記負荷抵抗とが直列に接続されており、前記スイッチ素子のそれぞれの一側が前記定電圧電源に接続されており、一端が前記スイッチ素子の他側にそれぞれ接続された前記負荷抵抗の他端が前記受光素子に接続されており、前記負荷抵抗のそれぞれの他端と前記受光素子との接続点が前記反射型センサの出力電圧の出力点とされていることを特徴とする請求項4に記載のプリンタ。 In each of the plurality of switch resistance circuits, the switch element and the load resistor are connected in series, one side of each of the switch elements is connected to the constant voltage power source, and one end is the other side of the switch element The other end of the load resistor connected to each other is connected to the light receiving element, and the connection point between each other end of the load resistor and the light receiving element is an output point of the output voltage of the reflective sensor. The printer according to claim 4. 前記センサ制御回路は前記反射型センサの発光素子を制御する発光制御部を有しており、該発光制御部は、前記制御手段の出力ポートに接続されたDAコンバータと、正相入力端子が前記DAコンバータに接続されたOPアンプと、前記OPアンプの出力端子から抵抗を介してベースに接続されているとともにコレクタが前記発光素子の一側に接続されたトランジスタと、前記トランジスタのエミッタおよび前記OPアンプの逆相入力端子に一端が接続され他端がグランドに接続された抵抗とを有しており、前記発光素子の他側は定電圧電源に接続されていることを特徴とする請求項1ないし請求項5のいずれか1項に記載のプリンタ。   The sensor control circuit includes a light emission control unit that controls a light emitting element of the reflective sensor. The light emission control unit includes a DA converter connected to an output port of the control means, and a positive phase input terminal that is connected to the positive phase input terminal. An OP amplifier connected to the DA converter; a transistor connected to a base from the output terminal of the OP amplifier via a resistor; and a collector connected to one side of the light emitting element; an emitter of the transistor; and the OP 2. The amplifier has a resistor having one end connected to a negative phase input terminal and the other end connected to a ground, and the other side of the light emitting element is connected to a constant voltage power source. The printer according to claim 5. 印刷処理可能な印刷媒体の種類を表示する表示手段をさらに備えたことを特徴とする請求項1ないし請求項6のいずれか1項に記載のプリンタ。   7. The printer according to claim 1, further comprising display means for displaying a type of print medium that can be printed.
JP2012019931A 2012-02-01 2012-02-01 Printer Active JP5937370B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012019931A JP5937370B2 (en) 2012-02-01 2012-02-01 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012019931A JP5937370B2 (en) 2012-02-01 2012-02-01 Printer

Publications (2)

Publication Number Publication Date
JP2013158920A JP2013158920A (en) 2013-08-19
JP5937370B2 true JP5937370B2 (en) 2016-06-22

Family

ID=49171595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012019931A Active JP5937370B2 (en) 2012-02-01 2012-02-01 Printer

Country Status (1)

Country Link
JP (1) JP5937370B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6406907B2 (en) 2014-07-18 2018-10-17 キヤノンファインテックニスカ株式会社 Medium discriminating apparatus, medium conveying apparatus, and printing apparatus
JP6233333B2 (en) * 2015-03-03 2017-11-22 ブラザー工業株式会社 Tube printing processing program and tube printing processing method
CN114953780B (en) * 2022-06-13 2023-09-22 厦门汉印电子技术有限公司 Paper storage state detection method and device, printer and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05105283A (en) * 1991-10-15 1993-04-27 Canon Inc Paper sheet transfer device
JPH07179248A (en) * 1993-12-24 1995-07-18 Canon Inc Recorder
JP4107372B2 (en) * 2001-03-26 2008-06-25 株式会社リコー Electrophotographic apparatus and cover opening / closing detection method thereof
JP2010058906A (en) * 2008-09-03 2010-03-18 Riso Kagaku Corp Printer
JP5457252B2 (en) * 2010-03-31 2014-04-02 Necエンベデッドプロダクツ株式会社 Printer, light intensity and light receiving sensitivity determination method and program

Also Published As

Publication number Publication date
JP2013158920A (en) 2013-08-19

Similar Documents

Publication Publication Date Title
JP6406907B2 (en) Medium discriminating apparatus, medium conveying apparatus, and printing apparatus
EP3042778B1 (en) Printer and printing method
JP2013039736A (en) Printer and controlling method thereof
JP5937370B2 (en) Printer
EP3153321B1 (en) Recording apparatus, method for controlling recording apparatus, and program
US9764568B2 (en) Inkjet printer, sheet discriminating device and inkjet printing method
US8135330B2 (en) Image recording device and determination method
US7360854B2 (en) Ink jet recording apparatus
EP1800878B1 (en) Image forming apparatus having urging member for urging feeding roller toward recording medium
JP5862173B2 (en) Image recording device
JP5869298B2 (en) Printer
JP2006297869A (en) Recording device, and image communicating device
JP2007136949A (en) Image forming apparatus equipped with paper skewing judging means
JP2002160410A (en) Ink-jet printer
CN113423579A (en) Printer, printer control method, and program
JP4481480B2 (en) Printer
JP4032886B2 (en) Tilt detection apparatus and tilt detection method
JP7468175B2 (en) Recording device
JP2003145858A (en) Recording apparatus
JP4870866B2 (en) Printer
JP5279391B2 (en) Sheet conveying apparatus and image forming apparatus
JP6645091B2 (en) Printing apparatus, printing method, and printing program
JP2005059569A (en) Tray feed control device, printing device and liquid injection device
JP2001151386A (en) Paper detecting device
JP5329605B2 (en) Printer and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160201

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: 20160412

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160512

R150 Certificate of patent or registration of utility model

Ref document number: 5937370

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250