JP2011215028A - Printer, method of determining light intensity and light reception sensitivity, and program - Google Patents

Printer, method of determining light intensity and light reception sensitivity, and program Download PDF

Info

Publication number
JP2011215028A
JP2011215028A JP2010084157A JP2010084157A JP2011215028A JP 2011215028 A JP2011215028 A JP 2011215028A JP 2010084157 A JP2010084157 A JP 2010084157A JP 2010084157 A JP2010084157 A JP 2010084157A JP 2011215028 A JP2011215028 A JP 2011215028A
Authority
JP
Japan
Prior art keywords
light
combination
light receiving
output voltage
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010084157A
Other languages
Japanese (ja)
Other versions
JP5457252B2 (en
Inventor
Yasuhiko Kodama
康彦 小玉
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.)
NEC Embedded Products Ltd
Original Assignee
NEC Embedded Products Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Embedded Products Ltd filed Critical NEC Embedded Products Ltd
Priority to JP2010084157A priority Critical patent/JP5457252B2/en
Publication of JP2011215028A publication Critical patent/JP2011215028A/en
Application granted granted Critical
Publication of JP5457252B2 publication Critical patent/JP5457252B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Controlling Rewinding, Feeding, Winding, Or Abnormalities Of Webs (AREA)
  • Handling Of Sheets (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically determine the light intensity and light reception sensitivity which are optimal in a photosensor that copes with various kinds of media.SOLUTION: The printer that conveys a medium with a first surface where printed areas are placed at predetermined intervals and a second surface where printed-position marks are indicated and printing the printed areas includes a light emission means that enables switching two or more light intensities and outputting an irradiation light of a predetermined light intensity to the second surface; and a light-receiving means possible to switch two or more light-receiving sensitivities, receiving reflection of the irradiation light from the light-emitting means and generating an output voltage, based on the received reflection. An output voltage is detected that corresponds to all the combinations of the light intensities of the light emission means and light reception sensitivities of the light reception means per for conveying the medium, up to a minimum conveying unit by a conveying motor and the detection is repeated at least by the length of the printed area; a potential difference of output voltages is computed per combination; and at least the combination of a maximum potential difference is previously determined as being the combination for adjusting the light intensity and the light-reception sensitivity.

Description

本発明は、プリンタ、光強度と受光感度の決定方法及びプログラムに関する。   The present invention relates to a printer, a light intensity and light receiving sensitivity determination method, and a program.

ラベルプリンタは、台紙上に一定間隔でラベルが貼付され、その裏面にIマーク(印刷位置マークの一例)が付された媒体に対して印刷を行うことが可能であるが、媒体の種類は多様化しており、媒体毎にラベルの厚さやIマークの濃淡に差異がある。よって、印刷を行う際には、このような差異に対応しながらIマークやラベル間の領域(ラベルギャップ)を検出する制御が必要となる。   A label printer can perform printing on a medium having labels attached to the mount at regular intervals and an I mark (an example of a printing position mark) on the back side. There is a difference in the thickness of the label and the density of the I mark for each medium. Therefore, when performing printing, it is necessary to control to detect the area (label gap) between the I mark and the label while corresponding to such a difference.

一方、上記検出を行う手段としては、透過型フォトセンサや反射型フォトセンサが使用されているが、これらフォトセンサ自体にも、発光側(発光素子)の光強度や受光側(受光素子)の受光感度にばらつきがある。   On the other hand, as a means for performing the detection, a transmissive photosensor or a reflective photosensor is used. However, the photosensor itself also has the light intensity on the light emitting side (light emitting element) and the light intensity on the light receiving side (light receiving element). There is variation in the light sensitivity.

このようなフォトセンサ毎に生じる光強度や受光感度のばらつきに対しては、保守員等が手動で調整できるが、生産効率が悪く、また、調整の誤差も生じやすいという問題がある。この問題を解決するものとして、例えば特許文献1に開示されているラベルプリンタがある。   Such variations in light intensity and light receiving sensitivity that occur for each photosensor can be manually adjusted by maintenance personnel, but there is a problem that production efficiency is poor and adjustment errors are likely to occur. As a solution to this problem, for example, there is a label printer disclosed in Patent Document 1.

特開2005−288906号公報JP 2005-288906 A

しかしながら、特許文献1のラベルプリンタでは、媒体の搬送を行わない状態にてIマークが無い部分(白部分)を基に発光側の光強度と受光側の受光感度を決定しているため、実際の印刷時において、Iマークの検出不良(エラー)が生じるおそれがある。   However, in the label printer of Patent Document 1, the light intensity on the light emitting side and the light receiving sensitivity on the light receiving side are determined based on a portion (white portion) where there is no I mark when the medium is not transported. There is a possibility that an I mark detection failure (error) may occur during printing.

本発明は、上記事情に鑑みてなされたものであり、印刷位置マーク又はラベル間の領域の検出不良を生じさせることなく、様々な種類の媒体に対応して、フォトセンサにおける最適な光強度と受光感度を自動的に決定できるプリンタ、光強度と受光感度の決定方法及びプログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and the optimal light intensity in a photosensor can be accommodated for various types of media without causing poor detection of a region between printing position marks or labels. It is an object of the present invention to provide a printer capable of automatically determining light receiving sensitivity, a method for determining light intensity and light receiving sensitivity, and a program.

かかる目的を達成するために、本発明のプリンタは、所定間隔で印刷領域が配置された第1面と、印刷位置マークが付された第2面とを備えた媒体を搬送モータによって搬送し、印刷領域に印刷を行うプリンタであって、印刷位置マーク又は印刷領域間の領域を検知するための検知手段として、複数の光強度を切り替え可能とし、第2面に対して所定の光強度の照射光を出力する発光手段と、複数の受光感度を切り替え可能とし、発光手段から出力された照射光の反射光を受光し、受光した反射光を基に出力電圧を発生する受光手段と、を有しており、媒体が搬送モータによって最小搬送単位だけ搬送される毎に、発光手段の光強度と受光手段の受光感度との組合せの全てに対応して出力電圧を検出し、当該検出を少なくとも印刷領域の搬送方向の長さ分繰り返し行い、組合せ毎に、検出した出力電圧の最大値と最小値の電位差を算出し、少なくとも、算出した電位差が最大である組合せを、発光手段の光強度と受光手段の受光感度を調整するための組合せとして予め決定することを特徴とする。   In order to achieve such an object, the printer of the present invention transports a medium having a first surface on which printing areas are arranged at predetermined intervals and a second surface with a printing position mark by a transport motor, A printer that performs printing in a print area, and as a detection means for detecting a print position mark or an area between print areas, a plurality of light intensities can be switched and irradiation of a predetermined light intensity to the second surface A light-emitting means that outputs light, and a light-receiving means that can switch between a plurality of light-receiving sensitivities, receives reflected light of irradiation light output from the light-emitting means, and generates an output voltage based on the received reflected light. Each time the medium is transported by the transport motor by the minimum transport unit, the output voltage is detected corresponding to all combinations of the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means, and at least the detection is printed. Transport area For each combination, the potential difference between the maximum value and the minimum value of the detected output voltage is calculated. At least, the combination having the maximum calculated potential difference is determined as the light intensity of the light emitting means and the light receiving means. It is characterized in that it is determined in advance as a combination for adjusting the sensitivity.

本発明の光強度と受光感度の決定方法は、所定間隔で印刷領域が配置された第1面と、印刷位置マークが付された第2面とを備えた媒体を搬送モータによって搬送し、印刷領域に印刷を行う装置にて行われる光強度と受光感度の決定方法であって、装置は、印刷位置マーク又は印刷領域間の領域を検知するための検知手段として、複数の光強度を切り替え可能とし、第2面に対して所定の光強度の照射光を出力する発光手段と、複数の受光感度を切り替え可能とし、発光手段から出力された照射光の反射光を受光し、受光した反射光を基に出力電圧を発生する受光手段と、を有しており、媒体が搬送モータによって最小搬送単位だけ搬送される毎に、発光手段の光強度と受光手段の受光感度との組合せの全てに対応して出力電圧を検出し、当該検出を少なくとも印刷領域の搬送方向の長さ分繰り返し行い、組合せ毎に、検出した出力電圧の最大値と最小値の電位差を算出し、少なくとも、算出した電位差が最大である組合せを、発光手段の光強度と受光手段の受光感度を調整するための組合せとして予め決定することを特徴とする。   According to the method for determining light intensity and light receiving sensitivity of the present invention, a medium having a first surface on which printing areas are arranged at predetermined intervals and a second surface on which a printing position mark is attached is transported by a transport motor and printed. A method for determining light intensity and light receiving sensitivity performed by an apparatus that prints on an area, and the apparatus can switch a plurality of light intensities as a detection means for detecting a print position mark or an area between print areas. And a light emitting means for outputting irradiation light with a predetermined light intensity to the second surface and a plurality of light receiving sensitivities can be switched, and the reflected light of the irradiation light output from the light emitting means is received and received reflected light. Each of the combinations of the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means each time the medium is transported by the minimum transport unit by the transport motor. Correspondingly, the output voltage is detected and The detection is repeated at least for the length of the print area in the conveyance direction, and the potential difference between the maximum value and the minimum value of the detected output voltage is calculated for each combination. It is determined in advance as a combination for adjusting the light intensity and the light receiving sensitivity of the light receiving means.

本発明のプログラムは、所定間隔で印刷領域が配置された第1面と、印刷位置マークが付された第2面とを備えた媒体を搬送モータによって搬送し、印刷領域に印刷を行う装置が読み取り可能なプログラムであって、装置は、印刷位置マーク又は印刷領域間の領域を検知するための検知手段として、複数の光強度を切り替え可能とし、第2面に対して所定の光強度の照射光を出力する発光手段と、複数の受光感度を切り替え可能とし、発光手段から出力された照射光の反射光を受光し、受光した反射光を基に出力電圧を発生する受光手段と、を有しており、装置に、媒体が搬送モータによって最小搬送単位だけ搬送される毎に、発光手段の光強度と受光手段の受光感度との組合せの全てに対応して出力電圧を検出し、当該検出を少なくとも印刷領域の搬送方向の長さ分繰り返し行う処理と、組合せ毎に、検出した出力電圧の最大値と最小値の電位差を算出する処理と、少なくとも、算出した電位差が最大である組合せを、発光手段の光強度と受光手段の受光感度を調整するための組合せとして予め決定する処理と、を実行させることを特徴とする。   The program of the present invention is an apparatus that transports a medium having a first surface on which printing areas are arranged at predetermined intervals and a second surface with a printing position mark by a transport motor and performs printing on the printing area. A readable program, the apparatus is capable of switching a plurality of light intensities as detection means for detecting a print position mark or an area between print areas, and irradiating the second surface with a predetermined light intensity A light-emitting means that outputs light, and a light-receiving means that can switch between a plurality of light-receiving sensitivities, receives reflected light of irradiation light output from the light-emitting means, and generates an output voltage based on the received reflected light. Each time the medium is transported to the device by the transport motor, the output voltage is detected corresponding to all combinations of the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means. At least mark A process of repeatedly performing the length of the region in the transport direction, a process of calculating a potential difference between the maximum value and the minimum value of the detected output voltage for each combination, and at least a combination in which the calculated potential difference is the maximum And a process that is determined in advance as a combination for adjusting the light intensity and the light receiving sensitivity of the light receiving means.

本発明によれば、印刷位置マーク又はラベル間の領域の検出不良を生じさせることなく、様々な種類の媒体に対応して、フォトセンサにおける最適な光強度と受光感度を自動的に決定することが可能となる。   According to the present invention, it is possible to automatically determine the optimum light intensity and light receiving sensitivity in a photosensor corresponding to various types of media without causing a detection failure of a region between printing position marks or labels. Is possible.

本発明の一実施形態に係るラベルプリンタの構成例を示す図である。It is a figure which shows the structural example of the label printer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るサンプリングデータのイメージ例を示す図である。It is a figure which shows the example of an image of the sampling data which concern on one Embodiment of this invention. 本発明の一実施形態に係るラベルプリンタの初期設定時の動作例を示すフローチャートである。It is a flowchart which shows the operation example at the time of the initial setting of the label printer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るラベルプリンタの運用時の動作例を示すフローチャートである。It is a flowchart which shows the operation example at the time of operation | use of the label printer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るラベルプリンタの発光側の電流OFFによる省電力制御を説明する図である。It is a figure explaining the power saving control by the current OFF of the light emission side of the label printer which concerns on one Embodiment of this invention.

以下、本発明を実施するための形態(実施形態)について添付図面を参照して詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments (embodiments) for carrying out the present invention will be described in detail with reference to the accompanying drawings.

まず、図1を参照して、本実施形態のラベルプリンタの構成について説明する。本実施形態のラベルプリンタは、媒体の一例であるラベル連続体に対して印刷を行う。ラベル連続体は、図1に示すように、台紙の表面(第1面)には、ラベルが等間隔で貼付されている。各ラベルは、台紙表面に対して剥離可能である。また、各ラベルに対して印刷(印字)が行われる。このことから、ラベルは印刷領域と呼ぶことができる。ラベルとラベルの間には所定の領域(ラベル間の領域、ラベル間ギャップ)がある。また、図1に示すように、台紙の裏面(第2面)には、印刷位置マークの一例であるIマーク(黒色のバー)が等間隔で印刷されている。各Iマークは、各ラベルの所定位置(例えば先頭位置)に対応しており、ラベル連続体における印刷開始位置やラベル端の決定などに利用される。   First, the configuration of the label printer of this embodiment will be described with reference to FIG. The label printer of this embodiment performs printing on a label continuum that is an example of a medium. As shown in FIG. 1, the label continuum has labels attached to the surface (first surface) of the mount at regular intervals. Each label is peelable from the mount surface. Further, printing (printing) is performed on each label. For this reason, the label can be called a print area. There is a predetermined area (area between labels, gap between labels) between the labels. Also, as shown in FIG. 1, I marks (black bars), which are examples of print position marks, are printed at equal intervals on the back surface (second surface) of the mount. Each I mark corresponds to a predetermined position (for example, the leading position) of each label, and is used for determining a printing start position and a label edge in a label continuum.

ラベル連続体は、図1の矢印で示す搬送方向に搬送される。搬送方向の上流には、図示しない供給リールが配置されており、それにラベル連続体は巻かれている。また、搬送方向の下流には、図示しないサーマルヘッドとプラテンローラが対向して配置されている。プラテンローラは、例えばギアを介して、図示しないステッピングモータ(搬送モータの一例)の駆動により回転させられる。この回転により、ラベル連続体は、図1の矢印で示す搬送方向に搬送され、サーマルヘッドの配置位置にて、サーマルヘッドによりラベルに印刷が行われる。   The label continuum is transported in the transport direction indicated by the arrow in FIG. A supply reel (not shown) is arranged upstream in the transport direction, and the label continuous body is wound around the supply reel. Further, a thermal head (not shown) and a platen roller are arranged to face each other downstream in the transport direction. The platen roller is rotated by driving a stepping motor (an example of a conveyance motor) (not shown) via a gear, for example. By this rotation, the label continuum is transported in the transport direction indicated by the arrow in FIG. 1, and printing is performed on the label by the thermal head at the position where the thermal head is disposed.

供給リールとサーマルヘッドの間には、フォトセンサ(検知手段の一例)が配置される。ここでは、Iマークを検出する反射型フォトセンサを例に説明する。   A photosensor (an example of a detection unit) is disposed between the supply reel and the thermal head. Here, a reflection type photosensor that detects the I mark will be described as an example.

フォトセンサの発光側(発光手段の一例)には、図1に示すように、ASIC(トランジスタ制御部)1、電源電圧VCC14、トランジスタアレイ(内部2回路)2、電流制限抵抗3、発光ダイオード4が備えられる。電流制限抵抗3は、RとR/2(R×1/2Ωの抵抗)が並列に接続されており、発光ダイオード4と直列に接続されている。ASIC(トランジスタアレイ制御部)1は、2bitでトランジスタアレイ2のON/OFFをコントロールする。このコントロールにより、R、R/2において3個の組合せ(RのみON、R/2のみON、RとR/2の両方ともON)が実現でき、発光ダイオード4に流す電流(光強度)を3段階に調節(切り替え)できる。   As shown in FIG. 1, an ASIC (transistor control unit) 1, a power supply voltage VCC 14, a transistor array (internal two circuits) 2, a current limiting resistor 3, and a light emitting diode 4 are provided on the light emitting side of the photosensor (an example of light emitting means). Is provided. In the current limiting resistor 3, R and R / 2 (R × ½Ω resistor) are connected in parallel, and are connected in series with the light emitting diode 4. An ASIC (transistor array controller) 1 controls ON / OFF of the transistor array 2 with 2 bits. By this control, three combinations (R only ON, R / 2 only ON, and R and R / 2 both ON) can be realized in R and R / 2, and the current (light intensity) flowing through the light emitting diode 4 can be realized. It can be adjusted (switched) in three stages.

フォトセンサの受光側(受光手段の一例)には、図1に示すように、ASIC(トランジスタ制御部)5、電源電圧VCC15、トランジスタアレイ(内部4回路)6、負荷抵抗7、フォトトランジスタ8が備えられる。負荷抵抗7は、RL、RL/2、RL/4、RL/8が並列接続されており、フォトトランジスタ8と直列に接続されている。ASIC(トランジスタアレイ制御部)2は、4bitでトランジスタアレイ6のON/OFFをコントロールする。このコントロールにより、受光感度の組合せとして、RL、RL/2、RL/4、RL/8において15個の組合せが実現でき、受光側の負荷抵抗7(受光感度)を15段階に調節(切り替え)できる。   As shown in FIG. 1, an ASIC (transistor control unit) 5, a power supply voltage VCC 15, a transistor array (internal 4 circuits) 6, a load resistor 7, and a phototransistor 8 are provided on the light receiving side (an example of a light receiving unit) of the photosensor. Provided. The load resistor 7 has RL, RL / 2, RL / 4, and RL / 8 connected in parallel, and is connected in series with the phototransistor 8. An ASIC (transistor array control unit) 2 controls ON / OFF of the transistor array 6 with 4 bits. With this control, 15 combinations of RL, RL / 2, RL / 4, and RL / 8 can be realized as combinations of light receiving sensitivity, and the load resistance 7 (light receiving sensitivity) on the light receiving side is adjusted (switched) to 15 levels. it can.

フォトトランジスタ8のコレクタの電圧(以下、センサ出力電圧という)は、CPU(Central Processing Unit)10のアナログポートに接続され、さらに、コンパレータ13のマイナス側に接続されている。コンパレータ13のプラス側には、D/Aコンバータ12のアナログ出力電圧が入力するように接続されている。   The collector voltage of the phototransistor 8 (hereinafter referred to as sensor output voltage) is connected to an analog port of a CPU (Central Processing Unit) 10 and further connected to the negative side of the comparator 13. The analog output voltage of the D / A converter 12 is connected to the plus side of the comparator 13 so as to be input.

なお、CPU10は、メモリ(データ格納部)11に対してデータのリード(読み出し)/ライト(書き込み)が可能であり、D/Aコンバータ12に対して、出力したいアナログ電圧のデータを転送できる。さらに、CPU10は、センサ出力電圧を解析し演算を行い、各ASIC1、5に対し、トランジスタアレイ制御のためのデータを転送できる。   The CPU 10 can read / write data from / to the memory (data storage unit) 11 and can transfer data of an analog voltage to be output to the D / A converter 12. Further, the CPU 10 can analyze and calculate the sensor output voltage and transfer data for transistor array control to the ASICs 1 and 5.

このような反射型フォトセンサを用いて、Iマークの部分とIマーク以外の部分(白部分)についてセンサ出力電圧を測定すると、Iマークの部分では、光の反射光量が低下するため、フォトトランジスタ8に流れる電流が少なく、センサ出力電圧はVCC15に近い高い電圧となる。一方、Iマーク以外の部分では、光の反射光量が高いため、フォトトランジスタ8に流れる電流が多く、センサ出力電圧は0Vに近い低い電圧となる。   When the sensor output voltage is measured for the I mark portion and the portion other than the I mark (white portion) using such a reflection type photosensor, the amount of reflected light decreases in the I mark portion. 8, the sensor output voltage is a high voltage close to VCC 15. On the other hand, in portions other than the I mark, the amount of reflected light is high, so that a large amount of current flows through the phototransistor 8 and the sensor output voltage is a low voltage close to 0V.

以上のように構成された本実施形態のラベルプリンタにおける初期設定時の動作について、図3のフローを参照して説明する。この初期設定時の動作は、例えば、ラベルプリンタの製品出荷後、最初に使用される(印刷が行われる)前に実行される。   The operation at the time of initial setting in the label printer of the present embodiment configured as described above will be described with reference to the flow of FIG. This initial setting operation is executed, for example, before the first use (printing is performed) after the product shipment of the label printer.

ラベルプリンタに用紙(ラベル連続体)がセットされ(S101)、ラベルプリンタがセンサ閾値設定モードで起動される(S102)。   The paper (label continuous body) is set in the label printer (S101), and the label printer is activated in the sensor threshold setting mode (S102).

発光側の電流制限抵抗3の組合せ数をmとし、mは、m=1〜3段階ある。mの値を初期設定する。例えば、電流が最小になる設定をm=1とする(S103)。   The number of combinations of the current-limiting resistors 3 on the light emission side is m, and m is m = 1 to 3 steps. Initialize the value of m. For example, the setting that minimizes the current is set to m = 1 (S103).

受光側の負荷抵抗7の組合せ数をnとし、nは、n=1〜15段階ある。nの値を初期設定する。例えば、負荷抵抗が最大になる設定をn=1とする(S104)。   The number of combinations of the load resistors 7 on the light receiving side is n, where n is n = 1-15. Initialize the value of n. For example, the setting that maximizes the load resistance is set to n = 1 (S104).

上記各初期設定の後、CPU10は、センサ出力電圧をアナログポートで読み取り、それをデジタルデータに変換し、メモリ11に格納する(S105)。これにより、3個ある電流制限抵抗3の組合せのうちの1番目の組合せと、15個ある負荷抵抗7の組合せのうちの1番目の組合せとの組合せに対応するセンサ出力電圧が検出(サンプリング)されることになる。   After each initial setting, the CPU 10 reads the sensor output voltage with an analog port, converts it into digital data, and stores it in the memory 11 (S105). Thereby, the sensor output voltage corresponding to the combination of the first combination of the three current limiting resistors 3 and the first combination of the 15 load resistors 7 is detected (sampling). Will be.

ここで、nは、n=1であるため(S106/NO)、CPU10は、n+1(n=2)とし、ASIC5に命令を出す(S107)。これにより、ASIC5は、4bitでトランジスタアレイ6のON/OFFを切り替え制御する。すなわち、15個ある負荷抵抗7の組合せのうちの2番目の組合せが選択される。その後は、再度S105において、CPU10は、センサ出力電圧を検出し、メモリ11に格納する。これにより、3個ある電流制限抵抗3の組合せのうちの1番目の組合せと、15個ある負荷抵抗7の組合せのうちの2番目の組合せとの組合せに対応するセンサ出力電圧が検出(サンプリング)されることになる。以降、この動作をn=15になるまで(S106/YES)繰り返し行う。   Here, since n is n = 1 (S106 / NO), the CPU 10 sets n + 1 (n = 2) and issues a command to the ASIC 5 (S107). Thereby, the ASIC 5 performs switching control of ON / OFF of the transistor array 6 with 4 bits. That is, the second combination of the 15 combinations of load resistors 7 is selected. Thereafter, in S105 again, the CPU 10 detects the sensor output voltage and stores it in the memory 11. As a result, the sensor output voltage corresponding to the combination of the first combination of the three current limiting resistors 3 and the second combination of the 15 load resistors 7 is detected (sampling). Will be. Thereafter, this operation is repeated until n = 15 (S106 / YES).

次に、mは、m=1であるため(S108/NO)、CPU10は、m+1(m=2)とし、ASIC1に命令を出す(S109)。これにより、ASIC1は、2bitでトランジスタアレイ2のON/OFFを切り替え制御する。すなわち、3個ある電流制限抵抗3の組合せのうちの2番目の組合せが選択される。その後は、再度S104において、nをn=1に初期設定し、S105からS107までを繰り返す。以降、S104からS109までの動作をm=3になるまで繰り返し行う。   Next, since m is m = 1 (S108 / NO), the CPU 10 sets m + 1 (m = 2) and issues a command to the ASIC 1 (S109). Thereby, the ASIC 1 performs switching control of ON / OFF of the transistor array 2 with 2 bits. That is, the second combination of the three combinations of the current limiting resistors 3 is selected. Thereafter, in S104 again, n is initialized to n = 1, and S105 to S107 are repeated. Thereafter, the operations from S104 to S109 are repeated until m = 3.

以上のようにして、3個ある電流制限抵抗3の組合せと、15個ある負荷抵抗7の組合せとの全ての組合せに対応するセンサ出力電圧が検出(サンプリング)される。そして、ここまでが、ステッピングモータの1ステップ中に行うセンサ出力電圧のサンプリングである。なお、本実施形態において、ステッピングモータの1ステップは、ラベル連続体の最小搬送単位の一例である。   As described above, sensor output voltages corresponding to all combinations of the combination of the three current limiting resistors 3 and the combination of the fifteen load resistors 7 are detected (sampled). Up to this point, the sensor output voltage sampling is performed during one step of the stepping motor. In the present embodiment, one step of the stepping motor is an example of the minimum transport unit of the label continuum.

CPU10は、ステッピングモータを1ステップ駆動するよう制御する(S110)。ここで、CPU10は、その駆動により、ラベル連続体が一定距離搬送されたかどうかを判断する(S111)。ここでは一定距離の例をラベル長とする。ラベル長とは、図1に示すように、搬送方向におけるラベルの長さを意味する。なお、一定距離は、ラベル長以上の長さであってもよい。このように、本実施形態では、少なくともラベル長分の搬送が行われるときのセンサ出力電圧を検出するので、Iマーク以外の部分だけでなく、Iマークの部分も含めたセンサ出力電圧を検出することができる。   The CPU 10 controls the stepping motor to drive one step (S110). Here, the CPU 10 determines whether or not the label continuum has been conveyed by a certain distance by the drive (S111). Here, an example of a fixed distance is a label length. The label length means the length of the label in the transport direction as shown in FIG. Note that the certain distance may be longer than the label length. As described above, in this embodiment, since the sensor output voltage is detected at least when the conveyance for the label length is performed, the sensor output voltage including not only the portion other than the I mark but also the portion of the I mark is detected. be able to.

S111の判断の結果、一定距離の搬送が終了していない場合は(S111/NO)、再度、上記S103〜S109においてセンサ出力電圧のサンプリングが行われる。このように、ステッピングモータの1ステップ毎に、3個ある電流制限抵抗3の組合せと、15個ある負荷抵抗7の組合せとの全ての組合せに対応するセンサ出力電圧のサンプリングが繰り返され、一定距離(ラベル長分)の搬送が終了したら(S111/YES)、一連の動作が終了される。   If the result of the determination in S111 is that the conveyance of a certain distance has not been completed (S111 / NO), the sensor output voltage is sampled again in S103 to S109. Thus, for each step of the stepping motor, the sampling of the sensor output voltage corresponding to all combinations of the combination of the three current limiting resistors 3 and the combination of the fifteen load resistors 7 is repeated, and a certain distance is obtained. When the conveyance for (label length) is completed (S111 / YES), a series of operations is terminated.

図2は、図3の動作によりメモリ11に格納された、センサ出力電圧のサンプリングデータのイメージ例である。図2には、例として、3つの組合せ(組合せa、b、c)に対応したサンプリングデータだけを示しているが、実際には45個の組合せに対応したサンプリングデータが存在する。図2に示すように、組合せ毎に、センサ出力電圧の最大値と最小値は異なっている。CPU10は、45個の組合せ毎に、サンプリングデータの最大値と最小値を検出し、その電位差を算出する。これにより、45個の電位差が算出される。さらに、CPU10は、算出した各電位差を比較し、電位差が最大である組合せと、電位差が2番目に大きい組合せと、電位差が3番目に大きい組合せとを決定する。図2の例では、電位差が最大である組合せは組合せa、電位差が2番目に大きい組合せは組合せb、電位差が3番目に大きい組合せは組合せcとなっている。組合せb、cは、組合せaの前後の組合せである。このようにして決定された組合せは、実際の運用(印刷)時において、発光側の光強度と受光側の受光感度を調整するときの組合せとなる。なお、ここでは、例として、3つの組合せが決定されたが、組合せ数はこれに限定されない。また、少なくとも、電位差が最大である組合せは組合せが決定されればよい。   FIG. 2 is an image example of sampling data of the sensor output voltage stored in the memory 11 by the operation of FIG. FIG. 2 shows only sampling data corresponding to three combinations (combinations a, b, and c) as an example, but actually there is sampling data corresponding to 45 combinations. As shown in FIG. 2, the maximum value and the minimum value of the sensor output voltage are different for each combination. The CPU 10 detects the maximum value and the minimum value of the sampling data for every 45 combinations, and calculates the potential difference. As a result, 45 potential differences are calculated. Further, the CPU 10 compares the calculated potential differences and determines a combination having the largest potential difference, a combination having the second largest potential difference, and a combination having the third largest potential difference. In the example of FIG. 2, the combination having the largest potential difference is the combination a, the combination having the second largest potential difference is the combination b, and the combination having the third largest potential difference is the combination c. The combinations b and c are combinations before and after the combination a. The combination determined in this way is a combination for adjusting the light intensity on the light emitting side and the light receiving sensitivity on the light receiving side during actual operation (printing). Here, as an example, three combinations are determined, but the number of combinations is not limited to this. At least the combination having the maximum potential difference may be determined.

その後、CPU10は、電位差が最大である組合せのときの閾値(例えば(最大値+最小値)/2)の値を算出し、D/Aコンバータ12に閾値電圧のデータを転送する。なお、
閾値の値は、最大値から一定の値を引いた電圧値でもよい。
Thereafter, the CPU 10 calculates a threshold value (for example, (maximum value + minimum value) / 2) for the combination having the maximum potential difference, and transfers threshold voltage data to the D / A converter 12. In addition,
The threshold value may be a voltage value obtained by subtracting a certain value from the maximum value.

以上の動作を実行することで、センサ閾値設定モードが終了する。   By executing the above operation, the sensor threshold value setting mode ends.

以上説明したように、本実施形態のラベルプリンタは、ラベル連続体を搬送するためのステッピングモータの1ステップ駆動毎に、フォトセンサの発光側の電流(光強度)を3段階と、フォトセンサの受光側の負荷抵抗(受光感度)を15段階との合計45段階に変化させ、45段階それぞれのフォトセンサの出力電圧をサンプリングする。このサンプリングは、少なくともラベル長分搬送されるまで繰り返し行われる。そして、本実施形態のラベルプリンタは、Iマークの部分を含めたフォトセンサの出力電圧の最大値と最小値を基に、少なくとも、電位差が最も大きくなる組合せを決定する。これにより、本実施形態のラベルプリンタでは、Iマークの検出不良を生じさせることなく、様々な種類の媒体に対応して、フォトセンサにおける最適な光強度と受光感度を自動的に一意に決定することが可能となる。   As described above, the label printer of this embodiment has three levels of the current (light intensity) on the light emission side of the photosensor for each step of driving the stepping motor for transporting the continuous label body. The load resistance (light receiving sensitivity) on the light receiving side is changed to 45 steps in total with 15 steps, and the output voltage of the photosensor at each of 45 steps is sampled. This sampling is repeated until at least the label length is conveyed. The label printer according to the present embodiment determines at least the combination having the largest potential difference based on the maximum value and the minimum value of the output voltage of the photosensor including the I mark portion. As a result, the label printer according to the present embodiment automatically and uniquely determines the optimum light intensity and light receiving sensitivity in the photosensor in correspondence with various types of media without causing an I mark detection failure. It becomes possible.

次に、本実施形態のラベルプリンタにおける運用時の動作について、図4のフローを参照して説明する。この運用時の動作は、図3のセンサ閾値設定モードが終了した後で、実際にラベル印刷が行われるときに実行される。   Next, the operation at the time of operation in the label printer of this embodiment will be described with reference to the flow of FIG. This operation at the time of operation is executed when label printing is actually performed after the sensor threshold value setting mode of FIG. 3 is completed.

図3のS101でセットされたラベル連続体と同じ種類のラベル連続体がセットされる(S201)。なお、異なる種類のラベル連続体に印刷を行う場合には、そのラベル連続体を使用して再度図3のセンサ閾値設定モードを行う必要がある。   A label continuum of the same type as the label continuum set in S101 of FIG. 3 is set (S201). In addition, when printing on a different type of label continuum, it is necessary to perform the sensor threshold setting mode of FIG. 3 again using the label continuum.

センサ出力電圧の検出(サンプリング)が開始される(S202)。すなわち、実際に印刷が行われる際にも、センサ出力電圧のサンプリングが行われることになる。そしてここでは、サンプリングのときに使用される組合せとして、図2の例で説明した組合せa(電位差が最大)、組合せb(電位差が2番目に大きい)、組合せc(電位差が3番目に大きい)が予め決定されているとする。   Detection (sampling) of the sensor output voltage is started (S202). That is, the sensor output voltage is also sampled when printing is actually performed. Here, as the combinations used for sampling, the combination a (potential difference is the largest), the combination b (potential difference is the second largest), and the combination c (potential difference is the third largest) described in the example of FIG. Is determined in advance.

ラベルプリンタにおいて、上位(例えばラベルプリンタに接続されたパソコン等)から、ラベルに印刷される印刷データが受信される(S203)。   In the label printer, print data to be printed on the label is received from a host (for example, a personal computer connected to the label printer) (S203).

1枚目のラベルの搬送が開始されると、CPU10は、そのラベルのIマークの検出動作中に、それと同時にステッピングモータの1ステップ毎に、組合せa、組合せb、組合せcを基に電流制限抵抗3と負荷抵抗7を調整(切り替え)しながら、各組合せに対応したセンサ出力電圧を読み取り、メモリ11に格納していく(S204)。ここでも、このサンプリングは、少なくともラベル長分行われる。メモリ11に格納されるセンサ出力電圧(サンプリングデータ)は、1枚目の組合せaのデータ、1枚目の組合せbのデータ、1枚目の組合せcのデータとなる。   When the conveyance of the first label is started, the CPU 10 limits the current based on the combination a, the combination b, and the combination c for each step of the stepping motor during the detection operation of the I mark of the label. While adjusting (switching) the resistor 3 and the load resistor 7, the sensor output voltage corresponding to each combination is read and stored in the memory 11 (S204). Again, this sampling is performed for at least the label length. The sensor output voltage (sampling data) stored in the memory 11 is the data of the first combination a, the data of the first combination b, and the data of the first combination c.

CPU10は、1枚目のラベルについてIマークの検出(ラベル長分のセンサ出力電圧のサンプリング)が終了すると、予め定められた回数(ラベルの枚数)分のIマークの検出が終了したかどうかを判断する(S205)。ここでは、予め定められた回数を3回とする。判断の結果、3回に満たない場合は(S205/NO)、S203に戻り、上位からの印刷データを待ち、再度S204の動作が行われ、3回に達するまでこれを繰り返す。よって、2枚目、3枚目のラベルについても、S204の動作が行われる。これによりメモリ11に格納されるセンサ出力電圧(サンプリングデータ)は、2枚目の組合せaのデータ、2枚目の組合せbのデータ、2枚目の組合せcのデータ、3枚目の組合せaのデータ、3枚目の組合せbのデータ、3枚目の組合せcのデータとなる。つまり、ここでは、9つのデータが格納されることになる。   When the detection of the I mark (sampling of the sensor output voltage for the label length) is completed for the first label, the CPU 10 determines whether or not the detection of the I mark for the predetermined number of times (the number of labels) is completed. Judgment is made (S205). Here, the predetermined number of times is three. As a result of the determination, if it is less than three times (S205 / NO), the process returns to S203, waits for print data from the upper level, performs the operation of S204 again, and repeats this until it reaches three times. Therefore, the operation of S204 is also performed for the second and third labels. As a result, the sensor output voltage (sampling data) stored in the memory 11 is the data of the second combination a, the data of the second combination b, the data of the second combination c, and the third combination a. Data, data for the third combination b, and data for the third combination c. That is, here, nine data are stored.

以上のようにして、Iマークの検出が連続して3回終了した後(S205/YES)、CPU10は、上記9つのデータ毎に、最大値と最小値の電位差を算出する。次に、CPU10は、組合せa、b、c毎に、算出した電位差の平均を算出する。これについて、例えば組合せaを例に説明する。まず、CPU10は、1枚目の組合せaのデータの最大値と最小値を基に電位差を算出し、それを1枚目の電位差とする。同様に、CPU10は、2枚目の組合せaのデータの最大値と最小値を基に電位差を算出し、それを2枚目の電位差とする。同様に、CPU10は、3枚目の組合せaのデータの最大値と最小値を基に電位差を算出し、それを3枚目の電位差とする。次に、CPU10は、1枚目の電位差、2枚目の電位差、3枚目の電位差の平均値を算出し、それを組合せaの平均値とする。以上の計算を組合せb、組合せcについても行い、それぞれ組合せbの平均値、組合せcの平均値とする。   As described above, after the detection of the I mark is completed three times in succession (S205 / YES), the CPU 10 calculates the potential difference between the maximum value and the minimum value for each of the nine data. Next, the CPU 10 calculates the average of the calculated potential differences for each combination a, b, and c. This will be described using, for example, the combination a. First, the CPU 10 calculates a potential difference based on the maximum value and the minimum value of the data of the first sheet combination a, and sets it as the first sheet potential difference. Similarly, the CPU 10 calculates a potential difference based on the maximum value and the minimum value of the data of the combination a of the second sheet, and sets it as the potential difference of the second sheet. Similarly, the CPU 10 calculates a potential difference based on the maximum value and the minimum value of the data of the combination a on the third sheet, and sets it as the potential difference on the third sheet. Next, the CPU 10 calculates the average value of the potential difference of the first sheet, the potential difference of the second sheet, and the potential difference of the third sheet, and sets it as the average value of the combination a. The above calculation is also performed for the combination b and the combination c, and the average value of the combination b and the average value of the combination c are obtained.

CPU10は、組合せaの平均値、組合せbの平均値、組合せcの平均値を比較し、最大となる平均値の組合せを新たな組合せとして決定する(S206〜210)。   The CPU 10 compares the average value of the combination a, the average value of the combination b, and the average value of the combination c, and determines the maximum combination of average values as a new combination (S206 to 210).

CPU10は、決定した新たな組合せに変更する(S211)。この新たな組合せは、4枚目以降のラベルのIマーク検出で用いられることになる。   The CPU 10 changes to the determined new combination (S211). This new combination is used for the I mark detection of the fourth and subsequent labels.

以上が、運用時(ラベル印刷時)の動作である。   The above is the operation at the time of operation (at the time of label printing).

以上説明したように、本実施形態のラベルプリンタは、運用時において、センサ閾値設定モードのときと同じ種類のラベル連続体に対し、通常のIマーク検出動作中に同時に、予め(センサ閾値設定モードのときに)決定しておいた組合せでセンサ出力電圧のサンプリングを行う。このサンプリングは、図3のときと同様に、ステッピングモータの1ステップ毎に、ラベル長分繰り返して行われる。そして、本実施形態のラベルプリンタは、連続する3つ(予め定められた数)のIマークを検出したところで、組合せ毎に電位差の平均値を算出し、どの組合せの平均値が最大となるかを判断する。判断の結果、初期設定の組合せ(例えば組合せa)の平均値が最も大きい場合、本実施形態のラベルプリンタは、Iマークの印刷濃度のばらつきは見られなかったものと判断し、そのままの組合せで運用する。一方、初期設定の組合せ以外の組合せの平均値が大きい場合は、本実施形態のラベルプリンタは、Iマークの印刷濃度のばらつきがあったものと判断し、初期設定の組合せを平均値が最も大きい組合せ(例えば組合せb又はc)に変更し、次回以降のIマーク検出のときに、変更した組合せを用いて自動的に発光側の光強度及び受光側の受光感度を補正する。   As described above, the label printer according to the present embodiment operates in advance during the normal I mark detection operation for the same type of label continuum as in the sensor threshold setting mode. When the sensor output voltage is sampled, the combination is determined. As in the case of FIG. 3, this sampling is repeated for each label length for each step of the stepping motor. Then, when the label printer of this embodiment detects three consecutive I marks (a predetermined number), the average value of the potential difference is calculated for each combination, and which combination has the maximum average value. Judging. If the average value of the default combination (for example, combination a) is the largest as a result of the determination, the label printer according to the present embodiment determines that no variation in the print density of the I mark has been observed, and the combination remains as it is. operate. On the other hand, if the average value of combinations other than the default combination is large, the label printer according to the present embodiment determines that there is a variation in the print density of the I mark, and the average value of the initial combination is the largest. The combination is changed to a combination (for example, combination b or c), and the light intensity on the light emitting side and the light receiving sensitivity on the light receiving side are automatically corrected using the changed combination when the I mark is detected next time.

なお、上記本実施形態のラベルプリンタにおいて、ラベル間の領域を検出する透過型フォトセンサを適用することも可能である。また、上記本実施形態のラベルプリンタでは、発光側の光強度(電流制限抵抗)の組合せを3段階、受光側の受光感度(負荷抵抗)の組合せを15段階としているが、使用するフォトセンサの特性によっては、この組合せ数は自由でよい。また、上記本実施形態のラベルプリンタでは、トランジスタアレイを使用しているが、代わりにアナログスイッチを使用することもできる。また、上記本実施形態のラベルプリンタでは、図3において予め決定される組合せとして、図2に示す組合せa、b、cとしているが、同じ種類の用紙でばらつきが大きい場合は、この組合せ数を増やすことができる。   In the label printer of the present embodiment, it is also possible to apply a transmissive photosensor that detects an area between labels. Further, in the label printer of the present embodiment, the combination of the light intensity (current limiting resistance) on the light emitting side has three levels and the combination of the light receiving sensitivity (load resistance) on the light receiving side has 15 levels. Depending on the characteristics, this number of combinations may be free. In the label printer of this embodiment, a transistor array is used, but an analog switch can be used instead. Further, in the label printer of the present embodiment, the combinations a, b, and c shown in FIG. 2 are used as the combinations determined in advance in FIG. 3. Can be increased.

また、上記本実施形態のラベルプリンタでは、発光側の光強度(電流制限抵抗)の組合せを3段階としているが、トランジスタアレイ2を全てOFFにする場合も含めて4段階にすることも可能である。この場合において、CPU10は、ラベル連続体を一定距離(少なくともラベルの長さ方向の寸法以上で、ラベル端またはIマークが少なくとも2回以上検出できる長さ)搬送させることで、同時に、ラベル端からラベル端まで(IマークからIマークまで)の周期をステッピングモータのステップ数でカウントすることができる。CPU10は、このカウント結果から周期が一定期間を超えて長い場合は、図5に示すようにIマーク検出不要期間であると判断し、発光側に流れる電流を切ることが可能となる。これにより、省電力化を図ることができる。   Further, in the label printer of the present embodiment, the combination of the light intensity (current limiting resistance) on the light emitting side has three stages, but it is possible to have four stages including the case where all the transistor arrays 2 are turned off. is there. In this case, the CPU 10 conveys the label continuum by a certain distance (at least the dimension in the length direction of the label and the length at which the label edge or the I mark can be detected at least twice). The period from the label end (from I mark to I mark) can be counted by the number of steps of the stepping motor. If the cycle is longer than a certain period from the count result, the CPU 10 determines that it is an I mark detection unnecessary period as shown in FIG. 5, and can cut off the current flowing to the light emitting side. Thereby, power saving can be achieved.

以上説明してきた本実施形態のラベルプリンタで得られる効果について以下にまとまる。フォトセンサのばらつきにより、感度が低いもの、高いものがあるが、本実施形態のアイデアを実施することで、感度が低いセンサは発光側の電流を増やし、かつ、受光側の負荷抵抗についても制御することで、用紙に適した感度を作ることができる。同様に、感度の高いセンサは、発光側の電流を減らして、かつ、受光側の負荷抵抗についても制御することで、用紙に適した感度を作ることができる。このため、フォトセンサ自体の感度のばらつきを気にすることなく、様々な用紙を使用することができる。また、Iマーク部分を含めてセンサの出力電圧をサンプリングし、それを基に光強度と受光感度を決定するので、実際にIマークを検出するときの検出不良を防止できる。また、保守部品としてフォトセンサを供給する際にも、フォトセンサ自体の感度のばらつきを気にすることなく供給が可能である。また、同じ種類の用紙において、用紙の製造ロットのばらつきや製造ベンダーの違いでIマークの印刷濃度が異なることがある場合でも、自動的に感度を補正するため、用紙に適した感度に設定することができる。   The effects obtained by the label printer of this embodiment described above are summarized below. Depending on the variation of the photo sensor, there are low sensitivity and high sensitivity, but by implementing the idea of this embodiment, the low sensitivity sensor increases the current on the light emitting side and also controls the load resistance on the light receiving side. By doing so, the sensitivity suitable for the paper can be made. Similarly, a highly sensitive sensor can reduce the current on the light-emitting side and control the load resistance on the light-receiving side to produce a sensitivity suitable for the paper. For this reason, various papers can be used without worrying about variations in sensitivity of the photosensors themselves. Further, since the output voltage of the sensor including the I mark portion is sampled and the light intensity and the light receiving sensitivity are determined based on the sampling, the detection failure when actually detecting the I mark can be prevented. In addition, when supplying a photosensor as a maintenance part, it can be supplied without worrying about variations in sensitivity of the photosensor itself. Also, even if the same type of paper has different print density of the I mark due to variations in paper production lots or manufacturing vendors, the sensitivity is automatically corrected. be able to.

なお、特許文献1では、用紙をセットする際に、Iマークや、ラベルギャップが検出位置にかからないようにするなど制限があるため、ユーザは注意して用紙をセットしなければならない。これに対して、上記実施形態では、用紙をセットする場所を指定する必要がないため容易であるところが異なる。上記実施形態では、用紙を一定距離(少なくともラベル長以上)を搬送し、フォトセンサの出力電圧をサンプリングし、その中で最大値と最小値を検出するため、用紙をセットする位置は自由であり、Iマークやラベルギャップにかからないように用紙をセットするといった注意を払う必要はない。よって、用紙のセットは容易になる。   In Japanese Patent Application Laid-Open No. 2004-151867, there is a restriction such that the I mark or the label gap is not applied to the detection position when setting the paper, so the user must set the paper with care. On the other hand, in the above-described embodiment, it is not necessary to specify a place where the paper is set, and thus it is easy. In the above embodiment, the paper is transported a certain distance (at least the label length or more), the output voltage of the photosensor is sampled, and the maximum value and the minimum value are detected, so the position where the paper is set is arbitrary. Therefore, it is not necessary to pay attention to setting the paper so as not to cover the I mark or the label gap. Therefore, the paper can be easily set.

以上、本発明の実施形態について説明したが、上記実施形態に限定されるものではなく、その要旨を逸脱しない範囲において種々の変形が可能である。   As mentioned above, although embodiment of this invention was described, it is not limited to the said embodiment, A various deformation | transformation is possible in the range which does not deviate from the summary.

例えば、上述した実施形態における動作は、ハードウェア、または、ソフトウェア、あるいは、両者の複合構成によって実行することも可能である。   For example, the operation in the above-described embodiment can be executed by hardware, software, or a combined configuration of both.

ソフトウェアによる処理を実行する場合には、処理シーケンスを記録したプログラムを、専用のハードウェアに組み込まれているコンピュータ内のメモリにインストールして実行させてもよい。あるいは、各種処理が実行可能な汎用コンピュータにプログラムをインストールして実行させてもよい。   When executing processing by software, a program in which a processing sequence is recorded may be installed and executed in a memory in a computer incorporated in dedicated hardware. Or you may install and run a program in the general purpose computer which can perform various processes.

例えば、プログラムは、記録媒体としてのハードディスクやROM(Read Only Memory)に予め記録しておくことが可能である。あるいは、プログラムは、CD−ROM(Compact Disc Read Only Memory)、MO(Magneto Optical)ディスク、DVD(Digital Versatile Disc)、USB(Universal Serial Bus)メモリ、磁気ディスク、半導体メモリなどのリムーバブル記録媒体に、一時的、あるいは、永続的に格納(記録)しておくことが可能である。このようなリムーバブル記録媒体は、いわゆるパッケージソフトウエアとして提供することが可能である。   For example, the program can be recorded in advance on a hard disk or a ROM (Read Only Memory) as a recording medium. Alternatively, the program is stored on a removable recording medium such as a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto Optical) disc, a DVD (Digital Versatile Disc), a USB (Universal Serial Bus) memory, a magnetic disc, and a semiconductor memory. It is possible to store (record) temporarily or permanently. Such a removable recording medium can be provided as so-called package software.

なお、プログラムは、上述したようなリムーバブル記録媒体からコンピュータにインストールする他、ダウンロードサイトから、コンピュータに無線転送してもよい。または、LAN(Local Area Network)、インターネットといったネットワークを介して、コンピュータに有線で転送してもよい。コンピュータでは、転送されてきたプログラムを受信し、内蔵するハードディスク等の記録媒体にインストールすることが可能である。   The program may be wirelessly transferred from the download site to the computer in addition to being installed on the computer from the removable recording medium as described above. Or you may wire-transfer to a computer via networks, such as LAN (Local Area Network) and the internet. The computer can receive the transferred program and install it on a recording medium such as a built-in hard disk.

また、上記実施形態で説明した処理動作に従って時系列的に実行されるのみならず、処理を実行する装置の処理能力、あるいは、必要に応じて並列的にあるいは個別に実行するように構築することも可能である。   In addition to being executed in time series in accordance with the processing operations described in the above embodiment, the processing capability of the apparatus that executes the processing, or a configuration to execute in parallel or individually as necessary Is also possible.

1、5、9 ASIC
2、6 トランジスタアレイ
3 電流制限抵抗
4 発光ダイオード
7 負荷抵抗
8 フォトトランジスタ
10 CPU
11 メモリ
12 D/Aコンバータ
13 コンパレータ
14、15 VCC
1, 5, 9 ASIC
2, 6 Transistor array 3 Current limiting resistor 4 Light emitting diode 7 Load resistor 8 Phototransistor 10 CPU
11 Memory 12 D / A Converter 13 Comparator 14, 15 VCC

Claims (6)

所定間隔で印刷領域が配置された第1面と、印刷位置マークが付された第2面とを備えた媒体を搬送モータによって搬送し、前記印刷領域に印刷を行うプリンタであって、
前記印刷位置マーク又は前記印刷領域間の領域を検知するための検知手段として、複数の光強度を切り替え可能とし、前記第2面に対して所定の光強度の照射光を出力する発光手段と、複数の受光感度を切り替え可能とし、前記発光手段から出力された照射光の反射光を受光し、受光した反射光を基に出力電圧を発生する受光手段と、を有しており、
前記媒体が前記搬送モータによって最小搬送単位だけ搬送される毎に、前記発光手段の光強度と前記受光手段の受光感度との組合せの全てに対応して前記出力電圧を検出し、当該検出を少なくとも前記印刷領域の搬送方向の長さ分繰り返し行い、
前記組合せ毎に、検出した出力電圧の最大値と最小値の電位差を算出し、
少なくとも、算出した電位差が最大である組合せを、前記発光手段の光強度と前記受光手段の受光感度を調整するための組合せとして予め決定することを特徴とするプリンタ。
A printer that transports a medium having a first surface on which printing areas are arranged at predetermined intervals and a second surface with a printing position mark by a transport motor and performs printing in the printing area,
As a detecting means for detecting the printing position mark or the area between the printing areas, a plurality of light intensities can be switched, and a light emitting means for outputting irradiation light having a predetermined light intensity to the second surface; A plurality of light receiving sensitivities, a light receiving means for receiving reflected light of the irradiation light output from the light emitting means, and generating an output voltage based on the received reflected light, and
Each time the medium is transported by the transport motor by the minimum transport unit, the output voltage is detected corresponding to all combinations of the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means, and the detection is performed at least. Repeat for the length of the print area in the transport direction,
For each combination, calculate the potential difference between the maximum value and the minimum value of the detected output voltage,
A printer characterized in that at least a combination having a maximum calculated potential difference is determined in advance as a combination for adjusting the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means.
前記電位差が最大である組合せに加え、算出した電位差が2番目に大きい組合せ、及び、算出した電位差が3番目に大きい組合せを予め決定することを特徴とする請求項1記載のプリンタ。   2. The printer according to claim 1, wherein, in addition to the combination having the largest potential difference, a combination having the second largest calculated potential difference and a combination having the third largest potential difference are determined in advance. 予め決定した組合せが複数有り、当該予め決定した組合せを用いて前記検知手段の感度を調整する場合、
前記媒体が前記搬送モータによって最小搬送単位だけ搬送される毎に、前記予め決定した組合せの全てに対応して前記出力電圧を検出し、当該検出を少なくとも前記印刷領域の搬送方向の長さ分繰り返し、さらに、当該検出を予め定められた印刷領域の数分行い、
前記予め決定した組合せ毎に、検出した出力電圧の最大値と最小値の電位差を前記印刷領域の数分算出し、さらに、前記印刷領域の数分算出した電位差の平均値を算出し、
算出した平均値が最も大きい組合せを、次回から前記発光手段の光強度と前記受光手段の受光感度を調整するための組合せとして決定することを特徴とする請求項1又は2記載のプリンタ。
When there are a plurality of predetermined combinations and the sensitivity of the detection means is adjusted using the predetermined combinations,
Each time the medium is transported by the transport motor by the minimum transport unit, the output voltage is detected corresponding to all the predetermined combinations, and the detection is repeated at least for the length of the print region in the transport direction. Furthermore, the detection is performed for a predetermined number of print areas,
For each of the predetermined combinations, the potential difference between the maximum value and the minimum value of the detected output voltage is calculated for the number of the print areas, and further, the average value of the potential differences calculated for the number of the print areas is calculated,
3. The printer according to claim 1, wherein the combination having the largest calculated average value is determined as the combination for adjusting the light intensity of the light emitting unit and the light receiving sensitivity of the light receiving unit from the next time.
前記組合せは、
前記発光手段側に備えられる複数の制限抵抗における組合せと、前記受光手段側に備えられる複数の負荷抵抗における組合せとの組合せであることを特徴とする請求項1から3のいずれか1項に記載のプリンタ。
The combination is
The combination of a plurality of limiting resistors provided on the light emitting unit side and a combination of a plurality of load resistors provided on the light receiving unit side are described in any one of claims 1 to 3. Printer.
所定間隔で印刷領域が配置された第1面と、印刷位置マークが付された第2面とを備えた媒体を搬送モータによって搬送し、前記印刷領域に印刷を行う装置にて行われる光強度と受光感度の決定方法であって、
前記装置は、
前記印刷位置マーク又は前記印刷領域間の領域を検知するための検知手段として、複数の光強度を切り替え可能とし、前記第2面に対して所定の光強度の照射光を出力する発光手段と、複数の受光感度を切り替え可能とし、前記発光手段から出力された照射光の反射光を受光し、受光した反射光を基に出力電圧を発生する受光手段と、を有しており、
前記媒体が前記搬送モータによって最小搬送単位だけ搬送される毎に、前記発光手段の光強度と前記受光手段の受光感度との組合せの全てに対応して前記出力電圧を検出し、当該検出を少なくとも前記印刷領域の搬送方向の長さ分繰り返し行い、
前記組合せ毎に、検出した出力電圧の最大値と最小値の電位差を算出し、
少なくとも、算出した電位差が最大である組合せを、前記発光手段の光強度と前記受光手段の受光感度を調整するための組合せとして予め決定することを特徴とする光強度と受光感度の決定方法。
Light intensity performed by an apparatus that transports a medium having a first surface on which printing areas are arranged at predetermined intervals and a second surface on which a printing position mark is attached by a transport motor and performs printing on the printing area. And a method for determining light receiving sensitivity,
The device is
As a detecting means for detecting the printing position mark or the area between the printing areas, a plurality of light intensities can be switched, and a light emitting means for outputting irradiation light having a predetermined light intensity to the second surface; A plurality of light receiving sensitivities, a light receiving means for receiving reflected light of the irradiation light output from the light emitting means, and generating an output voltage based on the received reflected light, and
Each time the medium is transported by the transport motor by the minimum transport unit, the output voltage is detected corresponding to all combinations of the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means, and the detection is performed at least. Repeat for the length of the print area in the transport direction,
For each combination, calculate the potential difference between the maximum value and the minimum value of the detected output voltage,
A method for determining a light intensity and a light receiving sensitivity, wherein at least a combination having a maximum calculated potential difference is determined in advance as a combination for adjusting the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means.
所定間隔で印刷領域が配置された第1面と、印刷位置マークが付された第2面とを備えた媒体を搬送モータによって搬送し、前記印刷領域に印刷を行う装置が読み取り可能なプログラムであって、
前記装置は、
前記印刷位置マーク又は前記印刷領域間の領域を検知するための検知手段として、複数の光強度を切り替え可能とし、前記第2面に対して所定の光強度の照射光を出力する発光手段と、複数の受光感度を切り替え可能とし、前記発光手段から出力された照射光の反射光を受光し、受光した反射光を基に出力電圧を発生する受光手段と、を有しており、
前記装置に、
前記媒体が前記搬送モータによって最小搬送単位だけ搬送される毎に、前記発光手段の光強度と前記受光手段の受光感度との組合せの全てに対応して前記出力電圧を検出し、当該検出を少なくとも前記印刷領域の搬送方向の長さ分繰り返し行う処理と、
前記組合せ毎に、検出した出力電圧の最大値と最小値の電位差を算出する処理と、
少なくとも、算出した電位差が最大である組合せを、前記発光手段の光強度と前記受光手段の受光感度を調整するための組合せとして予め決定する処理と、
を実行させることを特徴とするプログラム。
A program readable by a device that transports a medium having a first surface on which printing areas are arranged at a predetermined interval and a second surface with a printing position mark by a transport motor and performs printing on the printing area. There,
The device is
As a detecting means for detecting the printing position mark or the area between the printing areas, a plurality of light intensities can be switched, and a light emitting means for outputting irradiation light having a predetermined light intensity to the second surface; A plurality of light receiving sensitivities, a light receiving means for receiving reflected light of the irradiation light output from the light emitting means, and generating an output voltage based on the received reflected light, and
In the device,
Each time the medium is transported by the transport motor by the minimum transport unit, the output voltage is detected corresponding to all combinations of the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means, and the detection is performed at least. Processing to repeat the length of the print area in the transport direction;
For each combination, a process for calculating the potential difference between the maximum value and the minimum value of the detected output voltage;
At least a process for predetermining a combination having the maximum calculated potential difference as a combination for adjusting the light intensity of the light emitting means and the light receiving sensitivity of the light receiving means;
A program characterized by having executed.
JP2010084157A 2010-03-31 2010-03-31 Printer, light intensity and light receiving sensitivity determination method and program Active JP5457252B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010084157A JP5457252B2 (en) 2010-03-31 2010-03-31 Printer, light intensity and light receiving sensitivity determination method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010084157A JP5457252B2 (en) 2010-03-31 2010-03-31 Printer, light intensity and light receiving sensitivity determination method and program

