JP4520378B2 - Mobile printer - Google Patents

Mobile printer Download PDF

Info

Publication number
JP4520378B2
JP4520378B2 JP2005197801A JP2005197801A JP4520378B2 JP 4520378 B2 JP4520378 B2 JP 4520378B2 JP 2005197801 A JP2005197801 A JP 2005197801A JP 2005197801 A JP2005197801 A JP 2005197801A JP 4520378 B2 JP4520378 B2 JP 4520378B2
Authority
JP
Japan
Prior art keywords
label
light
light receiving
average value
light emitting
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
JP2005197801A
Other languages
Japanese (ja)
Other versions
JP2007015182A (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2005197801A priority Critical patent/JP4520378B2/en
Publication of JP2007015182A publication Critical patent/JP2007015182A/en
Application granted granted Critical
Publication of JP4520378B2 publication Critical patent/JP4520378B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、剥離機能を備えたモバイルプリンタに関し、特に外光の影響を受けないで用紙の有無を検出することができるモバイルプリンタに関する。     The present invention relates to a mobile printer having a peeling function, and more particularly to a mobile printer that can detect the presence or absence of paper without being affected by external light.

剥離発行モード機能を備えたバーコードプリンタが知られている。この剥離発行モード機能とは、台紙に貼られたラベルに印刷を行った後に、台紙にわずかにラベルが残るように剥離機構でラベルを剥離させて台紙の搬送を停止し、オペレータがラベルを取ると、次のラベルに印刷を行うものである。オペレータがラベルを取ったか否かは、ラベルの取り出し口近傍に設けられたラベルの有無を検出する透過型センサからの信号に基づいて判定されていた。
特公平7−12704号公報
A bar code printer having a peeling issue mode function is known. With this release issue mode function, after printing on the label affixed to the mount, the label is peeled off by the release mechanism so that the label remains slightly on the mount, the transport of the mount is stopped, and the operator takes the label And printing on the next label. Whether or not the operator has taken the label has been determined based on a signal from a transmission type sensor that detects the presence or absence of the label provided in the vicinity of the label outlet.
Japanese Examined Patent Publication No. 7-12704

しかし、従来の透過型センサでは、受光センサに外乱光が入り易いため、ラベルの有無を正確に検出することはできないという問題があった。   However, the conventional transmission type sensor has a problem that the presence or absence of the label cannot be accurately detected because disturbance light easily enters the light receiving sensor.

本発明の目的は、外乱光の影響を受けずにラベルの有無を正確に検出することができるモバイルプリンタを提供することにある。   An object of the present invention is to provide a mobile printer that can accurately detect the presence or absence of a label without being affected by ambient light.

請求項1に係る発明のモバイルプリンタは、ラベルが貼られた台紙を搬送手段により搬送しながら、その台紙上のラベルに印字手段による印字を行い、印字したラベルを台紙に貼られている箇所が一部だけ残るように剥離部材で剥離し、この剥離状態のラベルを取り出し自在とするものであって、前記ラベルの取り出し側に設けられ、そのラベルの剥離部分に向けて光を放つ発光素子および同ラベルの剥離部分からの反射光を受けるための受光素子を有する反射型センサと、前記発光素子を断続的に点灯し、その点灯時の前記受光素子の受光レベルUをそれぞれ計測する計測手段と、この計測手段で計測される各受光レベルUのうち閾値より小さい受光レベルUの数をカウントするカウント手段と、このカウント手段のカウント数が所定数以上の場合に前記剥離されたラベルが無くなったと判定するラベル無し判定手段と、このラベル無し判定手段でラベル無しが判定された場合に、前記印字手段により次のラベルの印字を行わせる制御手段と、を備える。The mobile printer according to the first aspect of the invention is configured to perform printing on the label on the mount by the printing unit while the mount on which the label is affixed is conveyed by the conveying unit, and where the printed label is adhered to the mount. A light-emitting element that is peeled off by a peeling member so that only a part thereof remains and the label in the peeled state can be taken out, is provided on the take-out side of the label, and emits light toward the peeling portion of the label, and A reflective sensor having a light receiving element for receiving reflected light from the peeled portion of the label; and a measuring means for intermittently lighting the light emitting element and measuring the light receiving level U of the light receiving element at the time of lighting. The counting means for counting the number of received light levels U smaller than the threshold value among the respective received light levels U measured by the measuring means, and the count number of the counting means is a predetermined number or more In this case, there is no label determination means for determining that the peeled label is lost, and when the label absence determination means determines that no label is present, the control means for causing the printing means to print the next label, Is provided.

本発明によれば外乱光の影響を受けずにラベルの有無を正確に検出することができるモバイルプリンタを提供することができる。 According to the present invention, it is possible to provide a mobile printer capable of accurately detecting the presence or absence of label without being affected by disturbance light.

以下図面を参照して本発明の一実施の形態について説明する。図1はサーマルヘッドで印字を行うポータブルプリンタのシステム構成図である。図1において、11は本ポータブルプリンタを統括して制御するCPU(中央処理装置)である。このCPU11からのシステムバス11aには、台紙21に貼られたラベル22上にサーマルヘッド19で印刷を行った後、ラベル22を剥離発行する位置まで搬送し、反射型センサ18でラベル22が取られたと判定されると次のラベル22に印刷を行わせる剥離発行等の各種制御プログラムが記憶されるROM(リード・オンリ・メモリ)12、作業エリアが設けられるRAM(ランダム・アクセス・メモリ)13、スイッチ14、運転モードを表示するLED15、ヘッド制御回路16、モータドライバ17、図4に示すように台紙21の裏面側に設けられラベルの有無を検出するための反射型センサ18が接続される。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a system configuration diagram of a portable printer that performs printing with a thermal head. In FIG. 1, reference numeral 11 denotes a CPU (central processing unit) that controls the portable printer in an integrated manner. After printing with the thermal head 19 on the label 22 affixed to the mount 21 to the system bus 11 a from the CPU 11, the label 22 is conveyed to a position where it is peeled and issued, and the label 22 is removed by the reflective sensor 18. If it is determined that the control has been performed, a ROM (Read Only Memory) 12 in which various control programs such as a peeling issue for printing on the next label 22 are stored, and a RAM (Random Access Memory) 13 in which a work area is provided are stored. , A switch 14, an LED 15 for displaying an operation mode, a head control circuit 16, a motor driver 17, and a reflective sensor 18 provided on the back side of the mount 21 as shown in FIG. 4 for detecting the presence or absence of a label. .

ヘッド制御回路16によりサーマルヘッド19が制御され、モータドライバ17により後述する台紙21を搬送するモータ20が駆動される。このモータ20により後述するプラテンローラ51が回転制御される。このモータドライバ27、モータ30、プラテンローラ51等により搬送手段が構成される。   The head control circuit 16 controls the thermal head 19 and the motor driver 17 drives a motor 20 that transports a mount 21 described later. A platen roller 51 described later is rotationally controlled by the motor 20. The motor driver 27, the motor 30, the platen roller 51, etc. constitute a conveying means.

台紙31の表面には図2に示すように所定間隔でラベル22が貼られている。 As shown in FIG. 2, labels 22 are pasted on the surface of the mount 31 at predetermined intervals.

次に、図3を参照して反射型センサ18の電気回路について説明する。図3において、31はパルス電圧を出力する発振回路である。この発振回路31の出力はスイッチングトランジスタQ11のベースに接続される。このトランジスタQ11のエミッタは接地され、そのコレクタは抵抗r11、発光LED32を介して電源に接続される。この発光LED32から放たれた光は受光センサである受光トランジスタQ12で受光される。なお、発振回路31はパルス電圧を出力するため、この発光LED32の出力は,図8(A),(C),(E),(G)に示すようにパルス状となる。このトランジスタQ12のコレクタには電源が供給され、エミッタは抵抗r12を介して接地される。この抵抗r12の非接地側端子はA/Dコンバータ33に入力される。 Next, the electric circuit of the reflective sensor 18 will be described with reference to FIG. In FIG. 3, reference numeral 31 denotes an oscillation circuit that outputs a pulse voltage. The output of the oscillation circuit 31 is connected to the base of the switching transistor Q11. The emitter of the transistor Q11 is grounded, and its collector is connected to the power supply via the resistor r11 and the light emitting LED 32. The light emitted from the light emitting LED 32 is received by the light receiving transistor Q12 which is a light receiving sensor. Since the oscillation circuit 31 outputs a pulse voltage, the output of the light emitting LED 32 is in a pulse form as shown in FIGS. 8 (A), (C), (E), and (G). The collector of the transistor Q12 is supplied with power, and the emitter is grounded via a resistor r12. The non-ground side terminal of the resistor r12 is input to the A / D converter 33.

次に、図4及び図5を参照して反射型センサ18の取り付け位置について説明する。サーマルヘッド19とプラテン41との間に搬送された台紙21上に貼られたラベル22に、サーマルヘッド19で印字が行われる。そして、そのラベル22は台紙21に対して一部だけ貼られている箇所が残るようにして剥離板42で剥離された後、台紙21の搬送はラベル22がオペレータにより取られるまで搬送された後停止される。   Next, the attachment position of the reflective sensor 18 will be described with reference to FIGS. Printing is performed by the thermal head 19 on the label 22 affixed on the mount 21 conveyed between the thermal head 19 and the platen 41. Then, after the label 22 is peeled off by the peeling plate 42 so that only a part of the label 22 is pasted on the mount 21, the transport of the mount 21 is carried until the label 22 is taken by the operator. Stopped.

オペレータによりラベル22が取られたか否かは、発光LED32と受光トランジスタQ12からなる反射型センサ18で検出される。つまり、ラベル22が取られないで図5に示すような状態のように有る場合には、発光LED32から放たれた光はラベル22で反射されるため受光トランジスタQ12に届く。これは、例えば図8(D)に示すように外乱光の影響がない状態で、発光LED32から放たれたパルス状の光が受光トランジスタQ12で受光されることにより検出される。   Whether or not the label 22 has been removed by the operator is detected by the reflective sensor 18 including the light emitting LED 32 and the light receiving transistor Q12. That is, when the label 22 is not taken and the state is as shown in FIG. 5, the light emitted from the light emitting LED 32 is reflected by the label 22 and reaches the light receiving transistor Q12. This is detected, for example, by receiving the pulsed light emitted from the light emitting LED 32 by the light receiving transistor Q12 without being affected by disturbance light as shown in FIG. 8D.

一方、ラベル22が取られた場合には、発光LED32から放たれた光は受光トランジスタQ12に届かない。このようにして、受光トランジスタQ12で光が検出されないと、ラベル22が取られたと判定される。これは、例えば図8(B)に示すように外乱光の影響がない状態で、発光LED32から放たれたパルス状の光が受光トランジスタQ12に届かないことを検出することにより行われる。 On the other hand, when the label 22 is taken, the light emitted from the light emitting LED 32 does not reach the light receiving transistor Q12 . In this way, if no light is detected by the light receiving transistor Q12, it is determined that the label 22 has been taken. This is performed, for example, by detecting that the pulsed light emitted from the light emitting LED 32 does not reach the light receiving transistor Q12 without being affected by disturbance light as shown in FIG. 8B.

なお、図4は図5をラベル取り出し方向から見た図である。   FIG. 4 is a view of FIG. 5 viewed from the label take-out direction.

次に、図6のフローチャートを参照して反射型センサ18の動作について説明する。まず、測定回数n,mの初期化がされる(ステップS1)。つまり、測定回数n,mのいずれも「1」とされる。ここで、測定回数nは、発光LED32を点灯したときに、受光トランジスタQ12で受光される受光レベルを計測した回数を示す。また、測定回数mは、発光LED32を消灯したときに、受光トランジスタQ12で受光される受光レベルを計測した回数を示す。   Next, the operation of the reflective sensor 18 will be described with reference to the flowchart of FIG. First, the measurement times n and m are initialized (step S1). That is, the number of measurements n and m is both “1”. Here, the measurement number n indicates the number of times the light reception level received by the light receiving transistor Q12 is measured when the light emitting LED 32 is turned on. The measurement number m indicates the number of times the light reception level received by the light receiving transistor Q12 is measured when the light emitting LED 32 is turned off.

次に、発光LED32を点灯したときに、受光トランジスタQ12で受光される受光レベルを計測し、A/Dコンバータ33でデジタルデータに変換した受光レベルV(n)、つまり(1)をRAM13に記憶する(ステップS2)。 Next, when the light emitting LED 32 is turned on, the light receiving level received by the light receiving transistor Q12 is measured, and the light receiving level V (n) converted into digital data by the A / D converter 33 , that is, U (1) is stored in the RAM 13. Store (step S2).

次に、発光LED32を消灯したときに、受光トランジスタQ12で受光される受光レベルを計測し、A/Dコンバータ32でデジタルデータに変換した受光レベルV(m)、つまりV(1)をRAM13に記憶する(ステップS3)。   Next, when the light emitting LED 32 is turned off, the light receiving level received by the light receiving transistor Q12 is measured, and the light receiving level V (m) converted into digital data by the A / D converter 32, that is, V (1) is stored in the RAM 13. Store (step S3).

さらに、発光LED32を消灯したときに、受光トランジスタQ12で受光される受光レベルを計測し、A/Dコンバータ33でデジタルデータに変換した受光レベルV(m+1)、つまりV(2)をRAM13に記憶する(ステップS4)。 Further, when the light emitting LED 32 is turned off, the light receiving level received by the light receiving transistor Q12 is measured, and the light receiving level V (m + 1) converted into digital data by the A / D converter 33 , that is, V (2) is stored in the RAM 13. (Step S4).

このようにして、発光LED32を点灯したときの受光レベルが1回、発光LED32を消灯したときの受光レベルが2回だけサンプリングされる。つまり、図8のaに示すように発光LED32を点灯したときの受光レベルが1回、b及びcに示すように発光LED32を消灯したときの受光レベルが2回だけサンプリングされる。   In this way, the light receiving level when the light emitting LED 32 is turned on is sampled once, and the light receiving level when the light emitting LED 32 is turned off is sampled only twice. That is, the light reception level when the light emitting LED 32 is turned on as shown in a of FIG. 8 is sampled once, and the light reception level when the light emitting LED 32 is turned off is sampled twice as shown in b and c.

そして、測定回数が「+1」される(ステップS5)。つまり、n=n+1,m=m+1とされる。   Then, the number of measurements is incremented by “+1” (step S5). That is, n = n + 1 and m = m + 1.

そして、測定回数は5回であるかが判定される(ステップS6)。ステップS2〜S5の処理が5回行われると、nは「6」となるので、ステップS6の判定はn=6であるか否かが判定される(ステップS6)。   Then, it is determined whether the number of measurements is 5 (step S6). When the processes of steps S2 to S5 are performed five times, n becomes “6”, and therefore the determination of step S6 determines whether or not n = 6 (step S6).

このステップS6の判定で「NO」と判定された場合には、再度ステップS2〜S5の処理が行われる。そして、発光LED32を点灯したときの1回の受光レベルU(2)、発光LED32を消灯したときの2回の受光レベルV(3),V(4)がサンプリングされる。   If “NO” is determined in the determination in step S6, the processes in steps S2 to S5 are performed again. Then, one light reception level U (2) when the light emitting LED 32 is turned on and two light reception levels V (3) and V (4) when the light emitting LED 32 is turned off are sampled.

このように処理が繰り返し行われて、発光LED32を点灯したときの5回の受光レベルU(1)〜U(5)、発光LED32を消灯したときの10回の受光レベルV(1)〜V(10)が判定される。   In this way, the process is repeated, and five light reception levels U (1) to U (5) when the light emitting LED 32 is turned on, and ten light reception levels V (1) to V (V) when the light emitting LED 32 is turned off. (10) is determined.

そして、ステップS6の判定で「YES」と判定されると、ステップS7以降の処理が行われる。   If “YES” is determined in the determination in step S6, the processes in and after step S7 are performed.

まず、下限判定カウンタCを初期化する(C=0)とする(ステップS7)。次に、発光LED32を点灯したときの計測値の最小値、最大値、判定値の夫々にn=1の受光レベルU(1)をセットする(ステップS8)。   First, the lower limit determination counter C is initialized (C = 0) (step S7). Next, the light reception level U (1) of n = 1 is set for each of the minimum value, the maximum value, and the determination value of the measured value when the light emitting LED 32 is turned on (step S8).

そして、判定値<閾値であるかが判定される(ステップS9)。つまり、U(1)<閾値であるかが判定される。ここで、発光LED32を点灯したとき、その光がラベル22で反射されて受光トランジスタQ12で受光される。閾値はラベル22で反射されて受光トランジスタQ12で受光された受光レベルより少し小さい値に設定されている。つまり、ラベル22がある場合には、U(1)>閾値、ラベル22が無い場合にはU(1)<閾値となる。   Then, it is determined whether determination value <threshold value (step S9). That is, it is determined whether U (1) <threshold. Here, when the light emitting LED 32 is turned on, the light is reflected by the label 22 and received by the light receiving transistor Q12. The threshold value is set to a value slightly smaller than the light receiving level reflected by the label 22 and received by the light receiving transistor Q12. That is, when there is a label 22, U (1)> threshold, and when there is no label 22, U (1) <threshold.

このステップS9の判定で「YES」と判定された場合には、下限判定カウンタCが「+1」される(ステップS10)。   If “YES” is determined in the determination in step S9, the lower limit determination counter C is “+1” (step S10).

そして、最小値>受光レベルU(n+1)[つまり、U(2)]であるかが判定される(ステップS11)。   Then, it is determined whether minimum value> light reception level U (n + 1) [that is, U (2)] (step S11).

このステップS11において、「YES」と判定された場合には、最小値に受光レベルU(2)がセットされる(ステップS12)。つまり、最小値が更新される。   If it is determined “YES” in step S11, the light reception level U (2) is set to the minimum value (step S12). That is, the minimum value is updated.

続いて、最大値<受光レベルU(n+1)[つまり、U(2)]であるかが判定される(ステップS13)。   Subsequently, it is determined whether or not the maximum value <light reception level U (n + 1) [that is, U (2)] (step S13).

このステップS13の判定で「YES」と判定された場合には、最大値に受光レベルU(2)がセットされる(ステップS14)。   If “YES” is determined in the determination in step S13, the light reception level U (2) is set to the maximum value (step S14).

このようにして、ステップS9〜14の処理により、受光レベルU(n+1)に対して最小値及び最大値の更新が行われる。   In this manner, the minimum value and the maximum value are updated with respect to the light reception level U (n + 1) by the processes in steps S9 to S14.

次に、受光レベルU(n+1)[つまり、U(2)]<閾値であるかが判定される(ステップS15)。このステップS15の判定で「YES」と判定された場合には、下限判定カウンタCが「+1」される(ステップS16)。   Next, it is determined whether or not the light reception level U (n + 1) [that is, U (2)] <threshold value (step S15). If “YES” is determined in the determination in step S15, the lower limit determination counter C is “+1” (step S16).

一方、ステップS15の判定で「NO」と判定された場合には、下限判定カウンタCは初期設定、つまり0クリアされる(ステップS17)。   On the other hand, if “NO” is determined in the determination in step S15, the lower limit determination counter C is initialized, that is, cleared to 0 (step S17).

そして、5回の計測に対する処理が終了したかが判定される(ステップS18)。このステップS18の判定で「NO」と判定された場合には、前述したステップS11以降の処理が繰り返し行われる。   Then, it is determined whether or not the processing for the five measurements has been completed (step S18). If “NO” is determined in the determination in step S18, the processes after step S11 described above are repeatedly performed.

受光レベルU(1)〜U(5)に対する処理が終了すると、ステップS18で「YES」と判定され、ステップS19以降の処理に進む。   When the processes for the light reception levels U (1) to U (5) are completed, “YES” is determined in the step S18, and the process proceeds to the processes after the step S19.

まず、受光レベルU(1)〜U(5)のうち最大値と最小値を取り除いた受光レベルの平均値を算出する(ステップS19)。この平均値を発光時の受光レベルUaveとする。   First, an average value of the light receiving levels obtained by removing the maximum value and the minimum value from the light receiving levels U (1) to U (5) is calculated (step S19). This average value is defined as a light reception level Uave at the time of light emission.

次に、発光LED32を消灯したときの受光レベルの最小値、最大値、判定値の夫々にm=1の受光レベルV(1)をセットする(ステップS20)。   Next, the light reception level V (1) of m = 1 is set for each of the minimum value, maximum value, and determination value of the light reception level when the light emitting LED 32 is turned off (step S20).

そして、最小値>受光レベルV(n+1)[つまり、V(2)]であるかが判定される(ステップS21)。   Then, it is determined whether or not minimum value> light reception level V (n + 1) [that is, V (2)] (step S21).

このステップS21において、「YES」と判定された場合には、最小値に受光レベルV(2)がセットされる(ステップS22)。つまり、最小値が更新される。   If it is determined "YES" in step S21, the light reception level V (2) is set to the minimum value (step S22). That is, the minimum value is updated.

続いて、最大値<受光レベルV(n+1)[つまり、V(2)]であるかが判定される(ステップS23)。   Subsequently, it is determined whether or not the maximum value <light reception level V (n + 1) [that is, V (2)] (step S23).

このステップS23の判定で「YES」と判定された場合には、最大値に受光レベルV(2)がセットされる(ステップS24)。   If “YES” is determined in the determination in step S23, the light reception level V (2) is set to the maximum value (step S24).

このようにして、ステップS21〜24の処理により、受光レベルV(m+1)に対して最小値及び最大値の更新が行われる。   In this manner, the minimum value and the maximum value are updated with respect to the light reception level V (m + 1) by the processing in steps S21 to S24.

次に、10回の計測に対する処理が終了したかが判定される(ステップS25)。ステップS25の判定で「NO」と判定された場合には、前述したステップS21以降の処理が繰り返し行われる。   Next, it is determined whether or not the processing for 10 measurements has been completed (step S25). If “NO” is determined in the determination in step S25, the processes in and after step S21 described above are repeatedly performed.

受光レベルV(1)〜V(10)に対する処理が終了すると、ステップS25で「YES」と判定されてステップS26以降の処理に進む。   When the processes for the light reception levels V (1) to V (10) are completed, “YES” is determined in the step S25, and the process proceeds to the processes after the step S26.

まず、受光レベルV(1)〜V(10)のうち最大値と最小値を取り除いた受光レベルの平均値を算出する(ステップS26)。この平均値を消灯時の受光レベルVaveとする。   First, the average value of the received light levels is calculated by removing the maximum value and the minimum value from the received light levels V (1) to V (10) (step S26). This average value is set as the light reception level Vave when the light is turned off.

そして、点灯時の受光レベルU(1)〜U(5)が閾値以下であったかが判定される(ステップS27)。つまり、下限判定カウンタ>2かが判定される。ここで、前述したように、点灯時の受光レベルU(1)〜U(5)が閾値以下であると、ステップS10あるいはS16の処理で下限判定カウンタが「+1」されている。『下限判定カウンタ>2』ということは、5回の計測のうち3回以上点灯時の受光レベルが閾値より小さかったことを意味している。   Then, it is determined whether the light reception levels U (1) to U (5) at the time of lighting are equal to or less than a threshold value (step S27). That is, it is determined whether the lower limit determination counter> 2. Here, as described above, when the light reception levels U (1) to U (5) at the time of lighting are equal to or less than the threshold value, the lower limit determination counter is incremented by “+1” in the process of step S10 or S16. “Lower limit determination counter> 2” means that the light reception level when lighting three times or more out of the five measurements is smaller than the threshold value.

このステップS27の判定で「YES」と判定された場合には、用紙、つまりラベル22は無しと判定される(ステップS28)。   If “YES” is determined in the determination in step S27, it is determined that there is no paper, that is, the label 22 (step S28).

一方、ステップS27の判定で「NO」と判定される、つまり5回の計測のうち2回以下点灯時の受光レベルが閾値より小さかったと判定された場合には、点灯時の受光レベル(Uave)<消灯時の受光レベル(Vave)であるかが判定される(第1の判定手段)(ステップS28)。   On the other hand, if it is determined as “NO” in the determination in step S27, that is, if it is determined that the light reception level at the time of lighting 2 times or less is smaller than the threshold value among the five measurements, the light reception level at lighting (Uave) <It is determined whether the light reception level (Vave) when the light is off (first determination means) (step S28).

このステップS28の判定で「NO」と判定、つまりUave≧Vaveであると判定されると、その差Uave−Vave≧一定値αであるかが判定される(ステップS29)。   If “NO” is determined in the determination in step S28, that is, if it is determined that Uave ≧ Vave, it is determined whether the difference Uave−Vave ≧ constant value α is satisfied (step S29).

このステップS29の判定で「YES」と判定されると、用紙、つまりラベル22は有りと判定される(第2の判定手段)(ステップS30)。   If “YES” is determined in the determination in step S29, it is determined that the paper, that is, the label 22 is present (second determination means) (step S30).

一方、ステップS28で「YES」と判定されるかあるいはステップS29の判定で「NO」と判定されると、外乱光の影響によるものであると判定される(第3の判定手段)(ステップS31)。   On the other hand, if “YES” is determined in step S28 or “NO” is determined in step S29, it is determined to be due to the influence of ambient light (third determining means) (step S31). ).

このようにして、外乱の影響により、ラベル22がないにも拘わらず受光トランジスタQ12でxで示すように外乱光が受光された場合でも、ラベル無しと判定することができる。 In this way, it is possible to determine that there is no label due to the influence of disturbance even when disturbance light is received by the light receiving transistor Q12 as indicated by x even though the label 22 is not present.

さらに、ラベル22が有る場合、外乱光の影響により発光LED32が非点灯中にyで示すように外乱光が受光された場合でも、ラベル有りと判定することができる。   Further, when the label 22 is present, it can be determined that there is a label even when disturbance light is received as indicated by y while the light emitting LED 32 is not lit due to the influence of disturbance light.

なお、上記した実施の形態では、発光LED32を点灯したときの受光レベルを1回、発光LED32を消灯したときの受光レベルを2回サンプリングしたが、これに限るものではない。   In the above-described embodiment, the light reception level when the light emitting LED 32 is turned on is sampled once, and the light reception level when the light emitting LED 32 is turned off is sampled twice. However, the present invention is not limited to this.

本発明は上記した実施の形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形及び応用が可能であることは勿論である。   The present invention is not limited to the above-described embodiment, and various modifications and applications are naturally possible within the scope of the gist of the present invention.

本発明の一実施の形態に係るポータブルプリンタのシステム構成を示すブロック図。1 is a block diagram showing a system configuration of a portable printer according to an embodiment of the present invention. 同実施の形態に係るラベルが貼られた台紙を示す図。The figure which shows the mount to which the label which concerns on the same embodiment was stuck. 同実施の形態に係る反射型センサの主要部の回路図。The circuit diagram of the principal part of the reflection type sensor which concerns on the same embodiment. 同反射型センサの設置位置を示す図。The figure which shows the installation position of the reflection type sensor. 同ポータブルプリンタの剥離機構を示す図。The figure which shows the peeling mechanism of the portable printer. 同実施の形態の動作を説明するためのフローチャートの一部。A part of flowchart for demonstrating operation | movement of the embodiment. 同実施の形態の動作を説明するためのフローチャートの一部。A part of flowchart for demonstrating operation | movement of the embodiment. 同実施の形態の動作を説明するためのタイミングチャート。6 is a timing chart for explaining the operation of the embodiment.

符号の説明Explanation of symbols

11…CPU、12…ROM、13…RAM、19…サーマルヘッド、18…反射型センサ。   11 ... CPU, 12 ... ROM, 13 ... RAM, 19 ... thermal head, 18 ... reflection type sensor.

Claims (2)

ラベルが貼られた台紙を搬送手段により搬送しながら、その台紙上のラベルに印字手段による印字を行い、印字したラベルを台紙に貼られている箇所が一部だけ残るように剥離部材で剥離し、この剥離状態のラベルを取り出し自在とするモバイルプリンタにおいて、
前記ラベルの取り出し側に設けられ、そのラベルの剥離部分に向けて光を放つ発光素子および同ラベルの剥離部分からの反射光を受けるための受光素子を有する反射型センサと、
前記発光素子を断続的に点灯し、その点灯時の前記受光素子の受光レベルUをそれぞれ計測する計測手段と、
前記計測手段で計測される各受光レベルUのうち閾値より小さい受光レベルUの数をカウントするカウント手段と、
前記カウント手段のカウント数が所定数以上の場合に前記剥離されたラベルが無くなったと判定するラベル無し判定手段と、
前記ラベル無し判定手段でラベル無しが判定された場合に、前記印字手段により次のラベルの印字を行わせる制御手段と、
を備えることを特徴とするモバイルプリンタ。
While the mount with the label attached is transported by the transport means, the label on the mount is printed by the printing means, and the printed label is peeled off with a peeling member so that only a part of the label is stuck on the mount. , In the mobile printer that can take out the peeled label ,
A reflective sensor provided on the take-out side of the label, and having a light emitting element that emits light toward a peeling portion of the label and a light receiving element for receiving reflected light from the peeling portion of the label ;
Measuring means for intermittently lighting the light emitting element and measuring the light receiving level U of the light receiving element at the time of lighting;
Counting means for counting the number of light receiving levels U smaller than a threshold value among the respective light receiving levels U measured by the measuring means;
No label determination means for determining that the peeled label is no longer present when the count number of the counting means is a predetermined number or more;
A control unit that causes the printing unit to print a next label when it is determined that there is no label by the label absence determination unit;
Mobile printer, characterized in that it comprises a.
前記計測手段は、前記発光素子を断続的に点灯し、その点灯時の前記受光素子の受光レベルUをそれぞれ計測するとともに、非点灯時の前記受光素子の受光レベルVをそれぞれ計測するもので、
前記計測手段で計測される各受光レベルUの平均値Uaveおよび受光レベルUの平均値Vaveを算出する算出手段と、
前記カウント手段のカウント数が所定数以上で、かつ前記算出手段で算出される平均値Uaveが同算出される平均値Vave以上で、かつその平均値Uaveと平均値Vaveとの差が一定値以上の場合に、前記剥離されたラベルが有りと判定するラベル有り判定手段と、
前記カウント手段のカウント数が所定数以上で、かつ前記算出手段で算出される平均値Uaveが同算出される平均値Vave以上の場合、またはその平均値Uaveと平均値Vaveとの差が一定値未満の場合に、外乱光の影響があることを判定する外乱光判定手段と、
をさらに備える、
ことを特徴とする請求項1記載のモバイルプリンタ。
The measuring means turns on the light emitting element intermittently, measures the light receiving level U of the light receiving element at the time of lighting, and measures the light receiving level V of the light receiving element at the time of non-lighting,
Calculating means for calculating an average value Uave of each light receiving level U measured by the measuring means and an average value Vave of each light receiving level U;
The count number of the counting means is not less than a predetermined number, the average value Uave calculated by the calculating means is not less than the calculated average value Vave, and the difference between the average value Uave and the average value Vave is not less than a certain value. In the case of, the label presence determination means for determining that the peeled label is present,
When the count number of the counting means is a predetermined number or more and the average value Uave calculated by the calculating means is equal to or more than the average value Vave calculated, or the difference between the average value Uave and the average value Vave is a constant value Disturbance light determination means for determining that there is an influence of disturbance light in the case of less than,
Further comprising
The mobile printer according to claim 1.
JP2005197801A 2005-07-06 2005-07-06 Mobile printer Active JP4520378B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005197801A JP4520378B2 (en) 2005-07-06 2005-07-06 Mobile printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005197801A JP4520378B2 (en) 2005-07-06 2005-07-06 Mobile printer

