JP5290221B2 - Position detection apparatus and program - Google Patents

Position detection apparatus and program Download PDF

Info

Publication number
JP5290221B2
JP5290221B2 JP2010045788A JP2010045788A JP5290221B2 JP 5290221 B2 JP5290221 B2 JP 5290221B2 JP 2010045788 A JP2010045788 A JP 2010045788A JP 2010045788 A JP2010045788 A JP 2010045788A JP 5290221 B2 JP5290221 B2 JP 5290221B2
Authority
JP
Japan
Prior art keywords
sheet
printed
sensor
light
amount
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.)
Expired - Fee Related
Application number
JP2010045788A
Other languages
Japanese (ja)
Other versions
JP2011178077A (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 JP2010045788A priority Critical patent/JP5290221B2/en
Publication of JP2011178077A publication Critical patent/JP2011178077A/en
Application granted granted Critical
Publication of JP5290221B2 publication Critical patent/JP5290221B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a position detector and a program capable of detecting the position of a pre-printing sheet. <P>SOLUTION: A logical reverse mode is set for logically reversing positive and negative waveforms of output signals of a transmission type sensor 21 having detected an amount of light having permeated through the pre-printing sheet; the positive and negative waveforms of output signals of the transmission type sensor 21 are logically reversed when the logical reverse mode is set; the position showing the positive peak by the waveform of the output signals of the transmission type sensor 21 having detected the amount of light having permeated through a label sheet is detected as a gap between the labels stuck to the label sheets; and the position showing the positive peak by the waveform of the output signals of the transmission type sensor 21 having logically reversed is detected as a position pre-printed on the pre-printing sheet, thus the peak of the negative waveform of the output signals of the transmission type sensor 21 showing the pre-printed position can be detected. Therefore, the position of the pre-printing sheet having a pre-printing but not stuck with a label can be detected, when using the pre-printing sheet. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、位置検出装置およびプログラムに関する。   The present invention relates to a position detection device and a program.

剥離自在なラベルを透光可能な帯状用紙に所定間隔で貼付したラベルシートおよび位置指定用の指標(たとえば黒色マーク)を帯状用紙に所定間隔で付加したタグシートのいずれかを搬送し、搬送中のラベルシートまたはタグシートに文字やバーコードを印刷するプリンタがある(特許文献1参照)。   Either a label sheet with a peelable label affixed to a translucent strip of paper at a predetermined interval or a tag sheet with a position designation indicator (for example, a black mark) added to the strip of paper at a predetermined interval is being conveyed. There is a printer that prints characters and barcodes on a label sheet or tag sheet (see Patent Document 1).

このプリンタは、ラベルシートの位置を検出するためのセンサとして透過型センサ、タグシートの位置を検出するためのセンサとして反射型センサを備え、透過型センサの出力が正のピークを示す位置をラベル間のギャップとして検出し、反射型センサの出力が負のピークを示す位置を位置指定用の指標として検出していた。   This printer has a transmissive sensor as a sensor for detecting the position of the label sheet, a reflective sensor as a sensor for detecting the position of the tag sheet, and labels the positions where the output of the transmissive sensor shows a positive peak. The position at which the output of the reflective sensor shows a negative peak is detected as an index for position designation.

しかしながら従来のプリンタにおいては、所定の事項が帯状用紙に所定間隔でプレ印刷されただけで、ラベル間のギャップや用紙裏面に位置指定用の指標の印刷がないプレ印刷シートを使用する場合に、ラベル間のギャップにおいて透過型センサの出力が正のピークを示したり反射型センサの出力が負のピークを示したりすることがなくなるため、プレ印刷シートの位置を検出することができない、という課題がある。   However, in a conventional printer, when using a preprinted sheet in which predetermined matters are merely preprinted on a belt-like sheet at a predetermined interval and there is no printing of a position designation index on the back surface of the paper, Since the output of the transmissive sensor does not show a positive peak or the output of the reflective sensor shows a negative peak in the gap between labels, there is a problem that the position of the pre-printed sheet cannot be detected. is there.

本発明は、上記に鑑みてなされたものであって、ラベル間のギャップや用紙裏面に位置指定用の指標の印刷がないプレ印刷シートを使用する場合に、プレ印刷シートの位置を検出することができる位置検出装置およびプログラムを提供することを目的とする。   The present invention has been made in view of the above, and detects the position of a pre-printed sheet when using a pre-printed sheet that does not have an index for position designation on the gap between labels or on the back side of the paper. An object of the present invention is to provide a position detection device and a program capable of performing the above.

上述した課題を解決し、目的を達成するために、本発明は、剥離自在なラベルを帯状用紙に所定間隔で貼付したラベルシートまたは所定の事項が帯状用紙に所定間隔でプレ印刷されたプレ印刷シートに光を照射し、前記ラベルシートまたは前記プレ印刷シートを透過した光の量を検出する透過型センサと、前記プレ印刷シートを透過した光の量を検出した前記透過型センサの出力を論理反転する論理反転モードに設定する設定手段と、前記論理反転モードに設定された場合に、前記透過型センサの出力の正負を論理反転する反転手段と、前記ラベルシートを透過した光の量を検出した前記透過型センサの出力が正のピークを示した位置を前記ラベルシートに貼付したラベル間のギャップとして検出するとともに、前記論理反転した透過型センサの出力が正のピークを示した位置を前記プレ印刷シートにプレ印刷した位置として検出する検出手段と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a label sheet in which a peelable label is affixed to a belt-like sheet at a predetermined interval, or pre-printing in which predetermined items are pre-printed on the belt-like paper at a predetermined interval. The output of the transmissive sensor that detects the amount of light transmitted through the pre-printed sheet and the transmissive sensor that detects the amount of light transmitted through the label sheet or the pre-printed sheet is logically output. Setting means for setting the logic inversion mode to be inverted, inversion means for logically inverting the positive / negative of the output of the transmission type sensor when the logic inversion mode is set, and detecting the amount of light transmitted through the label sheet The position at which the output of the transmitted sensor showed a positive peak is detected as a gap between labels attached to the label sheet, and the logic-inverted transmitted sensor is detected. Output is a detection means for detecting the position shown positive peak as position pre printed on the pre-printed sheet, comprising the of.

また、本発明は、剥離自在なラベルを帯状用紙に所定間隔で貼付したラベルシートまたは所定の事項が帯状用紙に所定間隔でプレ印刷されたプレ印刷シートに光を照射し、前記ラベルシートまたは前記プレ印刷シートを透過した光の量を検出する透過型センサを備えた位置検出装置を制御するコンピュータを、前記プレ印刷シートを透過した光の量を検出した前記透過型センサの出力を論理反転する論理反転モードに設定する設定手段と、前記論理反転モードに設定された場合に、前記透過型センサの出力の正負を論理反転する反転手段と、前記ラベルシートを透過した光の量を検出した前記透過型センサの出力が正のピークを示した位置を前記ラベルシートに貼付したラベル間のギャップとして検出するとともに、前記論理反転した透過型センサの出力が正のピークを示した位置を前記プレ印刷シートにプレ印刷した位置として検出する検出手段と、として機能させる。   Further, the present invention irradiates light to a label sheet in which a peelable label is pasted on a belt-like paper at a predetermined interval or a pre-printed sheet on which a predetermined matter is pre-printed on the belt-like paper at a predetermined interval, A computer that controls a position detection device including a transmissive sensor that detects the amount of light transmitted through the preprinted sheet logically inverts the output of the transmissive sensor that detects the amount of light transmitted through the preprinted sheet. A setting means for setting the logic inversion mode; an inversion means for logically inverting the polarity of the output of the transmissive sensor when the logic inversion mode is set; and the amount of light transmitted through the label sheet is detected. The position where the output of the transmission sensor showed a positive peak is detected as a gap between the labels affixed to the label sheet, and the logically inverted transmission type Detection means for outputting the capacitors detects the position shown positive peak as position pre printed on the pre-printed sheet, to function as a.

本発明にかかる位置検出装置およびプログラムは、ラベル間のギャップや用紙裏面に位置指定用の指標の印刷がないプレ印刷シートを使用する場合に、プレ印刷シートの位置を検出することができる、という効果を奏する。   The position detection device and the program according to the present invention can detect the position of a pre-printed sheet when using a pre-printed sheet that is not printed with a gap between labels or an index for position designation on the back side of the paper. There is an effect.

図1は、ポータブルプリンタの構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of a portable printer. 図2は、センサ制御回路、透過型センサ、および反射型センサの具体的な構成を示す図である。FIG. 2 is a diagram illustrating specific configurations of the sensor control circuit, the transmissive sensor, and the reflective sensor. 図3は、ポータブルプリンタの機能ブロック図である。FIG. 3 is a functional block diagram of the portable printer. 図4は、透過型センサの出力信号の波形を示す図である。FIG. 4 is a diagram illustrating a waveform of an output signal of the transmission type sensor. 図5は、透過型センサの出力信号の波形を示す図である。FIG. 5 is a diagram illustrating a waveform of an output signal of the transmission type sensor. 図6は、反射型センサの出力信号の波形を示す図である。FIG. 6 is a diagram illustrating a waveform of an output signal of the reflective sensor. 図7は、位置検出処理の流れを示すフローチャートである。FIG. 7 is a flowchart showing the flow of position detection processing.

以下に添付図面を参照して、この発明にかかる位置検出装置およびプログラムの最良な実施の形態を詳細に説明する。なお、本実施の形態では、サーマルヘッドで印刷を行うポータブルプリンタに、この発明にかかる位置検出装置およびプログラムを適用した例について説明する。   Exemplary embodiments of a position detection apparatus and a program according to the present invention will be explained below in detail with reference to the accompanying drawings. In the present embodiment, an example in which the position detection device and the program according to the present invention are applied to a portable printer that performs printing with a thermal head will be described.

図1は、ポータブルプリンタの構成を示すブロック図である。ポータブルプリンタ100は、本ポータブルプリンタ100を統括して制御する中央処理装置であるCPU(Central Processing Unit)1に、各種制御プログラムを固定的に記憶したROM(Read Only Memory)2、CPU1の作業エリアが設けられるRAM(Random Access Memory)3、不揮発性メモリ4、キーボードコントローラ5、表示コントローラ6、ヘッドドライバ7を接続している。   FIG. 1 is a block diagram showing the configuration of a portable printer. The portable printer 100 includes a central processing unit (CPU) 1 that centrally controls the portable printer 100, a ROM (Read Only Memory) 2 that stores various control programs in a fixed manner, and a work area of the CPU 1. Are connected to a RAM (Random Access Memory) 3, a nonvolatile memory 4, a keyboard controller 5, a display controller 6, and a head driver 7.

そして、ポータブルプリンタ100は、キーボードコントローラ5にキーボード8、表示コントローラ6に表示器9、ヘッドドライバ7にサーマルヘッド10をそれぞれ接続している。ヘッドドライバ7およびサーマルヘッド10は、ラベルシート、タグシート、およびプレ印刷シートに対し、インクリボンを介して文字やバーコードを印刷する印刷部である。   In the portable printer 100, a keyboard 8 is connected to the keyboard controller 5, a display 9 is connected to the display controller 6, and a thermal head 10 is connected to the head driver 7. The head driver 7 and the thermal head 10 are printing units that print characters and barcodes on the label sheet, tag sheet, and pre-printed sheet via an ink ribbon.

ラベルシートは、剥離自在なラベルを帯状用紙(台紙)に所定間隔で貼付したものである。タグシートは、位置指定用の指標(例えば、黒色マーク)を帯状用紙(台紙)に所定間隔で付加(印刷)したものである。プレ印刷シートは、文字等の所定の事項が帯状用紙に所定間隔で印刷(プレ印刷)されたものである。   The label sheet is obtained by sticking a peelable label to a strip-shaped paper (mounting paper) at a predetermined interval. The tag sheet is obtained by adding (printing) a position designation index (for example, a black mark) to a belt-shaped sheet (mounting sheet) at a predetermined interval. The pre-printed sheet is obtained by printing (pre-printing) predetermined items such as characters on a belt-like sheet at a predetermined interval.

さらに、ポータブルプリンタ100は、CPU1に、センサ制御回路11、モータドライバ12、および通信インタフェース13をそれぞれ接続している。そして、ポータブルプリンタ100は、センサ制御回路11に透過型センサ21および反射型センサ22、モータドライバ12にフィードモータ23およびリボンモータ24をそれぞれ接続している。また、ポータブルプリンタ100は、通信インタフェース13を、通信回線を介して上位機種のホストコンピュータ30に接続している。   Further, the portable printer 100 is connected to the CPU 1 with a sensor control circuit 11, a motor driver 12, and a communication interface 13, respectively. In the portable printer 100, a transmissive sensor 21 and a reflective sensor 22 are connected to the sensor control circuit 11, and a feed motor 23 and a ribbon motor 24 are connected to the motor driver 12, respectively. In the portable printer 100, the communication interface 13 is connected to a host computer 30 of a higher model via a communication line.

センサ制御回路11は、透過型センサ21および反射型センサ22の動作を制御するものである。透過型センサ21は、ラベルシートまたはプレ印刷シートに光を照射し、ラベルシートまたはプレ印刷シートを透過した光の量を検出するものである。反射型センサ22は、タグシートまたはプレ印刷シートに光を照射し、タグシートまたはプレ印刷シートから反射した光の量を検出するものである。   The sensor control circuit 11 controls the operation of the transmissive sensor 21 and the reflective sensor 22. The transmissive sensor 21 irradiates the label sheet or pre-printed sheet with light and detects the amount of light transmitted through the label sheet or pre-printed sheet. The reflection type sensor 22 irradiates the tag sheet or the pre-printed sheet with light, and detects the amount of light reflected from the tag sheet or the pre-printed sheet.

図2は、センサ制御回路、透過型センサ、および反射型センサの具体的な構成を示す図である。センサ制御回路11は、I/Oポート40、D/Aコンバータ41、オペアンプ42,46、NPN型トランジスタ43,47、および抵抗44,45,48,49を備えている。透過型センサ21は、ラベルシートまたはプレ印刷シートに光を照射する発光素子(例えば、フォトダイオード21a)、およびラベルシートまたはプレ印刷シートを透過した光を検出する受光素子(例えば、フォトトランジスタ21b)を備えている。反射型センサ22は、タグシートまたはプレ印刷シートに光を照射する発光素子(例えば、フォトダイオード22a)、およびタグシートまたはプレ印刷シートから反射した光の量を検出する受光素子(例えば、フォトトランジスタ22b)を備えている。   FIG. 2 is a diagram illustrating specific configurations of the sensor control circuit, the transmissive sensor, and the reflective sensor. The sensor control circuit 11 includes an I / O port 40, a D / A converter 41, operational amplifiers 42 and 46, NPN transistors 43 and 47, and resistors 44, 45, 48, and 49. The transmissive sensor 21 is a light emitting element (for example, a photodiode 21a) that emits light to a label sheet or a pre-printed sheet, and a light receiving element (for example, a phototransistor 21b) that detects light that has passed through the label sheet or the pre-printed sheet. It has. The reflective sensor 22 includes a light emitting element (for example, a photodiode 22a) that irradiates light to a tag sheet or a preprinted sheet, and a light receiving element (for example, a phototransistor) that detects the amount of light reflected from the tag sheet or the preprinted sheet. 22b).

I/Oポート40は、CPU1とのデータの入出力を行う入出力ポートであり、CPU1からの入力データ(デジタルデータ)を、D/Aコンバータ41に供給する。   The I / O port 40 is an input / output port for inputting / outputting data to / from the CPU 1 and supplies input data (digital data) from the CPU 1 to the D / A converter 41.

D/Aコンバータ41は、入力データ(透過型センサ発光量指定データ)に応じた出力電圧をチャンネルch1から出力し、オペアンプ42を介してNPN型トランジスタ43のベース・エミッタ間に出力電圧を印加する。   The D / A converter 41 outputs an output voltage corresponding to the input data (transmission sensor light emission amount designation data) from the channel ch 1, and applies the output voltage between the base and emitter of the NPN transistor 43 via the operational amplifier 42. .

NPN型トランジスタ43は、D/Aコンバータ41によりベース・エミッタ間に出力電圧が印加されると、コレクタ・エミッタ間および抵抗44を介して、透過型センサ21のフォトダイオード21aに直流電圧Vccを印加する。   When an output voltage is applied between the base and the emitter by the D / A converter 41, the NPN transistor 43 applies the DC voltage Vcc to the photodiode 21a of the transmission sensor 21 through the collector and the emitter and the resistor 44. To do.

透過型センサ21のフォトトランジスタ21bは、コレクタ・エミッタ間を介して抵抗45に直流電圧Vccを印加し、抵抗45に生じる電圧を透過型センサ21の出力としてA/Dコンバータ50のチャンネルch1に供給する。   The phototransistor 21b of the transmissive sensor 21 applies a DC voltage Vcc to the resistor 45 via the collector-emitter, and supplies the voltage generated in the resistor 45 to the channel ch1 of the A / D converter 50 as an output of the transmissive sensor 21. To do.

A/Dコンバータ50は、チャンネルch1への入力電圧(透過型センサ21の出力)のレベルをデジタル信号に変換し、それを透過型センサ21の出力信号として出力する。そして、A/Dコンバータ50は、I/Oポート40を介して、CPU1に透過型センサ21の出力信号を出力する。   The A / D converter 50 converts the level of the input voltage (output of the transmission sensor 21) to the channel ch1 into a digital signal and outputs it as an output signal of the transmission sensor 21. Then, the A / D converter 50 outputs the output signal of the transmissive sensor 21 to the CPU 1 via the I / O port 40.

D/Aコンバータ41は、入力データ(反射型センサ発光量指定データ)に応じた出力電圧をチャンネルch2から出力し、オペアンプ46を介してNPN型トランジスタ47のベース・エミッタ間に出力電圧を印加する。   The D / A converter 41 outputs an output voltage corresponding to the input data (reflection type sensor light emission amount designation data) from the channel ch 2 and applies the output voltage between the base and emitter of the NPN transistor 47 via the operational amplifier 46. .

NPN型トランジスタ47は、D/Aコンバータ41によりベース・エミッタ間に出力電圧が印加されると、コレクタ・エミッタ間および抵抗48を介して、反射型センサ22のフォトダイオード22aに直流電圧Vccを印加する。   When an output voltage is applied between the base and the emitter by the D / A converter 41, the NPN transistor 47 applies a DC voltage Vcc to the photodiode 22a of the reflective sensor 22 via the collector and the emitter and the resistor 48. To do.