Publications (2)

Publication Number Publication Date
JP2011215028A true JP2011215028A (en) 2011-10-27
JP5457252B2 JP5457252B2 (en) 2014-04-02

Family

ID=44944912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010084157A Active JP5457252B2 (en) 2010-03-31 2010-03-31 Printer, light intensity and light receiving sensitivity determination method and program

Country Status (1)

Country Link
JP (1) JP5457252B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013158920A (en) * 2012-02-01 2013-08-19 Nisca Corp Printer
JP2014019556A (en) * 2012-07-20 2014-02-03 Sato Holdings Corp Label carrying device, label printer and adjustment method of sensor
JP2016028857A (en) * 2014-07-25 2016-03-03 サトーホールディングス株式会社 Label printer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52113699A (en) * 1976-03-19 1977-09-22 Tokyo Electric Co Ltd Label detector
JPH05246414A (en) * 1991-11-13 1993-09-24 Shinsei Ind:Kk Label printer
JPH09325008A (en) * 1996-06-05 1997-12-16 Nagano Japan Radio Co Device for detecting position of label in label printer
JP2005288906A (en) * 2004-03-31 2005-10-20 Sato Corp Printer and method for regulating print position sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52113699A (en) * 1976-03-19 1977-09-22 Tokyo Electric Co Ltd Label detector
JPH05246414A (en) * 1991-11-13 1993-09-24 Shinsei Ind:Kk Label printer
JPH09325008A (en) * 1996-06-05 1997-12-16 Nagano Japan Radio Co Device for detecting position of label in label printer
JP2005288906A (en) * 2004-03-31 2005-10-20 Sato Corp Printer and method for regulating print position sensor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013158920A (en) * 2012-02-01 2013-08-19 Nisca Corp Printer
JP2014019556A (en) * 2012-07-20 2014-02-03 Sato Holdings Corp Label carrying device, label printer and adjustment method of sensor
JP2016028857A (en) * 2014-07-25 2016-03-03 サトーホールディングス株式会社 Label printer