Publications (2)

Publication Number Publication Date
JP2007015182A JP2007015182A (en) 2007-01-25
JP4520378B2 true JP4520378B2 (en) 2010-08-04

Family

ID=37752752

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005197801A Active JP4520378B2 (en) 2005-07-06 2005-07-06 Mobile printer

Country Status (1)

Country Link
JP (1) JP4520378B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018086849A (en) * 2018-01-22 2018-06-07 サトーホールディングス株式会社 Label printer and control method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7342452B2 (en) * 2019-06-27 2023-09-12 ブラザー工業株式会社 printing device
CN114889338B (en) * 2022-03-31 2023-04-07 厦门汉印电子技术有限公司 Detection threshold setting method and device, printer and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60191966A (en) * 1984-03-09 1985-09-30 Toshiba Corp Recording paper detecting device
JPH0532027A (en) * 1991-08-01 1993-02-09 Pfu Ltd Operational error prevention device of sheet detection sensor
JPH09249339A (en) * 1996-03-15 1997-09-22 Tec Corp Paper detection device and portable printer using it
JP2001328302A (en) * 2000-05-24 2001-11-27 Sato Corp Method for controlling label printer
JP2002128039A (en) * 2000-10-31 2002-05-09 Sato Corp Label printer
JP2002148352A (en) * 2000-11-14 2002-05-22 Nippon Signal Co Ltd:The Reflector type sensor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60191966A (en) * 1984-03-09 1985-09-30 Toshiba Corp Recording paper detecting device
JPH0532027A (en) * 1991-08-01 1993-02-09 Pfu Ltd Operational error prevention device of sheet detection sensor
JPH09249339A (en) * 1996-03-15 1997-09-22 Tec Corp Paper detection device and portable printer using it
JP2001328302A (en) * 2000-05-24 2001-11-27 Sato Corp Method for controlling label printer
JP2002128039A (en) * 2000-10-31 2002-05-09 Sato Corp Label printer
JP2002148352A (en) * 2000-11-14 2002-05-22 Nippon Signal Co Ltd:The Reflector type sensor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018086849A (en) * 2018-01-22 2018-06-07 サトーホールディングス株式会社 Label printer and control method

Also Published As

Publication number Publication date
JP2007015182A (en) 2007-01-25

Similar Documents

Publication Publication Date Title
US9561675B2 (en) Printing device, control method of a printing device, and a program
US6513892B2 (en) Printer with an ink container and an ink remainder detector
US20020096261A1 (en) Labeling machine capable of preventing erroneous attachment of labels on containers
JP4520378B2 (en) Mobile printer
EP3144797A1 (en) Printer
US6795191B2 (en) Ultrasonically assisted optical media sensor system
JP2006273580A (en) Transport control device and image forming apparatus
CN102950915B (en) Print apparatus and printhead
JP2011011389A (en) Thermal printer and label-paper detecting method for the same
JP5419205B2 (en) Label detection device
JP2005219406A (en) Roll printer
US11208230B2 (en) Printing apparatus including optical sensor located at conveying region through which label passes
JP2006347120A (en) Bar-code printer
US6202727B1 (en) Registration system for various types of media
JP5030288B2 (en) Printer
JP2010188628A (en) Genuine label and label printer
JP2004059179A (en) Detecting device, recording device and method for detecting recording medium
JP2008238500A (en) Label tip detecting method
JPH1024604A (en) Ink residual amount detecting device
JP2000019831A (en) Residual toner amount detector
JP2001180632A (en) Apparatus and method for printing
JP2535279B2 (en) Photo detector
JP2020100470A (en) Sensor output adjusting method and printer
KR19980073130A (en) Method and apparatus for detecting remaining ink amount of ink jet printer
JP2596473Y2 (en) Paper detection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071226

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100412

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100520

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4520378

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140528

Year of fee payment: 4