JP4667475B2 - Thermal printer - Google Patents

Thermal printer Download PDF

Info

Publication number
JP4667475B2
JP4667475B2 JP2008030722A JP2008030722A JP4667475B2 JP 4667475 B2 JP4667475 B2 JP 4667475B2 JP 2008030722 A JP2008030722 A JP 2008030722A JP 2008030722 A JP2008030722 A JP 2008030722A JP 4667475 B2 JP4667475 B2 JP 4667475B2
Authority
JP
Japan
Prior art keywords
stepping motor
printing
energization
thermal
thermal head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008030722A
Other languages
Japanese (ja)
Other versions
JP2008173981A (en
Inventor
秀幸 山路
知幸 横山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2008030722A priority Critical patent/JP4667475B2/en
Publication of JP2008173981A publication Critical patent/JP2008173981A/en
Application granted granted Critical
Publication of JP4667475B2 publication Critical patent/JP4667475B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、サーマルプリンタに係り、特に、印刷品質を向上することの可能なサーマルプリンタに関する。   The present invention relates to a thermal printer, and more particularly to a thermal printer capable of improving print quality.

サーマルプリンタは、小型軽量化が可能であるため、携帯端末機器の印刷装置として広く適用されているが、印刷紙である感熱紙の紙送りには、ステッピングモータを、ドット印刷のためには、感熱紙の幅方向に一列に並べられたサーマルヘッドを使用することが普通である。   Thermal printers can be reduced in size and weight, so they are widely applied as printing devices for portable terminal devices. However, for thermal paper feeding, which is printing paper, a stepping motor is used, and for dot printing, It is common to use thermal heads arranged in a line in the width direction of the thermal paper.

サーマルヘッドは、所定個(例えば、384個)の発熱体を有するが、電池を電源とする場合には、すべての発熱体に一度に通電することは電源容量的に困難であり、例えば、64個の発熱体を一ブロックとして、サーマルヘッドを複数ブロック(384個の場合は6ブロック)に分割し、ブロックごとに通電することにより、使用電力を抑制している。   The thermal head has a predetermined number (for example, 384) of heating elements. However, when a battery is used as a power source, it is difficult to supply current to all the heating elements at a time in terms of power supply capacity. One heating element is used as one block, and the thermal head is divided into a plurality of blocks (6 blocks in the case of 384), and the power consumption is suppressed by energizing each block.

さらに、印刷速度を向上するために、通電ブロックの切り替え中にステッピングモータを励磁して、感熱紙を所定長さ紙送りしている(例えば、特許文献1を参照)。   Further, in order to improve the printing speed, the stepping motor is excited during the switching of the energization block, and the thermal paper is fed by a predetermined length (for example, see Patent Document 1).

図1は、従来のサーマルプリンタの制御方法の説明図であって、サーマルヘッドは384個の発熱体を有し、64個の発熱体を一ブロックとして6ブロックに分割され、1ドットライン印刷中に、ステッピングモータは4ステップ(距離にしてL、例えば、0.125mm)進む場合を示している。   FIG. 1 is an explanatory diagram of a conventional thermal printer control method, in which a thermal head has 384 heating elements, 64 heating elements are divided into 6 blocks, and one dot line is being printed. In the figure, the stepping motor advances 4 steps (distance L, for example, 0.125 mm).

即ち、#1ブロック通電後に、ステッピングモータは1ステップ進み、#2ブロック通電後に、ステッピングモータは1ステップ進み、#3及び4ブロック通電後に、ステッピングモータは1ステップ進み、#5及び6ブロック通電後に、ステッピングモータは1ステップ進む。   That is, after the # 1 block is energized, the stepping motor advances one step, after the # 2 block is energized, the stepping motor advances one step, after the # 3 and 4 blocks are energized, the stepping motor advances one step, and after the # 5 and 6 blocks are energized The stepping motor advances one step.

このため、384個の発熱体にすべて通電して罫線を印刷したときは、真直ぐにならず斜線となる。   For this reason, when all the 384 heating elements are energized and the ruled lines are printed, the lines are not straight but are hatched.

さらに、ステッピングモータの起動・停止に起因して、ゴムローラに振動が発生するため、振幅が大きいときに印刷されたドットは、大きさが大きく、濃度は薄くなるが、振幅が小さいときに印刷されたドットは、大きさが小さく、濃度は濃くなる。   In addition, because the rubber roller vibrates due to the start / stop of the stepping motor, the dots printed when the amplitude is large are large and light in density, but printed when the amplitude is small. The dots are small in size and dark.

図2は、ゴムローラの振動とドットの大きさ及び印刷濃度の関係の説明図であって、ステッピングモータの#3ステップを示す。   FIG. 2 is an explanatory diagram of the relationship between the vibration of the rubber roller, the dot size, and the print density, and shows step # 3 of the stepping motor.

即ち、ステッピングモータの起動により、ゴムローラは大きく起振され、その後漸次、振幅は減衰する。そしてステッピングモータの停止により、ゴムローラは再度起振され、その後漸次、振幅は減衰する。   That is, when the stepping motor is started, the rubber roller is greatly vibrated, and thereafter the amplitude gradually decreases. When the stepping motor is stopped, the rubber roller is vibrated again, and thereafter the amplitude is gradually attenuated.

ステッピングモータが停止すると、発熱体の#3ブロックの通電が開始されるが、ゴムロータは大きい振幅で振動しているので、ドットの大きさは大きくなり、感熱紙の単位面積当たりの加熱量は少なく、印刷濃度は薄くなる。   When the stepping motor stops, energization of the # 3 block of the heating element is started. However, since the rubber rotor vibrates with a large amplitude, the size of the dots increases and the heating amount per unit area of the thermal paper is small. The print density becomes thin.

次に、発熱体の#4ブロックの通電が開始されるが、ゴムローラの振幅は小さくなっているので、ドットの大きさは小さくなり、感熱紙の単位面積当たりの加熱量は多く、印刷濃度は濃くなる。   Next, energization of the # 4 block of the heating element is started, but since the amplitude of the rubber roller is small, the size of the dots is small, the heating amount per unit area of the thermal paper is large, and the printing density is It becomes darker.

特開2001−63124JP 2001-63124 A

即ち、1ドットライン印刷中に、ステッピングモータが回転することに起因して、印刷に段差を生じるだけでなく、ゴムローラの振動によるドットの大きさと濃度の変化に起因して、印刷品質が劣化することを回避できない。   That is, during one dot line printing, the stepping motor rotates, not only causing a step in printing, but also the printing quality deteriorates due to changes in dot size and density due to vibration of the rubber roller. I can't avoid that.

本発明は、上記課題に鑑みなされたものであって、印刷の段差を低減することができると共に、ゴムローラの振動による印刷ムラの発生を抑制できることにより印刷品質を向上したサーマルプリンタを提供することを目的とする。   The present invention has been made in view of the above problems, and provides a thermal printer that can reduce printing steps and can suppress the occurrence of uneven printing due to vibration of a rubber roller, thereby improving printing quality. Objective.

本発明に係るサーマルプリンタは、ステッピングモータと、ステッピングモータの回転力を伝達する回転力伝達機構と、回転力伝達機構により伝達されたステッピングモータの回転力によって駆動されるローラと、ローラによって搬送される印刷紙上に印刷紙幅方向に一列に並ぶ複数の発熱体を有するサーマルヘッドと、ステッピングモータの回転とサーマルヘッドへの通電を制御する制御部と、印刷紙幅方向の罫線印刷する前にサーマルヘッドによる1ドットラインの印刷中に回転するステッピングモータのステップ数だけステッピングモータを逆転させる前処理部を具備する。   A thermal printer according to the present invention is conveyed by a stepping motor, a rotational force transmission mechanism that transmits the rotational force of the stepping motor, a roller that is driven by the rotational force of the stepping motor that is transmitted by the rotational force transmission mechanism, and the roller. A thermal head having a plurality of heating elements arranged in a line in the width direction of the printing paper, a control unit for controlling the rotation of the stepping motor and energization of the thermal head, and the thermal head before printing ruled lines in the width direction of the printing paper. A pre-processing unit that reverses the stepping motor by the number of steps of the stepping motor that rotates during printing of one dot line is provided.

本発明にあっては、印刷紙幅方向に罫線を印刷するときは、ステッピングモータは、1ドットライン印刷中のステッピングモータの回転角度だけ予め逆転される。   In the present invention, when a ruled line is printed in the width direction of the printing paper, the stepping motor is reversed in advance by the rotation angle of the stepping motor during one-dot line printing.

本発明に係るサーマルプリンタによれば、印刷紙幅方向に罫線が印刷される場合には、予めステッピングモータが逆転され、1ドットライン印刷中に、ステッピングモータが回転しても罫線に段差が生じることが解消される、あるいは、ステッピングモータが1ステップ回転する間にすべてのブロックに順序を変えて通電することにより、印刷品質を維持することが可能となる。   According to the thermal printer of the present invention, when a ruled line is printed in the width direction of the printing paper, the stepping motor is reversely rotated in advance, and a step is generated in the ruled line even if the stepping motor rotates during one-dot line printing. Or, it is possible to maintain the print quality by energizing all the blocks while changing the order while the stepping motor rotates one step.

図3は、第一の発明に係るサーマルプリンタの機能線図であって、サーマルプリンタ3は印刷部31と制御部32から構成される。   FIG. 3 is a functional diagram of the thermal printer according to the first invention. The thermal printer 3 includes a printing unit 31 and a control unit 32.

印刷部31は、サーマルヘッド311、ゴムローラ312及びステッピングモータ313等から構成され、ゴムローラ312によって移送される感熱紙上にサーマルヘッド311で印刷を行う。   The printing unit 31 includes a thermal head 311, a rubber roller 312, a stepping motor 313, and the like, and performs printing with the thermal head 311 on thermal paper transported by the rubber roller 312.

制御部32は、MPU(マイクロプロセッサユニット)321、ステッピングモータ駆動部322、通電パルス制御部323、通電順序制御部324及び印刷データ転送部325で構成され、印刷部31のステッピングモータ313の回転制御及びサーマルヘッド311の通電制御を実行する。   The control unit 32 includes an MPU (microprocessor unit) 321, a stepping motor drive unit 322, an energization pulse control unit 323, an energization order control unit 324, and a print data transfer unit 325, and rotation control of the stepping motor 313 of the printing unit 31. And the energization control of the thermal head 311 is executed.

図4は、印刷部の透視斜視図であって、印刷部31のギヤボックス314中には、四組の平歯車で構成される減速機構315が格納されている。即ち、ステッピングモータ313の回転は減速機構315で減速され、ゴムローラ312を駆動する。   FIG. 4 is a perspective view of the printing unit. In the gear box 314 of the printing unit 31, a speed reduction mechanism 315 including four sets of spur gears is stored. That is, the rotation of the stepping motor 313 is decelerated by the reduction mechanism 315 and drives the rubber roller 312.

ゴムローラ312には、サーマルヘッド311が接しており、ゴムローラ312とサーマルヘッド311の間を感熱紙が通過する。   A thermal head 311 is in contact with the rubber roller 312, and thermal paper passes between the rubber roller 312 and the thermal head 311.

図5は、サーマルヘッドの断面図であって、基板110の上面の突起111上に発熱体112が搭載されている。発熱体112の両端は、基板110に印刷された導体113及び114に接続され、導体113及び114に通電すると、発熱体112は発熱し、感熱紙115に塗布された感熱剤が発色する。なお、感熱紙との機械的摩耗から保護するために、発熱体112並びに導体113及び114は、保護コート層116でコーティングされている。   FIG. 5 is a cross-sectional view of the thermal head, in which a heating element 112 is mounted on a protrusion 111 on the upper surface of the substrate 110. Both ends of the heating element 112 are connected to conductors 113 and 114 printed on the substrate 110. When the conductors 113 and 114 are energized, the heating element 112 generates heat, and the thermal agent applied to the thermal paper 115 develops color. Note that the heating element 112 and the conductors 113 and 114 are coated with a protective coating layer 116 in order to protect them from mechanical abrasion with the thermal paper.

第一の発明は、従来感熱紙の幅方向に罫線を印刷した場合に生じていた段差を解消することを目的とする。   A first aspect of the present invention aims to eliminate a level difference that has occurred when a ruled line is printed in the width direction of a conventional thermal paper.

即ち、減速機構315には、図4の拡大図に示すようにバックラッシュが設けられており、その幅は、0.75mm(6ドットライン相当)程度に設定される。   That is, the speed reduction mechanism 315 is provided with a backlash as shown in the enlarged view of FIG. 4, and its width is set to about 0.75 mm (corresponding to 6 dot lines).

そして、ステッピングモータが感熱紙を連続的に順方向に移送しているときは、減速機構315の歯車は接触状態を維持するため、バックラッシュが影響することはなく、ステッピングモータ315によって、感熱紙116は、正常に移送される。   When the stepping motor is continuously transporting the thermal paper in the forward direction, the gear of the speed reduction mechanism 315 maintains the contact state, so that backlash does not affect the thermal paper. 116 is successfully transferred.

一方、感熱紙116を逆方向に移送するときは、ステッピングモータ315がバックラッシュ分だけ逆回転した後に、減速機構315の歯車は接触して、感熱紙116の移送が開始される。   On the other hand, when the thermal paper 116 is transferred in the reverse direction, the gear of the speed reduction mechanism 315 comes into contact after the stepping motor 315 rotates reversely by the amount of backlash, and the transfer of the thermal paper 116 is started.

第一の発明は、バックラッシュを利用して真直ぐに罫線を引くために、罫線を引く場合には、ステッピングモータ315を一ドットライン相当分(0.75/6=0.125mm)、即ち、4ステップだけ逆転させた後に、サーマルヘッド311への通電、ステッピングモータ315の回転を通常の操作に従って制御することにより、一直線に罫線を印刷することが可能となる。   In the first invention, in order to draw a straight line using backlash, when drawing a ruled line, the stepping motor 315 is equivalent to one dot line (0.75 / 6 = 0.125 mm), that is, It is possible to print a ruled line in a straight line by controlling the energization to the thermal head 311 and the rotation of the stepping motor 315 in accordance with a normal operation after reversing by 4 steps.

図6は、第一の発明において、MPU321において実行される罫線印刷ルーチンのフローチャートであって、ホストコンピュータ(図示せず)から罫線印字指令を受信したときに実行される。   FIG. 6 is a flowchart of a ruled line printing routine executed in the MPU 321 in the first invention, and is executed when a ruled line print command is received from a host computer (not shown).

ステップ60で、ホストコンピュータから罫線印字指令を受信すると、ステップ61で、ステッピングモータ315に4ステップ分(0.125mm相当)逆転させる。   When a ruled line print command is received from the host computer in step 60, in step 61, the stepping motor 315 is reversely rotated by 4 steps (corresponding to 0.125 mm).

次に、ステップ62で、サーマルヘッド311の#1ブロックに通電指令を出力して64ドット分の罫線を印刷する。そして、ステップ63で、ステッピングモータ315を正方向に1ステップ(0.03mm相当)回転させるが、予め4ステップ逆転させているので、ゴムローラ312は回転せず、従って、感熱紙115は移送されず、原位置を維持する。   Next, in step 62, an energization command is output to the # 1 block of the thermal head 311 to print ruled lines for 64 dots. In step 63, the stepping motor 315 is rotated by one step (equivalent to 0.03 mm) in the forward direction. However, since the stepping motor 315 has been reversely rotated by four steps in advance, the rubber roller 312 does not rotate, and thus the thermal paper 115 is not transferred. , Keep the original position.

ステップ64で、サーマルヘッド311の#2ブロックに通電し、64ドット分の罫線が#1ブロックで印刷された罫線と一直線に印字される。そして、ステップ65で、ステッピングモータ315を1ステップ正方向に回転させるが、感熱紙115は原位置を維持する。   In step 64, power is supplied to the # 2 block of the thermal head 311 and a ruled line for 64 dots is printed in line with the ruled line printed in the # 1 block. In step 65, the stepping motor 315 is rotated in the forward direction by one step, but the thermal paper 115 maintains the original position.

ステップ66で、サーマルヘッド311の#3及び#4ブロックに通電し、128ドット分の罫線が既に印刷された罫線と一直線に印字される。そして、ステップ67で、ステッピングモータ315を1ステップ正方向に回転させるが、感熱紙115は原位置を維持する。   In step 66, the # 3 and # 4 blocks of the thermal head 311 are energized, and a 128-dot ruled line is printed in line with the already printed ruled line. In step 67, the stepping motor 315 is rotated in the positive direction by one step, but the thermal paper 115 maintains the original position.

ステップ68で、サーマルヘッド311の#5及び#6ブロックに通電し、128ドット分の罫線が既に印刷された罫線と一直線に印字される。そして、ステップ67で、ステッピングモータ315を1ステップ正方向に回転させて、逆転前の状態に戻す。   In step 68, the # 5 and # 6 blocks of the thermal head 311 are energized, and a 128-dot ruled line is printed in line with the already printed ruled line. In step 67, the stepping motor 315 is rotated in the positive direction by one step to return to the state before the reverse rotation.

図7は、第一の発明の動作説明図であって、図7の上段に、サーマルヘッド311の#1〜#6ブロックへの通電シーケンスを、図7の下段に、印刷結果を示す。   FIG. 7 is a diagram for explaining the operation of the first invention. The upper part of FIG. 7 shows an energization sequence to the blocks # 1 to # 6 of the thermal head 311 and the lower part of FIG. 7 shows the printing result.

以上説明したように、第一の発明によれば、厳密に一直線の罫線を印刷することが可能となるものの、1ドットライン分の罫線を印刷している間は、感熱紙115が移送されないため、感熱紙115に塗布された感熱剤が溶融し、その後凝固する際に、サーマルヘッド311の保護コート層116と貼り付き、次に、感熱紙115を正方向に移送する際の感熱紙115と保護コート層116の剥離により、異音の発生や印刷品質が低下することを回避できないだけでなく、通常の文字・図形を印刷した場合には、印刷の頭部に印刷潰れが発生することも回避できない。   As described above, according to the first invention, although it is possible to print a straight ruled line strictly, the thermal paper 115 is not transferred while the ruled line for one dot line is being printed. When the thermal agent applied to the thermal paper 115 melts and then solidifies, it adheres to the protective coating layer 116 of the thermal head 311 and then the thermal paper 115 when the thermal paper 115 is transferred in the forward direction. Not only does it not be possible to avoid the generation of abnormal noise and the deterioration of printing quality due to the peeling of the protective coating layer 116, but printing of normal characters / graphics may cause crushing of the print head. It cannot be avoided.

第二の発明は、ステッピングモータ313を従来と同様に制御し、ステッピングモータ313が停止してから、サーマルヘッド311へ通電するまでに、待機時間を設け、ゴムローラ312の振動が収まってから通電することにより、印刷品質を向上する。   In the second invention, the stepping motor 313 is controlled in the same manner as in the prior art. A standby time is provided from when the stepping motor 313 is stopped until the thermal head 311 is energized. As a result, the print quality is improved.

図8は、第二の発明の動作説明図であって、ステッピングモータ313が停止してから、サーマルヘッド311に通電するまでに、待機時間が設定される。   FIG. 8 is a diagram for explaining the operation of the second invention. A standby time is set from when the stepping motor 313 is stopped until the thermal head 311 is energized.

第三の発明は、サーマルヘッドを物理的なブロック数より数の少ない論理ブロックに変換し、ステッピングモータの1ステップの間に、全論理ブロックに通電するように制御する。   In the third aspect of the invention, the thermal head is converted into logical blocks having a number smaller than the number of physical blocks, and all the logical blocks are energized during one step of the stepping motor.

図9は、第三の発明に係るサーマルプリンタの構成図であって、図3に対してMPU321と通電順序制御部324の間に、論理ブロック生成部326が設置される。   FIG. 9 is a configuration diagram of the thermal printer according to the third aspect of the invention, and a logic block generation unit 326 is installed between the MPU 321 and the energization order control unit 324 with respect to FIG.

図10は、MPU321で実行される印刷制御ルーチンのフローチャートであって、ステップ100で、ホストコンピュータ(図示せず)から印刷データを読み取る。ステップ101で、ドットラインを示すインデックスiを初期値“1”に設定する。   FIG. 10 is a flowchart of a print control routine executed by the MPU 321. In step 100, print data is read from a host computer (not shown). In step 101, an index i indicating a dot line is set to an initial value “1”.

ステップ102で、印刷データ(例えば、128ドット/ドットライン×Iドットラインで構成される)から第i番目のドットラインのデータを読み出し、ステップ103で、論理ブロック生成ルーチンを実行するが詳細は後述する。   In step 102, the data of the i-th dot line is read from the print data (for example, 128 dots / dot line × I dot line), and in step 103, the logic block generation routine is executed. To do.

ステップ104で、1ドットライン印刷中のステッピングモータ313のステップ数を表すインデックスjを初期値“1”に設定し、ステップ105で、インデックスkを初期値“1”に設定する。次に、ステップ106で論理ブロックLBK(k)に通電する。   In step 104, an index j indicating the number of steps of the stepping motor 313 during one-dot line printing is set to an initial value “1”. In step 105, an index k is set to an initial value “1”. Next, in step 106, the logic block LBK (k) is energized.

ステップ107で、インデックスkが最大値Kに到達したかを判定し、否定判定されたときは、ステップ108で、インデックスkをインクリメントして、ステップ106において論理ブロック通電ルーチンの実行を繰り返す。   In step 107, it is determined whether or not the index k has reached the maximum value K. If a negative determination is made, the index k is incremented in step 108, and the execution of the logic block energization routine is repeated in step 106.

ステップ107で肯定判定されたとき、即ち、インデックスkが最大値Kに到達したときは、ステップ109で、ステッピングモータを1ステップ動かして、ステップ110に進む。   When an affirmative determination is made in step 107, that is, when the index k reaches the maximum value K, in step 109, the stepping motor is moved one step and the process proceeds to step 110.

ステップ110で、インデックスjが最大値J(例えば“4”)に到達したかを判定し、否定判定されたときは、ステップ111で、インデックスjをインクリメントしてステップ105から109の処理を繰り返す。   In step 110, it is determined whether or not the index j has reached the maximum value J (for example, “4”). If the determination is negative, in step 111, the index j is incremented and the processing from steps 105 to 109 is repeated.

ステップ110で肯定判定されたとき、即ち、インデックスjが最大値Jに到達したときは、ステップ112で、インデックスiが最大値Iに到達したかを判定する。   When an affirmative determination is made in step 110, that is, when the index j has reached the maximum value J, it is determined in step 112 whether the index i has reached the maximum value I.

ステップ112で否定判定されたとき、即ち、インデックスiが最大値Iに到達していないときは、ステップ112で、インデックスiをインクリメントしてステップ102から110の処理を繰り返す。   When a negative determination is made at step 112, that is, when the index i has not reached the maximum value I, at step 112, the index i is incremented and the processing of steps 102 to 110 is repeated.

ステップ112で肯定判定されたとき、即ち、インデックスiが最大値Iに到達したときは、このルーチンを終了する。   When the determination at step 112 is affirmative, that is, when the index i reaches the maximum value I, this routine is terminated.

図11は、ステップ103で実行される論理ブロック生成ルーチンのフローチャートであって、物理ブロックを纏めて論理ブロックを形成し、論理ブロック単位で印刷することにより、印刷ブロック数を低減するものである。   FIG. 11 is a flowchart of a logical block generation routine executed in step 103, in which physical blocks are grouped to form logical blocks and printed in units of logical blocks, thereby reducing the number of print blocks.

ステップ11aで、論理ブロックLBK(k)をクリアし、ステップ11bで、論理ブロック数を表すインデックスk及び物理ブロック数を表すインデックスmをそれぞれ初期値“1“に設定する。   In step 11a, the logical block LBK (k) is cleared, and in step 11b, an index k indicating the number of logical blocks and an index m indicating the number of physical blocks are respectively set to initial values “1”.

ステップ11cで、第k番目の論理ブロックLBK(k)を第k番目の論理ブロックLBK(k)と第m番目の物理ブロックPLB(m)の和として更新する。   In step 11c, the kth logical block LBK (k) is updated as the sum of the kth logical block LBK (k) and the mth physical block PLB (m).

ステップ11dで、第k番目の論理ブロックLBK(k)と第m+1番目の物理ブロックPLB(m+1)の和の印字ドット数が一度に印刷可能な最大ドット数N以上であるかを判定する。   In step 11d, it is determined whether the total number of print dots of the kth logical block LBK (k) and the (m + 1) th physical block PLB (m + 1) is equal to or greater than the maximum number N of dots that can be printed at one time.

ステップ11dで否定判定されたとき、即ち、第k番目の論理ブロックLBK(k)に第m+1番目の物理ブロックPLB(m+1)を加算しても、印字ドット数が最大ドット数N未満であるときは、ステップ11eで、インデックスmをインクリメントしてステップ11cに戻る。   When a negative determination is made in step 11d, that is, when the m + 1th physical block PLB (m + 1) is added to the kth logical block LBK (k), the number of print dots is less than the maximum number of dots N In step 11e, the index m is incremented and the process returns to step 11c.

ステップ11dで肯定判定されたとき、即ち、第k番目の論理ブロックLBK(k)に第m+1番目の物理ブロックPLB(m+1)を加算すると、印字ドット数が最大ドット数N以上となるときは、ステップ11fで、インデックスm+1と最大物理ブロック数Mを比較する。   When an affirmative determination is made in step 11d, that is, when the (m + 1) th physical block PLB (m + 1) is added to the kth logical block LBK (k), the number of printed dots is equal to or greater than the maximum number of dots N. In step 11f, the index m + 1 is compared with the maximum physical block number M.

ステップ11fの演算結果が正であるとき、即ち、インデックスm+1がM未満であるときは、ステップ11gで、インデックスkをインクリメントしてステップ1fに進む。   When the calculation result in step 11f is positive, that is, when the index m + 1 is less than M, in step 11g, the index k is incremented and the process proceeds to step 1f.

ステップ11fの演算結果が零であるとき、即ち、インデックスm+1がMに等しいときは、ステップ11hで、第k+1番目の論理ブロックLBK(k+1)を第m+1番目の物理ブロックPLB(m+1)に置き換えてステップ1iに進む。   When the calculation result of step 11f is zero, that is, when the index m + 1 is equal to M, in step 11h, the (k + 1) th logical block LBK (k + 1) is replaced with the (m + 1) th physical block PLB (m + 1). Proceed to step 1i.

ステップ11fの演算結果が零であるとき、即ち、インデックスm+1がMmaxより大であるときは、直接ステップ11iに進むが、ステップ11iでは、インデックスk+1をパラメータKに設定してこのルーチンを終了する。   When the calculation result of step 11f is zero, that is, when the index m + 1 is larger than Mmax, the process proceeds directly to step 11i. However, in step 11i, the index k + 1 is set as the parameter K and this routine is terminated.

第一の論理ブロック生成ルーチンにあっては、連続する物理ブロックを纏めて論理ブロックを形成しているが、連続しない物理ブロックを纏めて論理ブロックを生成することにより、さらに論理ブロック数を低減することも可能である。   In the first logical block generation routine, continuous physical blocks are grouped to form a logical block, but the number of logical blocks is further reduced by generating non-continuous physical blocks and generating a logical block. It is also possible.

図12は、論理ブロックが2の場合の印刷タイミングチャートであって、第一〜三物理ブロックが第一論理ブロックを、第四〜六物理ブロックが第二論理ブロックを形成する。   FIG. 12 is a printing timing chart when the logical block is 2, wherein the first to third physical blocks form the first logical block, and the fourth to sixth physical blocks form the second logical block.

即ち、第一ステップ及び第三ステップの前半で第一論理ブロックに通電し、後半で第二論理ブロックに通電する。第二ステップ及び第四ステップの前半で第二論理ブロックに通電し、後半で第一論理ブロックに通電する。   That is, the first logic block is energized in the first half of the first step and the third step, and the second logic block is energized in the second half. The first logic block is energized in the first half of the second step and the fourth step, and the first logic block is energized in the second half.

上述のように、第一論理ブロック及び第二論理ブロックを各ステップの前半、後半で交互に通電することにより、第一論理ブロックと第二論理ブロック間の印刷濃度と大きさを均一にすることが可能となる。   As described above, the print density and size between the first logic block and the second logic block are made uniform by alternately energizing the first logic block and the second logic block in the first half and the second half of each step. Is possible.

図13は、論理ブロックが4の場合の印刷タイミングチャートであって、第一物理ブロックが第一論理ブロックを、第二及び三物理ブロックが第二論理ブロックを、第四及び五物理ブロックが第三論理ブロックを、第六物理ブロックが第四論理ブロックを形成する。   FIG. 13 is a printing timing chart when the logical block is 4, where the first physical block is the first logical block, the second and third physical blocks are the second logical block, and the fourth and fifth physical blocks are the first. Three logical blocks form a sixth logical block and a fourth logical block forms a fourth logical block.

そして、第一ステップでは、第一、第二、第三、第四論理ブロックの順に通電し、第二ステップでは、第二、第三、第四、第一論理ブロックの順に通電し、第三ステップでは、第三、第四、第一、第二論理ブロックの順に通電し、第四ステップでは、第四、第一、第二、第三論理ブロックの順に通電する。   In the first step, energization is performed in the order of the first, second, third, and fourth logic blocks. In the second step, energization is performed in the order of the second, third, fourth, and first logic blocks. In the step, power is supplied in the order of the third, fourth, first, and second logical blocks, and in the fourth step, power is supplied in the order of the fourth, first, second, and third logical blocks.

なお、第三の発明に対して第二の発明を適用して、論理ブロック通電前に待機時間を設けるようにしてもよい。   Note that the second invention may be applied to the third invention to provide a waiting time before the logic block is energized.

図14は、論理ブロック2の場合に待機時間を設けた場合のタイミングチャートであって、第一〜四ステップにおける通電前に待機時間を設けることにより、ゴムローラ312の振動が低減した後に印刷することにより、印刷ドットの大きさを一層小さくすることが可能となる。   FIG. 14 is a timing chart in the case where a standby time is provided in the case of the logic block 2, and printing is performed after the vibration of the rubber roller 312 is reduced by providing the standby time before energization in the first to fourth steps. This makes it possible to further reduce the size of the printing dots.

なお、上記実施形態にあっては、物理ブロックあるいは論理ブロックの通電順序は固定されているものとしているが、ステッピングモータの励磁対象通電状態、ステッピングモータ固有の振動特性、周波数条件、ステッピングモータ駆動回路特性に応じて、発色ドットの形状のばらつきが最も小さくなるように、通電順序を設定できるようにしてもよい。また、サーマルヘッド発熱体の通電時間を制御し、発色ドット形状を微調整することも有効である。   In the above embodiment, the energization order of the physical block or logical block is fixed, but the energization state of the stepping motor to be excited, the vibration characteristics unique to the stepping motor, the frequency condition, the stepping motor drive circuit Depending on the characteristics, the energization order may be set so that the variation in the shape of the colored dots is minimized. It is also effective to finely adjust the color dot shape by controlling the energization time of the thermal head heating element.

通電順序及び発色ドット形状の微調整方法の具体的方法を以下に示す。   The specific method of the energization order and the color dot shape fine adjustment method is shown below.

図15は、通電順序及びドット形状調整方法の説明図であって、(ロ)は不揮発メモリに記憶された通電順序及びドット形状調整データの一例であって、[表1]に示すように24ビットのデータが256個記憶されている。   FIG. 15 is an explanatory diagram of the energization order and dot shape adjustment method. (B) is an example of the energization order and dot shape adjustment data stored in the non-volatile memory, as shown in [Table 1]. 256 pieces of bit data are stored.

Figure 0004667475
Figure 0004667475

(ハ)は、一つのデータの構成図であって、ビット00〜17の18ビットに6ブロックの通電順序が3ビットのデータとして記憶されている。ビット18〜23の6ビットには、各ブロックに対する通電補正の要否を示すデータが格納されている。   (C) is a block diagram of one data, and the energization order of 6 blocks is stored as 3 bits of data in 18 bits of bits 00-17. In 6 bits of bits 18 to 23, data indicating the necessity of energization correction for each block is stored.

不揮発メモリ内のデータはオフセットによって索引されるが、オフセットは、(イ)に従って設定される。オフセットは8ビットで構成され、4種類のパラメータ(モータ駆動電流、モータ駆動周波数、モータ駆動電圧及び環境温度)のそれぞれについて、4種類の値に対して合計256個のデータが設定可能である。   Data in the non-volatile memory is indexed by an offset, which is set according to (a). The offset is composed of 8 bits, and a total of 256 data can be set for the four types of values for each of the four types of parameters (motor drive current, motor drive frequency, motor drive voltage, and environmental temperature).

即ち、印刷データが生じたときに、モータ駆動電流、周波数及び電圧、並びに環境温度を計測し、その値に応じてオフセットを設定する。そして、このオフセットに基づいて不揮発メモリのアドレスを特定し、そのアドレスに記憶されているデータを読み出す。   That is, when print data is generated, motor drive current, frequency and voltage, and environmental temperature are measured, and an offset is set according to the measured values. Then, the address of the nonvolatile memory is specified based on this offset, and the data stored at the address is read out.

図16は、通電順序及びドット形状調整ルーチンのフローチャートであって、ステップ16aで、1ドットラインの最初の通電であるかを判定し、肯定判定されたときはステップ16bに進む。   FIG. 16 is a flowchart of the energization sequence and dot shape adjustment routine. In step 16a, it is determined whether or not it is the first energization of one dot line. If the determination is affirmative, the process proceeds to step 16b.

ステップ16bでは、モータ駆動電流に応じて4種類の2ビットの値(00、01、10、11)をオフセットの第0及び第1ビットに設定する。ステップ16cで、モータ駆動周波数に応じて4種類の2ビットの値をオフセットの第2及び第3ビットに設定する。ステップ16dで、モータ駆動電圧に応じて4種類の2ビットの値をオフセットの第4及び第5ビットに設定する。さらに、ステップ16eで、環境温度に応じて4種類の2ビットの値をオフセットの第6及び第7ビットに設定する。   In step 16b, four types of 2-bit values (00, 01, 10, 11) are set in the 0th and 1st bits of the offset in accordance with the motor drive current. In step 16c, four types of 2-bit values are set in the second and third bits of the offset in accordance with the motor driving frequency. In step 16d, four types of 2-bit values are set in the fourth and fifth bits of the offset in accordance with the motor drive voltage. Further, in step 16e, four types of 2-bit values are set in the sixth and seventh bits of the offset in accordance with the environmental temperature.

次に、ステップ16fで、オフセットデータの3倍をアッキュムレータレジスタに記憶し、ステップ16gで、アッキュムレータレジスタの値に不揮発メモリの先頭アドレスを加算し、ステップ16hで、そのアドレスに記憶されている通電順序データ及び通電補正データをアッキュムレータレジスタに読み出す。   Next, in step 16f, three times the offset data is stored in the accumulator register. In step 16g, the start address of the nonvolatile memory is added to the value of the accumulator register, and in step 16h, it is stored in that address. The energization sequence data and the energization correction data are read out to the accumulator register.

ステップ16iで、アッキュムレータレジスタの内容を所定のメモリワークに移行する。   In step 16i, the contents of the accumulator register are transferred to a predetermined memory work.

そして、ステップ16jで、メモリワークに記憶された値を読み出し、ステップ16kで、この値に基づいてヘッド通電ブロック制御を実行する。   In step 16j, the value stored in the memory work is read, and in step 16k, head energization block control is executed based on this value.

なお、ステップ16aで否定判定されたとき、即ち、1ドットラインの最初の通電でないときは、直接ステップ16jに進む。   When a negative determination is made in step 16a, that is, when the first energization of one dot line is not performed, the process proceeds directly to step 16j.

以上の実施形態にあっては、1ドットラインの印刷は4ステップに固定されているものとしているが、例えば、印刷ブロックが3である場合には、第四ステップは実際に印刷が行われることはなく、実質的に印刷時間が長くなってしまう。   In the above embodiment, it is assumed that printing of one dot line is fixed to 4 steps. For example, when the number of printing blocks is 3, the fourth step is to actually perform printing. There is no substantial increase in printing time.

そこで、印刷ブロック数に応じてステップモータのステップ数が制御可能であれば、印刷時間を短縮することが可能となる。   Therefore, if the number of steps of the step motor can be controlled according to the number of printing blocks, the printing time can be shortened.

図17は、ステップモータの構造図であって、ステップモータ17は、コイルを有するステータ171の内部に、永久磁石のN極及びS極の突起が交互に配置されるロータ172が設置される。   FIG. 17 is a structural diagram of a step motor. In the step motor 17, a rotor 172 in which N-pole and S-pole protrusions of a permanent magnet are alternately arranged is installed in a stator 171 having a coil.

ステータ171の突起には、A、B及びC相のコイルが巻回されており、4ステップ駆動の場合は、[表2]に示すシーケンスで駆動される。   A, B, and C phase coils are wound around the protrusions of the stator 171. In the case of 4-step drive, the stator 171 is driven in the sequence shown in [Table 2].

Figure 0004667475
Figure 0004667475

即ち、ある位置で停止している場合は、A相コイルだけが電流iで励磁された状態にあり、第一ステップでは、A相コイル及びB相コイルが電流i/2で励磁される。   That is, when stopping at a certain position, only the A-phase coil is excited with the current i, and in the first step, the A-phase coil and the B-phase coil are excited with the current i / 2.

すると、停止時に、A相コイルの下にあった突起はA相コイルとB相コイルの間にまで回転する。第二ステップでは、B相コイルだけが電流iで励磁されて、突起はB相コイルの下に移動する。第三ステップでは、B相コイル及びC相コイルが電流i/2で励磁され、第四ステップでは、C相コイルだけが電流iで励磁される。   Then, at the time of a stop, the protrusion which was under the A phase coil rotates to between the A phase coil and the B phase coil. In the second step, only the B-phase coil is excited with the current i, and the protrusion moves below the B-phase coil. In the third step, the B phase coil and the C phase coil are excited with the current i / 2, and in the fourth step, only the C phase coil is excited with the current i.

ステップモータの励磁電流及びシーケンスはMPU321で制御可能であるので、制御プログラムを変更することで、1ドットラインのステップ数を変更することが可能である。   Since the excitation current and sequence of the step motor can be controlled by the MPU 321, the number of steps of one dot line can be changed by changing the control program.

[表3]は、1ドットラインを3ステップで制御する場合の電流値及びシーケンスを示す。   [Table 3] shows current values and sequences when one dot line is controlled in three steps.

Figure 0004667475
Figure 0004667475

即ち、ある位置で停止している場合は、A相コイルだけが電流iで励磁された状態にある。第1ステップでは、A相コイルをi/3の電流で、B相コイルをi(2/3)の電流で励磁すると、ロータ172は、A相コイルとC相コイルがなす角の1/3の位置で停止する。第2ステップでは、B相コイルをi/3の電流で、C相コイルをi(2/3)の電流で励磁すると、ロータ172は、A相コイルとC相コイルがなす角の2/3の位置で停止する。第3ステップで、C相だけを電流iで励磁する。   That is, when stopping at a certain position, only the A-phase coil is excited by the current i. In the first step, when the A-phase coil is excited with an i / 3 current and the B-phase coil is excited with an i (2/3) current, the rotor 172 is 1/3 of the angle formed by the A-phase coil and the C-phase coil. Stop at the position. In the second step, when the B phase coil is excited with the current of i / 3 and the C phase coil is excited with the current of i (2/3), the rotor 172 has a 2/3 angle between the A phase coil and the C phase coil. Stop at the position. In the third step, only phase C is excited with current i.

[表4]は、1ドットラインを6ステップで制御する場合の電流値及びシーケンスを示すが、4ステップで制御する場合と3ステップで制御する場合を組み合わせたものとなっている。   [Table 4] shows a current value and a sequence when one dot line is controlled in 6 steps, and is a combination of a case where control is performed in 4 steps and a case where control is performed in 3 steps.

Figure 0004667475
Figure 0004667475

従来のサーマルプリンタの制御方法の説明図である。It is explanatory drawing of the control method of the conventional thermal printer. ゴムローラの振動とドットの大きさ及び印刷濃度の関係の説明図である。It is explanatory drawing of the relationship between the vibration of a rubber roller, the size of a dot, and printing density. 第一の発明に係るサーマルプリンタの機能線図である。It is a functional diagram of the thermal printer which concerns on 1st invention. 印刷部の透視斜視図である。It is a see-through | perspective perspective view of a printing part. サーマルヘッドの断面図である。It is sectional drawing of a thermal head. 罫線印刷ルーチンのフローチャートである。It is a flowchart of a ruled line printing routine. 第一の発明の動作説明図である。It is operation | movement explanatory drawing of 1st invention. 第二の発明の動作説明図である。It is operation | movement explanatory drawing of 2nd invention. 第二の発明に係るサーマルプリンタの構成図である。It is a block diagram of the thermal printer which concerns on 2nd invention. 印刷制御ルーチンのフローチャートである。4 is a flowchart of a print control routine. 論理ブロック生成ルーチンのフローチャートである。It is a flowchart of a logic block generation routine. 論理ブロックが2の場合の印刷タイミングチャートである。10 is a printing timing chart when the logical block is 2. 論理ブロックが4の場合の印刷タイミングチャートである。10 is a printing timing chart when the logical block is 4. 待機時間を設けた場合の印刷タイミングチャートである。6 is a printing timing chart when a standby time is provided. 通電順序及びドット形状調整方法の説明図である。It is explanatory drawing of an electricity supply order and a dot shape adjustment method. 通電順序及びドット形状調整ルーチンのフローチャートである。It is a flowchart of an electricity supply sequence and a dot shape adjustment routine. ステップモータの構造図である。It is a structural diagram of a step motor.

符号の説明Explanation of symbols

3 サーマルプリンタ
31 印刷部
311 サーマルヘッド
312 ゴムローラ
313 ステッピングモータ
32 制御部
321 MPU
322 ステッピングモータ駆動部
323 通電パルス発生部
324 通電順序制御部
325 印刷データ転送部
326 論理ブロック生成部
3 Thermal Printer 31 Printing Unit 311 Thermal Head 312 Rubber Roller 313 Stepping Motor 32 Control Unit 321 MPU
322 Stepping motor drive unit 323 Energization pulse generation unit 324 Energization sequence control unit 325 Print data transfer unit 326 Logic block generation unit

Claims (1)

ステッピングモータと、
前記ステッピングモータの回転力を伝達する回転力伝達機構と、
前記回転力伝達機構により伝達された前記ステッピングモータの回転力によって駆動されるローラと、
前記ローラによって搬送される印刷紙上に印刷紙幅方向に一列に並ぶ複数の発熱体を有するサーマルヘッドと、
前記ステッピングモータの回転と前記サーマルヘッドへの通電を制御する制御部と、
罫線印字指令を受信して印刷紙幅方向の罫線印刷を開始する前に、前記サーマルヘッドによる1ドットラインの印刷中に回転する前記ステッピングモータのステップ数だけ前記ステッピングモータを逆転させる前処理部を具備するサーマルプリンタ。
A stepping motor,
A rotational force transmission mechanism for transmitting the rotational force of the stepping motor;
A roller driven by the rotational force of the stepping motor transmitted by the rotational force transmission mechanism;
A thermal head having a plurality of heating elements arranged in a line in the width direction of the printing paper on the printing paper conveyed by the roller;
A controller for controlling rotation of the stepping motor and energization of the thermal head;
Just before starting the received and Borders printing of the print paper width direction borders print instruction, the processing unit prior to reversing the number of steps only the stepping motor of the stepping motor to rotate during printing of one dot line by the thermal head Thermal printer provided.
JP2008030722A 2008-02-12 2008-02-12 Thermal printer Expired - Fee Related JP4667475B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008030722A JP4667475B2 (en) 2008-02-12 2008-02-12 Thermal printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008030722A JP4667475B2 (en) 2008-02-12 2008-02-12 Thermal printer

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002300788A Division JP4215481B2 (en) 2002-10-15 2002-10-15 Thermal printer

Publications (2)

Publication Number Publication Date
JP2008173981A JP2008173981A (en) 2008-07-31
JP4667475B2 true JP4667475B2 (en) 2011-04-13

Family

ID=39701342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008030722A Expired - Fee Related JP4667475B2 (en) 2008-02-12 2008-02-12 Thermal printer

Country Status (1)

Country Link
JP (1) JP4667475B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60127868A (en) * 1983-12-15 1985-07-08 Matsushita Graphic Commun Syst Inc Picture recording system
JPH03161387A (en) * 1989-11-20 1991-07-11 Brother Ind Ltd Printer
JPH0630598A (en) * 1992-07-08 1994-02-04 Ricoh Co Ltd Recorder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60127868A (en) * 1983-12-15 1985-07-08 Matsushita Graphic Commun Syst Inc Picture recording system
JPH03161387A (en) * 1989-11-20 1991-07-11 Brother Ind Ltd Printer
JPH0630598A (en) * 1992-07-08 1994-02-04 Ricoh Co Ltd Recorder

Also Published As

Publication number Publication date
JP2008173981A (en) 2008-07-31

Similar Documents

Publication Publication Date Title
JP2007282305A (en) Method and device for controlling stepping motor, and printer
JP3413028B2 (en) Recording device
US20090115831A1 (en) Method of controlling electric conduction through thermal heat and thermal printer
JPH11321005A (en) Serial printer
JP4667475B2 (en) Thermal printer
JP4215481B2 (en) Thermal printer
JP4215064B2 (en) Stepping motor control method, stepping motor control device and printer
US6937261B2 (en) Method for driving paper-feeding stepping motor in thermal printer
JP2000185433A (en) Line printer
JP3813793B2 (en) Driving method of stepping motor for conveyance
JP4682019B2 (en) Thermal transfer printer and motor control method for thermal transfer printer
JP2003080747A (en) Recording method for line thermal printer and line thermal printer used therefor
JP2000166296A (en) Method and device for driving body to be driven and printer using drive device
JP4799676B2 (en) Thermal printer
US20170366124A1 (en) Stepping motor drive device
JP2985523B2 (en) Printer
JP3603032B2 (en) Printer control method and printer
JP2005186509A (en) Line type thermal printer and its divide driving method
JP3362686B2 (en) Motor control device
JP4439026B2 (en) Thermal printer
JP2002321411A (en) Recorder and recording method
JPH06171175A (en) Printing control method for serial printer
JP2007001176A (en) Method for controlling paper feeding for dot line printer
JP2004195870A (en) Apparatus for controlling printing
JPH0313988B2 (en)

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100928

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101214

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110111

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

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees