JPH02307765A - Label printer - Google Patents
Label printerInfo
- Publication number
- JPH02307765A JPH02307765A JP13072089A JP13072089A JPH02307765A JP H02307765 A JPH02307765 A JP H02307765A JP 13072089 A JP13072089 A JP 13072089A JP 13072089 A JP13072089 A JP 13072089A JP H02307765 A JPH02307765 A JP H02307765A
- Authority
- JP
- Japan
- Prior art keywords
- recording paper
- printing
- sensor
- area
- label
- 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
Links
Landscapes
- Record Information Processing For Printing (AREA)
- Printers Characterized By Their Purpose (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はラベルやタグにキャラクタやバーコード、ライ
ン等を印字することのできるラベルプリンタに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a label printer that can print characters, barcodes, lines, etc. on labels and tags.
[従来の技術]
ラベルプリンタはラベルやタグに、キャラクタ(英数字
を含む文字や記号)やバーコード、ライン等を印字する
ことのできるプリンタである。[Prior Art] A label printer is a printer that can print characters (letters and symbols including alphanumeric characters), barcodes, lines, etc. on labels and tags.
このようなラベルプリンタは概略的に示すと第5図のよ
うなものであり、このラベルプリンタで使われるラベル
やタグは普通、第6図に示すような3種類のものがある
。第6図の(a)に示すものはラベル用の記録紙81で
あり、これは帯状の台紙部82に一定間隔(ギャップG
)で白紙のラベル83が添付されているもので、ラベル
83は接着割付のものであって、このラベル83は剥離
可能に台紙部82に張り付けであるものである。第6図
の(b)はタグ用記録紙91であり、帯状の記録紙であ
るこのタグ用記録紙91は印字面の裏の所定位置に所定
間隔で黒マーカ92が印刷されたものと、第6図の(C
)に示すように一方の縁部に所定間隔で方形の切欠き9
3を形成したものとがある。タグ用記録紙91の黒マー
カ92および切欠き93は、ギャップ部Gを形成するた
めのもので、タグ用記録紙91の送り方向に所定の幅を
持たせて形成しである。そして、これらの記録紙の印字
の際の位置決めは、第6図の(a)のラベル用記録紙の
場合はラベル83と台紙部82とを認識することにより
、また、第6図の(b) 、 (e)のタグ用記録紙9
1の場合は印字面の裏についているブラックマーカ92
や切欠き93により行う。すなわち、ギヤツブ部形成位
置をこれらにより知ってこのギャップ部Gの分、スキッ
プさせることにより、規定の位置に印字を行うことがで
きるようにする。Such a label printer is schematically shown in FIG. 5, and there are usually three types of labels and tags used in this label printer, as shown in FIG. 6. What is shown in FIG. 6(a) is a recording paper 81 for labels, which is placed on a band-shaped mount part 82 at regular intervals (gap G
), a blank label 83 is attached, and the label 83 is an adhesive layout, and this label 83 is removably attached to the mount part 82. FIG. 6(b) shows a tag recording paper 91, and this tag recording paper 91, which is a strip-shaped recording paper, has black markers 92 printed at predetermined positions on the back of the printing surface at predetermined intervals. (C
) As shown in Fig.
There is one that forms 3. The black marker 92 and the notch 93 of the tag recording paper 91 are for forming a gap G, and are formed to have a predetermined width in the feeding direction of the tag recording paper 91. The positioning of these recording papers when printing is done by recognizing the label 83 and the mount part 82 in the case of the label recording paper shown in FIG. ), (e) tag recording paper 9
In the case of 1, the black marker 92 attached to the back of the printed surface
or notch 93. That is, by knowing the position where the gear part is formed and skipping by this gap part G, printing can be performed at a prescribed position.
第5図に示したラベルプリンタを例に説明すると、印字
位置にはサーマルへラド71とプラテン72とが対峙し
て配置されており、これらサーマルヘッド71とプラテ
ン72との間には熱転写式のインクフィルム73が通し
である。このインクフィルム73は幅の広い帯状のもの
で、ボビン74に巻き付けられており、印字の際の紙送
りと同期させてフィルム送りが成される構成としである
。そして、インクフィルム73とプラテン72との間を
通して記録紙81もしくはタグ用記録紙91を配設する
。記録紙81もしくはタグ用記録紙91はプラテン72
を回転させることにより送る。また、プラテン72から
見て記録紙(ラベル用記録紙81もしくはタグ用記録紙
91)の供給側にはこれら記録紙を挾んで対向するよう
に発光素子と受光素子からなる透過センサ75が設けら
れており、また、発光素子と受光素子からなる反射セン
サ76が設けである。反射センサ76はタグ用記録紙9
1のブラックマーカ92もしくは切欠き93の通過領域
に対向して配設してあり、ブラックマーカ92もしくは
切欠き93に遭遇すると、反射光がなくなることを利用
してこの反射光のない区間を検出するものであり、この
反射光のない区間をギャップ部Gとして認識するために
用いる。また、同様に透過センサ75はラベル用の記録
紙81におけるラベル83のある部分・と台紙部82の
みの部分とでの光透過度の差を利用してギャップ部Gの
検出を行うためのセンサであり、透過センサ75の検出
出力のレベルからギャップ部Gを認識するようにする。Taking the label printer shown in FIG. 5 as an example, a thermal head 71 and a platen 72 are arranged facing each other at the printing position. The ink film 73 is continuous. The ink film 73 is in the form of a wide band and is wound around a bobbin 74, and is configured to feed the film in synchronization with paper feed during printing. Then, the recording paper 81 or the tag recording paper 91 is placed between the ink film 73 and the platen 72. The recording paper 81 or the tag recording paper 91 is placed on the platen 72.
It is sent by rotating. Further, on the supply side of the recording paper (label recording paper 81 or tag recording paper 91) when viewed from the platen 72, a transmission sensor 75 consisting of a light emitting element and a light receiving element is provided so as to sandwich the recording paper and face each other. A reflection sensor 76 consisting of a light emitting element and a light receiving element is also provided. The reflective sensor 76 is connected to the tag recording paper 9
It is arranged opposite to the passage area of the black marker 92 or notch 93 of No. 1, and when it encounters the black marker 92 or notch 93, the reflected light disappears, which is used to detect the section where there is no reflected light. This section is used to recognize this section without reflected light as a gap section G. Similarly, the transmission sensor 75 is a sensor for detecting the gap G by using the difference in light transmittance between the part of the label recording paper 81 where the label 83 is located and the part where only the mount part 82 is located. The gap G is recognized from the level of the detection output of the transmission sensor 75.
このような構成において、記録紙の送りは図示しない紙
送り機構のステップモータに駆動パルスを送ることによ
り、行い、印字はサーマルヘッド71に印字のための駆
動出力を与えることで行う。In such a configuration, the recording paper is fed by sending a drive pulse to a step motor of a paper feed mechanism (not shown), and printing is performed by giving a drive output for printing to the thermal head 71.
この印字はキャラクタのパターン内容に合わせてサーマ
ルヘッド71の対応するドツト位置の信号端子にこの印
字のための駆動出力が与えられるので、そのドツト位置
の発熱素子が発熱してその発熱位置におけるインクフィ
ルム73の熱溶融インクを溶かし記録紙に転写すること
でなされる。For this printing, a drive output for this printing is given to the signal terminal of the corresponding dot position of the thermal head 71 in accordance with the character pattern contents, so that the heating element at that dot position generates heat, and the ink film 73 at that heating position generates heat. This is done by melting hot melt ink and transferring it to recording paper.
−ライン分の印字が終わると次に紙送り機構のステップ
モータに−ライン付紙送りするに必要なパルスが送られ
る。これにより、記録紙が−ライン分、送られ、これに
よって記録紙は−ライン分、ずれた新たな未記録領域か
サーマルヘッド71の記録部分にくるので、ここに次の
ラインの記録が成される。このようなことを逐次行って
、印字が実施される。- When printing for a line is completed, pulses necessary to feed the paper with a line are sent to the step motor of the paper feeding mechanism. As a result, the recording paper is fed by -line, and as a result, the recording paper comes to a new unrecorded area or recording area of the thermal head 71 that is shifted by -line, and the next line is recorded here. Ru. Printing is performed by performing these steps one after another.
ところで、ラベルプリンタにセットした記録紙に実際に
キャラクタ等を印字させるとき、記録紙上の指定された
座標位置へ印字させるためには、サーマルへラド71に
ラベル83やタグ用記録紙91の印字面部の先頭を合わ
せなければならない。この動作を頭出しと云う。By the way, when actually printing characters, etc. on the recording paper set in the label printer, in order to print at the specified coordinate position on the recording paper, the printing surface part of the label 83 or the tag recording paper 91 must be placed on the thermal radar 71. must match the beginnings of the . This action is called cueing.
この頭出しの際の位置合せに使用されるのが前述のギャ
ップ部Gである。つまり、ギャップ部Gはラベル83や
タグ用記録紙91の区切りを示すものである。ラベルプ
リンタの印字部の機構は第5図に示したようなものであ
り、このうちの透過センサ75または反射センサ76で
透過率や反射率を調べ、この反射率や透過率の違いでギ
ャップ部Gを検出する。印字位置(サーマルヘッド位置
)に記録紙の先端が届く長さ分、紙送りしつつ前記セン
サの出力を監視し、印字位置に記録紙の先端か届く長さ
分、紙送りしてから前記ギャップ部Gを最初に検出した
段階で、更にサーマルヘッド71とセンサ75.76と
の間の距離を、一部分のラベルまたはタグの占有領域で
ある占有領域長ρ (第6図参照)で割った「余り」の
分を余分に紙送りさせると、頭出しが出来ることになる
。The aforementioned gap portion G is used for positioning during this cueing. In other words, the gap G indicates a separation between the label 83 and the tag recording paper 91. The mechanism of the printing section of a label printer is as shown in Fig. 5, and the transmittance and reflectance are checked using the transmission sensor 75 or the reflection sensor 76, and the difference in reflectance and transmittance is used to detect the gap area. Detect G. The output of the sensor is monitored while feeding the paper by the length that the leading edge of the recording paper reaches the printing position (thermal head position), and after feeding the paper by the length that the leading edge of the recording paper reaches the printing position, the gap is adjusted. At the stage when part G is first detected, the distance between the thermal head 71 and the sensor 75, 76 is divided by the occupied area length ρ (see Fig. 6), which is the occupied area of a part of the label or tag. If you feed the extra paper for the remainder, you will be able to find the beginning.
これにより、通常の印字時において、正しい位置に印字
を行うことかできる。This makes it possible to print at the correct position during normal printing.
反射・透過センサ75.76出力により、ギャップ部G
を検出する制御の原理は以下の通りである。The gap part G is determined by the reflection/transmission sensor 75.76 output.
The principle of control for detecting is as follows.
第6図のラベル83やタグ用記録紙91がセンサ75.
78を通過する場合、センサ75.76からは第7図(
b) 、 (c)のような出力ディジタル値が得られる
。The label 83 and tag recording paper 91 shown in FIG. 6 are connected to the sensor 75.
When passing through 78, sensors 75 and 76 detect the
Output digital values such as b) and (c) are obtained.
すなわち、ギャップ部Gの位置に来ると、透過率や反射
率が変わるので、検出出力値は他の部分での検出出力値
であるL2 、 L3に対し、LL、L4と大きく変化
する。L2.L3は第6図における印字領域(領域Ωか
らギャップ部Gを差し引いた領域;gは一枚分のラベル
またはタグの占有領域である占有領域長)検出自刃であ
る。That is, at the position of the gap G, the transmittance and reflectance change, so the detected output value changes greatly to LL and L4 compared to the detected output values L2 and L3 at other parts. L2. L3 is the printing area (area obtained by subtracting the gap G from the area Ω; g is the occupied area length that is the occupied area of one label or tag) detection self-cutting edge in FIG.
そこで、印字領域部検出出力とギヤツブ部検出出力との
差(上記し1とL2の差、またはL4とL3の差)をス
レッシュホールド値とし、このスレッシュホールド値を
メモリにセットし、印字中、または紙送り中、そのスレ
ッシュホールド値に従ってラベルやタグの印字領域位置
を検知する。当然、ラベルやタグを交換(記録紙の交換
)したときはスレッシュホールド値は変わることになる
ので、そのために、ラベルやタグの交換を行った時には
、印字の開始前に一度紙送りさせ、スレッシュホールド
値を算出し、頭出しを行っている。Therefore, the difference between the printing area part detection output and the gear part detection output (the difference between 1 and L2, or the difference between L4 and L3 as described above) is set as a threshold value, and this threshold value is set in memory, and during printing, Or, while paper is being fed, the print area position of the label or tag is detected according to the threshold value. Naturally, when replacing labels or tags (replacing recording paper), the threshold value will change, so when replacing labels or tags, feed the paper once before starting printing and set the threshold value. The hold value is calculated and cueing is performed.
[発明か解決しようとする課題]
第6図に示すようにラベルプリンタで使用するラベルや
タグの記録紙は印字可能な領域とギヤ・ツブ部とがあり
、印字の際には印字可能な領域について印字記録を行い
、ギャップ部位置ではスキップさせるようにして目的の
印字領域に目的内容の印字を行うようにする。そして、
この印字領域とギャップ部との認識は記録しかラベル用
である場合には光の透過度で、また、記録紙がタグ用で
あれば記録紙にギャップ部位置を示すブラックマーカ若
しくは切欠きを設けて、この部分を光の反射度で検出す
ることで行うようにしている。[Invention or Problem to be Solved] As shown in Figure 6, the recording paper for labels and tags used in label printers has a printable area and a gear/lug part, and when printing, the printable area The target content is printed in the target printing area by skipping at the gap position. and,
The printing area and the gap can be recognized by the light transmittance if the recording is for labels only, or if the recording paper is for tags, a black marker or notch is provided on the recording paper to indicate the position of the gap. This is done by detecting this part based on the degree of light reflection.
そのために、プラテンから見ての記録紙供給側における
記録紙通路に対して上記検出用の光透過および光反射検
出用のセンサを設けて、記録紙の光透過または光反射を
検出し、これによりギャップ部を検出する。すなわち、
ギャップ部の位置に来ると、透過率や反射率が変わるの
で、検出出力値は印字領域部分での検出出力値と比べて
大きく変化する。そこで、印字領域部検出出力とギヤツ
ブ部検出出力との差をスレッシュホールド値とし、この
スレッシュホールド値をメモリにセットし、印字中、ま
たは紙送り中、そのスレッシュホールド値に従ってラベ
ルやタグの印字領域位置を検知する。For this purpose, a sensor for detecting light transmission and light reflection is provided for the recording paper path on the recording paper supply side as seen from the platen, and the light transmission or light reflection of the recording paper is detected. Detect the gap. That is,
When the position of the gap portion is reached, the transmittance and reflectance change, so the detected output value changes significantly compared to the detected output value at the print area. Therefore, the difference between the printing area detection output and the gear detection output is set as a threshold value, this threshold value is set in memory, and the printing area of the label or tag is set according to the threshold value during printing or paper feeding. Detect location.
そして、記録紙交換を行った時には上記スレッシュホー
ルド値は変わることになるので、このような時には、印
字の開始前に一度紙送りさせ、スレッシュホールド値を
算出すると共に記録紙の位置決めを行うために、頭出し
を行っている。この頭出しは記録紙を装填してから所定
量紙送りしつつ、記録紙の光透過または光反射を検出す
るセンサの出力を監視し、この間にギャップ部と印字領
域部とを検出して両領域それぞれの長さ情報を得、所定
量紙送りがなされて後、前記センサがギャップ部を検出
した時点て、次に印字位置に記録紙の記録可能領域先端
が未るまての量、紙送り制御することで行う。The above threshold value will change when the chart paper is replaced, so in such a case, the paper should be fed once before printing starts, and the threshold value should be calculated and the chart paper positioned. , cueing is performed. This cueing is performed by loading the recording paper and feeding it a predetermined amount while monitoring the output of a sensor that detects light transmission or light reflection on the recording paper.During this time, the gap and print area are detected and both are detected. After obtaining the length information for each area and feeding the paper by a predetermined amount, when the sensor detects a gap, the paper is fed by the amount until the leading edge of the recordable area of the recording paper remains at the printing position. Do it by controlling.
すなわち、記録紙の送りは、ステップモータにより駆動
される紙送り機構で行うようにしており、従って、印字
位置に記録紙先端が到達するまで、紙送りを行い、この
間にセンサ検出出力より印字領域部とギャップ部の両領
域の検出データを得、これら両領域のデータが得られた
段階で、つまり、ギャップ部から印字領域部に入り、印
字領域部の全体を検出して次にギャップ部に入り、その
次の印字領域部との境界を検知すると云った遷移の過程
で、印字領域部とギャップ部の両領域の長さの情報をス
テップモータの駆動ステップ数との関連で得、印字位置
に記録紙先端が到達した後の段階で、これらの情報をも
とに、一枚分のラベルまたはタグの占有領域である占有
領域長pを得て、その後、所定量(サーマルヘッドと光
透過または光反射を検出するセンサとの間の距離を、一
枚分のラベルまたはタグの占有領域である占有領域長Ω
(第6図参照)で割った「余り」の分)だけ、余分に紙
送りさせると、頭出しができると共に、占有領域長Ωお
よびギャップ部の長さの情報を得るか出来ることになる
ので、この段階で初めて紙送りを停止し、印刷開始僧備
完了とする。In other words, the recording paper is fed by a paper feeding mechanism driven by a step motor. Therefore, the paper is fed until the leading edge of the recording paper reaches the printing position, and during this time the printing area is determined based on the sensor detection output. Detection data for both the area and the gap area are obtained, and at the stage where data for both areas is obtained, in other words, entering the printing area from the gap area, detecting the entire printing area, and then entering the gap area. In the transition process of detecting the boundary between the printing area and the next printing area, information on the length of both the printing area and the gap area is obtained in relation to the number of driving steps of the step motor, and the printing position is determined by At the stage after the leading edge of the recording paper reaches, based on this information, the occupied area length p, which is the occupied area of one label or tag, is obtained. Or the distance between the sensor that detects light reflection and the occupied area length Ω, which is the occupied area of one label or tag.
(Refer to Figure 6) If you feed the paper an extra amount (remainder), you will be able to find the beginning of the paper and also obtain information about the length of the occupied area Ω and the length of the gap. At this stage, paper feeding is stopped for the first time, and preparation for starting printing is completed.
このため、記録紙を交換したときは頭出しの段階で必ず
最低一枚分、記録紙の装填の仕方や占有領域長Ωの長さ
如何ではそれ以上の枚数分のラベルまたはタグがサーマ
ルヘッドの位置より紙送りの下流側に排出された状態と
なり、この下流側部分は印字に供することが無いので、
これはまるまる捨てられることになる。Therefore, when replacing the recording paper, at least one label or tag is always left in the thermal head at the cue stage, and depending on how the recording paper is loaded and the length of the occupied area Ω, there will always be at least one label or tag in the thermal head. The paper is ejected to the downstream side of the paper feed position, and this downstream part is not used for printing, so
This will be completely thrown away.
このように、ラベルやタグの用紙交換時には、必ず一枚
分以上、紙送りさせなければならないため、頭出しに使
用した先頭のラベルやタグが最低一枚分、無駄になる。In this way, when replacing paper for labels or tags, it is necessary to feed the paper by at least one sheet, so at least one sheet of the first label or tag used for cueing is wasted.
そして、単価の高い用紙を使用する場合ではもちろんの
こと、用紙の単価が安い場合でも用紙交換が多いときに
はこの無駄も相当な額に達し、極めて不経済である。Not only when paper with a high unit price is used, but also when the paper is replaced frequently even when the unit price of the paper is low, this waste amounts to a considerable amount, which is extremely uneconomical.
このことは多種のラベルやタグを使用し、経費削減に神
経を使うスーパーマーケットや小売店等では黙認8来な
い問題で゛ある。This is a problem that cannot be tolerated by supermarkets, retail stores, etc., which use a wide variety of labels and tags and are concerned about reducing costs.
そこで、この発明の目的とするところはラベルやタグの
用紙交換時におけるラベルやタグの頭出しにあたって、
ラベルやタグの一枚の無駄をもなくすことができ、従っ
て、経済的なラベルプリンタを提供することにある。Therefore, the purpose of this invention is to locate the beginning of the label or tag when replacing paper for the label or tag.
To provide an economical label printer that can eliminate the waste of a single label or tag.
[課題を解決するるための手段]
上記目的を達成するため、本発明は次のように構成する
。すなわち、記録紙毎に一定の間隔で印字可能領域と区
切り領域が規定された帯状の記録紙を使用すると共に、
この記録紙は印字可能領域と区切り領域が光学的に判別
可能な構成としてあり、印字部への前記記録紙供給経路
にはこの光学的検出のためのセンサを設け、駆動制御信
号により駆動される記録紙の送り機構により記録紙を送
り出し・引き戻し制御できるようにしたプリンタにおい
て、記録紙交換時、前記印字部位置近傍に記録紙先端が
来るように記録紙をセットした記録紙を所定員送るべく
前記記録紙送り機構を記録紙送り出し方向に制御すると
共に記録紙引き戻し量の情報を受けるとこの情報に従っ
て記録紙引き戻し制御をする制御手段と、この送りd:
l L制御量のデータを保持すると共に前記センサの出
力をデー夕として保持する保持手段と、この保持手段の
保持したデータをもとに区切り領域の長さを決定し、こ
の決定した情報と前記印字部位置−センサ位置間距離と
の関係から前記印字部位置に記録紙の印字すべき領域先
端側の所定位置が来るに要する送り量を求め、頭出し用
の記録紙送り出し指令として前記制御手段に送り、頭出
し終了後に記録紙の先頭に位置する印字すべき領域が頭
出しされるに必要な記録紙引き戻し量を求めて前記制御
手段に与える演算手段とを設けて構成する。[Means for Solving the Problems] In order to achieve the above object, the present invention is configured as follows. That is, in addition to using a band-shaped recording paper in which a printable area and a dividing area are defined at regular intervals for each recording paper,
This recording paper has a structure in which the printable area and the delimited area can be optically distinguished, and a sensor for optical detection is provided in the recording paper supply path to the printing section, and the sensor is driven by a drive control signal. In a printer in which the recording paper can be fed out and pulled back by a recording paper feeding mechanism, when replacing the recording paper, the recording paper is set so that the leading edge of the recording paper is near the printing area position, and the recording paper is fed by a predetermined distance. a control means for controlling the recording paper feeding mechanism in the recording paper feeding direction, and upon receiving information on a recording paper pullback amount, controlling the recording paper pullback according to this information; and this feeding d:
l A holding means for holding the data of the L control amount and the output of the sensor as data, and determining the length of the partition area based on the data held by this holding means, and combining this determined information and the above-mentioned information. The control means determines the amount of feed required for a predetermined position on the leading edge of the area to be printed on the recording paper to come to the printing unit position from the relationship between the printing unit position and the distance between the sensor position, and issues the recording paper feeding command for cueing to the control unit. and calculation means for calculating the amount of pulling back of the recording paper necessary for locating the area to be printed located at the head of the recording paper after the cueing is completed, and supplying it to the control means.
[作 用]
このような構成において、記録紙を交換して前記印字部
位置近傍に記録紙先端が来るように記録紙をセットする
と、制御手段は前記記録紙送り機構を記録紙送り出し方
向に制御して記録紙を所定量、印字位置方向に送出し、
この間にセンサから得られるデータを保持手段に保持す
ると同時に記録紙送り量のデータを収集して保持手段に
保持させる。そして、演算手段はこの保持手段の保持し
たデータをもとに記録紙の印字可能領域と区切り領域の
長さを決定し、この決定1.た値と前記印字部位置−セ
ンサ位置間距離との関係から前記印字部位置に、前記記
録紙の印字すべき領域の先端側の所定位置が来るに要す
る送り毒を求め、頭出し用の記録紙送り出し指令として
前記制御手段に送り、頭出しを実施する。そして、頭出
し終了後に記録紙の先頭に位置する印字すべき領域が頭
出しされるに必要な記録紙引き戻し量を得て前記制御手
段に与え記録紙の引き戻しを行う。[Function] In such a configuration, when the recording paper is replaced and the recording paper is set so that the leading edge of the recording paper is near the printing section position, the control means controls the recording paper feeding mechanism in the recording paper feeding direction. feed the recording paper a predetermined amount in the direction of the print position,
During this time, the data obtained from the sensor is held in the holding means, and at the same time data on the amount of recording paper feeding is collected and held in the holding means. Then, the calculation means determines the printable area and the length of the delimiter area of the recording paper based on the data held by the holding means, and determines the length of the printable area and the separation area of the recording paper. From the relationship between the value and the distance between the printing part position and the sensor position, the feed force required for the leading end side of the area to be printed on the recording paper to come to the printing part position is determined, and a record for cueing is calculated. It is sent to the control means as a paper feed command to perform cueing. Then, after the cueing is completed, the amount of pulling back of the recording paper necessary to cue the area to be printed located at the head of the recording paper is obtained, and the amount is supplied to the control means to pull back the recording paper.
この結果、頭出しの際に印字位置を通り過ぎてしまった
記録紙先端側の印字すべき領域を印字位置に引き戻すこ
とができ、従って、記録紙としてのラベルやタグの用紙
交換時におけるラベルやタグの頭出しにあたって、ラベ
ルやタグの一枚の無駄をもなくすことができるようにな
る経済的なラベルプリンタを提供できるようになる。As a result, the area to be printed on the leading edge of the recording paper that has passed the printing position during cueing can be pulled back to the printing position. It becomes possible to provide an economical label printer that eliminates the waste of a single label or tag when starting the page.
[実施例]
以下、本発明の一実施例を図面を参照して説明する。第
1図に本発明によるプリンタ装置の基本構成をブロック
図で示す。図において、1はプリンタ装置としての制御
の中枢を担うCPU (プロセッサ)であり、このC
PU lはプログラムROM 2、キャラクタROM3
、バックアップRAM 4 、データバッファRAM
5と接続されており、データの処理や各種制御のための
指令等を実行する。そのためのプログラムは前記プログ
ラムROM 2に記憶されており、CPU 1はこのプ
ログラムROM 2に記憶されたプログラムを順次実行
してデータ処理や各種制御のための指令等を実行する。[Example] Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 shows a block diagram of the basic configuration of a printer device according to the present invention. In the figure, 1 is a CPU (processor) that plays a central role in controlling the printer device;
PU l is program ROM 2, character ROM 3
, backup RAM 4, data buffer RAM
5, and executes commands for data processing and various controls. Programs for this purpose are stored in the program ROM 2, and the CPU 1 sequentially executes the programs stored in the program ROM 2 to execute commands for data processing and various controls.
キャラクタROM 3は文字パターンである文字フォン
トのデータを格納したメモリであり、CPU 1を介し
て文字コードを受けた場合にその文字コード対応の文字
フォントデータを読出し、バス上に出力する構成としで
ある。バックアップRAM 4はバッテリバックアップ
されたスタティックRAMであり、電源が落ちた場合に
失われては困る情報等を格納したり、CPt11がプロ
グラム実行にあたって必要とするワーキングエリアやデ
ータエリア等に使用されるものである。また、データバ
ッファRA)I 5は入出力に当たって授受するデータ
を一時保持するためのバッファである。6はUART
(非同期式レシーノ)/トランスミッタ)であり、この
UART[iは外部とデータや指令の授受を行うための
送受信制御をするためのインタフェースであって、ホス
トコンピュータ(パーソナル・コンピュータ等)等に接
続される。7はフレームメモリであり、印字させるべき
内容をイメージデータとして保持するためのメモリであ
って、1画面分のメモリ容量を有している。8はモータ
ドライバであり、プリンタ装置の紙送りモータを駆動す
るドライバである。9はサーマルヘッドドライバであり
、印字させるべきデータに基づいてサーマルヘッドを制
御をするためのものである。]0は透過センサや反射セ
ンサの検出出力を取り込むためのインタフェースである
。The character ROM 3 is a memory that stores character font data, which is a character pattern, and is configured so that when a character code is received via the CPU 1, character font data corresponding to the character code is read out and output on the bus. be. Backup RAM 4 is a battery-backed static RAM that is used to store information that should not be lost in the event of a power failure, and as a working area and data area required by CPt11 to execute programs. It is. Further, the data buffer RA) I5 is a buffer for temporarily holding data exchanged during input/output. 6 is UART
(asynchronous receiver/transmitter), and this UART [i is an interface for controlling transmission and reception for exchanging data and commands with the outside, and is connected to a host computer (personal computer, etc.). Ru. A frame memory 7 is a memory for holding the content to be printed as image data, and has a memory capacity for one screen. Reference numeral 8 denotes a motor driver, which drives the paper feed motor of the printer device. A thermal head driver 9 is used to control the thermal head based on data to be printed. ]0 is an interface for taking in the detection output of the transmission sensor or reflection sensor.
このような構成の本装置は、印字したいラベルのレイア
ウトをホストコンピュータ側で行い、印字データとして
作成する。この印字データは品名、値段、量目、単価、
日イ」、商品コード等を示す文字情報やバーコード等で
ある。In this apparatus having such a configuration, the layout of the label to be printed is performed on the host computer side and created as print data. This printing data includes product name, price, quantity, unit price,
This includes character information, barcodes, etc. that indicate "Japanese", product codes, etc.
ホストコンピュータではオペレータがこのような印字デ
ータをラベル編集によりレイアウトしながら目的のもの
を作成する。そして、このデータをプリンタ側に送ると
、プリンタ側ではこのデータをLIART6を介して受
信し、CPU 1はこれを=旦データバッファRAM
5に格納してからそのデータをバックアップRAM
4に転送し、そのデータ内容に従ってCPU lは文字
等のフォントをキャラクタROM 3から読出し、且つ
、データの座標情報に従い、フレームメモリ7における
当該指定の位置に、データに付加された倍率でこの読出
しフォントの画像データを展開する。そして、イメージ
データとして記憶させる。In the host computer, an operator creates a desired item while laying out such print data by label editing. Then, when this data is sent to the printer side, the printer side receives this data via LIART6, and the CPU 1 stores it in the data buffer RAM.
5 and then back up the data to RAM
4, and according to the data contents, the CPU 1 reads the font of characters etc. from the character ROM 3, and according to the coordinate information of the data, reads out the font at the specified position in the frame memory 7 at the magnification added to the data. Expand the font image data. Then, it is stored as image data.
このようにしてフレームメモリ7にはホストコンピュー
タより与えられたラベルの印字データがイメージデータ
として展開され、格納されるので、次にこのイメージデ
ータをプリンタヘッドであるサーマルヘッドの主走査方
向(ライン型サーマルヘッドであれば、発熱素子の配列
方向であるライン方向)に対応したかたちで順に−ライ
ン分ずつ、読出し、サーマルヘッドドライバ9に与える
。これにより、サーマルヘッドドライバ9はサーマルヘ
ッドにイメージデータ対応のドライブ信号を与えるので
、記録紙には−ライン分のイメージが印字される。−ラ
イン分の印字が終わると次にCPU 1はモータドライ
バ8に−ライン分の紙送り指令を与えるので、モータド
ライバ8は紙送りモータに対して−ライン分の回転駆動
信号を与え、記録紙を一ライン分送る。次に2ライン目
のイメージデータを読出し、上述同様の制御を行う。こ
のような制御を繰り返すことによりイメージデータとし
ての印字内容が記録紙に画像のハードコピーとして印字
されることになる。In this way, the print data of the label given by the host computer is developed and stored in the frame memory 7 as image data, and this image data is then used in the main scanning direction (line type) of the thermal head, which is the printer head. In the case of a thermal head, the data is sequentially read by -line in a manner corresponding to the line direction (the direction in which the heat generating elements are arranged) and provided to the thermal head driver 9. As a result, the thermal head driver 9 gives a drive signal corresponding to the image data to the thermal head, so that an image corresponding to -line is printed on the recording paper. When printing for -line is completed, CPU 1 gives a paper feed command for -line to motor driver 8, so motor driver 8 gives a rotational drive signal for -line to the paper feed motor, and prints the recording paper. Send one line. Next, the image data of the second line is read out and the same control as described above is performed. By repeating such control, the print content as image data is printed on the recording paper as a hard copy of the image.
本装置においては、記録紙を入れ替える場合の頭出し制
御に特徴を有しているので、次にこの特徴部分を説明す
る。記録紙を入れ替える場合に、最初に記録紙の引き込
みと頭出しを行うが、そのために、頭出しの指令を与え
ると、図示しない紙送り機構が駆動して記録紙を印字位
置方向へ所定量、例えば、サーマルヘッドの位置に記録
紙先端が届くに必要な長さ分、送る。第5図に示したよ
−19−’
うに、記録紙の供給経路にある透過センサ75または反
射センサ76により、従来技術で説明した方法で第6図
のような記録紙の透過率や反射率を調べ、この反射率や
透過率の違いでギャップ部Gを検出する。所定量送って
次のギャップ部Gを検出した後、それぞれサーマルヘッ
ド71とセンサ75.76との間の距離を、一枚分のラ
ベルまたはタグの占有領域である占有領域長ρ (第6
図参照)で割った「余り」相当の分、余分に紙送りさせ
ると、この紙送り再開段階直前で既に印字位置に記録紙
の先端が到達あるいは通過していれば、二枚口のラベル
またはタグについて、頭出しが出来ることになる。This apparatus has a feature in the cue control when replacing the recording paper, so this feature will be explained next. When replacing the recording paper, the recording paper is first pulled in and the beginning of the recording paper is pulled in. For this purpose, when a command to start the recording paper is given, a paper feed mechanism (not shown) is driven to move the recording paper a predetermined amount in the direction of the printing position. For example, feed the recording paper by the length necessary for the leading edge of the recording paper to reach the position of the thermal head. As shown in FIG. 5 -19-', the transmittance and reflectance of the recording paper as shown in FIG. The gap G is detected based on the difference in reflectance and transmittance. After feeding a predetermined amount and detecting the next gap G, the distance between the thermal head 71 and the sensor 75, 76 is determined by the occupied area length ρ (6th
If the leading edge of the recording paper has already reached or passed the printing position immediately before this stage of restarting paper feeding, if the leading edge of the recording paper has already reached or passed the printing position, then You will be able to cue up the tags.
この時点では従来例と同様に、少なくとも一枚分のラベ
ルまたはタグがプラテン72の位置より排用側に繰り出
されているので、従来同様この部分は印字に供すること
ができないことになる。そこで、この頭出し操作に引き
続いて、一枚分のラベルまたはタグの占有領域である占
有領域長9分の長さたけ、記録紙を引き戻すようにプラ
テン72を逆回転制御し、これが終了した時点で頭出し
制御を終了し、印字待機状態(スタンバイ)に移る。At this point, as in the conventional example, at least one label or tag has been fed out from the position of the platen 72 toward the disposal side, and therefore, as in the conventional example, this portion cannot be used for printing. Therefore, following this cueing operation, the platen 72 is controlled to rotate in the reverse direction so as to pull back the recording paper by the length of 9 occupied areas, which is the occupied area of one label or tag, and when this is completed, The cueing control is ended with , and the printer enters the printing standby state (standby).
そして、印字のための信号を受けると印字動作に入る。Then, upon receiving a signal for printing, the printing operation begins.
これにより、記録紙を入れ替えた場合でも、頭出しによ
るラベルやタグの無駄を無くし、且つ、通常の印字時(
こおいて、ラベルやタグの正しい位置に印字を行うこと
ができる。This eliminates the waste of labels and tags caused by cueing even when the recording paper is replaced, and also eliminates the waste of labels and tags during normal printing (
At this time, printing can be performed at the correct position on the label or tag.
次にこの作用の詳細を説明する。Next, details of this effect will be explained.
第2図にプリンタの制御プログラムを機能ブロックで示
す。第2図に示すように、プリンタの制御系は描画に関
するコマンドを解読しまた、データを受は渡す系2]と
、印字・紙送りに対するコマンドを解読しまた、データ
を受は渡す系22と、これらの解読したコマンドを取り
込んでこのコマンドやデータの他のタスクへの受渡しを
行ったり、実行に当たっての各種管理を行ったりするモ
ニタ23と、このモニタ23からの情報により印字すべ
き描画のための処理と描画出力を発生する描画パッケー
ジ24と、モニタ23からの情報によりプリンタの紙送
りや印字制御を行うエンジン・タスク24とよりなる。FIG. 2 shows the printer control program in functional blocks. As shown in Figure 2, the printer's control system consists of two systems: a system 2 that decodes commands related to drawing, and a system 22 that transmits data, and a system 22 that decodes commands for printing and paper feeding, and a system 22 that transmits data. , a monitor 23 that takes in these decoded commands, passes these commands and data to other tasks, and performs various management during execution; The drawing package 24 generates processing and drawing output, and the engine task 24 performs paper feeding and printing control of the printer based on information from the monitor 23.
プリンタの有するキーボードや、アプリケーションまた
はホスト側のラベル編集印刷のためのアプリケーション
より、紙送りに関するコマンドを受けると系22はモニ
タ23にこれを与え、モニタ23はこのコマンドを自己
の管理するコマンド処理キューへ登録する。モニタ23
はコマンド処理キューより登録コマンドを読出し、エン
ジン・タスク24に与えるので、エンジン・タスク24
はその紙送りコマンドをサーマルヘッドおよびラベルを
紙送りさせるステッピングモータや、サーマルヘッドの
アップ・ダウンを行うためのへラドカムを動かすDCモ
ータ等の制御を行う。これにより、印字が行えることに
なる。When the system 22 receives a command related to paper feeding from the keyboard of the printer, an application, or an application for label editing and printing on the host side, the system 22 sends the command to the monitor 23, and the monitor 23 sends this command to the command processing queue managed by itself. Register to. monitor 23
reads the registered command from the command processing queue and gives it to the engine task 24, so the engine task 24
The paper feed command is used to control a stepping motor that feeds the thermal head and label, a DC motor that moves a helad cam for raising and lowering the thermal head, and the like. This allows printing to be performed.
第3図および第4図に今回の実施例である紙送りと頭出
し制御の処理フローを示す。これはタグ使用の場合で、
反射センサによる検出出力を用いての紙送り制御の例で
ある。また、ここでは精度を高めるため、タグを三枚分
、検出してその平均値を得、これをもとに制御する例を
示すか、もちろん、一枚分の検出によるデータをもとに
したり、4枚分以上の検出によるデータをもとにした制
御を行う方式としても良いことは云うまでもない。FIGS. 3 and 4 show processing flows for paper feed and cue control in this embodiment. This is when using tags,
This is an example of paper feeding control using detection output from a reflection sensor. Also, in order to improve accuracy, we will show an example of detecting three tags and obtaining the average value, and controlling based on this, or of course, using data from one tag detection. , it goes without saying that it is also possible to perform control based on data detected for four or more sheets.
このフローチャーi・に沿って、制御手法の流れを説明
すると、この制御においては、まず初めにセンサの出力
のA/D変換値を取り込む(Sl)。次に3個分(3枚
分)取り込みが終っているかを調べ(S2)、3個分終
了していなければ前記取り込んだA/D変換値をメモリ
に記憶する(S6)。そして、メインルーチンに戻る。The flow of the control method will be explained according to this flowchart i. In this control, first, the A/D converted value of the output of the sensor is taken in (Sl). Next, it is checked whether three images (three images) have been captured (S2), and if three images have not been captured, the captured A/D conversion values are stored in the memory (S6). Then return to the main routine.
メインルーチンでは記録紙交換時の紙送り制御の際には
所定時間毎に第3図のルーチンを実行して逐次A/D変
換値をメモリに記憶する(S6)。S2において、3個
分(3枚分)取り込みが終っていると判断したならば、
メモリに記憶されているA/D変換値を元に、一枚分の
タグ長ρ並びにギャップ部Gの長さを求め(3枚分のデ
ータから得られた平均値)、これをメモリにセットする
(S3)。次にベース・レベルすなわち、タグ一枚分の
印刷可能領域のデータをセットしたか否かを調べ(S4
)、セットされていないならばべ一ス・レベルの値(Ω
−X)を求めてセットする(S5)。そして、メインル
ーチンに戻る。S4において、セット済みであると判断
したならば、次にベース・レベルがA/D変換値の平均
値にa (aはベース・レベルとギャップ・レベルの差
の最小値)を加えた値より大きいかを調べ(S7〉、大
きければギャップ部の長さであるギャップ・レベルをメ
モリにセットする(S8)。そして、メインルーチンに
戻る。S7において、小さければベース・レベルがA/
D変換値の平均値より小さいか否かを調べ(S9)、大
きければ、ギャップ・レベルがセット済みか否かを調べ
る(SIO)。そして、セット済みならばベースψレベ
ルの値にa/2を加えて、これをスレッシュホールド値
とする。S9において、小さければ、また、SIOにお
いてセットされていなければ、オールクリアしく5L2
) 、紙送りと設定をやり直すかエラーとする。以上で
、スレッシュホールド値の設定が終る。In the main routine, the routine shown in FIG. 3 is executed at predetermined time intervals during paper feed control during recording paper exchange, and the A/D conversion values are sequentially stored in the memory (S6). In S2, if it is determined that 3 pieces (3 sheets) have been captured,
Based on the A/D conversion values stored in the memory, find the tag length ρ and the length of the gap G for one piece (average value obtained from data for three pieces) and set these in the memory. (S3). Next, it is checked whether the base level, that is, the printable area data for one tag has been set (S4
), if not set, the base level value (Ω
-X) and set it (S5). Then return to the main routine. In S4, if it is determined that the setting has been completed, then the base level is set from the average value of A/D conversion values plus a (a is the minimum value of the difference between the base level and the gap level). Check whether it is larger (S7), and if it is larger, set the gap level, which is the length of the gap part, in memory (S8). Then, return to the main routine. In S7, if it is smaller, the base level is A/
It is checked whether it is smaller than the average value of the D conversion values (S9), and if it is larger, it is checked whether the gap level has already been set (SIO). If it has already been set, a/2 is added to the value of the base ψ level, and this is set as the threshold value. If it is small in S9, and if it is not set in SIO, all clear 5L2
), retry the paper feed and settings or generate an error. This completes the threshold value setting.
次に頭出しの制御に入る。これは第4図のフローの如き
であり、これを参照して説明すると、まず初めにタグ長
データをメモリにセーブしく821)、次に紙送り用の
ステッピングモータを1ライン分回すように制御しく5
22)、次にスレッシュホールド値をセラI・する(9
23)。そして、次にスレッシュホールド値のセットが
終わっているか否かをチェックする(S24)。その結
果、セットが完了していなければ、S22に戻り、完了
していれば次に紙送り用のステッピングモータを1ライ
ン分、逆回転させる(S25)。次にセンサの出力を前
記セットしたスレッシュホールド値と比較し、センサ位
置での記録紙のギャップ部Gの有無を検知する(32G
)。その結果、ギヤツブ部G無しならば紙の有無を調べ
(S27)、紙有りならばS25に戻る。Next, cue control is started. This is similar to the flow shown in Figure 4, and to explain it with reference to this, first, the tag length data is saved in memory (821), and then the paper feeding stepping motor is controlled to rotate for one line. Shiku 5
22), then set the threshold value to Sera I (9
23). Then, it is checked whether the threshold value has been set (S24). As a result, if the setting is not completed, the process returns to S22, and if it is completed, then the paper feeding stepping motor is reversely rotated by one line (S25). Next, the output of the sensor is compared with the set threshold value, and the presence or absence of the gap G of the recording paper at the sensor position is detected (32G
). As a result, if there is no gear part G, the presence or absence of paper is checked (S27), and if there is paper, the process returns to S25.
S2[iにおいてギャップ有りであったとき、そして、
S27において紙なしてあったときは、次に828に入
る。そして、タグ長と逆回転させたステップ数を比較し
、ある許容範囲(この例では20ステツプ)外ならばエ
ラーとし、この時点て処理を終了する。When there is a gap in S2[i, and
If there is no paper in S27, then 828 is entered. Then, the tag length and the number of reversely rotated steps are compared, and if it is outside a certain allowable range (20 steps in this example), an error is determined and the process is terminated at this point.
これはアプリケーションからのタグ長と実際にセットさ
れたタグのタグ長とをチェックするためてある。従って
、828においては逆回転ステップ数に20を加えた数
がタグ長より大きいか否かを調べ(S28)、大きけれ
ば次に逆回転ステップ数より20を引いた数がタグ長よ
り小さいか否かを調べ(329) 、小さければサーマ
ルヘッドとセンサ間の距離を実際のタグ長で割った値の
余りを得て、この分、ステッピングモータを正回転させ
、頭出しを行う(830)。そして、メインルーチンに
戻る。This is to check the tag length from the application and the tag length of the tag actually set. Therefore, in 828, it is checked whether the number of reverse rotation steps plus 20 is greater than the tag length (S28), and if so, then whether or not the number of reverse rotation steps minus 20 is smaller than the tag length. If it is smaller, the remainder of the distance between the thermal head and the sensor divided by the actual tag length is obtained, and the stepping motor is rotated in the forward direction by this amount to perform cueing (830). Then return to the main routine.
828において、タグ長より小であったとき、および8
29においてタグ長より大であったときは処理を終了し
てメインルーチンに戻る(S31)。In 828, when it is less than the tag length, and 8
If the length is greater than the tag length in step 29, the process ends and returns to the main routine (S31).
このような手順で目的の機能を実現しているか、これを
わかり易く説明すると、まず、記録紙を装填するために
、記録紙の先端をプリンタの供給口に差し込み、頭出し
指令を与えると、プリンタの紙送り機構が回転駆動され
、サーマルヘッドの印字ライン位置・にこの記録紙を送
り込む。そして、反射センサの位置を紙が通るとき、該
センサにより検知される。反射センサの出力はセンサ・
インタフェース10を介してCPU 1に取り込まれる
。そして、CPU 1はこの反射センサの出力をRAM
4に格納し、同時に時間的な対応を持たせて紙送り駆
動用のモータであるステップモータのステップ数データ
を格納する。反射センサからの出力がタグ3枚分、収集
された段階で(これは、ギャップ部Gが3回検出された
否かで検知できる。但し、サーマルヘッドの印字ライン
位置−反射センサ位置間の距離がタグ基の3倍以上ある
ケースの場合)、1タグ分あたりのタグ基を、上記収集
したステップモータのステップ□数との関係で求める。To explain in an easy-to-understand way whether the desired function is achieved through these steps, first, to load recording paper, insert the leading edge of the recording paper into the printer's supply port, give a cue command, and the printer will load the recording paper. The paper feeding mechanism is driven to rotate and feeds this recording paper to the print line position of the thermal head. Then, when the paper passes the position of the reflection sensor, it is detected by the sensor. The output of the reflection sensor is
The data is taken into the CPU 1 via the interface 10. Then, CPU 1 stores the output of this reflection sensor in RAM.
4, and at the same time, data on the number of steps of a step motor, which is a motor for driving paper feed, is stored with temporal correspondence. At the stage when the output from the reflective sensor has been collected for 3 tags (this can be detected by whether or not the gap G has been detected 3 times. However, the distance between the print line position of the thermal head and the reflective sensor position) (in the case where the number of tag groups is three times or more than the number of tag groups), the tag group per tag is determined in relation to the number of steps of the step motor collected above.
すなわち、1タグ分あたりのタグ基を、ステップモータ
のステップ数対応に変換する。そして、これをメモリ(
RAM) 4にセーブする。次に従来と同様の手法でス
レッシュホールド値を決定する。スレッシュホールド値
が決定されたなら、次にタグ基のチェックを行うため、
ステッピングモータを逆回転させる。この時、逆回転し
たステップ数をメモリ(RAM) 4にセーブしてゆく
。逆回転させ、正回転の紙送りさせた時、算出したスレ
ッシュホールド値に従ってギャップ部を判断する。そし
て、ギヤツブ部、またはタグがないと判断された時、メ
モリヘセーブしであるタグ基と逆回転させたステップ数
を比較し、ある許容範囲(この例では20ステツプ)外
ならエラーとしてこの時点で処理を終了させる。これは
アプリケーションからのタグ基と実際、セットされたタ
グのタグ基とをチェックするためである。That is, the tag group per tag is converted into one corresponding to the number of steps of the step motor. And store this in memory (
RAM) Save to 4. Next, a threshold value is determined using a method similar to the conventional method. Once the threshold value has been determined, the next step is to check the tag group.
Rotate the stepping motor in the opposite direction. At this time, the number of reversely rotated steps is saved in memory (RAM) 4. When the paper is rotated in the reverse direction and the paper is fed in the forward direction, the gap portion is determined according to the calculated threshold value. When it is determined that there is no gear or tag, the number of reverse rotation steps is compared with the tag group saved in memory, and if it is outside a certain tolerance range (20 steps in this example), an error is determined at this point. Terminate the process. This is to check the tag base from the application and the tag base of the actually set tag.
エラー無しの場合、(ヘッド・センサ間の距離÷実際の
タグ基)の余り分、もう一度、ステッピングモータを正
回転させ、サーマル・ヘッドに対して頭出しを完了させ
る。頭出しが完了したならば、算出したタグ基と前記反
射センサ位置からサーマルヘッドまでの距離とのを用い
て一枚目のタグの先端がサーマルヘッドの印字ライン位
置に来るようにするに必要な記録紙の紙戻し距離、すな
わち、タグ一枚分の長さ相当の戻し量を得て、この分、
紙戻しするように制御すると、先頭のタグより印字に供
することができるようになる。If there is no error, the stepping motor is rotated forward again by the remainder of (distance between head and sensor ÷ actual tag base) to complete cueing with respect to the thermal head. Once the cueing is completed, use the calculated tag base and the distance from the reflective sensor position to the thermal head to find the necessary distance to bring the tip of the first tag to the print line position of the thermal head. Obtain the paper return distance of the recording paper, that is, the return amount equivalent to the length of one tag, and calculate this amount by
By controlling the paper to return, it becomes possible to print from the tag at the beginning.
ラベルの場合、透過センサを用いるが、センサの出力が
反射センサと異なるため(第7図参照)、スレッシュホ
ールド値の算出処理が逆になるだけで全体的な処理は変
わらない。以上の制御はCPU 1が制御プログラムを
実行することで実現する。In the case of labels, a transmission sensor is used, but since the output of the sensor is different from that of the reflection sensor (see FIG. 7), the overall processing remains the same except that the threshold value calculation process is reversed. The above control is realized by the CPU 1 executing a control program.
このように、記録紙毎に一定の間隔で印字可能領域と区
切り領域が規定された帯状の記録紙を使用すると共に、
この記録紙は印字可能領域と区切り領域が光学的に判別
可能な構成としてあり、印字部への前記記録紙供給経路
にはこの光学的検出のためのセンサを設け、駆動制御信
号により駆動される記録紙の送り機構により記録紙を送
り出し・引き戻し制御できるようにしたプリンタにおい
て、記録紙交換時に動作して少なくとも前記印字部位置
に記録紙先端が到達するに必要な長さ分、前記記録紙送
り機構を記録紙送り出し方向に制御すると共に記録紙引
き戻し量の情報を受けるとこの情報に従って記録紙引き
戻し制御をする制御手段と、この送り出し制御量のデー
タを保持すると共に前記センサの出力をデータとして保
持する手段と、この保持手段の保持したデータをもとに
印−29=
字可能領域と区切り領域の長さを求め、この求めた情報
と前記印字部位置−センサ位置間距離との関係から前記
印字部位置に印字可能領域先端側の所定位置が来るに要
する送り量を求め、頭出し用の記録紙送り出し指令とし
て前記制御手段に送り、頭出し終了後に少なくとも一つ
前の印字可能領域が頭出しされるに必要な記録紙引き戻
し量を求めて前記制御手段に与える演算手段とを設けて
構成したものである。そして、記録紙を交換すると、制
御手段は前記記録紙送り機構を記録紙送り出し方向に制
御して記録紙を少なくとも印字部位置到達量分、印字位
置方向に送出し、この間にセンサから得られるデータを
保持手段に保持すると同時に記録紙送り皿のデータを収
集して保持手段に保持させ、演算手段はこの保持手段の
保持したデータをもとに記録紙の印字可能領域と区切り
領域の長さを求め、この求めたデータと前記印字部位置
−センサ位置間距離との関係から前記印字部位置に印字
可能領域先端側の所定位置が来るに要する送り量を求め
、頭出し用の記録紙送り出し指令として前記制御手段に
送り、頭■しを実施し、そして、頭出し終了後に少なく
とも一つ前の印字可能領域が頭出しされるに必要な記録
紙引き戻し皿を得て前記制御手段に与え記録紙の引き戻
しを行うように制御するものである。In this way, in addition to using a band-shaped recording paper in which printable areas and separation areas are defined at regular intervals for each recording paper,
This recording paper has a structure in which the printable area and the delimited area can be optically distinguished, and a sensor for optical detection is provided in the recording paper supply path to the printing section, and the sensor is driven by a drive control signal. In a printer in which the recording paper can be controlled to feed out and pull back the recording paper using a recording paper feeding mechanism, when the recording paper is replaced, the recording paper is fed by at least the length necessary for the leading edge of the recording paper to reach the printing section position. a control means for controlling the mechanism in the recording paper feeding direction and controlling the recording paper pulling back according to the information when receiving information on the amount of paper pull back; and holding data on the feeding control amount and holding the output of the sensor as data. Based on the data held by this holding means, the lengths of the printable area and the separation area are calculated, and from the relationship between the calculated information and the distance between the printing part position and the sensor position, The amount of feed necessary for a predetermined position on the leading edge of the printable area to reach the printing unit position is determined, and is sent to the control means as a recording paper feeding command for cueing, and after cueing is completed, at least the previous printable area is at the top. The apparatus is constructed by providing a calculation means for determining the amount of pulling back of the recording paper necessary for ejecting the recording paper and applying it to the control means. Then, when the recording paper is replaced, the control means controls the recording paper feeding mechanism in the recording paper feeding direction to feed the recording paper in the printing position direction at least by the amount that the recording paper reaches the printing position, and during this time, the data obtained from the sensor is is held in the holding means, and at the same time, data on the recording paper feed tray is collected and held in the holding means, and the calculation means calculates the length of the printable area and separation area of the recording paper based on the data held by the holding means. From the relationship between the obtained data and the distance between the printing part position and the sensor position, the feed amount required for a predetermined position on the leading edge of the printable area to reach the printing part position is determined, and a recording paper feed command for cueing is issued. Then, after the cueing is completed, a recording paper pull-back tray necessary for at least one previous printable area to be cued is obtained, and the recording paper is sent to the control means to perform cueing. It is controlled so that the pullback is performed.
具体的には本装置は、記録紙を入れ替える場合の頭出し
制御において、最初に記録紙の送り出し制御と、送り出
し量のカウントを行い、この間に記録紙の供給経路にあ
る透過センサまたは反射センサにより、記録紙の透過率
や反射率を調べ、この反射率や透過率の違いでギャップ
部と印字可能領域とを検出し、これに基ついてラベルま
たはタグ一枚分の占める長さく占有領域長Ω ;ギャッ
プ部を含む)およびギャップ部の長さを演算し、印字位
置から上記センサまでの間の距離と、前記占有領域長ρ
との関係に基づき、記録紙における上記印字位置近隣の
ラベルまたはタグの先端位置が上記印字位置に来るに必
要な送り量を演算し、この送り量分、記録紙を送って、
頭出しし、その後、前記頭出し制御終了までに送った記
録紙送り出し量を元に、先頭の一枚目のラベルまたはタ
グの先端位置を上記印字位置戻すに必要な戻し量を求め
てこの分、記録紙の引き戻しを実施するようにしたもの
であるから、これにより、記録紙を入れ替えた場合でも
、頭出しによるラベルやタグの無駄を無くシ、且つ、通
常の印字時において、ラベルやタグの正しい位置に印字
を行うことができるようになる。Specifically, in the cueing control when replacing the recording paper, this device first controls the feeding of the recording paper and counts the amount of feeding, and during this time, a transmission sensor or a reflective sensor in the recording paper supply path performs control. , check the transmittance and reflectance of the recording paper, detect the gap and printable area based on the difference in reflectance and transmittance, and based on this, calculate the occupied area length Ω for one label or tag. ; including the gap) and the length of the gap, and calculate the distance from the printing position to the sensor and the occupied area length ρ.
Based on the relationship between
After cueing, based on the amount of recording paper fed until the end of the cueing control, calculate the return amount necessary to return the leading edge of the first label or tag to the above print position. Since the recording paper is pulled back, this eliminates the waste of labels and tags due to cueing even when the recording paper is replaced, and also eliminates the waste of labels and tags during normal printing. It becomes possible to print in the correct position.
従って、本ラベルプリンタによれば、ラベルやタグの用
紙交換時におけるラベルやタグの頭出しにあたって、ラ
ベルやタグの一枚の無駄をもなくすことができるもので
ある。Therefore, according to the present label printer, it is possible to eliminate one label or tag from being wasted when finding the beginning of the label or tag when replacing paper for labels or tags.
尚、本発明は上記し、且つ、図面に示す実施例に限定す
ることなく、その要旨を変更しない範囲内で適宜変形し
て実施し得るものである。It should be noted that the present invention is not limited to the embodiments described above and shown in the drawings, but can be implemented with appropriate modifications within the scope without changing the gist thereof.
[発明の効果]
以上、詳述したように本発明によれば、ラベルやタグの
用紙交換時におけるラベルやタグの頭出しにあたって、
ラベルやタグの一枚の無駄をもな(すことができ、従っ
て、経済的なラベルプリン夕を提供することかできる。[Effects of the Invention] As described in detail above, according to the present invention, when locating the beginning of a label or tag when replacing paper for the label or tag,
It is possible to eliminate the waste of one label or tag, and therefore, it is possible to provide an economical label printer.
第1図は本発明の一実施例を示すブロック構成図、第2
図は本装置の制御プログラムの機能構成を示すブロック
図、第3図および第4図は本発明装置の作用を説明する
ためのフローチャー1・、第5図はラベルプリンタにお
ける印字機構部の一般的な構成例を示す概略図、第6図
はラベルプリンタにて使用される記録紙の例を示す図、
第7図はラベルプリンタにおけるラベルやタグの一般的
な印字領域部やギャップ部の検出原理を説明するための
センサ出力関係を示す図である。
1・・・CPU (プロセッサ)、■・・・プログラ
ムROM、8・・・キャラクタI?OM、4・・・RA
M 、 7・・フレームメモリ、8・・・モータドライ
バ、9・・サーマルヘッドドライバ、10−・・インタ
フェース、71・・・サーマルヘッド、75・・・透過
センサ、76・・反射センサ、81・・・ラベル用の記
録紙、82・・・台紙部、83・・・ラベル、91タグ
用の記録紙、92 ブラックマーカ、93・・・切欠
き。
第7図FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure is a block diagram showing the functional configuration of the control program of this device, FIGS. 3 and 4 are flowcharts 1 and 4 for explaining the operation of the device of the present invention, and FIG. 5 is a general diagram of the printing mechanism in a label printer. 6 is a schematic diagram showing an example of a configuration, and FIG. 6 is a diagram showing an example of recording paper used in a label printer.
FIG. 7 is a diagram showing sensor output relationships for explaining the principle of detecting general printing areas and gaps of labels and tags in a label printer. 1...CPU (processor), ■...Program ROM, 8...Character I? OM, 4...RA
M, 7...Frame memory, 8...Motor driver, 9...Thermal head driver, 10-...Interface, 71...Thermal head, 75...Transmissive sensor, 76...Reflective sensor, 81... ...recording paper for labels, 82...mounting paper portion, 83...labels, 91 recording paper for tags, 92 black marker, 93...notches. Figure 7
Claims (1)
用すると共に、この記録紙は区切り領域が光学的に判別
可能な構成としてあり、印字部への前記記録紙供給経路
にはこの光学的検出のためのセンサを設け、駆動制御信
号により駆動される記録紙の送り機構により記録紙を送
り出し・引き戻し制御できるようにしたプリンタにおい
て、記録紙交換時、前記印字部位置近傍に記録紙先端が
来るように記録紙をセットした記録紙を所定量送るべく
前記記録紙送り機構を記録紙送り出し方向に制御すると
共に記録紙引き戻し量の情報を受けるとこの情報に従っ
て記録紙引き戻し制御をする制御手段と、 この送り出し制御量のデータを保持すると共に前記セン
サの出力をデータとして保持する保持手段と、 この保持手段の保持したデータをもとに区切り領域の長
さを決定し、この決定した情報と前記印字部位置−セン
サ位置間距離との関係から前記印字部位置に記録紙の印
字すべき領域先端側の所定位置が来るに要する送り量を
求め、頭出し用の記録紙送り出し指令として前記制御手
段に送り、頭出し終了後に記録紙の先頭に位置する印字
すべき領域が頭出しされるに必要な記録紙引き戻し量を
求めて前記制御手段に与える演算手段とを設け、記録紙
の頭出しの後、引き戻しを行って記録紙の無駄をなくす
ようにしたことを特徴とするラベルプリンタ。[Scope of Claims] A band-shaped recording paper is used in which divided areas are defined at regular intervals, and the recording paper is configured so that the divided areas can be optically determined, and the recording paper is supplied to the printing section. In a printer in which a sensor for this optical detection is installed in the path and the recording paper can be fed out and pulled back by a recording paper feeding mechanism driven by a drive control signal, when the recording paper is replaced, the position of the printing part is The recording paper feeding mechanism is controlled in the recording paper feeding direction to feed the recording paper by a predetermined amount with the recording paper set so that the leading edge of the recording paper is located nearby, and upon receiving information on the amount of recording paper pulled back, the recording paper is pulled back according to this information. a control means for controlling; a holding means for holding the data of the feed control amount and the output of the sensor as data; a length of the divided area is determined based on the data held by the holding means; From the relationship between this determined information and the distance between the printing part position and the sensor position, the feed amount required for the recording paper to reach a predetermined position on the leading edge of the area to be printed on the printing part is determined, and calculating means for sending the recording paper as a feed command to the control means, determining the recording paper pullback amount necessary for the area to be printed located at the beginning of the recording paper to be indexed after the completion of cueing, and supplying the calculated amount to the control means; A label printer characterized in that after the beginning of the recording paper, it is pulled back to eliminate waste of the recording paper.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1130720A JPH085225B2 (en) | 1989-05-24 | 1989-05-24 | Label printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1130720A JPH085225B2 (en) | 1989-05-24 | 1989-05-24 | Label printer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02307765A true JPH02307765A (en) | 1990-12-20 |
| JPH085225B2 JPH085225B2 (en) | 1996-01-24 |
Family
ID=15041017
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1130720A Expired - Fee Related JPH085225B2 (en) | 1989-05-24 | 1989-05-24 | Label printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH085225B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0622215A3 (en) * | 1993-04-30 | 1995-05-24 | Tokyo Electric Co Ltd | Line, thermal printer. |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5795956U (en) * | 1981-11-12 | 1982-06-12 | ||
| JPS62146661A (en) * | 1985-12-20 | 1987-06-30 | Tokyo Electric Co Ltd | label printer |
| JPS6312439A (en) * | 1986-06-30 | 1988-01-19 | 株式会社 寺岡精工 | Label printer |
| JPS63242667A (en) * | 1987-03-31 | 1988-10-07 | Tokyo Electric Co Ltd | How to locate the first label on a label printer |
-
1989
- 1989-05-24 JP JP1130720A patent/JPH085225B2/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5795956U (en) * | 1981-11-12 | 1982-06-12 | ||
| JPS62146661A (en) * | 1985-12-20 | 1987-06-30 | Tokyo Electric Co Ltd | label printer |
| JPS6312439A (en) * | 1986-06-30 | 1988-01-19 | 株式会社 寺岡精工 | Label printer |
| JPS63242667A (en) * | 1987-03-31 | 1988-10-07 | Tokyo Electric Co Ltd | How to locate the first label on a label printer |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0622215A3 (en) * | 1993-04-30 | 1995-05-24 | Tokyo Electric Co Ltd | Line, thermal printer. |
| US5923357A (en) * | 1993-04-30 | 1999-07-13 | Kabushiki Kaisha Tec | Line thermal printer |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH085225B2 (en) | 1996-01-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2633726B2 (en) | Barcode label printer | |
| EP3299175B1 (en) | Printer, and printer control method | |
| US20150213348A1 (en) | Printer and Printer Control Method | |
| JP4799050B2 (en) | Printing device | |
| JP2000141775A (en) | Label paper and label printer | |
| CN116945773B (en) | Receipt printer and printing method | |
| JP4084977B2 (en) | Recording device | |
| US9757958B2 (en) | Control method of a printing device, and printing device | |
| JP3357119B2 (en) | Label printing method in label printer | |
| JPH02307765A (en) | Label printer | |
| JPH07252021A (en) | Sheet transport device | |
| JPH09109425A (en) | Printing device and recording paper used in this printing device | |
| JP2004058337A (en) | Printer | |
| US8724148B2 (en) | Recording device that can connect to a control device, control method for a recording device that can connect to a control device, and storage medium that stores a program for controlling parts of a recording device that can connect to a control device | |
| JPH05116407A (en) | Label printer | |
| JP2008149650A (en) | Printer | |
| JP2001009934A (en) | Label manufacturing apparatus and label manufacturing method | |
| JP2899456B2 (en) | Label printer | |
| JPH07309039A (en) | Printer | |
| JPH06227066A (en) | Label printer | |
| JP4113050B2 (en) | Printing apparatus and control method thereof | |
| JP2008018584A (en) | Line printer and printing control method for line printer | |
| JP2001335016A (en) | Label printer | |
| JPH0761698A (en) | Sheet carrying device | |
| JP2005001134A (en) | Printing medium and printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |