JPH11342661A - Label printer - Google Patents

Label printer

Info

Publication number
JPH11342661A
JPH11342661A JP15290698A JP15290698A JPH11342661A JP H11342661 A JPH11342661 A JP H11342661A JP 15290698 A JP15290698 A JP 15290698A JP 15290698 A JP15290698 A JP 15290698A JP H11342661 A JPH11342661 A JP H11342661A
Authority
JP
Japan
Prior art keywords
ribbon
diameter
ink
motor
core
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.)
Pending
Application number
JP15290698A
Other languages
Japanese (ja)
Inventor
Akio Katsumata
章夫 勝又
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 JP15290698A priority Critical patent/JPH11342661A/en
Publication of JPH11342661A publication Critical patent/JPH11342661A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To simplify a table structure for determining the ribbon diameter by determining the outside diameter of an ink ribbon from the count of steps being taken during rotation of a rotary encoder for detecting the rotational angle of a ribbon core and then regulating the driving voltage of a DC motor for rotating the ribbon core depending on the outside diameter thus determined. SOLUTION: A motor driver 5 connected through the bus line 2 of a CPU 1 is connected with a stepping motor 10 and a DC motor 11 for carrying a label sheet and an ink ribbon. An I/O 9 is connected with a rotary encoder 15 for detecting the rotational angle of a ribbon core and a counter 16 for counting the number of steps of the stepping motor 10. Ribbon diameter is detected by counting the number of steps required for driving the stepping motor 10 forward to turn the rotary encoder 15 by a specified angle. Driving voltage of the DC motor 11 for turning the ribbon core is regulated depending on the ribbon diameter thus detected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ラベル用紙にイン
クリボンを用いて所定事項を印字するラベルプリンタに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a label printer which prints predetermined items on a label sheet using an ink ribbon.

【0002】[0002]

【従来の技術】従来、ラベルプリンタには、サーマルヘ
ッドを備え、インクリボンのインクをラベル用紙に転写
させてラベルに所定事項を印字するものがある。このよ
うなラベルプリンタでは、インクリボンもラベル用紙と
一緒に搬送している。
2. Description of the Related Art Conventionally, some label printers have a thermal head, and print predetermined items on a label by transferring ink of an ink ribbon to label paper. In such a label printer, the ink ribbon is transported together with the label paper.

【0003】インクリボンは、リボンコアで両端から巻
き取られた状態で支持されており、ラベル用紙の移動に
従って移動すると、移動分がリボンコアで巻き取られ
る。リボンコアは、DCモータから与えられるトルクで
駆動する。DCモータは、駆動電圧の切り替えによって
トルクが制御される。
[0003] The ink ribbon is supported in a state of being wound up from both ends by a ribbon core. When the ink ribbon moves in accordance with the movement of the label paper, the moved amount is wound up by the ribbon core. The ribbon core is driven by a torque given from a DC motor. The torque of the DC motor is controlled by switching the drive voltage.

【0004】ここで、良好な印字精度を得るためには、
インクリボンのテンションは略一定に保たれていなけれ
ばならない。仮に、DCモータの駆動電圧が一定ならば
トルクが一定となるので、リボンコアに巻回されたイン
クリボンの径が変わると、インクリボンのテンションが
変動してしまう。そこで、このようなラベルプリンタで
は、インクリボンの径の変化に従ってDCモータの駆動
電圧を切り替えてトルクを制御することによって、イン
クリボンのテンションを略一定にするようにしているも
のがある。
Here, in order to obtain good printing accuracy,
The tension of the ink ribbon must be kept substantially constant. If the drive voltage of the DC motor is constant, the torque will be constant, so if the diameter of the ink ribbon wound around the ribbon core changes, the tension of the ink ribbon will change. Therefore, in some of such label printers, the tension of the ink ribbon is made substantially constant by controlling the torque by switching the drive voltage of the DC motor in accordance with the change in the diameter of the ink ribbon.

【0005】リボン径の検出は、従来は、リボンコアが
所定角度回転するのに要した時間に送り速度をかけるこ
とによってリボンコアの所定角度に相当するインクリボ
ンの長さを算出し、このインクリボンの長さからリボン
径を算出する。
Conventionally, the ribbon diameter is detected by calculating the length of the ink ribbon corresponding to the predetermined angle of the ribbon core by multiplying the feed speed by the time required for the ribbon core to rotate by a predetermined angle, and calculating the length of the ink ribbon. Calculate the ribbon diameter from the length.

【0006】また、送り速度は、印字速度によって変動
し、印字速度は印字率などに左右される。
[0006] The feed speed varies depending on the printing speed, and the printing speed depends on the printing ratio and the like.

【0007】リボンコアの所定角度当たりの回転所要時
間の割り出しは、リボンコアに取り付けられたロータリ
ーエンコーダを用いて行われる。従来は、ロータリーエ
ンコーダが有するスリット板における光学センサ出力信
号がHになる区間とその隣りのLになる区間とを合わせ
て一周期とし、リボンコアがスリット板一周期分回転す
るのにかかった時間を求め、その時間に相当するリボン
の長さからリボン径を求めている。
[0007] The rotation required time per predetermined angle of the ribbon core is determined by using a rotary encoder attached to the ribbon core. Conventionally, a period in which the optical sensor output signal in the slit plate of the rotary encoder has an H level and a period in which the optical sensor output signal has an L level next thereto constitute one cycle, and the time taken for the ribbon core to rotate for one cycle of the slit plate is defined as Then, the ribbon diameter is determined from the length of the ribbon corresponding to that time.

【0008】リボン径検出ルーチンは、単位時間ごとに
割込んで光学センサの出力信号を参照するので、スリッ
ト板一周期分の回転にかかった時間は、リボン径検出ル
ーチンの割込み回数から得ている。
Since the ribbon diameter detection routine interrupts every unit time and refers to the output signal of the optical sensor, the time required for rotation for one cycle of the slit plate is obtained from the number of interruptions of the ribbon diameter detection routine. .

【0009】[0009]

【発明が解決しようとする課題】従来のように、リボン
コアの回転所要時間からリボン径を割り出すのでは、印
字速度により変動する送り速度に対応するために、割込
み回数からリボン径を求めるためのテーブルを印字速度
毎に持たなければならず、テーブル構造が複雑になる。
As in the prior art, when the ribbon diameter is determined from the required rotation time of the ribbon core, a table for obtaining the ribbon diameter from the number of interruptions is required to cope with the feed speed that varies depending on the printing speed. Must be provided for each printing speed, which complicates the table structure.

【0010】また、ラベルプリンタに用いられるラベル
ロールには、ラベル用紙から次のラベル用紙までの間隔
が、印字ヘッドから発行口までの距離よりも短いものが
ある。このようなラベルロールの場合、印字済みのラベ
ル用紙まで発行して新たに印字を開始する際、未印字の
ラベル用紙は、サーマルヘッドを通り過ぎて用紙搬送方
向下流側に位置しているので、未印字のラベル用紙を適
正位置に位置させるために、ラベルロールがバックフィ
ードされる。
[0010] Some label rolls used in label printers have an interval from a label sheet to the next label sheet shorter than a distance from a print head to an issuing port. In the case of such a label roll, when printing is performed up to the printed label paper and a new printing is started, the unprinted label paper passes through the thermal head and is located downstream in the paper transport direction. The label roll is back-fed to position the printed label paper in the proper position.

【0011】このため、仮に、バックフィード中にもリ
ボン径検出ルーチンを割り込ませてロータリーエンコー
ダからの光学センサ出力信号を取り込むと、スリット板
一周期分の回転にかかる時間が誤認識されるので、従
来、リボン径の検出は、ラベルロールが正方向に送られ
ているときにのみ行い、戻されているときには行わな
い。
For this reason, if the ribbon diameter detection routine is interrupted even during the back feed, and the optical sensor output signal from the rotary encoder is taken in, the time required for one rotation of the slit plate is erroneously recognized. Conventionally, the detection of the ribbon diameter is performed only when the label roll is fed in the forward direction, and not when the label roll is returned.

【0012】リボン径が大きかったりラベル用紙の印字
枚数が少なかったりしたときには、スリット板の一周期
分の正方向送りが連続しない場合がある。このような場
合には、リボン径検出ルーチンによる光学センサ出力信
号もスリット板一周期分得られないので、リボン径を検
出することができないため、リボンコアのトルクを適正
に制御できないという不都合がある。
When the ribbon diameter is large or the number of labels printed is small, the forward feed for one cycle of the slit plate may not be continuous. In such a case, the output signal of the optical sensor by the ribbon diameter detection routine cannot be obtained for one cycle of the slit plate, so that the ribbon diameter cannot be detected, so that the torque of the ribbon core cannot be properly controlled.

【0013】本発明は、リボン径を求めるためのテーブ
ル構造を簡単にすることを目的とする。
An object of the present invention is to simplify a table structure for obtaining a ribbon diameter.

【0014】また、本発明は、ラベル用紙の正方向送り
が連続しない場合でもリボン径の検出が可能なラベルプ
リンタを得ることを目的とする。
It is another object of the present invention to provide a label printer capable of detecting a ribbon diameter even when label paper is not continuously fed in the forward direction.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明のラ
ベルプリンタは、インクリボンのインクを加熱して転写
させることによってラベル用紙に所定事項を印字するサ
ーマルヘッドと、前記ラベル用紙及び前記インクリボン
を搬送する駆動力を発生するステッピングモータと、前
記インクリボンを巻き取るリボンコアと、前記リボンコ
アを回転させる駆動力を発生するDCモータと、前記リ
ボンコアの回転角を検出するロータリーエンコーダと、
前記ステッピングモータのステップ数をカウントするス
テップ数カウンタと、前記ロータリーエンコーダが所定
角度回転する間の前記ステップ数カウンタのカウント値
から前記リボンコアに巻き取られた前記インクリボンの
外径を決定するリボン径決定手段と、前記リボン径決定
手段が決定したリボン径に応じて前記DCモータの駆動
電圧を調節する電圧調節手段とを備える。
According to a first aspect of the present invention, there is provided a label printer, comprising: a thermal head for printing predetermined items on a label sheet by heating and transferring ink on an ink ribbon; A stepping motor for generating a driving force for transporting the ribbon, a ribbon core for winding the ink ribbon, a DC motor for generating a driving force for rotating the ribbon core, and a rotary encoder for detecting a rotation angle of the ribbon core;
A step number counter for counting the number of steps of the stepping motor, and a ribbon diameter for determining an outer diameter of the ink ribbon wound on the ribbon core from a count value of the step number counter while the rotary encoder rotates by a predetermined angle. Determining means; and voltage adjusting means for adjusting the drive voltage of the DC motor according to the ribbon diameter determined by the ribbon diameter determining means.

【0016】したがって、ロータリーエンコーダを所定
角度回転させるだけのステッピングモータの正転駆動に
要するステップ数をカウントすることによりリボン径を
検出する。1ステップで送られるラベル用紙及びインク
リボンの長さは印字速度に拘らず一定なので、所定角度
分のステップ数が判れば、所定角度分のインクリボンの
長さが判り、リボン径が判る。
Accordingly, the ribbon diameter is detected by counting the number of steps required for the forward rotation drive of the stepping motor for rotating the rotary encoder by a predetermined angle. Since the lengths of the label paper and the ink ribbon sent in one step are constant irrespective of the printing speed, if the number of steps for a predetermined angle is known, the length of the ink ribbon for a predetermined angle is known, and the ribbon diameter is known.

【0017】請求項2記載の発明のラベルプリンタは、
インクリボンのインクを加熱して転写させることによっ
てラベル用紙に所定事項を印字するサーマルヘッドと、
前記ラベル用紙及び前記インクリボンを搬送する駆動力
を発生するステッピングモータと、前記インクリボンを
巻き取るリボンコアと、前記リボンコアを回転させる駆
動力を発生するDCモータと、前記リボンコアの回転角
を検出するロータリーエンコーダと、前記ステッピング
モータのステップ数を前記ステッピングモータの正転時
は加算し反転時は減算してカウントするステップ数カウ
ンタと、前記ロータリーエンコーダが所定角度回転する
間の前記ステップ数カウンタのカウント値から前記リボ
ンコアに巻き取られた前記インクリボンの外径を決定す
るリボン径決定手段と、前記リボン径決定手段が決定し
たリボン径に応じて前記DCモータの駆動電圧を調節す
る電圧調節手段とを備える。
According to a second aspect of the present invention, there is provided a label printer.
A thermal head for printing predetermined items on label paper by heating and transferring the ink of the ink ribbon,
A stepping motor for generating a driving force for transporting the label paper and the ink ribbon; a ribbon core for winding the ink ribbon; a DC motor for generating a driving force for rotating the ribbon core; and detecting a rotation angle of the ribbon core. A rotary encoder, a step number counter that counts the number of steps of the stepping motor by incrementing the number of steps when the stepping motor rotates forward and subtracting the number of steps when reversing the number of steps from the stepping motor; Ribbon diameter determining means for determining an outer diameter of the ink ribbon wound on the ribbon core from a value, and voltage adjusting means for adjusting a drive voltage of the DC motor according to the ribbon diameter determined by the ribbon diameter determining means. Is provided.

【0018】したがって、ロータリーエンコーダを所定
角度回転させるだけのステッピングモータの正転駆動に
要するステップ数をカウントすることによりリボン径を
検出する。1ステップで送られるラベル用紙及びインク
リボンの長さは印字速度に拘らず一定なので、所定角度
分のステップ数が判れば、所定角度分のインクリボンの
長さが判り、リボン径が判る。また、本請求項の発明に
よれば、ステッピングモータの正転駆動がロータリーエ
ンコーダを所定角度回転させるだけ連続せず、所定角度
正転する間に反転が混じっていても、反転分のステップ
数を除くことができ、リボン径を検出できる。
Therefore, the ribbon diameter is detected by counting the number of steps required for the normal rotation drive of the stepping motor for rotating the rotary encoder by a predetermined angle. Since the lengths of the label paper and the ink ribbon sent in one step are constant irrespective of the printing speed, if the number of steps for a predetermined angle is known, the length of the ink ribbon for a predetermined angle is known, and the ribbon diameter is known. According to the invention of this claim, the forward rotation of the stepping motor is not continuous only by rotating the rotary encoder by a predetermined angle, and even if reversal is mixed during the forward rotation of the predetermined angle, the number of steps for the reversal is reduced. It can be removed and the ribbon diameter can be detected.

【0019】[0019]

【発明の実施の形態】本発明のラベルプリンタの実施の
一形態について、図1〜図7に基づいて説明する。図1
は、本実施の形態のラベルプリンタの制御系を示すブロ
ック図である。図1に示すように、各種の演算処理を実
行して各部を集中的に制御するCPU1には、バスライ
ン2を介して、ROM3,RAM4,モータドライバ
5,ヘッドドライバ6,通信I/F7,表示コントロー
ラ8,I/O9が接続されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of a label printer according to the present invention will be described with reference to FIGS. FIG.
3 is a block diagram illustrating a control system of the label printer according to the present embodiment. As shown in FIG. 1, a CPU 1 that executes various arithmetic processes and controls each unit intensively has a ROM 3, a RAM 4, a motor driver 5, a head driver 6, a communication I / F 7, The display controller 8 and the I / O 9 are connected.

【0020】ROM3は、ラベルプリンタの動作プログ
ラムを格納する媒体であり、CPU1は、この動作プロ
グラムに従った制御を行う。RAM4は、各種の可変情
報を一時的に格納するほか、一部領域が印字バッファや
画像メモリとして、或いは、各種のカウンタ領域として
利用されたりする。
The ROM 3 is a medium for storing an operation program of the label printer, and the CPU 1 performs control according to the operation program. The RAM 4 temporarily stores various variable information, and a part of the area is used as a print buffer or an image memory, or as various counter areas.

【0021】そして、モータドライバ5にはラベル用紙
及びインクリボンを搬送するステッピングモータ10と
DCモータ11とが、ヘッドドライバ6にはサーマルヘ
ッド12が、表示コントローラ8には表示器13が、I
/O9には各種センサ14及びロータリーエンコーダ1
5が、それぞれ接続されている。
The motor driver 5 has a stepping motor 10 and a DC motor 11 for transporting label paper and ink ribbon, the head driver 6 has a thermal head 12, the display controller 8 has a display 13, and
/ O9 has various sensors 14 and rotary encoder 1
5 are connected to each other.

【0022】さらに、本実施の形態では、ステッピング
モータ10のステップ数をカウントするステップ数カウ
ンタが設けられている。ステップ数カウンタとしては、
RAM4の所定領域がカウンタ領域として用いられる。
或いは、図1に仮想線で示すハードウエア構成のステッ
プ数カウンタ16がI/O9に接続されているのであっ
てもよい。
Further, in this embodiment, a step number counter for counting the number of steps of the stepping motor 10 is provided. As a step number counter,
A predetermined area of the RAM 4 is used as a counter area.
Alternatively, a step number counter 16 having a hardware configuration shown by a virtual line in FIG. 1 may be connected to the I / O 9.

【0023】ロータリーエンコーダ15は、インクリボ
ンを巻き取るリボンコア(図示せず)に取り付けられて
おり、スリット板17(図2参照)と光センサ18(図
2参照)とからなる。光センサ18の出力信号は、I/
O9を介してCPU1に伝達される。そして、光センサ
出力信号の状態変化から通過したスリットをカウントす
るスリットカウンタが設けられており、スリットカウン
タとしては、RAM4の所定領域がカウンタ領域として
用いられる。或いは、図1に仮想線で示すハードウエア
構成のスリットカウンタ19がI/O9に接続されてい
るのであってもよい。
The rotary encoder 15 is attached to a ribbon core (not shown) for winding the ink ribbon, and includes a slit plate 17 (see FIG. 2) and an optical sensor 18 (see FIG. 2). The output signal of the optical sensor 18 is I /
It is transmitted to the CPU 1 via O9. A slit counter for counting the number of slits that have passed from the change in the state of the optical sensor output signal is provided. As the slit counter, a predetermined area of the RAM 4 is used as a counter area. Alternatively, a slit counter 19 having a hardware configuration shown by a virtual line in FIG. 1 may be connected to the I / O 9.

【0024】図2は、スリット板17に対する光センサ
18の移動軌跡の一例を示す模式図である。図2に示す
例では、光センサ18は、スリットである領域ア内のス
タート位置Sから回転開始する。光センサ出力信号は、
領域アと領域イとの間の境界aで、HからL或いはLか
らHに入れ替わる。同様に、領域イと領域ウとの間の境
界bで、領域ウと領域エとの間の境界cで、光センサ出
力信号が入れ替わる。また、図2に示す例の場合、スリ
ット板17の一周期は、スリット外である領域イとスリ
ットである領域ウとを合わせた境界aから境界cまでの
区間である。
FIG. 2 is a schematic diagram showing an example of the locus of movement of the optical sensor 18 with respect to the slit plate 17. In the example shown in FIG. 2, the optical sensor 18 starts rotating from a start position S in a region A which is a slit. The optical sensor output signal is
At the boundary a between the area a and the area a, H changes to L or L changes to H. Similarly, the output signal of the optical sensor is switched at the boundary b between the region a and the region c and at the boundary c between the region c and the region d. Further, in the case of the example shown in FIG. 2, one cycle of the slit plate 17 is a section from the boundary a to the boundary c in which the area A outside the slit and the area C which is the slit are combined.

【0025】図3は、光センサ出力信号に回転開始後初
めて状態変化が現われたとき行われるイニシャルのフロ
ーチャートである。まず、ステップ数カウンタをリセッ
トし(ステップS1)、次にスリットカウンタをリセッ
トし(ステップS2)、そして、回転開始後初めての状
態変化後の光センサ出力信号を「前回状態」としてセー
ブしておく(スリットS3)。
FIG. 3 is a flowchart of an initial operation performed when a state change appears in the optical sensor output signal for the first time after the start of rotation. First, the step number counter is reset (step S1), then the slit counter is reset (step S2), and the optical sensor output signal after the first state change after the start of rotation is saved as the "previous state". (Slit S3).

【0026】図4は、印字割込みルーチンのフローチャ
ートである。まず、ステッピングモータ10が作動中で
あるかどうかを判断し(ステップS11)、作動中であ
れば(ステップS11のY)ステップS12へ進む。そ
して、ステッピングモータ10の回転方向を判断し(ス
テップS12)、正転であれば(ステップS12のY)
ステップS13へ進み、ステップ数カウント値に1を加
算する(ステップS13)。また、反転であれば(ステ
ップS12のN)ステップS14へ進み、ステップ数カ
ウント値から1を減算する(ステップS14)。
FIG. 4 is a flowchart of a print interruption routine. First, it is determined whether or not the stepping motor 10 is operating (step S11). If it is operating (Y in step S11), the process proceeds to step S12. Then, the rotation direction of the stepping motor 10 is determined (step S12), and if the rotation is forward (Y in step S12).
Proceeding to step S13, 1 is added to the step number count value (step S13). If it is inverted (N in step S12), the process proceeds to step S14, and 1 is subtracted from the step count value (step S14).

【0027】図5は、リボン径検出ルーチンのフローチ
ャートである。リボン径検出ルーチンは、5msec毎に割
り込む。まず、光センサ18の出力信号をチェックし
(ステップS21)、現在の状態とセーブされた「前回
状態」とを比較する(ステップS22)。
FIG. 5 is a flowchart of a ribbon diameter detection routine. The ribbon diameter detection routine interrupts every 5 msec. First, the output signal of the optical sensor 18 is checked (step S21), and the current state is compared with the saved "previous state" (step S22).

【0028】光センサ出力信号の現在の状態と「前回状
態」とが同じであれば(ステップS22のN)、まだ境
界を通過していないので、ステップS32へ移り、現在
の状態を「前回状態」として(ステップS32)セーブ
して、割込みを終了する。
If the current state of the optical sensor output signal is the same as the "previous state" (N in step S22), since the boundary has not been passed yet, the process proceeds to step S32, and the current state is changed to the "previous state". (Step S32), and the interrupt is terminated.

【0029】また、現在状態と前回状態とが異なってい
れば(ステップS22のY)、境界を通過したことを示
す。この場合には、ステッピングモータ10の回転方向
を判断して(ステップS23)、正転であれば(ステッ
プS23のY)スリットカウントに1を加算し(ステッ
プS24)、また、反転であれば(ステップS23の
N)スリットカウントから1を減算する(ステップS2
5)。
If the current state is different from the previous state (Y in step S22), it indicates that the vehicle has passed the boundary. In this case, the rotation direction of the stepping motor 10 is determined (step S23). If the rotation is normal (Y in step S23), 1 is added to the slit count (step S24), and if the rotation is reversed (step S24). N in step S23: subtract 1 from the slit count (step S2)
5).

【0030】続いて、スリットカウントの合計が2にな
ったかどうかを判断し(ステップS26)、まだ2にな
っていなければ(ステップS26のN)ステップS32
へ移り、光センサ出力信号の現在の状態を「前回状態」
として(ステップS32)セーブして、割込みを終了す
る。
Subsequently, it is determined whether or not the total of the slit count has become 2 (step S26). If it has not become 2 (N in step S26), step S32 is executed.
Move to and change the current state of the optical sensor output signal to the "previous state".
(Step S32), and the interrupt is terminated.

【0031】また、2になっていれば(ステップS26
のY)ステップ数カウント値を読み取り(ステップS2
7)、読み取ったカウント値に応じてリボン径を決定し
(ステップS28)、リボン径に対応してDCモータの
電圧を調節する(ステップS29)。
If the number is 2 (step S26)
Y) Step count value is read (step S2)
7) The ribbon diameter is determined according to the read count value (step S28), and the voltage of the DC motor is adjusted according to the ribbon diameter (step S29).

【0032】そして、ステップ数カウンタをリセットし
(ステップS30)、スリットカウンタをリセットし
(ステップS31)、光センサ出力信号の現在の状態を
「前回状態」としてセーブして(ステップS32)、割
込みを終了する。
Then, the step number counter is reset (step S30), the slit counter is reset (step S31), the current state of the optical sensor output signal is saved as the "previous state" (step S32), and an interrupt is generated. finish.

【0033】ここで、図6は、ステップ数カウント値X
(図7参照)とリボン径との関係を示す表である。図6
に示すデータはRAM4の所定の不揮発エリアに予め記
憶されており、図5のステップS28では、そのデータ
をもとに、ステップ数カウント値に応じてリボン径を決
定する。
FIG. 6 shows the step count value X
It is a table | surface which shows the relationship between (refer FIG. 7) and a ribbon diameter. FIG.
Is stored in a predetermined non-volatile area of the RAM 4 in advance, and in step S28 of FIG. 5, the ribbon diameter is determined based on the data in accordance with the step number count value.

【0034】図7は、スリット板17に対して光センサ
18が図2に例示したように移動した場合のステップ数
カウント値と光センサ出力信号とスリットカウント及び
その合計との対応関係を示す。
FIG. 7 shows the correspondence between the step number count value, the optical sensor output signal, the slit count, and the total when the optical sensor 18 moves with respect to the slit plate 17 as illustrated in FIG.

【0035】光センサ18は、まず、領域ア内のスター
ト位置Sに位置している。このとき、光センサ出力信号
はHである。ステッピングモータ10の正転によりスリ
ット板17が正転すると、光センサ18はスリット板1
7に対して方向へ移動する。
The optical sensor 18 is located at the start position S in the area A. At this time, the output signal of the optical sensor is H. When the slit plate 17 rotates forward by the forward rotation of the stepping motor 10, the optical sensor 18
7 in the direction.

【0036】光センサ18が、境界aを通過すると、光
センサ出力信号がHからLに入れ替わることによって境
界aを通過したことが検出される。回転開始後初めての
状態変化であるので、図3に示すイニシャルにより、ス
テップ数カウンタがリセットされ、スリットカウンタが
リセットされ、光センサ出力信号Lが「前回状態」とし
てセーブされる。
When the optical sensor 18 passes the boundary a, it is detected that the optical sensor 18 has passed the boundary a by switching the output signal of the optical sensor from H to L. Since this is the first state change after the start of rotation, the step number counter is reset, the slit counter is reset by the initials shown in FIG. 3, and the optical sensor output signal L is saved as the “previous state”.

【0037】スリット板17がさらに正転すると、図4
に示す印字割込みルーチンにより、ステップ数カウント
値は増加する。光センサ18が境界bを通過すると、光
センサ出力信号がLからHに入れ替わる。このときステ
ッピングモータ10は正転中であるので、スリットカウ
ントに1加算される。ここで、スリットカウント合計は
1であるので、光センサ出力信号Hが「前回状態」とし
てセーブされた後、この割込みは終了する。
When the slit plate 17 further rotates forward, FIG.
The step count value is increased by the print interrupt routine shown in FIG. When the optical sensor 18 passes the boundary b, the optical sensor output signal changes from L to H. At this time, since the stepping motor 10 is rotating forward, 1 is added to the slit count. Here, since the total slit count is 1, the interruption ends after the optical sensor output signal H is saved as the “previous state”.

【0038】スリット板17はさらに正転し、その間、
ステップ数カウント値はさらに増加する。
The slit plate 17 further rotates forward, during which time,
The step number count value further increases.

【0039】そして、光センサ18が領域ウ内に位置し
ているとき、スリット板17が反転し、光センサ18
は、スリット板17に対して方向へ移動する。スリッ
ト板17が反転している間、ステップ数カウント値は減
少する。スリット板17はさらに反転し、光センサ18
は境界bを再び通過する。このときステッピングモータ
10は反転中であるので、スリットカウントから1減算
される。ここで、スリットカウント合計は0となるの
で、光センサ出力信号Hが「前回状態」としてセーブさ
れた後、この割込みは終了する。
When the optical sensor 18 is located in the area c, the slit plate 17 is inverted and the optical sensor 18
Moves in the direction with respect to the slit plate 17. While the slit plate 17 is inverted, the step number count value decreases. The slit plate 17 is further inverted, and the optical sensor 18
Passes through the boundary b again. At this time, since the stepping motor 10 is being reversed, 1 is subtracted from the slit count. Here, since the total slit count becomes 0, the interruption ends after the optical sensor output signal H is saved as the “previous state”.

【0040】スリット板17はさらに反転し、その間、
ステップ数カウント値はさらに減少する。
The slit plate 17 is further inverted, during which time,
The step number count value further decreases.

【0041】そして、光センサ18が領域イ内に位置し
ているとき、スリット板17が正転し、光センサ18
は、スリット板17に対して方向へ移動する。スリッ
ト板17が正転している間、ステップ数カウント値は増
加する。スリット板17はさらに正転し、光センサ18
は境界bを三度通過する。このときステッピングモータ
10は正転中であるので、スリットカウントに1加算さ
れ、スリットカウント合計は1となる。よって、光セン
サ出力信号Hが「前回状態」としてセーブされた後、こ
の割込みは終了する。
When the optical sensor 18 is located in the area A, the slit plate 17 rotates forward and the optical sensor 18
Moves in the direction with respect to the slit plate 17. While the slit plate 17 is rotating forward, the step count value increases. The slit plate 17 further rotates forward and the optical sensor 18
Passes the boundary b three times. At this time, since the stepping motor 10 is rotating forward, 1 is added to the slit count, and the total slit count becomes 1. Therefore, after the optical sensor output signal H is saved as the “previous state”, this interrupt ends.

【0042】スリット板17はさらに正転し、その間、
ステップ数カウント値はさらに増加する。光センサ18
が境界cを通過すると、このときステッピングモータ1
0は正転中であるので、スリットカウントに1加算され
る。ここで、スリットカウント合計は2となる。よっ
て、この時のステップ数カウント値Xに応じて、リボン
径が決定され、そのリボン径に対応したDCモータ電圧
がセットされる。そして、ステップ数カウンタがリセッ
トされ、スリットカウンタがリセットされ、光センサ出
力信号Lが「前回状態」としてセーブされた後、この割
込みは終了する。
The slit plate 17 further rotates forward, during which time,
The step number count value further increases. Optical sensor 18
Passes through the boundary c, then the stepping motor 1
Since 0 is in normal rotation, 1 is added to the slit count. Here, the total slit count is 2. Therefore, the ribbon diameter is determined according to the step number count value X at this time, and the DC motor voltage corresponding to the ribbon diameter is set. Then, after the step number counter is reset, the slit counter is reset, and the optical sensor output signal L is saved as the “previous state”, this interrupt ends.

【0043】本実施の形態では、ステップ数からリボン
径を求め、ステップ数とリボン径との対応関係には印字
速度は拘らないので、リボン径を求めるためのテーブル
は、従来のように印字速度毎に設ける必要がなく、一種
類であるため、テーブル構造を簡単にすることができ
る。
In the present embodiment, the ribbon diameter is determined from the number of steps, and the printing speed is not affected by the correspondence between the number of steps and the ribbon diameter. There is no need to provide each table, and since there is only one type, the table structure can be simplified.

【0044】また、本実施の形態では、ステッピングモ
ータを正転させたステップ数を積算し、反転させたステ
ップ数を除いて、スリット板を一周期回転させるのに要
した正転分のみのステップ数を求め、このステップ数か
らリボン径を決定しているので、従来のリボン径検出ル
ーチンの割込み回数でリボン径を決定する場合と異な
り、スリット板17の一周期分ステッピングモータの正
転が連続せず一周期回転するまでに反転が混じっていて
も、リボン径を決定することができる。
Further, in the present embodiment, the number of steps in which the stepping motor is normally rotated is integrated, and only the number of steps required for rotating the slit plate for one cycle is excluded, excluding the number of inverted steps. Since the ribbon diameter is determined from the number of steps and the ribbon diameter is determined from the number of steps, the forward rotation of the stepping motor is continuously performed for one cycle of the slit plate 17 unlike the case where the ribbon diameter is determined by the number of interruptions of the conventional ribbon diameter detection routine. The ribbon diameter can be determined even if the inversion is mixed by one rotation without performing the rotation.

【0045】なお、本実施の形態の説明に用いた図2の
例では、スタート位置がスリット内に設けられている
が、実施にあたっては、スタート位置はスリット外であ
っても同様の結果を得ることができる。
Although the start position is provided in the slit in the example of FIG. 2 used in the description of the present embodiment, a similar result can be obtained even when the start position is outside the slit. be able to.

【0046】[0046]

【発明の効果】請求項1記載の発明では、ロータリーエ
ンコーダを所定角度回転させるのに要するステップ数か
らリボン径を検出するので、ステップ数からリボン径を
求めるためのテーブルは印字速度によらないため一つで
よく、テーブル構造を簡単にすることができる。
According to the first aspect of the present invention, since the ribbon diameter is detected from the number of steps required to rotate the rotary encoder by a predetermined angle, the table for obtaining the ribbon diameter from the number of steps does not depend on the printing speed. Only one is required, and the table structure can be simplified.

【0047】請求項2記載の発明では、ロータリーエン
コーダが所定角度正転する間に反転が混じっていても、
反転分のステップ数を除いて正転分のステップ数をカウ
ントし、正転分のステップ数からリボン径を検出するの
で、各ラベル用紙の間の隙間が狭く、各ラベル用紙を印
字する毎に送ったり戻したりしなければならないラベル
ロールが用いられていても、リボン径を検出できる。
According to the second aspect of the present invention, even if reversal is mixed during normal rotation of the rotary encoder by a predetermined angle,
The number of steps for normal rotation is counted excluding the number of steps for reversal, and the ribbon diameter is detected from the number of steps for normal rotation.Therefore, the gap between each label paper is narrow, and each time label paper is printed The ribbon diameter can be detected even if a label roll that needs to be sent or returned is used.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のラベルプリンタの実施の一形態の制御
系を示すブロック図である。
FIG. 1 is a block diagram illustrating a control system of a label printer according to an embodiment of the present invention.

【図2】スリット板に対する光センサの移動軌跡の一例
を示す模式図である。
FIG. 2 is a schematic diagram illustrating an example of a movement locus of an optical sensor with respect to a slit plate.

【図3】回転開始後初めて状態変化が現われたときに行
われるイニシャルを示すフローチャートである。
FIG. 3 is a flowchart showing initials performed when a state change appears for the first time after the start of rotation.

【図4】印字割込みルーチンを示すフローチャートであ
る。
FIG. 4 is a flowchart illustrating a print interrupt routine.

【図5】リボン径検出ルーチンを示すフローチャートで
ある。
FIG. 5 is a flowchart illustrating a ribbon diameter detection routine.

【図6】ステップ数カウント値とリボン径との関係を示
す表である。
FIG. 6 is a table showing a relationship between a step number count value and a ribbon diameter.

【図7】ステップ数カウント値と光センサ出力信号とス
リットカウント及びその合計との対応関係を示すタイミ
ングチャートである。
FIG. 7 is a timing chart showing a correspondence relationship between a step number count value, an optical sensor output signal, a slit count, and a total thereof.

【符号の説明】[Explanation of symbols]