Also Published As

Publication number Publication date
JP5457252B2 (en) 2014-04-02

Similar Documents

Publication Publication Date Title
JP5457252B2 (en) Printer, light intensity and light receiving sensitivity determination method and program
JP2018001703A (en) Label printer and program
US20110129274A1 (en) Printing apparatus and abnormality determining method
JP2007098827A (en) Thermal printer, method for controlling energizing electricity and program
JP2006273580A (en) Transport control device and image forming apparatus
JP4149867B2 (en) Printer and its control method
JP2008083139A (en) Image forming apparatus
JP4297977B2 (en) Method and apparatus for compensating printer top-of-form and image stretching errors
JP2005219311A (en) Image forming apparatus and density unevenness correction method
JP5290221B2 (en) Position detection apparatus and program
JP2010120219A (en) Printer and method for calibrating printer
JP5030288B2 (en) Printer
TWI246467B (en) Automatic recognition system and its method of printer recording media
JP2005247568A (en) Roll paper residual quantity detecting device and roll paper residual quantity detecting method
JP2020075413A (en) Printer
JP2736815B2 (en) Label detection device for label printer
KR20220114900A (en) Method for setting print density of printer using light sensor and printer for performing the same
JP2000335034A (en) Hole code reader
JP2017213701A (en) Image formation apparatus
JP2015168076A (en) roll paper printer
JP5850455B2 (en) Printing device
JP4377714B2 (en) Media control device
JP2023081000A (en) Printer, control method of printer, and program
JP2003341160A (en) Sensor output level adjusting unit in printer, and sensor output level adjusting method
JP2535279B2 (en) Photo detector

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20110920

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140109

R150 Certificate of patent or registration of utility model

Ref document number: 5457252

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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