反射型センサ22のフォトトランジスタ22bは、コレクタ・エミッタ間を介して抵抗49に直流電圧Vccを印加し、抵抗49に生じる電圧を反射型センサ22の出力としてA/Dコンバータ50のチャンネルch2に供給する。   The phototransistor 22b of the reflective sensor 22 applies a DC voltage Vcc to the resistor 49 via the collector-emitter, and supplies the voltage generated at the resistor 49 to the channel ch2 of the A / D converter 50 as an output of the reflective sensor 22. To do.

A/Dコンバータ50は、チャンネルch2への入力電圧(反射型センサ22の出力)のレベルをデジタル信号に変換し、それを反射型センサ22の出力信号として出力する。そして、A/Dコンバータ50は、I/Oポート40を介して、CPU1に反射型センサ22の出力信号を出力する。   The A / D converter 50 converts the level of the input voltage (output of the reflection type sensor 22) to the channel ch2 into a digital signal and outputs it as an output signal of the reflection type sensor 22. Then, the A / D converter 50 outputs the output signal of the reflective sensor 22 to the CPU 1 via the I / O port 40.

次に、図3を用いて、ポータブルプリンタ100のROM2に記憶された制御プログラムをCPU1が実行することにより実現される機能について説明する。図3は、ポータブルプリンタの機能ブロック図である。   Next, functions realized by the CPU 1 executing the control program stored in the ROM 2 of the portable printer 100 will be described with reference to FIG. FIG. 3 is a functional block diagram of the portable printer.

ポータブルプリンタ100で実行される制御プログラムは、図3に示すような各部(検出部301、設定部302、調整部303、変更部304、反転部305など)を含むモジュール構成となっており、実際のハードウェアとしてはCPU1がROM2から制御プログラムを読み出して実行することにより上記各部がRAM3上にロードされ、上述した各部(検出部301、設定部302、調整部303、変更部304、反転部305など)がRAM3上に生成されるようになっている。   The control program executed by the portable printer 100 has a module configuration including each unit (detection unit 301, setting unit 302, adjustment unit 303, change unit 304, inversion unit 305, etc.) as shown in FIG. As the hardware, the CPU 1 reads the control program from the ROM 2 and executes it, so that the above-described units are loaded onto the RAM 3, and the above-described units (detection unit 301, setting unit 302, adjustment unit 303, change unit 304, inversion unit 305). Etc.) are generated on the RAM 3.

設定部302は、通信I/F13を介してホストコンピュータ30から受信したコマンドに従って、プレ印刷シートを透過した光を検出した透過型センサ21の出力信号の波形(出力)の正負を論理反転させる論理反転モードを設定する。なお、本実施の形態では、設定部302は、ホストコンピュータ30から受信したコマンドに従って論理反転モードに設定しているが、これに限定するものではない。例えば、設定部302は、キーボードコントローラ5を介したキーボード8からの入力に応じて、論理反転モードを設定しても良い。   The setting unit 302 logically inverts the sign of the waveform (output) of the output signal of the transmission sensor 21 that has detected the light transmitted through the pre-printed sheet in accordance with a command received from the host computer 30 via the communication I / F 13. Set the reverse mode. In the present embodiment, the setting unit 302 sets the logic inversion mode according to the command received from the host computer 30, but the present invention is not limited to this. For example, the setting unit 302 may set the logic inversion mode in response to an input from the keyboard 8 via the keyboard controller 5.

プレ印刷シートは、ラベルシートに貼付されたラベル間のギャップを検出する場合と同じ発光量では透過する光が弱い。そこで、調整部303は、入力データ(透過型センサ発光量指定データ)を調整して、透過型センサ21によりプレ印刷シートに照射する光の量を、ラベルシートに照射する光の量よりも大きくする。   The pre-printed sheet is weak in transmitted light at the same light emission amount as that in the case of detecting the gap between labels attached to the label sheet. Therefore, the adjustment unit 303 adjusts the input data (transmission sensor light emission amount designation data) so that the amount of light applied to the preprinted sheet by the transmission sensor 21 is larger than the amount of light applied to the label sheet. To do.

変更部304は、設定部302による論理反転モードの設定に応じて、透過型センサ21の位置を変更するものである。具体的には、変更部304は、設定部302により論理反転モードが設定されなかった場合、ラベルシートの幅方向の中央部に対向する位置に透過型センサ21の位置を変更する。ラベルシートは、一般的に、当該ラベルシートの幅方向の中央部にラベル間のギャップが形成されている。そのため、変更部304が透過型センサ21の位置をラベルシートの幅方向の中央部に変更することにより、後述する検出部301は、透過型センサ21の出力信号の波形から、ラベルシートのラベル間のギャップを確実に検出することができる。また、変更部304は、設定部302により論理反転モードが設定された場合、プレ印刷シートにプレ印刷された画像の特徴点に対向する位置に透過型センサ21の位置を変更する。これにより、透過型センサ21の位置を画像の特徴点が存在する所定の位置に変更することができる。ここで、画像の特徴点とは、透過型センサ21の出力信号の波形のピークを検出できる画像箇所であり、例えば、プレ印刷シートの搬送方向において、一箇所だけ印字(プレ印刷)されているような箇所であることが好ましい。なお、プレ印刷シートに印刷された画像の特徴点は、図示しないスキャナによりプレ印刷シートをスキャンすることにより検出しても良いし、ユーザが任意に特徴点を指示しても良い。   The changing unit 304 changes the position of the transmissive sensor 21 according to the setting of the logic inversion mode by the setting unit 302. Specifically, the change unit 304 changes the position of the transmissive sensor 21 to a position facing the central portion in the width direction of the label sheet when the logic inversion mode is not set by the setting unit 302. In general, a gap between labels is formed at the center in the width direction of the label sheet. For this reason, the changing unit 304 changes the position of the transmissive sensor 21 to the center portion in the width direction of the label sheet, so that the detection unit 301 (to be described later) It is possible to reliably detect the gap. Further, when the logical inversion mode is set by the setting unit 302, the changing unit 304 changes the position of the transmissive sensor 21 to a position facing the feature point of the image preprinted on the preprinted sheet. Thereby, the position of the transmissive sensor 21 can be changed to a predetermined position where the feature point of the image exists. Here, the feature point of the image is an image location where the peak of the waveform of the output signal of the transmission sensor 21 can be detected. For example, only one location is printed (pre-printed) in the transport direction of the pre-printed sheet. Such a location is preferable. The feature points of the image printed on the preprinted sheet may be detected by scanning the preprinted sheet with a scanner (not shown), or the user may arbitrarily specify the feature points.

反転部305は、設定部302により論理反転モードが設定された場合に、透過型センサ21の出力信号の波形の正負を論理反転させる。   The inversion unit 305 logically inverts the polarity of the waveform of the output signal of the transmissive sensor 21 when the logic inversion mode is set by the setting unit 302.

検出部301は、ラベルシートを透過した光の量を検出した透過型センサ21の出力信号の波形が正のピークを示した位置をラベルシートに貼付したラベル間のギャップとして検出する。図4は、透過型センサの出力信号の波形を示す図である。透過型センサ21のフォトトランジスタ21bにより検出される光の量は、図4に示すように、ラベルが貼付されていない位置で増大する。そのため、検出部301は、透過型センサ21のフォトトランジスタ21bが検出した光の量が増加して透過型センサ21の出力信号の波形が正のピークを示した位置を、ラベル間のギャップとして検出する。   The detection unit 301 detects a position where the waveform of the output signal of the transmission sensor 21 that has detected the amount of light transmitted through the label sheet shows a positive peak as a gap between labels attached to the label sheet. FIG. 4 is a diagram illustrating a waveform of an output signal of the transmission type sensor. The amount of light detected by the phototransistor 21b of the transmissive sensor 21 increases at a position where no label is attached, as shown in FIG. Therefore, the detection unit 301 detects a position where the amount of light detected by the phototransistor 21b of the transmissive sensor 21 increases and the waveform of the output signal of the transmissive sensor 21 shows a positive peak as a gap between labels. To do.

また、検出部301は、反転部305により論理反転した透過型センサ21の出力信号の波形が正のピークを示した位置をプレ印刷シートにプレ印刷した位置として検出する。図5は、透過型センサの出力信号の波形を示す図である。透過型センサ21のフォトトランジスタ21bにより検出される光の量は、図5に示すように、プレ印刷された位置(特に、特徴点)において減少する。そのため、検出部301は、透過型センサ21のフォトトランジスタ21bが検出した光の量が減少して論理反転した透過型センサ21の出力信号が正のピークを示した位置を、プレ印刷された位置として検出する。   The detecting unit 301 detects a position where the waveform of the output signal of the transmission sensor 21 logically inverted by the inverting unit 305 shows a positive peak as a position pre-printed on the pre-printed sheet. FIG. 5 is a diagram illustrating a waveform of an output signal of the transmission type sensor. As shown in FIG. 5, the amount of light detected by the phototransistor 21b of the transmissive sensor 21 decreases at a preprinted position (particularly, a feature point). Therefore, the detection unit 301 reduces the amount of light detected by the phototransistor 21b of the transmissive sensor 21 and the position where the output signal of the transmissive sensor 21 logically inverted indicates a positive peak is a pre-printed position. Detect as.

また、検出部301は、タグシートから反射した光の量を検出した反射型センサ22の出力信号の波形が負のピークを示した位置をタグシートに付加された位置指定用の指標として検出する。図6は、反射型センサの出力信号の波形を示す図である。反射型センサ22のフォトトランジスタ22bにより検出される光の量は、図6に示すように、指標が付加された位置で減少する。そのため、検出部301は、反射型センサ22のフォトトランジスタ22bが検出した光の量が減少して反射型センサ22の出力信号の波形が負のピークを示した位置を、指標が付加された位置として検出する。   Further, the detection unit 301 detects a position where the waveform of the output signal of the reflective sensor 22 that has detected the amount of light reflected from the tag sheet shows a negative peak as a position designation index added to the tag sheet. . FIG. 6 is a diagram illustrating a waveform of an output signal of the reflective sensor. The amount of light detected by the phototransistor 22b of the reflective sensor 22 decreases at the position where the index is added, as shown in FIG. Therefore, the detection unit 301 is a position where an index is added at a position where the amount of light detected by the phototransistor 22b of the reflective sensor 22 decreases and the waveform of the output signal of the reflective sensor 22 shows a negative peak. Detect as.

なお、検出部301は、以上により検出したラベルシートに貼付されたラベル間のギャップ、タグシートに付加された指標、またはプレ印刷シートにプレ印刷した位置に基づいて、ラベルシート、タグシート、またはプレ印刷シートをサーマルヘッド10による印刷位置へと位置合わせを行うものとする。   Note that the detection unit 301 can detect the label sheet, the tag sheet, or the label sheet based on the gap between the labels attached to the label sheet detected as described above, the index added to the tag sheet, or the position preprinted on the preprinted sheet. It is assumed that the pre-printed sheet is aligned with the printing position by the thermal head 10.

図7は、位置検出処理の流れを示すフローチャートである。検出部301は、透過型センサ21または反射型センサ22の出力信号が入力されると(ステップS701)、透過型センサ21からの出力信号の入力か、反射型センサ22からの出力信号の入力かを判断する(ステップS702)。   FIG. 7 is a flowchart showing the flow of position detection processing. When the output signal of the transmissive sensor 21 or the reflective sensor 22 is input to the detection unit 301 (step S701), the detection unit 301 receives an output signal from the transmissive sensor 21 or an input signal from the reflective sensor 22. Is determined (step S702).

透過型センサ21からの出力信号の入力と判断した場合(ステップS702:透過型センサ)、検出部301は、設定部302により論理反転モードに設定されたか否かを判断する(ステップS703)。そして、論理反転モードに設定された場合(ステップS703:Yes)、検出部301は、入力された透過型センサ21の出力信号の正負を論理反転する(ステップS704)。なお、設定部302により論理反転モードに設定されていなかった場合(ステップS703:No)、検出部301は、出力信号の論理反転を行わずに、位置検出処理へと進む。   When it is determined that the output signal is input from the transmissive sensor 21 (step S702: transmissive sensor), the detection unit 301 determines whether the setting unit 302 has set the logic inversion mode (step S703). When the logic inversion mode is set (step S703: Yes), the detection unit 301 logically inverts the positive / negative of the input output signal of the transmissive sensor 21 (step S704). If the logic inversion mode has not been set by the setting unit 302 (step S703: No), the detection unit 301 proceeds to position detection processing without performing logic inversion of the output signal.

検出部301は、入力された出力信号が透過型センサ21の出力信号でありかつ論理反転モードに設定されていなかった場合(ステップS703:No)、透過型センサ21の出力信号の波形が正のピークを示す位置をラベルシートに貼付されたラベル間のギャップとして検出する(ステップS705)。また、検出部301は、入力された出力信号が透過型センサ21の出力信号でありかつ論理反転モードに設定されていた場合、論理反転した透過型センサ21の出力信号の波形が正のピークを示す位置をプレ印刷シートにプレ印刷された位置として検出する(ステップS705)。   When the input output signal is the output signal of the transmissive sensor 21 and is not set to the logic inversion mode (step S703: No), the detection unit 301 has a positive waveform of the output signal of the transmissive sensor 21. A position indicating a peak is detected as a gap between labels attached to the label sheet (step S705). In addition, when the input output signal is the output signal of the transmissive sensor 21 and is set to the logic inversion mode, the detection unit 301 has a positive peak in the waveform of the output signal of the transmissive sensor 21 that has been logically inverted. The position shown is detected as the position pre-printed on the pre-printed sheet (step S705).

また、検出部301は、入力された出力信号が反射型センサ22の出力信号であると判断した場合(ステップS702:反射型センサ)、反射型センサ22の出力信号の波形が負のピークを示す位置をタグシートに付加された指標の位置またはプレ印刷シートにプレ印刷した位置として検出する(ステップS706)。   In addition, when the detection unit 301 determines that the input output signal is the output signal of the reflection type sensor 22 (step S702: reflection type sensor), the waveform of the output signal of the reflection type sensor 22 shows a negative peak. The position is detected as the position of the index added to the tag sheet or the position pre-printed on the pre-printed sheet (step S706).

このように本実施の形態にかかるポータブルプリンタ100によれば、プレ印刷シートを透過した光の量を検出した透過型センサ21の出力信号の波形の正負を論理反転する論理反転モードに設定し、論理反転モードに設定された場合に、透過型センサ21の出力信号の波形の正負を論理反転し、ラベルシートを透過した光の量を検出した透過型センサ21の出力信号の波形が正のピークを示した位置をラベルシートに貼付したラベル間のギャップとして検出するとともに、論理反転した透過型センサ21の出力信号の波形が正のピークを示した位置をプレ印刷シートにプレ印刷した位置として検出することにより、プレ印刷された位置を示す透過型センサ21の出力信号の負のピークを検出することができるので、プレ印刷シートを使用する場合に、プレ印刷があるがラベルが貼付されていないプレ印刷シートの位置を透過型センサ21の出力信号から検出することができる。   As described above, according to the portable printer 100 according to the present embodiment, the logic inversion mode that logically inverts the positive / negative of the waveform of the output signal of the transmission type sensor 21 that detects the amount of light transmitted through the pre-printed sheet is set. When the logic inversion mode is set, the polarity of the output signal waveform of the transmission sensor 21 is logically inverted, and the output signal waveform of the transmission sensor 21 that detects the amount of light transmitted through the label sheet has a positive peak. Is detected as a gap between the labels affixed to the label sheet, and a position where the waveform of the output signal of the transmissive sensor 21 logically inverted exhibits a positive peak is detected as a position pre-printed on the pre-printed sheet. By doing so, it is possible to detect the negative peak of the output signal of the transmissive sensor 21 indicating the pre-printed position, so the pre-printed sheet is used. Case, there is a pre-print but can detect the position of pre-printed sheets that are not labeled in the output signal of the transmission sensor 21.

本実施の形態のポータブルプリンタ100で実行される制御プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   The control program executed by the portable printer 100 according to the present embodiment is an installable or executable file, such as a CD-ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk), etc. You may comprise so that it may record and provide on a computer-readable recording medium.

さらに、本実施の形態のポータブルプリンタ100で実行される制御プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施の形態のポータブルプリンタ100で実行される制御プログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   Furthermore, the control program executed by the portable printer 100 of the present embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. Further, the control program executed by the portable printer 100 of the present embodiment may be provided or distributed via a network such as the Internet.

21 透過型センサ
100 ポータブルプリンタ
301 検出部
302 設定部
303 調整部
304 変更部
305 反転部
DESCRIPTION OF SYMBOLS 21 Transmission type sensor 100 Portable printer 301 Detection part 302 Setting part 303 Adjustment part 304 Change part 305 Inversion part

特開2005−178303公報JP 2005-178303 A

Claims (6)

剥離自在なラベルを帯状用紙に所定間隔で貼付したラベルシートまたは所定の事項が帯状用紙に所定間隔でプレ印刷されたプレ印刷シートに光を照射し、前記ラベルシートまたは前記プレ印刷シートを透過した光の量を検出する透過型センサと、
前記プレ印刷シートを透過した光の量を検出した前記透過型センサの出力を論理反転する論理反転モードに設定する設定手段と、
前記論理反転モードに設定された場合に、前記透過型センサの出力の正負を論理反転する反転手段と、
前記ラベルシートを透過した光の量を検出した前記透過型センサの出力が正のピークを示した位置を前記ラベルシートに貼付したラベル間のギャップとして検出するとともに、前記論理反転した透過型センサの出力が正のピークを示した位置を前記プレ印刷シートにプレ印刷した位置として検出する検出手段と、
を備えたことを特徴とする位置検出装置。
A label sheet in which a peelable label is affixed to a belt-like paper at a predetermined interval or a pre-printed sheet on which a predetermined matter is pre-printed on the belt-like paper is irradiated with light and transmitted through the label sheet or the pre-printed sheet. A transmissive sensor for detecting the amount of light;
Setting means for setting a logical inversion mode for logically inverting the output of the transmissive sensor that detects the amount of light transmitted through the pre-printed sheet;
Inversion means for logically inverting the polarity of the output of the transmissive sensor when the logic inversion mode is set;
The position of the output of the transmissive sensor that has detected the amount of light transmitted through the label sheet is detected as a gap between labels attached to the label sheet, and the logically inverted transmissive sensor Detecting means for detecting a position where the output shows a positive peak as a position pre-printed on the pre-printed sheet;
A position detection device comprising:
前記透過型センサにより前記プレ印刷シートに照射する光の量を、前記ラベルシートに照射する光の量よりも大きくする調整手段をさらに備えたことを特徴とする請求項1に記載の位置検出装置。   The position detection apparatus according to claim 1, further comprising an adjusting unit configured to make an amount of light applied to the preprinted sheet by the transmission type sensor larger than an amount of light applied to the label sheet. . 前記論理反転モードの設定に応じて前記透過型センサの位置を変更する変更手段をさらに備えたことを特徴とする請求項1または2に記載の位置検出装置。   The position detection apparatus according to claim 1, further comprising a changing unit that changes a position of the transmissive sensor in accordance with the setting of the logic inversion mode. 前記変更手段は、前記プレ印刷シートにプレ印刷された画像の特徴点に対向する位置に前記透過型センサの位置を変更することを特徴とする請求項3に記載の位置検出装置。   The position detecting device according to claim 3, wherein the changing unit changes the position of the transmissive sensor to a position facing a feature point of an image preprinted on the preprinted sheet. 前記変更手段は、前記論理反転モードに設定されなかった場合、前記ラベルシートの幅方向の略中央部に対向する位置に前記透過型センサの位置を変更することを特徴とする請求項3または4に記載の位置検出装置。   The said change means changes the position of the said transmission type sensor to the position facing the substantially center part of the width direction of the said label sheet, when not set to the said logic inversion mode. The position detection apparatus described in 1. 剥離自在なラベルを帯状用紙に所定間隔で貼付したラベルシートまたは所定の事項が帯状用紙に所定間隔でプレ印刷されたプレ印刷シートに光を照射し、前記ラベルシートまたは前記プレ印刷シートを透過した光の量を検出する透過型センサを備えた位置検出装置を制御するコンピュータを、
前記プレ印刷シートを透過した光の量を検出した前記透過型センサの出力を論理反転する論理反転モードに設定する設定手段と、
前記論理反転モードに設定された場合に、前記透過型センサの出力の正負を論理反転する反転手段と、
前記ラベルシートを透過した光の量を検出した前記透過型センサの出力が正のピークを示した位置を前記ラベルシートに貼付したラベル間のギャップとして検出するとともに、前記論理反転した透過型センサの出力が正のピークを示した位置を前記プレ印刷シートにプレ印刷した位置として検出する検出手段と、
として機能させるためのプログラム。
A label sheet in which a peelable label is affixed to a belt-like paper at a predetermined interval or a pre-printed sheet on which a predetermined matter is pre-printed on the belt-like paper is irradiated with light and transmitted through the label sheet or the pre-printed sheet. A computer that controls a position detection device including a transmission type sensor that detects the amount of light,
Setting means for setting a logical inversion mode for logically inverting the output of the transmissive sensor that detects the amount of light transmitted through the pre-printed sheet;
Inversion means for logically inverting the polarity of the output of the transmissive sensor when the logic inversion mode is set;
The position of the output of the transmissive sensor that has detected the amount of light transmitted through the label sheet is detected as a gap between labels attached to the label sheet, and the logically inverted transmissive sensor Detecting means for detecting a position where the output shows a positive peak as a position pre-printed on the pre-printed sheet;
Program to function as.
JP2010045788A 2010-03-02 2010-03-02 Position detection apparatus and program Expired - Fee Related JP5290221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010045788A JP5290221B2 (en) 2010-03-02 2010-03-02 Position detection apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010045788A JP5290221B2 (en) 2010-03-02 2010-03-02 Position detection apparatus and program