10 ステッピングモータ 11 DCモータ 15 ロータリーエンコーダ 16 ステップ数カウンタ 10 Stepping motor 11 DC motor 15 Rotary encoder 16 Step number counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 インクリボンのインクを加熱して転写さ
せることによってラベル用紙に所定事項を印字するサー
マルヘッドと、 前記ラベル用紙及び前記インクリボンを搬送する駆動力
を発生するステッピングモータと、 前記インクリボンを巻き取るリボンコアと、 前記リボンコアを回転させる駆動力を発生するDCモー
タと、 前記リボンコアの回転角を検出するロータリーエンコー
ダと、 前記ステッピングモータのステップ数をカウントするス
テップ数カウンタと、 前記ロータリーエンコーダが所定角度回転する間の前記
ステップ数カウンタのカウント値から前記リボンコアに
巻き取られた前記インクリボンの外径を決定するリボン
径決定手段と、 前記リボン径決定手段が決定したリボン径に応じて前記
DCモータの駆動電圧を調節する電圧調節手段と、を備
えるラベルプリンタ。
1. A thermal head for printing predetermined items on label paper by heating and transferring ink on an ink ribbon, a stepping motor for generating a driving force for transporting the label paper and the ink ribbon, and the ink A ribbon core for winding a ribbon, a DC motor for generating a driving force for rotating the ribbon core, a rotary encoder for detecting a rotation angle of the ribbon core, a step number counter for counting the number of steps of the stepping motor, and the rotary encoder A ribbon diameter determining means for determining an outer diameter of the ink ribbon wound on the ribbon core from a count value of the step number counter while rotating by a predetermined angle, and a ribbon diameter determined by the ribbon diameter determining means. Adjusting the driving voltage of the DC motor Label printer comprising: a pressure regulating means.
【請求項2】 インクリボンのインクを加熱して転写さ
せることによってラベル用紙に所定事項を印字するサー
マルヘッドと、 前記ラベル用紙及び前記インクリボンを搬送する駆動力
を発生するステッピングモータと、 前記インクリボンを巻き取るリボンコアと、 前記リボンコアを回転させる駆動力を発生するDCモー
タと、 前記リボンコアの回転角を検出するロータリーエンコー
ダと、 前記ステッピングモータのステップ数を前記ステッピン
グモータの正転時は加算し反転時は減算してカウントす
るステップ数カウンタと、 前記ロータリーエンコーダが所定角度回転する間の前記
ステップ数カウンタのカウント値から前記リボンコアに
巻き取られた前記インクリボンの外径を決定するリボン
径決定手段と、 前記リボン径決定手段が決定したリボン径に応じて前記
DCモータの駆動電圧を調節する電圧調節手段と、を備
えるラベルプリンタ。
2. A thermal head that prints predetermined items on label paper by heating and transferring ink on an ink ribbon, a stepping motor that generates a driving force for transporting the label paper and the ink ribbon, and the ink. A ribbon core for winding the ribbon; a DC motor for generating a driving force for rotating the ribbon core; a rotary encoder for detecting a rotation angle of the ribbon core; and the number of steps of the stepping motor added when the stepping motor rotates forward. A step number counter that counts by subtracting when reversing; and a ribbon diameter determination that determines an outer diameter of the ink ribbon wound on the ribbon core from a count value of the step number counter while the rotary encoder rotates by a predetermined angle. Means, said ribbon diameter determining means is determined Label printer comprising: a voltage regulating means, a to adjust the driving voltage of the DC motor in accordance with the ribbon diameter was.
JP15290698A 1998-06-02 1998-06-02 Label printer Pending JPH11342661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15290698A JPH11342661A (en) 1998-06-02 1998-06-02 Label printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15290698A JPH11342661A (en) 1998-06-02 1998-06-02 Label printer

Publications (1)

Publication Number Publication Date
JPH11342661A true JPH11342661A (en) 1999-12-14

Family

ID=15550732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15290698A Pending JPH11342661A (en) 1998-06-02 1998-06-02 Label printer

Country Status (1)

Country Link
JP (1) JPH11342661A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2396847A (en) * 2002-11-05 2004-07-07 Eurocodic S A A thermal transfer label printer with rewind control and method for multiple label printing
US7791627B2 (en) 2005-05-09 2010-09-07 Citizen Holdings Co., Ltd. Printer
US20130129397A1 (en) * 2011-11-23 2013-05-23 Kai-Min Chu Print system with ribbon identification function

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2396847A (en) * 2002-11-05 2004-07-07 Eurocodic S A A thermal transfer label printer with rewind control and method for multiple label printing
GB2396847B (en) * 2002-11-05 2006-01-11 Eurocodic S A Thermal transfer label printer with rewind control, and method for multiple label printing
US7791627B2 (en) 2005-05-09 2010-09-07 Citizen Holdings Co., Ltd. Printer
US20130129397A1 (en) * 2011-11-23 2013-05-23 Kai-Min Chu Print system with ribbon identification function
CN103129187A (en) * 2011-11-23 2013-06-05 诚研科技股份有限公司 Printing system capable of distinguishing ribbon form

Similar Documents

Publication Publication Date Title
JP4329540B2 (en) Tape printer
US7004654B2 (en) Tape printer
JPH11342661A (en) Label printer
US11491807B2 (en) Printing apparatus
JP2924021B2 (en) Platen gap adjustment device
JPH06297741A (en) Auxiliary device in passing dye receiver through thermal printing head part
CN114434991B (en) Control method of thermal transfer printer and thermal transfer printer
JP3701697B2 (en) Printer paper feeder and control method thereof
JP2536387B2 (en) Printer
JP4054911B2 (en) Print control device
JP3614920B2 (en) Printer print control device
JPH0732692A (en) Ink sheet conveying device
JPH0269276A (en) Recorder
JP2740693B2 (en) Spacing control method for color serial printer
JP2514550Y2 (en) Printer device
JP2003182197A (en) Thermal transfer printer
JPH0825767A (en) Thermal printer
JPH04310780A (en) Printing apparatus
JP2003154720A (en) Printer and controller
JPH0550644A (en) Thermal line printer
JPH02215575A (en) Printer
JPH0852916A (en) Ink sheet feeder
JPH09164750A (en) Ink film take-up unit of video printer
JPH1095147A (en) Printer
JPH10175358A (en) Printer