Publications (2)

Publication Number Publication Date
JP2011178077A JP2011178077A (en) 2011-09-15
JP5290221B2 true JP5290221B2 (en) 2013-09-18

Family

ID=44690115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010045788A Expired - Fee Related JP5290221B2 (en) 2010-03-02 2010-03-02 Position detection apparatus and program

Country Status (1)

Country Link
JP (1) JP5290221B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018001703A (en) * 2016-07-07 2018-01-11 東芝テック株式会社 Label printer and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6378591B2 (en) * 2014-09-16 2018-08-22 キヤノン株式会社 Discrimination device and image forming apparatus for discriminating the type of recording medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6023128A (en) * 1983-07-20 1985-02-05 東芝テック株式会社 Method of detecting label of label printer
JPS63180506U (en) * 1987-05-14 1988-11-22
JP2954085B2 (en) * 1997-05-15 1999-09-27 甲府日本電気株式会社 Sensor output adjustment method and mark detection device using the same
JP3665700B2 (en) * 1997-11-17 2005-06-29 株式会社平和時計製作所 Paper position detection sensor
JP4732946B2 (en) * 2006-04-28 2011-07-27 Aiソリューションズ株式会社 Page pitch detection method, page pitch detection device and printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018001703A (en) * 2016-07-07 2018-01-11 東芝テック株式会社 Label printer and program

Also Published As

Publication number Publication date
JP2011178077A (en) 2011-09-15

Similar Documents

Publication Publication Date Title
JP2018001703A (en) Label printer and program
US9990571B2 (en) Media determining apparatus for determining transparency of a media, a media transport apparatus for detecting an end position of the medium and printing apparatus for controlling start of printing on a printing medium
JP5347812B2 (en) Label with release paper, label printer, and label printing method
CN106626847B (en) Printing method and printer
JP2019045188A (en) Printer and control method for printer
JP4732946B2 (en) Page pitch detection method, page pitch detection device and printer
JP4110907B2 (en) Recording apparatus, recording method, program, and computer system
JP5290221B2 (en) Position detection apparatus and program
JP2015047826A (en) Printer and printing method thereof
JP4149867B2 (en) Printer and its control method
CN207190548U (en) A kind of thermal printer of positive and negative detection
JP4990989B2 (en) Label output device and label output method
JP2007522965A (en) Printing device
TWI246467B (en) Automatic recognition system and its method of printer recording media
JP2011215028A (en) Printer, method of determining light intensity and light reception sensitivity, and program
US9509877B1 (en) Indication of whether print job is a cut media or continuous media print job
JP2009107281A (en) Printer
US20180290465A1 (en) Sensing media and a media tray
KR101562202B1 (en) Method and apparatus for controlling printer based on direction of paper provided
EP4321345A1 (en) Printer media low sensing using motor current drawn when feeding
JPH11311502A (en) Printer
JP2000335034A (en) Hole code reader
JP5994565B2 (en) Image forming apparatus
JPH0627521U (en) Label printer
JP2005001135A (en) Printing device and its controlling method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120315

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130509

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130514

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130605

LAPS Cancellation because of no payment of annual fees