JP5822065B2 - Printing device - Google Patents

Printing device Download PDF

Info

Publication number
JP5822065B2
JP5822065B2 JP2011162615A JP2011162615A JP5822065B2 JP 5822065 B2 JP5822065 B2 JP 5822065B2 JP 2011162615 A JP2011162615 A JP 2011162615A JP 2011162615 A JP2011162615 A JP 2011162615A JP 5822065 B2 JP5822065 B2 JP 5822065B2
Authority
JP
Japan
Prior art keywords
target speed
speed
acceleration
print
deceleration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011162615A
Other languages
Japanese (ja)
Other versions
JP2013022925A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011162615A priority Critical patent/JP5822065B2/en
Publication of JP2013022925A publication Critical patent/JP2013022925A/en
Application granted granted Critical
Publication of JP5822065B2 publication Critical patent/JP5822065B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、被印字媒体に対し所望の印字形成を行う印刷装置に関する。   The present invention relates to a printing apparatus that performs desired printing on a medium to be printed.

一般に、サーマルヘッドを用いる印刷装置においては、搬送手段が被印字媒体を搬送し、その搬送される被印字媒体に対しサーマルヘッドの複数の発熱素子が印字を行い、印刷物を作成する。搬送手段の駆動源としてパルスモータ(ステッピングモータ)を用いる従来技術として、例えば、特許文献1に記載の技術がある。   In general, in a printing apparatus using a thermal head, a conveying unit conveys a printing medium, and a plurality of heating elements of the thermal head print on the conveyed printing medium to create a printed matter. As a conventional technique using a pulse motor (stepping motor) as a driving source for the conveying means, for example, there is a technique described in Patent Document 1.

上記従来技術のようにパルスモータを用いる印刷装置では、パルスモータの目標速度の設定は、サーマルヘッドでの通電制御内容に対応して行われる。すなわち、サーマルヘッドは、それぞれが複数の発熱素子を備えた複数の発熱領域(ブロック)へと可変に分割可能に構成されており、それら分割された発熱領域ごとに個別に通電可能となっている。これにより、罫線や黒ベタ領域の印字を行うとき等の多数の発熱素子への通電を行う必要がある場合であっても、複数の発熱領域を時系列的に近接した間隔で順次通電することにより、限られたエネルギ量の範囲内で多数の発熱素子に対する通電を円滑かつ確実に行い、当該罫線や黒ベタ領域等の印字を確実に実行することができる。そして、上記従来技術では、印刷時に何個の発熱領域に分割するべきであるか(=分割数)を、印刷するドット数によって動的に変動させる、いわゆる動的分割駆動が行われる。   In a printing apparatus using a pulse motor as in the above prior art, the setting of the target speed of the pulse motor is performed according to the energization control content of the thermal head. That is, the thermal head is configured to be variably divided into a plurality of heat generating regions (blocks) each having a plurality of heat generating elements, and can be individually energized for each of the divided heat generating regions. . As a result, even when it is necessary to energize a large number of heating elements, such as when printing ruled lines and black solid areas, it is necessary to energize multiple heating areas sequentially at close intervals in time series. Accordingly, it is possible to smoothly and reliably energize a large number of heating elements within a limited energy amount, and to reliably perform printing of the ruled lines, the black solid area, and the like. In the above-described prior art, so-called dynamic division driving is performed in which the number of heat generation regions to be divided (= number of divisions) at the time of printing is dynamically changed according to the number of dots to be printed.

特開平11−320941号公報Japanese Patent Laid-Open No. 11-320941

上記従来技術では、上記動的分割駆動の実行に対応して、上記目標速度の算出時に、算出する目標速度の値自体を、例えば前回のドットラインのモータ周期や予め記憶されたモータ基本周期等を用いて所定の制約にしたがって補正する。これにより、上記動的分割駆動において多分割から少分割への急激な変動や少分割から多分割への急激な変動を行うときに、モータ回転周期の変動によって駆動音が大きくなったり脱調するのを防止することができる。   In the prior art, in response to the execution of the dynamic division driving, when calculating the target speed, the value of the target speed to be calculated itself is, for example, the previous dot line motor period or a pre-stored motor basic period. Is corrected according to a predetermined constraint. As a result, when the dynamic division drive makes a sudden change from multiple divisions to small divisions or a sudden change from small divisions to multiple divisions, the drive sound becomes louder or steps out due to fluctuations in the motor rotation cycle. Can be prevented.

しかしながら、上記のように算出する目標速度の値自体を補正する手法では、加減速条件によっては円滑な動作ができなくなるおそれがある。この結果、目標速度までの加減速を円滑に実行できない可能性があった。   However, in the method of correcting the target speed value itself calculated as described above, there is a possibility that smooth operation cannot be performed depending on the acceleration / deceleration conditions. As a result, acceleration / deceleration up to the target speed may not be executed smoothly.

本発明の目的は、パルスモータの駆動力により被印字媒体の搬送を行う印刷装置において、目標速度までの加減速を確実に円滑に実行できる構成を提供することにある。   An object of the present invention is to provide a configuration capable of reliably and smoothly executing acceleration / deceleration up to a target speed in a printing apparatus that conveys a medium to be printed by a driving force of a pulse motor.

上記目的を達成するために、本願発明は、パルスモータと、前記パルスモータの駆動力を用いて被印字媒体を搬送するための搬送手段と、前記被印字媒体を前記搬送方向に印字解像度に区分してなる各印字ライン上にドットをそれぞれ形成する複数の発熱素子を備えるとともに、前記搬送方向と直交する方向に沿った複数の発熱領域ごとに可変に分割して給電可能なサーマルヘッドと、前記パルスモータの回転速度を制御する搬送制御手段と、前記搬送手段による搬送の開始後、印字を行うための印字データを1つの前記印字ライン単位に分割したライン印字データごとに通電態様を切り替えつつ、前記印字データに対応した通電制御を行う印字制御手段と、を有する、印刷装置であって、前記印刷装置の動作環境に係わる第1動作環境情報に基づき、前記発熱領域への1回の通電時間を決定する通電時間決定手段と、Nを2以上の整数としたとき、前記パルスモータの停止状態から最高速度状態までの間に対応した所定の第1ライン数範囲の1/Nである1ブロックを単位として、前記1ブロックにおける前記パルスモータの加減速開始点から加減速完了点までの加減速挙動をそれぞれ定めた複数種類の加減速テーブルを記憶した、第1記憶手段と、予め離散して段階的に定められた前記パルスモータの複数の設定速度を記憶した、第2記憶手段と、処理起点となる起点ブロックから前記起点ブロックのN個後の順番のブロックまでの、処理対象となる第2ライン数範囲に関する第2動作環境情報に基づき、前記第2ライン数範囲における、同時に通電される前記複数の発熱素子の最大値である最大同時オンドット数を決定するオンドット数決定手段と、前記オンドット数決定手段により決定された前記最大同時オンドット数に基づき、前記第2ライン数範囲における、分割されて給電される前記発熱領域の数の最大値である最大分割数を決定する分割数決定手段と、前記通電時間決定手段により決定された前記通電時間と、前記分割数決定手段により決定された前記最大分割数とに基づき、前記ライン印字データごとの通電タイミングの間隔である印字周期を決定する印字周期決定手段と、前記第2記憶手段に記憶された前記複数の設定速度の中から、前記印字周期決定手段により決定された前記印字周期に応じた速度を、目標速度として選択する目標速度選択手段と、前記目標速度選択手段により選択された前記目標速度が前記加減速テーブルの適用範囲内となるか適用範囲外となるかを判定する、目標速度判定手段と、前記目標速度判定手段により、前記目標速度選択手段選択した前記目標速度が、前記第1記憶手段に記憶された前記1ブロック単位の加減速テーブルの適用範囲外であると判定された場合には、適用範囲内となるように、前記選択された目標速度を、前記第2記憶手段に記憶された前記複数の設定速度に含まれる別の速度に置き換える、目標速度置換手段と、前記目標速度判定手段により前記目標速度が前記適用範囲外であると判定された場合には、現在の速度と、前記目標速度置換手段により前記別の速度に置き換えられた新たな目標速度とに基づき、前記第1記憶手段に記憶された前記複数種類の加減速テーブルから、対応する特定の加減速テーブルを選択するとともに、前記目標速度判定手段により前記目標速度が前記適用範囲内であると判定された場合には、前記目標速度選択手段により選択された前記目標速度に基づく加減速テーブルを選択する、テーブル選択手段と、を有し、前記搬送制御手段は、前記テーブル選択手段により選択された前記特定の加減速テーブルを用いて前記パルスモータの回転速度を制御し、前記印字制御手段は、前記印字周期決定手段により決定された前記印字周期に基づき、前記通電制御を行うことを特徴とする。 In order to achieve the above object, the present invention relates to a pulse motor, conveying means for conveying a printing medium using the driving force of the pulse motor, and dividing the printing medium into printing resolutions in the conveyance direction. A thermal head that includes a plurality of heat generating elements that respectively form dots on each print line, and that can be variably divided into a plurality of heat generating regions along a direction orthogonal to the transport direction, While switching the energization mode for each line print data obtained by dividing the print data for printing after the start of the conveyance by the conveyance means and the conveyance control means for controlling the rotation speed of the pulse motor, into one print line unit, A printing control unit that performs energization control corresponding to the print data, the first operation environment information relating to the operation environment of the printing device And an energization time determining means for determining an energization time for one time to the heat generation area, and a predetermined first time corresponding to a period from the stop state to the maximum speed state of the pulse motor when N is an integer of 2 or more. Stores multiple types of acceleration / deceleration tables that define the acceleration / deceleration behavior from the acceleration / deceleration start point to the acceleration / deceleration completion point of the pulse motor in one block, with 1 block being 1 / N of one line range. The first storage means, the second storage means for storing a plurality of set speeds of the pulse motor that are discretely determined in advance, and the N blocks after the start block from the start block serving as the process start point The plurality of heating elements that are energized simultaneously in the second line number range based on the second operating environment information regarding the second line number range to be processed up to the block in the order of On-dot number determination means for determining the maximum number of simultaneous on-dots, which is the maximum value, and divided power supply in the second line number range based on the maximum simultaneous on-dot number determined by the on-dot number determination means A division number determining means for determining a maximum number of divisions that is a maximum value of the number of the heat generation regions, the energization time determined by the energization time determining means, and the maximum division determined by the division number determining means A printing cycle determining unit that determines a printing cycle that is an interval of energization timing for each line print data, and the printing cycle determination from among the plurality of set speeds stored in the second storage unit. the speed corresponding to the printing period determined by the means, a target speed selecting means for selecting as a target speed, the target selected by the target speed selection means Speed determines whether the applicable range to become either outside the scope of the deceleration table, and the target speed determining means, by the target speed determining means, the target speed the target speed selection means has selected, the If it is determined that the acceleration / deceleration table in units of one block stored in the first storage means is outside the applicable range, the selected target speed is set to the second storage so as to be within the applicable range. If the target speed is replaced by another speed included in the plurality of set speeds stored in the means, and the target speed is determined to be outside the applicable range by the target speed determination means, and speed of the plurality of types of deceleration table stored in said another based on the new target speed is replaced with the speed, the first memory means by said target speed replacement unit, corresponding JP Deceleration table with selecting deceleration table, when the target speed by the target speed determining means is determined to be within the range of application, based on the target speed selected by the target speed selection means And a table selection unit that controls the rotation speed of the pulse motor using the specific acceleration / deceleration table selected by the table selection unit, and the print control unit. Performs the energization control based on the printing cycle determined by the printing cycle determination means.

本願発明の印刷装置においては、搬送手段が被印字媒体を搬送し、その搬送される被印字媒体に対し、サーマルヘッドの複数の発熱素子が印字を行い、印刷物を作成する。   In the printing apparatus of the present invention, the conveying means conveys the printing medium, and the plurality of heating elements of the thermal head print on the conveyed printing medium to create a printed matter.

ここで、搬送手段の駆動源としてはパルスモータが用いられ、パルスモータの回転速度は搬送制御手段によって制御される。パルスモータはパルス1つを与えること(励磁相を次の状態に切り替えること)で所定角度の回転を行い、当該パルスを与える間隔を短くしたり長くしたりすることで回転速度の制御が行われる。当該間隔を徐々に短くすることで回転速度を加速することができ、当該間隔を徐々に長くすることで回転速度を減速することができる。本願発明においては、このようなパルスモータの加速挙動(若しくは、減速挙動)を実現するために、予め、パルス付与間隔の最小値及びその最小値まで減少させるときの態様(若しくは、最大値及びその最大値まで増大させるときの態様)をパターン化し、複数種類の加減速テーブルとして用意しておく。これにより、搬送制御手段が実際にパルスモータの回転速度を制御する際には、当該複数種類のテーブルからいずれか1つを選択し、当該選択した加減速テーブルに沿ってパルスモータへパルスを発することにより、所望の加速挙動(若しくは減速挙動)を容易に実現することができる。   Here, a pulse motor is used as a driving source for the conveying means, and the rotation speed of the pulse motor is controlled by the conveying control means. The pulse motor rotates by a predetermined angle by giving one pulse (switching the excitation phase to the next state), and the rotation speed is controlled by shortening or lengthening the interval of giving the pulse. . The rotational speed can be accelerated by gradually shortening the interval, and the rotational speed can be decelerated by gradually increasing the interval. In the present invention, in order to realize the acceleration behavior (or deceleration behavior) of such a pulse motor, the mode (or the maximum value and its maximum value) when the pulse application interval is reduced to the minimum value and the minimum value in advance. A mode when increasing to the maximum value is patterned and prepared as a plurality of types of acceleration / deceleration tables. Thereby, when the conveyance control means actually controls the rotation speed of the pulse motor, one of the plurality of types of tables is selected, and a pulse is emitted to the pulse motor along the selected acceleration / deceleration table. Thus, a desired acceleration behavior (or deceleration behavior) can be easily realized.

ここで、モータは、慣性の大きな回転子を回転させる構成であることから、急加速や急減速は困難である。また、各モータの特性上、停止状態から最高速度状態まで、脱調が発生せず効率のよい駆動制御を行えるライン−速度相関が概ね一意的に定まる。そこで、一般的には、パルスモータの停止状態から最高速度状態までの間に対応した所定のライン数範囲(以下適宜、「加減速ライン数」という)を1単位として、上記加減速テーブルでは、上記加減速ライン数における加減速開始点から加減速完了点までの加減速挙動が定められる。すなわち、速度制御時には、現在から上記加減速ライン数だけ後において実現すべきパルスモータの目標速度が設定され、現在速度と、上記加減速パルス後の上記目標速度との偏差に応じて上記加減速テーブルが選択され、モータ速度が制御される。   Here, since the motor is configured to rotate a rotor having a large inertia, it is difficult to suddenly accelerate or decelerate. Further, the line-speed correlation that allows efficient drive control without out-of-step from the stop state to the maximum speed state is uniquely determined from the characteristics of each motor. Therefore, in general, in the acceleration / deceleration table, a predetermined line number range (hereinafter referred to as “acceleration / deceleration line number” as appropriate) corresponding to a period from the stop state to the maximum speed state of the pulse motor is defined as one unit. The acceleration / deceleration behavior from the acceleration / deceleration start point to the acceleration / deceleration completion point in the number of acceleration / deceleration lines is determined. That is, at the time of speed control, the target speed of the pulse motor to be realized after the number of acceleration / deceleration lines from the present is set, and the acceleration / deceleration is performed according to the deviation between the current speed and the target speed after the acceleration / deceleration pulse. A table is selected and the motor speed is controlled.

しかしながら、例えば高速印刷モードのように通常よりも高速での搬送が行われる場合は上記加減速ライン数の値(上記所定のライン数範囲の大きさ)が大きくなり、上記のような加減速ライン数を単位とする制御では、加減速テーブルのパターンの種類によっては著しく印字処理が遅くなる恐れがある。このため、例えば通常の速度では文字と文字との間の無印刷部分においてモータ速度を最高速度状態まで加速できていたのが上記高速化によってできなくなったり、多数の発熱素子の通電が必要な罫線や黒ベタ等では(もともと印字処理の遅い時間が長いことから)上記高速化により最高速度が上がっても当該最高速度に到達するまでの時間が増大し、かえって通常印刷モードよりも長い処理時間がかかったりする恐れがある。これを回避するために、トルクの大きなパルスモータを使用して上記加減速ライン数を小さくすることが考えられるが、トルク増大のためにはモータの大型化や重量増大を招いたり特殊な電源が必要となったりする。   However, for example, when the conveyance is performed at a higher speed than usual as in the high-speed printing mode, the value of the acceleration / deceleration line number (the size of the predetermined line number range) becomes large, and the acceleration / deceleration line as described above. In the control using a number as a unit, there is a possibility that the printing process may be significantly delayed depending on the type of pattern of the acceleration / deceleration table. For this reason, for example, at a normal speed, the motor speed could be accelerated to the maximum speed in the non-printed portion between characters, but it becomes impossible due to the above speed increase, or a ruled line that requires energization of many heating elements In the case of a solid black or the like (originally, the slow processing time is long), even if the maximum speed increases due to the above speed increase, the time required to reach the maximum speed increases. There is a risk of it. In order to avoid this, it is conceivable to reduce the number of acceleration / deceleration lines using a pulse motor with a large torque. However, in order to increase the torque, the motor is increased in size and weight, or a special power source is used. It is necessary.

そこで、本願発明においては、パルスモータの停止状態から最高速度状態までの間に対応した上記所定のライン数範囲(加減速ライン数)を1単位とするのではなく、その1/N(N:2以上の整数)を1ブロックとして、当該ブロック単位で速度制御を行う。すなわち、上記1ブロックでの加減速挙動が加減速テーブルとして第1記憶手段に記憶されており、この加減速テーブルからテーブル選択手段によって選択された特定の加減速テーブルを用いて、搬送制御手段がパルスモータの回転速度を制御する。このようにして従来よりも細かい間隔でテーブルを適用して制御を行うことにより、上記のようにモータの大型化や重量増大を招くことなく、また特殊な電源を用いなくても、高速印刷(高速搬送)に対応することができる。   Therefore, in the present invention, the predetermined line number range (the number of acceleration / deceleration lines) corresponding to the period from the stop state to the maximum speed state of the pulse motor is not set as one unit, but 1 / N (N: (An integer of 2 or more) is set as one block, and speed control is performed in units of the block. That is, the acceleration / deceleration behavior in one block is stored in the first storage means as the acceleration / deceleration table, and the transport control means uses the specific acceleration / deceleration table selected by the table selection means from this acceleration / deceleration table. Controls the rotational speed of the pulse motor. In this way, control is performed by applying a table at finer intervals than in the past, so that high-speed printing (without increasing the size and weight of the motor as described above, and without using a special power source ( High-speed conveyance).

ところで、上記のパルスモータの目標速度の設定は、サーマルヘッドでの通電制御内容に対応して行われる。すなわち、サーマルヘッドには複数の発熱素子が備えられており、当該複数の発熱素子への通電は印字制御手段によって制御される。本願発明においては、サーマルヘッドは、それぞれが複数の発熱素子を備えた複数の発熱領域へと可変に分割可能に構成されており、それら分割された発熱領域ごとに個別に通電可能となっている。これにより、罫線や黒ベタ領域の印字を行うとき等の多数の発熱素子への通電を行う必要がある場合であっても、複数の発熱領域を時系列的に近接した間隔で順次通電することにより、限られたエネルギ量の範囲内で多数の発熱素子に対する通電を円滑かつ確実に行い、当該罫線や黒ベタ領域等の印字を確実に実行することができる。そして、このときに何個の発熱領域に分割するべきであるか(=分割数)については、現在処理中のブロックよりも後に処理するブロックでの処理内容を考慮して、決定される。具体的には、起点ブロックからそのN個後のブロックまでの第2ライン数範囲における(例えばサーマルヘッドの電圧やサーマルヘッドの抵抗値等の)第2動作環境情報に基づき当該第2ライン数範囲の最大同時オンドット数がオンドット数決定手段により決定され、その最大同時オンドット数に応じて、分割数決定手段が当該第2ライン数範囲での最大分割数を決定する。一方このとき、通電時間決定手段により、サーマルヘッドの発熱領域への1回の通電時間が(印刷装置の電圧や温度等の)第1動作環境情報に基づき1回の通電時間を決定される。そして、この決定された通電時間と上記決定された最大分割数とに基づき、印字周期決定手段によって通電タイミング間隔(=印字周期)が決定され、この決定された印字周期に応じて目標速度が決定される。このとき、本願発明においては、パルスモータの複数の設定速度値が予め離散して段階的に定められており、それら複数の設定速度値は第2記憶手段に記憶されている。この記憶された複数の設定速度のうち、前述のようにして決定された印字周期に応じたものが、目標速度として目標速度選択手段により選択される。これにより、目標速度を簡素な制御で容易かつ迅速に決定することができる。   By the way, the setting of the target speed of the pulse motor is performed according to the energization control contents in the thermal head. In other words, the thermal head is provided with a plurality of heating elements, and energization of the plurality of heating elements is controlled by the print control means. In the present invention, the thermal head is configured to be variably divided into a plurality of heat generating regions each having a plurality of heat generating elements, and can be individually energized for each of the divided heat generating regions. . As a result, even when it is necessary to energize a large number of heating elements, such as when printing ruled lines and black solid areas, it is necessary to energize multiple heating areas sequentially at close intervals in time series. Accordingly, it is possible to smoothly and reliably energize a large number of heating elements within a limited energy amount, and to reliably perform printing of the ruled lines, the black solid area, and the like. At this time, the number of heat generation regions to be divided (= the number of divisions) is determined in consideration of the processing contents in a block processed after the block currently being processed. Specifically, the second line number range based on the second operating environment information (for example, the voltage of the thermal head and the resistance value of the thermal head) in the second line number range from the starting block to the Nth block after that. The maximum number of simultaneous on dots is determined by the on dot number determination means, and the division number determination means determines the maximum number of divisions in the second line number range in accordance with the maximum number of simultaneous on dots. On the other hand, at this time, the energizing time determining means determines the energizing time for one time based on the first operating environment information (such as the voltage and temperature of the printing apparatus) for the heating area of the thermal head. Then, based on the determined energization time and the determined maximum number of divisions, the energization timing interval (= printing cycle) is determined by the printing cycle determining means, and the target speed is determined according to the determined printing cycle. Is done. At this time, in the present invention, a plurality of set speed values of the pulse motor are determined in a discrete and stepwise manner, and the plurality of set speed values are stored in the second storage means. Of the plurality of stored set speeds, the speed corresponding to the printing cycle determined as described above is selected as the target speed by the target speed selecting means. Thus, the target speed can be determined easily and quickly with simple control.

ここで、前述した所定のライン数範囲(加減速ライン数)は、パルスモータの停止状態から最高速度状態までの間に対応したものである。したがって、上記のように当該加減速ライン数の1/N(N:2以上の整数)を1ブロックとして制御を行う本願発明の手法では、現在速度と目標速度との差が大きい場合に、モータ性能上、当該1ブロック内では当該目標速度までの加減速を実現できない場合があり得る。そこで、本願発明では、このような場合には、上記のようにして目標速度選択手段により選択された目標速度の置き換えが行われる。すなわち、本願発明では、例えばパルスモータの標準的な特性を表す、停止状態と最高速度状態との間での基準加減速特性を定めたライン−速度相関が予め実測により決定されている。そして、前述のようにして目標速度選択手段によって目標速度が選択されたときに、当該目標速度が上記ライン−速度相関を逸脱し遵守範囲外との値となる場合(言い換えれば、目標速度が上記1ブロック単位の加減速テーブルの適用範囲外となる場合)には、目標速度置換手段が、目標速度の置き換えを行う。つまり、目標速度置換手段は、上記選択された目標速度を、第2記憶手段に記憶された複数の設定速度に含まれる別の速度に置き換えることで、上記ライン−速度相関を逸脱しない遵守範囲内の値となるように(言い換えれば、目標速度が上記1ブロック単位の加減速テーブルの適用範囲内となるように)ようにする。そして、テーブル選択手段は、上記置き換えられた目標速度に基づいて、対応する特定の加減速テーブルの選択を行う。これにより、現在速度と目標速度との差が大きい場合であっても、確実に当該目標速度までの加減速を実行することができる。特にこのとき、上記のように、予め複数用意された設定速度の中から目標速度を別の値に置き換える手法とすることにより、算出する目標速度の値自体を(例えば前回のドットラインのモータ周期や予め記憶されたモータ基本周期等を用いて)所定の制約にしたがって補正する場合のように、加減速条件によっては円滑な動作ができなくなるという可能性がなくなる。すなわち、目標速度までの加減速を確実に円滑に実行することができる。   Here, the predetermined line number range (acceleration / deceleration line number) described above corresponds to the period from the stop state of the pulse motor to the maximum speed state. Therefore, in the method of the present invention in which control is performed with 1 / N (N: an integer of 2 or more) of the number of acceleration / deceleration lines as one block as described above, when the difference between the current speed and the target speed is large, the motor In terms of performance, acceleration / deceleration up to the target speed may not be realized within the block. Therefore, in the present invention, in such a case, the target speed selected by the target speed selecting means is replaced as described above. That is, in the present invention, for example, a line-speed correlation that defines a standard acceleration / deceleration characteristic between a stop state and a maximum speed state, which represents a standard characteristic of a pulse motor, is determined in advance by actual measurement. Then, when the target speed is selected by the target speed selecting means as described above, the target speed deviates from the line-speed correlation and becomes a value outside the compliance range (in other words, the target speed is If the acceleration / deceleration table is outside the application range of the block unit), the target speed replacement means replaces the target speed. That is, the target speed replacement unit replaces the selected target speed with another speed included in the plurality of set speeds stored in the second storage unit, so that the target speed replacement unit does not deviate from the line-speed correlation. (In other words, the target speed is within the application range of the acceleration / deceleration table in units of one block). Then, the table selection means selects a corresponding specific acceleration / deceleration table based on the replaced target speed. As a result, even when the difference between the current speed and the target speed is large, acceleration / deceleration up to the target speed can be reliably executed. In particular, at this time, as described above, by replacing the target speed with a different value from a plurality of preset speeds prepared in advance, the calculated target speed value itself (for example, the motor cycle of the previous dot line) In other words, there is no possibility that smooth operation cannot be performed depending on acceleration / deceleration conditions as in the case of correction according to a predetermined constraint (using a motor basic cycle or the like stored in advance). That is, acceleration / deceleration up to the target speed can be executed smoothly and reliably.

本発明によれば、パルスモータの駆動力により被印字媒体の搬送を行うとき、目標速度までの加減速を確実に円滑に実行することができる。   According to the present invention, when the medium to be printed is conveyed by the driving force of the pulse motor, the acceleration / deceleration up to the target speed can be surely and smoothly performed.

本発明の印刷装置の一実施形態の外観を表す斜視図である。1 is a perspective view illustrating an appearance of an embodiment of a printing apparatus according to the present invention. 上カバーを開いた状態の印刷装置を表す斜視図である。It is a perspective view showing the printing apparatus of the state which opened the upper cover. 印刷装置の前後方向に沿う側断面図である。It is a sectional side view along the front-back direction of a printing apparatus. 印刷装置の制御系を表す機能ブロック図である。It is a functional block diagram showing a control system of the printing apparatus. 実測によって決定された基本モータテーブルである。It is a basic motor table determined by actual measurement. 停止状態から最高速度状態までの間に対応した24パルスを1単位としてパルスモータを制御する場合、及び、24パルスの1/2である12パルスをブロック単位としてパルスモータを制御する場合、をそれぞれ表す説明図である。When the pulse motor is controlled with 24 pulses corresponding to the period from the stop state to the maximum speed state as one unit, and when the pulse motor is controlled with 12 pulses that are 1/2 of 24 pulses as a block unit, respectively. FIG. ROMが記憶した加減速テーブルである。An acceleration / deceleration table stored in a ROM. ROMが記憶した加減速テーブルである。An acceleration / deceleration table stored in a ROM. ROMが記憶した加減速テーブルである。An acceleration / deceleration table stored in a ROM. ROMが記憶した加減速テーブルである。An acceleration / deceleration table stored in a ROM. 24パルスを制御単位としてパルスモータを制御する比較例と、12パルスを制御単位としてパルスモータを制御する本実施形態と、を対比して表す説明図ある。It is explanatory drawing which compares and shows the comparative example which controls a pulse motor for 24 pulses as a control unit, and this embodiment which controls a pulse motor for 12 pulses as a control unit. ROMが記憶した目標速度テーブルである。It is a target speed table stored in the ROM. ROMが記憶した目標速度の目標速度置換テーブルである。3 is a target speed replacement table of target speeds stored in a ROM. CPUが実行する制御手順を表すフローチャートである。It is a flowchart showing the control procedure which CPU performs.

以下、本発明の一実施の形態を図面を参照しつつ説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

<印刷装置の構成>
本発明の印刷装置の一実施形態の概略構成について、図1〜図3を参照して説明する。図1〜図3に示すように、本実施形態の印刷装置1は、筺体2と、上カバー5とを備えている。筺体2の前部には、上カバー5に続く後端部に樹脂製のトレー6が立設され、トレー6の前方に電源ボタン7が配置され、電源ボタン7の下方に、カッターユニット8(図3参照)を切断動作させるカッターレバー9が、筺体2の幅方向(左右方向)に移動可能に設けられている。
<Configuration of printing device>
A schematic configuration of an embodiment of a printing apparatus according to the present invention will be described with reference to FIGS. As shown in FIGS. 1 to 3, the printing apparatus 1 according to the present embodiment includes a housing 2 and an upper cover 5. At the front part of the housing 2, a resin tray 6 is erected at the rear end part following the upper cover 5, a power button 7 is disposed in front of the tray 6, and a cutter unit 8 ( A cutter lever 9 that performs a cutting operation is provided so as to be movable in the width direction (left-right direction) of the housing 2.

筺体2の左側部には、サーマルヘッド23(図3参照)を上下動させる操作レバー21が上下方向に回動に設けられている。筺体2の背面には、電源コード10が接続され、また、パーソナルコンピュータ26(後述の図4参照)と接続するUSB(Universal Serial Bus)等から構成されるコネクタ部(図示せず)が設けられている。上カバー5は、後方端部において筐体2に回動可能に接続されており、これにより上カバー5は筐体2に対し開閉可能な構造となっている。   An operation lever 21 for moving the thermal head 23 (see FIG. 3) up and down is provided on the left side of the housing 2 so as to rotate in the vertical direction. A power cord 10 is connected to the rear surface of the housing 2, and a connector portion (not shown) including a USB (Universal Serial Bus) connected to the personal computer 26 (see FIG. 4 described later) is provided. ing. The upper cover 5 is pivotally connected to the housing 2 at the rear end, and thus the upper cover 5 is configured to be openable and closable with respect to the housing 2.

また、印刷装置1は、図2及び図3に示すように、筐体2の内部空間の後方に、凹状のホルダ収納部4を有している。このホルダ収納部4に、被印字テープ3A(被印字媒体)のロール3を取り付けたロールホルダ3aが、ロール幅方向を筺体2の幅方向に一致させて、被印字テープ3Aをロール上側より繰り出すように収納されている。被印字テープ3Aは、自己発色性を有する被印字層を備えた長尺状の感熱シート(いわゆる、サーマルペーパー)や、該感熱シートの片面に、被着体に貼り付けるための粘着剤層を介して離形紙が張り合わされた長尺状のラベルシート等からなり、巻芯に巻回してロール3を形成している。   In addition, the printing apparatus 1 has a concave holder storage portion 4 behind the internal space of the housing 2 as shown in FIGS. 2 and 3. A roll holder 3a in which a roll 3 of a print-receiving tape 3A (print-receiving medium) is attached to the holder housing portion 4 makes the roll width direction coincide with the width direction of the housing 2 and feeds the print-receiving tape 3A from the upper side of the roll. So that it is stored. The print-receiving tape 3A includes a long heat-sensitive sheet (so-called thermal paper) having a print-receiving layer having self-coloring properties, and an adhesive layer for adhering to an adherend on one side of the heat-sensitive sheet. It is made of a long label sheet or the like on which release paper is laminated, and is wound around a winding core to form a roll 3.

ロールホルダ3aは、ロール3の幅方向一方側(図2の左側)のガイド部材13と、ロール3の幅方向他方側(図2の右側)の保持部材12と、これら保持部材12とガイド部材13とを連結する軸部材(図示せず)とを備えている。ロール3の巻芯は、ガイド部材13を外した上記軸部材に挿通され、軸部材の巻芯から突出したロール幅方向一方側の端部にガイド部材13が固定される。これにより、ロール3の幅方向一方側端部がガイド部材13に接触し、ロール3の幅方向他方側端部が保持部材12に接触した状態で、ロール3が軸部材4の廻りに回転可能にロールホルダ3aに取り付けられる。   The roll holder 3a includes a guide member 13 on one side in the width direction of the roll 3 (left side in FIG. 2), a holding member 12 on the other side in the width direction of the roll 3 (right side in FIG. 2), and the holding member 12 and the guide member. 13 is provided with a shaft member (not shown). The core of the roll 3 is inserted into the shaft member from which the guide member 13 is removed, and the guide member 13 is fixed to an end portion on one side in the roll width direction protruding from the core of the shaft member. Thereby, the roll 3 can rotate around the shaft member 4 in a state in which one end in the width direction of the roll 3 is in contact with the guide member 13 and the other end in the width direction of the roll 3 is in contact with the holding member 12. To the roll holder 3a.

ロールホルダ3aのガイド部材13は、図3に示すように、ロール3から繰り出し搬送される被印字テープ3Aを案内するためのテープ搬送方向に延出した案内部13aを備えている。案内部13aの下端は水平に形成されている。一方、ホルダ収納部4の前方部には、水平な載置部20が設けられている。ホルダ収納部4のロール幅方向他方側には、図2に示すように、上向きに開口した長穴状の位置決め溝部16を有するホルダ支持部材15が立設されている。ホルダ収納部4に挿入したロールホルダ3aは、ガイド部材13の案内部13aがホルダ収納部4の載置部20に載置され、保持部材12の取付部12aがホルダ支持部材15の位置決め溝部16に嵌合される。これにより、ロールホルダ3aがホルダ収納部4に着脱自在に取り付けられる。   As shown in FIG. 3, the guide member 13 of the roll holder 3 a includes a guide portion 13 a extending in the tape transport direction for guiding the print-receiving tape 3 </ b> A fed out and transported from the roll 3. The lower end of the guide part 13a is formed horizontally. On the other hand, a horizontal placement portion 20 is provided in the front portion of the holder storage portion 4. As shown in FIG. 2, a holder support member 15 having an elongated hole-shaped positioning groove portion 16 opened upward is erected on the other side in the roll width direction of the holder storage portion 4. In the roll holder 3 a inserted into the holder housing portion 4, the guide portion 13 a of the guide member 13 is placed on the placement portion 20 of the holder housing portion 4, and the mounting portion 12 a of the holding member 12 is positioned on the positioning groove portion 16 of the holder support member 15. Fitted. Thereby, the roll holder 3a is detachably attached to the holder storage portion 4.

ホルダ収納部4の前方部の載置部20のテープ搬送方向下流側には、図3に示すように、上下動可能に設置されたサーマルヘッド23が配置され、このサーマルヘッド23の上方に、プラテンローラ22(搬送手段)が対向配置されている。ホルダ収納部4の前方部は、載置部20から下方向に折曲して前方に延び、ロール3から繰り出し・搬送される被印字テープ3Aをプラテンローラ22とサーマルヘッド23との対向部へと挿入する挿入口18に至っている。   As shown in FIG. 3, a thermal head 23 installed so as to be movable up and down is arranged on the downstream side in the tape transport direction of the mounting portion 20 at the front portion of the holder storage portion 4, and above the thermal head 23, A platen roller 22 (conveying means) is disposed oppositely. The front portion of the holder storage portion 4 is bent downward from the placement portion 20 and extends forward, and the print-receiving tape 3 </ b> A fed out and conveyed from the roll 3 is transferred to the facing portion between the platen roller 22 and the thermal head 23. It leads to the insertion port 18 to be inserted.

プラテンローラ22は、ロール3からの被印字テープ3Aを上方に移動されたサーマルヘッド23との間で挟持し、パルスモータ24(後述の図4参照)により回転駆動されることによって被印字テープ3Aを搬送する。   The platen roller 22 holds the print-receiving tape 3A from the roll 3 with the thermal head 23 moved upward, and is driven to rotate by a pulse motor 24 (see FIG. 4 described later), whereby the print-receiving tape 3A. Transport.

サーマルヘッド23は、被印字テープ3Aをテープ搬送方向に印字解像度に区分してなる各印字ライン上にドットをそれぞれ形成する、テープ搬送方向と直交する直交方向に配列された複数の発熱素子(図示せず)を備えている。サーマルヘッド23は、印刷データにしたがって発熱素子に通電することによって、プラテンローラ22との間で挟持した被印字テープ3Aの上記被印字層(下側の表面)に対し印字データに応じた印刷を行う。なお、このサーマルヘッド23は、筺体2の左側部の上記操作レバー21を上方に回動させると、下方に移動されてプラテンローラ22から離間し、操作レバー21を下方に回動させると、上方に移動されて被印字テープ3Aを介してプラテンローラ22に圧接され、印刷可能な状態になる。   The thermal head 23 forms dots on each print line formed by dividing the print-receiving tape 3A into print resolution in the tape transport direction, and forms a plurality of heating elements arranged in a direction orthogonal to the tape transport direction (see FIG. Not shown). The thermal head 23 energizes the heating element in accordance with the print data, thereby printing according to the print data on the above-mentioned print layer (lower surface) of the print-receiving tape 3 </ b> A sandwiched between the thermal head 23 and the platen roller 22. Do. The thermal head 23 is moved downward to move away from the platen roller 22 when the operation lever 21 on the left side of the housing 2 is rotated upward, and is moved upward when the operation lever 21 is rotated downward. And is pressed against the platen roller 22 via the print-receiving tape 3 </ b> A so that printing is possible.

サーマルヘッド23のテープ搬送方向下流側には、被印字テープ3Aの幅方向に移動自在な上記カッターユニット8が配置されている。カッターユニット8は、筺体2の前部下方の上記カッターレバー9を筺体2の幅方向に移動すると、被印字テープ3Aの幅方向に移動して、サーマルヘッド23による印刷が終了し、トレー6に排出された印刷済みの被印字テープ3Aを幅方向に切断する。   The cutter unit 8 that is movable in the width direction of the print-receiving tape 3 </ b> A is disposed downstream of the thermal head 23 in the tape conveyance direction. When the cutter lever 9 below the front portion of the casing 2 is moved in the width direction of the casing 2, the cutter unit 8 moves in the width direction of the print-receiving tape 3 </ b> A, and printing by the thermal head 23 is completed. The discharged print target tape 3A is cut in the width direction.

<印刷操作>
上記印刷装置1の印刷操作について説明する。まず、操作レバー21を上方に回動して、サーマルヘッド23をプラテンローラ22に対し下方に離間した状態に位置させる。その状態で、ロール3を取り付けたロールホルダ3aをホルダ収納部3aに挿入し、ロールホルダ3aの保持部材12の取付部12aをホルダ支持部材15の位置決め溝部16に嵌め込み、ロールホルダ3aのガイド部材13の案内部13aの下面を載置部20に当接させ、ロール3を取り付けたロールホルダ3aをホルダ収納部4に着脱自在に収納する。続いて、被印字テープ3Aの幅方向一方側の端部をガイド部材13の内側面に当接させつつ、ロール3から被印字テープ3Aを引き出し、引き出された被印字テープ3Aの幅方向他方側の端部を挿入口18のロール幅方向他方側の縁部に当接させつつ、被印字テープ3Aを挿入口18に挿入し、被印字テープ3Aの搬送方向先端部をプラテンローラ22とサーマルヘッド23との間に位置させる。その後、上カバー5を閉じてホルダ収納部4の上側を覆う(図1の状態である)。
<Printing operation>
A printing operation of the printing apparatus 1 will be described. First, the operating lever 21 is rotated upward to position the thermal head 23 in a state of being separated downward with respect to the platen roller 22. In that state, the roll holder 3a to which the roll 3 is attached is inserted into the holder storage portion 3a, the attachment portion 12a of the holding member 12 of the roll holder 3a is fitted into the positioning groove portion 16 of the holder support member 15, and the guide member of the roll holder 3a The lower surface of the 13 guide portions 13 a is brought into contact with the placement portion 20, and the roll holder 3 a to which the roll 3 is attached is detachably stored in the holder storage portion 4. Subsequently, while the end of one side in the width direction of the print-receiving tape 3A is brought into contact with the inner side surface of the guide member 13, the print-receiving tape 3A is pulled out from the roll 3, and the other side in the width direction of the drawn print-receiving tape 3A is pulled out. The print-receiving tape 3A is inserted into the insertion port 18 while the end of the print port is brought into contact with the edge of the insertion port 18 on the other side in the roll width direction. 23. Thereafter, the upper cover 5 is closed to cover the upper side of the holder storage portion 4 (the state shown in FIG. 1).

次に、操作レバー21を下方に回動して、サーマルヘッド23を被印字テープ3Aを介してプラテンローラ22に圧接させた状態に位置させる。そして、パルスモータ24(後述の図4参照)によりプラテンローラ22を回転駆動して、プラテンローラ22により被印字テープ3Aを搬送させる一方、サーマルヘッド23の発熱素子に通電して、発熱素子により被印字テープ3Aの印刷面に印刷データに対応した印字を順次印刷させる。サーマルヘッド23を通過した被印字テープ3Aは、上カバー5と筐体2との間からトレー6上に排出される。そして、被印字テープ3Aへの所定の印刷が終了し、カッターユニット8からの排出長さが所定長に達した時点で、カットレバー9を右側方向に移動操作することによって、被印字テープ3Aが幅方向に切断され、所定の印刷を施した所定長のラベル(印刷物)が作成される。   Next, the operation lever 21 is rotated downward to position the thermal head 23 in a state where it is pressed against the platen roller 22 via the print-receiving tape 3A. Then, the platen roller 22 is rotationally driven by a pulse motor 24 (see FIG. 4 described later), and the print-receiving tape 3A is conveyed by the platen roller 22, while the heating element of the thermal head 23 is energized and covered by the heating element. Printing corresponding to the print data is sequentially printed on the printing surface of the printing tape 3A. The print-receiving tape 3 </ b> A that has passed through the thermal head 23 is discharged onto the tray 6 from between the upper cover 5 and the housing 2. When the predetermined printing on the print-receiving tape 3A is completed and the discharge length from the cutter unit 8 reaches the predetermined length, the cut-lever 9 is moved to the right to move the print-receiving tape 3A. A label (printed material) having a predetermined length, which is cut in the width direction and subjected to predetermined printing, is created.

<制御系>
本実施形態の印刷装置1の制御系について、図4により説明する。図4において、印刷装置1の制御系には、制御回路210が配置されている。制御回路210には、CPU27と、このCPU27に接続されたROM28と、SRAM29とを備えている。なお、ROM28が、各請求項記載の第1記憶手段及び第2記憶手段として機能する。また、CPU27には、インターフェース30を介してモータ駆動回路31(搬送制御手段)と、サーマルヘッド制御回路32(印字制御手段)とが接続され、さらに外部機器としてパーソナルコンピュータ26が接続されている。モータ駆動回路31にはパルスモータ24が接続され、サーマルヘッド制御回路32にはサーマルヘッド23が接続されている。なお、本実施形態では、以下、パルスモータ24について、1ライン−1パルスとして対応づけられている場合を例にとって説明する。また、すなわち、パルスモータ24への1パルスの付与により、プラテンローラ22の回転駆動によって、被印字テープ3Aが、搬送方向に印字解像度に区分した印刷ラインの1ライン分だけ搬送されるようになっている。しかしながら、これに限られるものではなく、その他1ライン−2パルス等、他の対応付けであってもよい。
<Control system>
A control system of the printing apparatus 1 of the present embodiment will be described with reference to FIG. In FIG. 4, a control circuit 210 is arranged in the control system of the printing apparatus 1. The control circuit 210 includes a CPU 27, a ROM 28 connected to the CPU 27, and an SRAM 29. The ROM 28 functions as first storage means and second storage means described in each claim. Further, a motor drive circuit 31 (conveyance control means) and a thermal head control circuit 32 (printing control means) are connected to the CPU 27 via an interface 30, and a personal computer 26 is connected as an external device. A pulse motor 24 is connected to the motor drive circuit 31, and a thermal head 23 is connected to the thermal head control circuit 32. In the present embodiment, the pulse motor 24 will be described below as an example in which the pulse motor 24 is associated with 1 line-1 pulse. In other words, when one pulse is applied to the pulse motor 24, the print-receiving tape 3A is conveyed by one print line divided into print resolutions in the conveyance direction by the rotational drive of the platen roller 22. ing. However, the present invention is not limited to this, and other correspondences such as 1 line-2 pulse may be used.

ROM28には、データテーブルとして、加減速テーブル33と、目標速度テーブル35とが記憶され、アプリケーションプログラムとして、印刷データ先読みプログラム36と、目標速度置換テーブル37とが記憶されている。なお、これら加減速テーブル33、目標速度テーブル35、印刷データ先読みプログラム36、及び目標速度置換テーブル37の詳細については、後述の基本モータテーブル34とともに後に説明する。   In the ROM 28, an acceleration / deceleration table 33 and a target speed table 35 are stored as data tables, and a print data prefetching program 36 and a target speed replacement table 37 are stored as application programs. The details of the acceleration / deceleration table 33, the target speed table 35, the print data prefetching program 36, and the target speed replacement table 37 will be described later together with a basic motor table 34 described later.

SRAM29は、CPU27のデータ処理に必要な一時的なデータの記憶を行うものであり、プリントバッファ40と、分割数メモリ41とを備えている。   The SRAM 29 stores temporary data necessary for the data processing of the CPU 27 and includes a print buffer 40 and a division number memory 41.

プリントバッファ40は、パーソナルコンピュータ26より送信された印刷データを記憶する。   The print buffer 40 stores print data transmitted from the personal computer 26.

分割数メモリ41は、サーマルヘッド23が分割されて給電される発熱領域の数の最大値である最大分割数M(詳細は後述)を記憶する。   The division number memory 41 stores a maximum division number M (details will be described later), which is the maximum value of the number of heat generation regions to which the thermal head 23 is divided and supplied with power.

パルスモータ24は、プラテンローラ22を回転駆動して、プラテンローラ22により被印字テープ3Aを搬送させる。   The pulse motor 24 rotationally drives the platen roller 22 to convey the print-receiving tape 3 </ b> A by the platen roller 22.

モータ駆動回路31は、パルスモータ24に付与するパルスにより、パルスモータ24を回転駆動し回転速度を制御する。   The motor drive circuit 31 drives the pulse motor 24 to rotate by the pulse applied to the pulse motor 24 and controls the rotation speed.

サーマルヘッド制御回路32は、プラテンローラ23による被印字テープ3Aの搬送の開始後、印字を行うための印字データを1つの印字ライン単位に分割したライン印字データごとに通電態様を切り替えつつ、サーマルヘッド23の発熱素子に印字データに対応した通電制御を行う。なおこのとき、サーマルヘッド23の複数の発熱素子は、テープ搬送方向と直交する直交方向に沿って分割した複数の発熱領域ごとに通電可能となっている(詳細は後述)。   The thermal head control circuit 32 switches the energization mode for each line print data obtained by dividing print data for printing into one print line unit after the start of conveyance of the print-receiving tape 3A by the platen roller 23, and The energization control corresponding to the print data is performed on the 23 heating elements. At this time, the plurality of heating elements of the thermal head 23 can be energized for each of the plurality of heating regions divided along the orthogonal direction orthogonal to the tape transport direction (details will be described later).

CPU27は、パーソナルコンピュータ28から送信されプリントバッファ40に記憶された印刷データに基づき、加減速テーブル33等のテーブル類と印刷データ先読みプログラム36等のアプリケーションプログラムなどを使用して、印刷装置1のモータ駆動回路31及びサーマルヘッド制御回路32等の各部を制御して、被印字テープ3Aに印刷データに対応した所定の印刷を行わせる。   The CPU 27 uses the table such as the acceleration / deceleration table 33 and the application program such as the print data prefetch program 36 based on the print data transmitted from the personal computer 28 and stored in the print buffer 40. Each part such as the drive circuit 31 and the thermal head control circuit 32 is controlled to cause the print-receiving tape 3A to perform predetermined printing corresponding to the print data.

<本実施形態の特徴>
上記構成において、本実施形態の特徴は、パルスモータ24の停止状態から最高速度状態までの間に対応した所定のパルス数範囲を1単位とするのではなく、その1/N(N:2以上の整数)を1ブロックとして、当該ブロック単位でパルスモータ24の速度制御を行うことである。以下、その詳細を順を追って説明する。
<Features of this embodiment>
In the above configuration, the feature of this embodiment is that the predetermined pulse number range corresponding to the period from the stop state to the maximum speed state of the pulse motor 24 is not set as one unit, but 1 / N (N: 2 or more). Is a block, and the speed control of the pulse motor 24 is performed in units of the block. Hereinafter, the details will be described in order.

<パルスモータの一般的特性>
前述したように、パルスモータ24は、被印字テープ3Aを搬送するプラテンローラ22の駆動源であり、その回転速度は上記モータ駆動回路31によって制御される。パルスモータ24はパルス1つを与えること(励磁相を次の状態に切り替えること)で所定角度の回転を行い、当該パルスを与える間隔(パルス周期)を短くしたり長くしたりすることで回転速度の制御が行われる。当該間隔を徐々に短くすることでパルスモータ24の回転速度を加速することができ、当該間隔を徐々に長くすることでパルスモータ24の回転速度を減速することができる。
<General characteristics of pulse motor>
As described above, the pulse motor 24 is a drive source of the platen roller 22 that transports the print-receiving tape 3 </ b> A, and the rotation speed thereof is controlled by the motor drive circuit 31. The pulse motor 24 rotates by a predetermined angle by giving one pulse (switching the excitation phase to the next state), and the rotation speed by shortening or lengthening the interval (pulse period) for giving the pulse. Is controlled. The rotational speed of the pulse motor 24 can be accelerated by gradually shortening the interval, and the rotational speed of the pulse motor 24 can be decelerated by gradually increasing the interval.

本実施形態においては、このようなパルスモータ24の加速挙動(若しくは、減速挙動)を実現するために、予め、パルス付与間隔の最小値及びその最小値まで減少させるときの態様(若しくは、最大値及びその最大値まで増大させるときの態様)がパターン化され、ROM28内に、複数種類の上記加減速テーブル33として用意されている(後述の図7〜図10参照)。これにより、モータ駆動回路31が実際にパルスモータ24の回転速度を制御する際には、その複数種類のテーブルからいずれか1つを選択し、当該選択した加減速テーブルに沿ってパルスモータ24へパルスを発することにより、所望の加速挙動(若しくは減速挙動)を容易に実現することができる。   In the present embodiment, in order to realize such acceleration behavior (or deceleration behavior) of the pulse motor 24, a mode (or maximum value) when the pulse application interval is reduced to the minimum value and the minimum value in advance. And a mode of increasing the maximum value) are patterned, and are prepared as a plurality of types of acceleration / deceleration tables 33 in the ROM 28 (see FIGS. 7 to 10 described later). Thus, when the motor drive circuit 31 actually controls the rotational speed of the pulse motor 24, one of the plurality of types of tables is selected and the pulse motor 24 is transferred along the selected acceleration / deceleration table. By issuing a pulse, a desired acceleration behavior (or deceleration behavior) can be easily realized.

<基本モータテーブル>
ここで、モータは、慣性の大きな回転子を回転させる構成であることから、急加速や急減速は困難である。また、各モータの特性上、停止状態から最高速度状態まで、脱調が発生せず効率のよい駆動制御を行えるパルス−速度相関が概ね一意的に定まる。そこで、一般的には、パルスモータ24の停止状態から最高速度状態までの間に対応した所定の第1パルス数範囲(以下適宜、「加減速パルス数」という。)を1単位として、上記複数種類用意される加減速テーブルにおいては、上記加減速パルス数における加減速開始点から加減速完了点までの加減速挙動が定められる。なお、上記第1パルス範囲が各請求項記載の第1ライン数範囲に相当し、上記加減速パルス数が各請求項記載の加減速ライン数に相当している。
<Basic motor table>
Here, since the motor is configured to rotate a rotor having a large inertia, it is difficult to suddenly accelerate or decelerate. Moreover, the pulse-speed correlation which can perform efficient drive control without a step-out does not generate | occur | produce from a stop state to the maximum speed state on the characteristic of each motor is decided uniquely. Therefore, in general, a predetermined first pulse number range (hereinafter referred to as “acceleration / deceleration pulse number” as appropriate) corresponding to a period from the stop state to the maximum speed state of the pulse motor 24 is defined as one unit. In the acceleration / deceleration table prepared for each type, the acceleration / deceleration behavior from the acceleration / deceleration start point to the acceleration / deceleration completion point in the acceleration / deceleration pulse number is determined. The first pulse range corresponds to the first line number range described in each claim, and the acceleration / deceleration pulse number corresponds to the acceleration / deceleration line number described in each claim.

本実施形態においては、パルスモータ24の、停止状態と最高速度状態との間での基準加減速特性を定めた上記パルス−速度相関(ライン−速度相関)が、上記基本モータテーブル34として実測によって決定されている。図5に、上記基本モータテーブル34の一例を示す。なお、「速度」は、パルスモータ24の速度を、プラテンローラ22による被印字テープ3Aの搬送速度[mm/s]を用いて表したものであり、「ライン」は前述した、被印字テープ3Aを搬送方向に印字解像度に区分した印刷ラインを表す。この例では、パルスモータ24は、停止状態から1ライン後の第1ライン(第1パルス)では24.3[mm/s](パルスモータ24に印加するパルスの間隔である周期に換算すると3484[μs]。以下同様)となり、その次の第2ライン(第2パルス)では36.3[mm/s](周期2336[μs])となり、以降、次第に加速していって、最終の第24ライン(第24パルス)では最高速度1183[mm/s](周期716[μs])に達する特性となっている。   In the present embodiment, the pulse-speed correlation (line-speed correlation) defining the reference acceleration / deceleration characteristics between the stop state and the maximum speed state of the pulse motor 24 is measured as the basic motor table 34 by actual measurement. It has been decided. FIG. 5 shows an example of the basic motor table 34. The “speed” represents the speed of the pulse motor 24 using the transport speed [mm / s] of the print-receiving tape 3A by the platen roller 22, and “line” represents the print-receiving tape 3A described above. Represents a print line divided into print resolutions in the transport direction. In this example, the pulse motor 24 is 24.3 [mm / s] in the first line (first pulse) one line after the stop state (3484 converted to a cycle that is an interval of pulses applied to the pulse motor 24). [Μs], the same applies to the following), and in the next second line (second pulse), it becomes 36.3 [mm / s] (period 2336 [μs]). With 24 lines (24th pulse), the maximum speed reaches 1183 [mm / s] (period 716 [μs]).

したがって、上述の通常の手法に基づけば、上記複数種類用意される加減速テーブルにおいては、上記24パルス(前述の1ライン−1パルスの前提において24ラインに相当)を1単位として、加減速開始点から加減速完了点までの加減速挙動が定められることとなる。この場合、速度制御時には、現在から上記加減速パルス数(24パルス)だけ後において実現すべきパルスモータ24の目標速度が設定され、現在速度と、上記加減速パルス後の上記目標速度との偏差に応じて上記加減速テーブルが選択され、モータ速度が制御されることとなる。   Therefore, based on the above-described normal method, in the acceleration / deceleration table prepared in plural types, acceleration / deceleration is started with the 24 pulses (corresponding to 24 lines on the assumption of 1 line-1 pulse described above) as one unit. The acceleration / deceleration behavior from the point to the acceleration / deceleration completion point is determined. In this case, at the time of speed control, the target speed of the pulse motor 24 to be realized after the present acceleration / deceleration pulse number (24 pulses) is set, and the difference between the current speed and the target speed after the acceleration / deceleration pulse. Accordingly, the acceleration / deceleration table is selected and the motor speed is controlled.

しかしながら、例えば高速印刷モードのように通常よりも高速での搬送が行われる場合は上記加減速パルス数の値(上記第1パルス数範囲の大きさ)が大きくなり、上記のような加減速パルス数(上述の例では24パルス)を単位とする制御では、加減速テーブルのパターンの種類によっては著しく印字処理が遅くなる恐れがある。このため、例えば通常の速度では文字と文字との間の無印刷部分においてモータ速度を最高速度状態まで加速できていたのが上記高速化によってできなくなったり、多数の発熱素子の通電が必要な罫線や黒ベタ等では(もともと印字処理の遅い時間が長いことから)上記高速化により最高速度が上がっても当該最高速度に到達するまでの時間が増大し、かえって通常印刷モードよりも長い処理時間がかかったりする恐れがある。これを回避するために、トルクの大きなパルスモータを使用して上記加減速パルス数を小さくすることが考えられるが、トルク増大のためにはモータの大型化や重量増大を招いたり特殊な電源が必要となったりする。   However, for example, when the conveyance is performed at a higher speed than usual as in the high-speed printing mode, the value of the acceleration / deceleration pulse number (the size of the first pulse number range) becomes large, and the acceleration / deceleration pulse as described above. In the control using a number (24 pulses in the above example) as a unit, there is a risk that the printing process will be significantly delayed depending on the type of pattern of the acceleration / deceleration table. For this reason, for example, at a normal speed, the motor speed could be accelerated to the maximum speed in the non-printed portion between characters, but it becomes impossible due to the above speed increase, or a ruled line that requires energization of many heating elements In the case of a solid black or the like (originally, the slow processing time is long), even if the maximum speed increases due to the above speed increase, the time required to reach the maximum speed increases. There is a risk of it. In order to avoid this, it is conceivable to reduce the number of acceleration / deceleration pulses by using a pulse motor with a large torque. However, in order to increase the torque, the motor is increased in size and weight, or a special power source is used. It is necessary.

<ブロック単位の速度制御>
そこで、本実施形態においては、パルスモータ24の停止状態から最高速度状態までの間に対応した上記第1パルス数範囲(加減速パルス数)を1単位とするのではなく、その1/N(N:2以上の整数。この例ではN=2)を1ブロックとして、当該ブロック単位で速度制御を行う。具体的には、例えば図6(a)に示すような、停止状態(概念的に「速度0」で表す)からの加速開始後、上記加減速パルス数(24パルス)で最高速度状態(「速度120」で表す)となる特性の上記パルスモータ24に対し、本実施形態では、図6(b)に示すように、12パルスを1単位として、速度制御を行う。
<Speed control in block units>
Therefore, in the present embodiment, the first pulse number range (acceleration / deceleration pulse number) corresponding to the period from the stop state to the maximum speed state of the pulse motor 24 is not set as one unit, but 1 / N ( N: An integer greater than or equal to 2. In this example, N = 2) is one block, and speed control is performed in units of the block. Specifically, for example, as shown in FIG. 6A, after starting acceleration from a stopped state (conceptually expressed as “speed 0”), the maximum speed state (“ In the present embodiment, as shown in FIG. 6B, speed control is performed with 12 pulses as one unit for the pulse motor 24 having the characteristic of “speed 120”.

すなわち、本実施形態での速度制御時には、現在から12パルスだけ後において実現すべきパルスモータ24の目標速度が設定され、現在速度と、上記12パルス後の上記目標速度との偏差に応じて上記加減速テーブルが選択され、モータ速度が制御されることとなる。そのために、本実施形態では、12パルス範囲でのパルスモータ24の加減速開始点から加減速完了点までの複数種類の加減速挙動を定めた、上記加減速テーブル33が予め用意されている。   That is, at the time of speed control in the present embodiment, the target speed of the pulse motor 24 to be realized after 12 pulses from the present is set, and the above described speed is set according to the deviation between the current speed and the target speed after the 12 pulses. The acceleration / deceleration table is selected, and the motor speed is controlled. Therefore, in the present embodiment, the acceleration / deceleration table 33 is prepared in advance, which defines a plurality of types of acceleration / deceleration behavior from the acceleration / deceleration start point of the pulse motor 24 to the acceleration / deceleration completion point in the 12-pulse range.

<加減速テーブル>
加減速テーブル33の例を図7、図8、図9、及び図10に示す。図7〜図10において、「Tm0」はパルスモータ24の加減速開始点の速度(言い換えれば周期)であり、「Tm1′」はパルスモータ24の加減速完了点の速度(言い換えれば周期)であり、「ライン」は、前述同様、被印字テープ3Aを搬送方向に印字解像度に区分した前述の印刷ラインを示す。
<Acceleration / deceleration table>
Examples of the acceleration / deceleration table 33 are shown in FIGS. 7, 8, 9, and 10. 7 to 10, “Tm0” is the speed (in other words, the cycle) of the acceleration / deceleration start point of the pulse motor 24, and “Tm1 ′” is the speed (in other words, the cycle) of the acceleration / deceleration completion point of the pulse motor 24. “Line” indicates the above-described print line obtained by dividing the print-receiving tape 3A into the print resolution in the transport direction, as described above.

図7〜図10において、本実施形態では後述のように目標速度が0〜6の7段階に離散的に設定されている(図12参照)のに対応し、加減速開始点の速度Tm0、加減速完了点の速度Tm1′も、「0」「1」「2」「3」「4」「5」「6」の7つの区分番号で表される7段階に区分されている。そして、「0」区分のTm0で加減速開始して「0」区分のTm1′で加減速開始終了する「0→0」テーブル、「0」区分のTm0で加減速開始して「1」区分のTm1′で加減速開始終了する「0→1」テーブル、・・、「0」区分のTm0で加減速開始して「6」区分のTm1′で加減速開始終了する「0→6」テーブル、「1」区分のTm0で加減速開始して「0」区分のTm1′で加減速開始終了する「1→0」テーブル、・・、「6」区分のTm0で加減速開始して「5」区分のTm1′で加減速開始終了する「6→5」テーブル、「6」区分のTm0で加減速開始して「6」区分のTm1′で加減速開始終了する「6→6」テーブル、の合計7×7=49個の加減速テーブル(図7〜図10中の太線黒枠参照)が含まれている。各加減速テーブル中の数字は、上記12パルス範囲におけるパルスごと(ラインごと)の加減速時のモータ24の速度を、前述と同様、プラテンローラ22による被印字テープ3Aの搬送速度[mm/s]に対応させて周期[μs]に換算して表したものであり、前述の図5に示した基本モータテーブル34から抜粋された値となっている。   7 to 10, in the present embodiment, the target speed is discretely set in 7 stages of 0 to 6 as described later (see FIG. 12), and the acceleration / deceleration start speed Tm0, The acceleration / deceleration completion point speed Tm1 ′ is also divided into seven stages represented by seven division numbers of “0”, “1”, “2”, “3”, “4”, “5”, and “6”. Then, the “0 → 0” table that starts acceleration / deceleration at Tm0 in the “0” section and ends acceleration / deceleration at Tm1 ′ in the “0” section, and starts acceleration / deceleration at Tm0 in the “0” section. “0 → 1” table that starts / stops acceleration / deceleration at Tm1 ′, and “0 → 6” table starts acceleration / deceleration at Tm0 in “0” section and starts acceleration / deceleration at Tm1 ′ in “6” section “1 → 0” table that starts acceleration / deceleration at Tm0 in “1” section and ends acceleration / deceleration at Tm1 ′ in “0” section, and starts acceleration / deceleration at Tm0 in “6” section. “6 → 5” table for starting acceleration / deceleration at Tm1 ′ in the “6” section, “6 → 6” table for starting acceleration / deceleration at Tm0 in the “6” section and ending acceleration / deceleration at Tm1 ′ in the “6” section, A total of 7 × 7 = 49 acceleration / deceleration tables (see thick line black frames in FIGS. 7 to 10) are included.The numbers in each acceleration / deceleration table indicate the speed of the motor 24 at the time of acceleration / deceleration for each pulse (for each line) in the 12-pulse range, as described above, and the transport speed [mm / s of the tape to be printed 3A by the platen roller 22] ] Is converted into a cycle [μs] and is a value extracted from the basic motor table 34 shown in FIG.

本実施形態では、以上のような49個の加減速テーブル33から選択された特定の1つの加減速テーブルを用いて、モータ駆動回路31がパルスモータ24の回転速度を制御する。このようにして従来よりも細かい間隔でテーブルを適用して制御を行うことにより、上記のようにモータの大型化や重量増大を招くことなく、また特殊な電源を用いなくても、高速印刷(高速搬送)に対応することができる。この効果を、比較例を参照しつつ、図11(a)及び図11(b)により説明する。   In the present embodiment, the motor drive circuit 31 controls the rotational speed of the pulse motor 24 using one specific acceleration / deceleration table selected from the 49 acceleration / deceleration tables 33 as described above. In this way, control is performed by applying a table at finer intervals than in the past, so that high-speed printing (without increasing the size and weight of the motor as described above, and without using a special power source ( High-speed conveyance). This effect will be described with reference to FIGS. 11A and 11B with reference to a comparative example.

<比較例と実施形態との比較>
24パルスを制御単位としてパルスモータ24を制御する比較例での挙動を図11(a)に示す。一方、12パルスを制御単位としてパルスモータ24を制御する本実施形態での挙動を図11(b)に示す。
<Comparison between Comparative Example and Embodiment>
FIG. 11A shows the behavior in the comparative example in which the pulse motor 24 is controlled using 24 pulses as a control unit. On the other hand, FIG. 11B shows the behavior in this embodiment in which the pulse motor 24 is controlled using 12 pulses as a control unit.

制御態様の一例として、例えば、現在最高速度状態にあるパルスモータ24を、現在から60パルス(60ライン)後の時点で停止させたい場合を考える。この場合、図11(a)の比較例では、上述のように24パルスが1つの制御単位となることから、60パルス経過後に停止させるためには、制御上48パルス経過後の時点で停止させておかねばならない。このため、例えば24パルス経過後の時点で、上記基準加速度特性に基づく加減速テーブル(24パルス単位で規定)を用いて最高速度から減速を開始しなければならない。   As an example of the control mode, for example, a case where the pulse motor 24 currently in the highest speed state is desired to be stopped at a time point 60 pulses (60 lines) after the present time is considered. In this case, in the comparative example of FIG. 11A, since 24 pulses become one control unit as described above, in order to stop after the lapse of 60 pulses, the control is stopped at the time after the lapse of 48 pulses. I have to keep it. For this reason, for example, when 24 pulses have elapsed, deceleration must be started from the maximum speed using an acceleration / deceleration table (specified in units of 24 pulses) based on the reference acceleration characteristics.

これに一方、12パルスを制御単位としてパルスモータ24を制御する本実施形態での挙動を図11(b)に示す。この場合、上述のように12パルスが1つの制御単位となることから、ちょうど60パルス経過後の時点で停止させる制御とすれば足りる。この結果、上記比較例とは異なり、最高速度状態を38パルス経過時点まで続け、38パルス経過後の時点で、上記基準加速度特性に基づく加減速テーブル(12パルス単位で規定)を2つ用いて最高速度から減速を開始すればよい。これにより、上記図11(a)の比較例よりも、最高速度である状態を、24パルス経過時点〜36パルス経過時点までの分(12パルス分)長く続けることができる。すなわち、比較例よりも細かい間隔でテーブルを適用し制御を行うことにより、例えば高速印刷(高速搬送)を行う場合等においても、効率のよい制御を行うことが可能となるのである。   On the other hand, FIG. 11B shows the behavior in this embodiment in which the pulse motor 24 is controlled using 12 pulses as a control unit. In this case, since 12 pulses become one control unit as described above, it is sufficient to control to stop just after 60 pulses have elapsed. As a result, unlike the comparative example described above, the maximum speed state is continued until the 38th pulse elapses, and at the time after the 38th pulse elapses, two acceleration / deceleration tables (specified in units of 12 pulses) based on the reference acceleration characteristic are used. Deceleration should be started from the maximum speed. As a result, the state of the maximum speed can be continued longer from the 24 pulse lapse time to the 36 pulse lapse time (12 pulses) than the comparative example of FIG. In other words, by performing the control by applying the table at finer intervals than in the comparative example, it is possible to perform efficient control even when performing high-speed printing (high-speed conveyance), for example.

<目標速度の設定>
ここで、既に述べた上記パルスモータ24の目標速度の設定は、サーマルヘッド23での通電制御内容に対応して行われる。以下、その詳細を説明する。
<Setting target speed>
Here, the setting of the target speed of the pulse motor 24 already described is performed in accordance with the energization control contents in the thermal head 23. Details will be described below.

前述したように、本実施形態においては、サーマルヘッド23は、それぞれが複数の発熱素子を備えた複数の発熱領域へと可変に分割可能に構成されており、それら分割された発熱領域ごとに個別に通電可能となっている。これにより、罫線や黒ベタ領域の印字を行うとき等の多数の発熱素子への通電を行う必要がある場合であっても、複数の発熱領域を時系列的に近接した間隔で順次通電することにより、限られたエネルギ量の範囲内で多数の発熱素子に対する通電を円滑かつ確実に行い、当該罫線や黒ベタ領域等の印字を確実に実行することができる。そして、このときに何個の発熱領域に分割するべきであるか(=分割数)については、現在処理中のブロックよりも後に処理するブロックでの処理内容を考慮して、決定される。   As described above, in the present embodiment, the thermal head 23 is configured to be variably divided into a plurality of heat generating regions each having a plurality of heat generating elements, and each of the divided heat generating regions is individually provided. Can be energized. As a result, even when it is necessary to energize a large number of heating elements, such as when printing ruled lines and black solid areas, it is necessary to energize multiple heating areas sequentially at close intervals in time series. Accordingly, it is possible to smoothly and reliably energize a large number of heating elements within a limited energy amount, and to reliably perform printing of the ruled lines, the black solid area, and the like. At this time, the number of heat generation regions to be divided (= the number of divisions) is determined in consideration of the processing contents in a block processed after the block currently being processed.

<最大同時オンドット数の決定>
本実施形態では、具体的には、まず、起点ブロックからそのN(この例ではN=2)個後までの第2パルス数範囲(各請求項記載の「第2ライン数範囲」に相当)における、サーマルヘッド23の電圧やサーマルヘッド23の抵抗値等の第2動作環境情報に基づき、当該第2パルス数範囲の最大同時オンドット数が決定される。このとき、前述の印刷データ先読プログラム36が用いられる。すなわち、CPU27は、印刷データ先読みプログラム36を用いて、現在の印刷の処理起点となる起点ブロックからその起点ブロックのN個(本実施形態では2個)後の順番のブロックまでの上記第2パルス数範囲の印刷データの先読みを行い、上記最大同時オンドット数を決定する。最大同時オンドット数を決定した後は、その最大同時オンドット数に応じて、当該第2パルス数範囲での最大分割数Mが決定される。
<Determining the maximum number of simultaneous on dots>
More specifically, in the present embodiment, first, the second pulse number range from the starting block to N (N = 2 in this example) after the starting block (corresponding to the “second line number range” in each claim) Based on the second operating environment information such as the voltage of the thermal head 23 and the resistance value of the thermal head 23, the maximum number of simultaneously ON dots in the second pulse number range is determined. At this time, the aforementioned print data prefetching program 36 is used. That is, the CPU 27 uses the print data prefetching program 36 to perform the second pulse from the starting block serving as the current printing processing starting point to the N blocks (two in the present embodiment) after the starting block. A number of ranges of print data are pre-read to determine the maximum number of simultaneous on dots. After determining the maximum number of simultaneous on dots, the maximum division number M in the second pulse number range is determined according to the maximum number of simultaneous on dots.

例えば、前述の図11(b)の例では、起点ブロックは0〜12パルスまでの範囲となり、上記第2パルス数範囲は、起点ブロックから2個後(N=2)の、24パルス〜36パルスまでを含む、0〜36パルスまでの範囲となる。例えばこの0〜36パルスまでの範囲に罫線や黒ベタ領域等の印字を行う印字データが含まれている場合には、当該罫線や黒ベタ領域を印字するために最大同時オンドット数が非常に多くなることから、この0〜36パルスまでの範囲での上記最大分割数Mは、例えばサーマルヘッド23において分割可能に設定されている最大の値となる。このようにして決定された最大分割数Mは、SRAM29の上記分割数メモリ41に記憶される。   For example, in the example of FIG. 11B described above, the starting point block has a range of 0 to 12 pulses, and the second pulse number range is 24 pulses to 36, two after the starting point block (N = 2). The range is from 0 to 36 pulses including the pulse. For example, when print data for printing ruled lines or black solid areas is included in the range from 0 to 36 pulses, the maximum number of simultaneous on dots is very large for printing the ruled lines and black solid areas. Therefore, the maximum division number M in the range of 0 to 36 pulses is the maximum value set so as to be capable of division in the thermal head 23, for example. The maximum division number M determined in this way is stored in the division number memory 41 of the SRAM 29.

<通電時間の決定>
一方、このときまた、サーマルヘッド23の各発熱領域への1回の通電時間Thが、例えば公知の手法で検出した印刷装置1の電圧や印刷装置1の周囲の温度等の第1動作環境情報に基づき、決定される。一例としては、印刷装置1の周囲温度が低い場合には被印字テープ3Aの感熱シートの発色に時間がかかることから通電時間Thが長めに設定される。あるいは、印刷装置1の電圧が高めになっている場合には、高電圧印加により被印字テープ3Aの感熱シートの発色が短時間に完了することから通電時間Thが短めに設定される。
<Determination of energization time>
Meanwhile, at this time, the first operating environment information such as the voltage of the printing apparatus 1 detected by a known method, the temperature around the printing apparatus 1, etc. To be determined. As an example, when the ambient temperature of the printing apparatus 1 is low, it takes time to develop the color of the heat-sensitive sheet of the print-receiving tape 3A, so that the energization time Th is set longer. Alternatively, when the voltage of the printing apparatus 1 is high, the color development of the heat sensitive sheet of the print-receiving tape 3A is completed in a short time by applying a high voltage, so that the energization time Th is set short.

<印字周期の決定>
そして、上記のようにして決定された通電時間Thと上記決定された最大分割数Mとに基づき、発熱素子への通電タイミング間隔(言い換えれば分割された各領域の通電タイミング間隔)である印字周期Tが、T=Th×Mによって決定される。その後、この決定された印字周期Tに応じて目標速度が決定される。このとき、本実施形態においては、上記目標速度テーブル35において、パルスモータ24の複数の設定速度値が予め離散して段階的に定められている。
<Determination of printing cycle>
Then, based on the energization time Th determined as described above and the determined maximum division number M, a printing cycle that is an energization timing interval to the heat generating elements (in other words, an energization timing interval of each divided area). T is determined by T = Th × M. Thereafter, the target speed is determined according to the determined printing cycle T. At this time, in the present embodiment, in the target speed table 35, a plurality of set speed values of the pulse motor 24 are discretely determined in advance.

<目標速度テーブル>
目標速度テーブル35の例を図12に示す。前述したように、目標速度は「0」「1」「2」「3」「4」「5」「6」の7つの区分番号で表される7段階に区分されて離散的に設定されている。各区分において、「速度」の欄に当該区分で設定された目標速度[mm/s]が記載され、「周期」の欄に各目標速度の値を周期[μs]に換算したものが記載されている。この例では「0」区分の目標速度は0[mm/s]、「1」区分の目標速度は24.3[mm/s](換算された周期Tm1=3484[μs])、「2」区分の目標速度は45.0[mm/s](換算された周期Tm1=1884[μs])、「3」区分の目標速度は69.0[mm/s](換算された周期Tm1=1228[μs])、「4」区分の目標速度は91.7[mm/s](換算された周期Tm1=924[μs])、「5」区分の目標速度は107.8[mm/s](換算された周期Tm1=786[μs])、「6」区分の目標速度は118.3[mm/s](換算された周期Tm1=716[μs])となっている。
<Target speed table>
An example of the target speed table 35 is shown in FIG. As described above, the target speed is divided into seven stages represented by seven division numbers of “0”, “1”, “2”, “3”, “4”, “5”, and “6” and is set discretely. Yes. In each section, the target speed [mm / s] set in the section is described in the “speed” column, and the value of each target speed converted into the period [μs] is described in the “period” column. ing. In this example, the target speed of the “0” section is 0 [mm / s], the target speed of the “1” section is 24.3 [mm / s] (converted cycle Tm1 = 3484 [μs]), “2” The target speed of the section is 45.0 [mm / s] (converted cycle Tm1 = 1848 [μs]), and the target speed of the “3” section is 69.0 [mm / s] (converted period Tm1 = 1228). [Μs]), the target speed of the “4” section is 91.7 [mm / s] (converted cycle Tm1 = 924 [μs]), and the target speed of the “5” section is 107.8 [mm / s]. (The converted period Tm1 = 786 [μs]), the target speed of the “6” section is 118.3 [mm / s] (the converted period Tm1 = 716 [μs]).

そして、これらの区分それぞれの目標速度(言い換えれば周期Tm1。以下同様)のうち、前述のようにして決定された印字周期Tに応じたものが、制御において使用するべき目標速度(周期Tm1)として選択される。その選択の際には、算出された印字周期Tより周期Tm1の値が大きく(言い換えれば速度が遅く)、かつ区分番号が最大となるような目標速度が選択される。例えば前述のようにして算出された印字周期Tが900[μs]であった場合には、これよりも大きいTm1=924[μs]に対応した「4」区分における、目標速度91.7[mm/s]が選択される。算出された印字周期Tが1000[μs]であった場合には、(1000[μs]に近い924[μs]に対応した「4」区分ではなく)これよりも大きいTm1=1228[μs]に対応した「3」区分における、目標速度69.0[mm/s]が選択される。これは、仮に速度設定の速い側に合わせて選択すると前述の脱調等が発生する恐れがあり、常に速度設定の遅い側に合わせて選択することで上記の恐れを回避しているのである。以上のようにして、目標速度テーブル35を利用することで、印字周期Tに応じて、目標速度を簡素な制御で容易かつ迅速に決定することができる。   Of the target speeds (in other words, the cycle Tm1; the same applies hereinafter) for each of these sections, the target speed (cycle Tm1) to be used in the control is the one corresponding to the printing cycle T determined as described above. Selected. In the selection, a target speed is selected such that the value of the period Tm1 is larger than the calculated printing period T (in other words, the speed is slow) and the section number is the maximum. For example, when the printing cycle T calculated as described above is 900 [μs], the target speed 91.7 [mm] in the “4” section corresponding to a larger Tm1 = 924 [μs]. / S] is selected. When the calculated printing cycle T is 1000 [μs] (instead of “4” classification corresponding to 924 [μs] close to 1000 [μs]), a larger Tm1 = 1228 [μs] is set. The target speed 69.0 [mm / s] in the corresponding “3” section is selected. This is because the above-mentioned step-out may occur if it is selected according to the fast speed setting side, and the above-mentioned fear is avoided by always selecting according to the slow speed setting side. As described above, by using the target speed table 35, the target speed can be easily and quickly determined by simple control according to the printing cycle T.

<目標速度の置きかえ>
ここで、上記加減速パルス数は、既に述べたように、パルスモータ24の停止状態から最高速度状態までの間(24パルスの範囲)に対応したものである。したがって、上記のように当該加減速パルス数の1/2(12パルスの範囲)を1ブロックとして制御を行う本実施形態の手法では、現在速度と目標速度との差が大きい場合に、モータ性能上、当該1ブロック内では当該目標速度までの加減速を実現できない場合があり得る。そこで、本実施形態では、このような場合には、目標速度テーブル35を用いて上記のようにして選択された目標速度の置き換えが行われる。
<Replacement of target speed>
Here, as described above, the number of acceleration / deceleration pulses corresponds to the period from the stop state of the pulse motor 24 to the maximum speed state (range of 24 pulses). Therefore, as described above, in the method of this embodiment in which the control is performed with 1/2 of the number of acceleration / deceleration pulses (12 pulse range) as one block, when the difference between the current speed and the target speed is large, the motor performance In addition, acceleration / deceleration up to the target speed may not be realized within the one block. Therefore, in this embodiment, in such a case, the target speed selected as described above is replaced using the target speed table 35.

すなわち、本実施形態では、上記のようにして設定された目標速度が、当該目標速度が、図5に示した基本モータテーブル34の表す上記パルス−速度相関を逸脱する遵守範囲外の値となり(言い換えれば上記加減速テーブル33の適用範囲外の値となり)そのままでは脱調等の不具合が発生する場合には、目標速度の置き換えを行う。つまり、上記のようにして図12の中から一旦選択された目標速度を、図12中の別の目標速度に置き換えることで、上記パルス−速度相関を逸脱せず遵守範囲内の値となるように(言い換えれば上記加減速テーブル33の適用範囲内の値となるように)する。このとき、本実施形態においては、上記目標速度置換テーブル37を用いて、上記の目標速度の置きかえが行われる。   That is, in the present embodiment, the target speed set as described above is a value outside the compliance range in which the target speed deviates from the pulse-speed correlation represented by the basic motor table 34 shown in FIG. In other words, the value is outside the applicable range of the acceleration / deceleration table 33). If a problem such as step-out occurs, the target speed is replaced. In other words, by replacing the target speed once selected from FIG. 12 as described above with another target speed in FIG. 12, the value within the compliance range is obtained without departing from the pulse-speed correlation. (In other words, the value is within the applicable range of the acceleration / deceleration table 33). At this time, in the present embodiment, the target speed replacement is performed using the target speed replacement table 37.

<目標速度置換テーブル>
目標速度置換テーブル37の例を図13に示す。この目標速度置換テーブルは、図12と同様、「0」「1」「2」「3」「4」「5」「6」の7つの区分番号で離散的に表された速度区分を用いて設定されている。「Tm0」は現在速度(詳細には当該現在速度を周期に換算したもの。以下適宜、単に「現在速度Tm0」と称する)を表しており、「Tm1」は上記目標速度テーブル35を用いて設定された目標速度(詳細には当該目標速度を周期に換算したもの。以下適宜、単に「目標速度Tm1」等と称する)を表している。そして、「Tm0」の欄と「Tm1」の欄との交点に位置する区分番号が、当該現在速度Tm0から目標速度Tm1へ加減速するときに、実際に使用される最終的な目標速度Tm1′の区分番号を表している。その際、斜線ハッチングのない部分は、前述の置きかえが行われず目標速度テーブル35で設定された値がそのまま用いられる(すなわちTm1′=Tm1)の部分である。一方、斜線ハッチングが施された部分は、目標速度テーブル35で設定された値に対し前述の置きかえが行われる(言い換えればTm1′≠Tm1)部分である。
<Target speed replacement table>
An example of the target speed replacement table 37 is shown in FIG. Similar to FIG. 12, this target speed replacement table uses speed sections discretely represented by seven section numbers of “0”, “1”, “2”, “3”, “4”, “5”, and “6”. Is set. “Tm0” represents the current speed (specifically, the current speed converted into a cycle. Hereinafter, simply referred to as “current speed Tm0”), and “Tm1” is set using the target speed table 35. The target speed (specifically, the target speed converted into a cycle. Hereinafter, it is simply referred to as “target speed Tm1” or the like as appropriate). Then, when the section number located at the intersection of the “Tm0” field and the “Tm1” field accelerates or decelerates from the current speed Tm0 to the target speed Tm1, the final target speed Tm1 ′ that is actually used. Represents the division number. At this time, the portion without hatching is a portion where the above-described replacement is not performed and the value set in the target speed table 35 is used as it is (that is, Tm1 ′ = Tm1). On the other hand, the hatched portion is a portion where the above-described replacement is performed on the values set in the target speed table 35 (in other words, Tm1 ′ ≠ Tm1).

図13において、例えば、「0」区分の現在速度Tm0から「0」区分の目標速度Tm1への設定となっている場合には、そのまま「0」区分が最終的な目標速度Tm1′として設定される。同様に「0」区分の現在速度Tm0から「1」区分、「2」区分、「3」区分、「4区分」、の目標速度Tm1への設定となっている場合には、そのまま「1」区分、「2」区分、「3」区分、「4区分」がそれぞれ最終的な目標速度Tm1′として設定される。これに対して、「0」区分の現在速度Tm0から「5」区分の目標速度Tm1への設定となっている場合には、そのままでは12パルス範囲内ではこの指定による大きな加速を行うことはできない(基本モータテール部34のパルス−速度相関を逸脱する値となる)ことから、「5」区分から1つ低速側にシフトした「4」区分が最終的な目標速度Tm1′として設定される。つまり、「5」区分から「4」区分への目標速度の置きかえが行われる。同様に、「0」区分の現在速度Tm0から「6」区分の目標速度Tm1への設定となっている場合も、「4」区分が最終的な目標速度Tm1′として設定され、「6」区分から「4」区分への目標速度の置きかえが行われる。   In FIG. 13, for example, when the current speed Tm0 in the “0” section is set to the target speed Tm1 in the “0” section, the “0” section is set as the final target speed Tm1 ′. The Similarly, when the current speed Tm0 of the “0” section is set to the target speed Tm1 of the “1” section, the “2” section, the “3” section, and the “4 section”, it is “1” as it is. The section, “2” section, “3” section, and “4 section” are set as final target speeds Tm1 ′. On the other hand, when the current speed Tm0 of the “0” section is set to the target speed Tm1 of the “5” section, it is not possible to perform a large acceleration by this designation within the 12 pulse range as it is. (Because the value deviates from the pulse-speed correlation of the basic motor tail section 34), the “4” section shifted from the “5” section by one to the lower speed side is set as the final target speed Tm1 ′. That is, the target speed is replaced from the “5” section to the “4” section. Similarly, when the current speed Tm0 in the “0” section is set to the target speed Tm1 in the “6” section, the “4” section is set as the final target speed Tm1 ′, and the “6” section is set. The target speed is replaced from “4” to “4”.

さらに、「1」区分の現在速度Tm0から「5」区分、「6」区分の目標速度Tm1への設定となっている場合も、「5」区分から「4」区分へ、「6」区分から「4」区分への目標速度の置きかえが行われる。また、「2」区分の現在速度Tm0から「5」区分、「6」区分の目標速度Tm1への設定となっている場合も、「5」区分から「4」区分へ、「6」区分から「4」区分への目標速度の置きかえが行われる。また、「3」区分の現在速度Tm0から「6」区分の目標速度Tm1への設定となっている場合も、「6」区分から「5」区分への目標速度の置きかえが行われる。   Furthermore, even when the current speed Tm0 of the “1” section is set to the “5” section and the target speed Tm1 of the “6” section, the “5” section is changed to the “4” section, and the “6” section is changed. The target speed is replaced with the “4” section. In addition, when the current speed Tm0 of the “2” section is set to the “5” section and the target speed Tm1 of the “6” section, the “5” section is changed to the “4” section, and the “6” section is changed. The target speed is replaced with the “4” section. Further, when the current speed Tm0 in the “3” section is set to the target speed Tm1 in the “6” section, the target speed is replaced from the “6” section to the “5” section.

また、「5」区分の現在速度Tm0から「0」区分、「1」区分、「2」区分への目標速度Tm1への設定となっている場合も、そのままでは12パルス範囲内ではこの指定による大きな減速を行うことはできない(基本モータテール部34のパルス−速度相関を逸脱する値となる)ことから、「0」区分から「3」区分へ、「1」区分から「3」区分へ、「2」区分から「3」区分への、目標速度の置きかえがそれぞれ行われる。同様に、「6」区分の現在速度Tm0から「0」区分、「1」区分、「2」区分、「3」区分への目標速度Tm1への設定となっている場合も、「0」区分から「4」区分へ、「1」区分から「4」区分へ、「2」区分から「4」区分へ、「3」区分から「4」区分への、目標速度の置きかえがそれぞれ行われる。   In addition, even when the current speed Tm0 in the “5” section is set to the target speed Tm1 from the “0” section, the “1” section, and the “2” section, this specification is used within the 12 pulse range as it is. Since a large deceleration cannot be performed (the value deviates from the pulse-speed correlation of the basic motor tail section 34), the "0" section is changed to the "3" section, the "1" section is changed to the "3" section, The target speed is replaced from the “2” section to the “3” section. Similarly, when the current speed Tm0 of the “6” section is set to the target speed Tm1 from the “0” section, the “1” section, the “2” section, and the “3” section, the “0” section The target speed is replaced from "4" to "4", from "1" to "4", from "2" to "4", and from "3" to "4".

本実施形態では、上記のようにして必要に応じ適宜置き換えられた目標速度Tm1′を加減速完了点の最終的な目標速度Tm1′として、対応する特定の加減速テーブル33の選択(図7〜図10参照)を行う。これにより、現在速度と目標速度との差が大きい場合であっても、確実に当該目標速度までの加減速を実行することができる。   In the present embodiment, the target speed Tm1 ′ appropriately replaced as necessary as described above is used as the final target speed Tm1 ′ at the acceleration / deceleration completion point, and the corresponding specific acceleration / deceleration table 33 is selected (FIG. 7 to FIG. 7). (See FIG. 10). As a result, even when the difference between the current speed and the target speed is large, acceleration / deceleration up to the target speed can be reliably executed.

<制御フロー>
図14は、上記の内容を実現するために制御回路210のCPU27が実行する制御手順を示すフローチャートである。図14のフローは、例えば印刷装置1の電源ボタン7が押されることにより開始される。
<Control flow>
FIG. 14 is a flowchart showing a control procedure executed by the CPU 27 of the control circuit 210 in order to realize the above contents. The flow in FIG. 14 is started, for example, when the power button 7 of the printing apparatus 1 is pressed.

図14において、まず、ステップS10で、CPU27は、SRAM29のプリントバッファ40及び分割数メモリ41の記憶内容を初期化し、また印刷速度を初期値0とする。その後、ステップS15に移る。   In FIG. 14, first, in step S <b> 10, the CPU 27 initializes the storage contents of the print buffer 40 and the division number memory 41 of the SRAM 29 and sets the printing speed to an initial value of 0. Thereafter, the process proceeds to step S15.

ステップS15では、CPU27は、プリントバッファ40に記憶されている印刷データを、現在処理中の起点ブロックからそのN個後のブロックまでの第2パルス数範囲で先読みし、当該第2パルス数範囲における上記第2動作環境情報に基づき、第2パルス数範囲おいてサーマルヘッド23の同時に通電される複数の発熱素子の最大同時オンドット数を決定する。その後、ステップS20に移る。   In step S15, the CPU 27 pre-reads the print data stored in the print buffer 40 in the second pulse number range from the starting block currently being processed to the Nth block after that, and in the second pulse number range. Based on the second operating environment information, the maximum number of simultaneously ON dots of a plurality of heating elements that are energized simultaneously by the thermal head 23 in the second pulse number range is determined. Thereafter, the process proceeds to step S20.

ステップS20では、CPU27は、上記ステップS15で決定された最大同時オンドット数に応じて、上記第2パルス数範囲における、サーマルヘッド23の上記最大分割数Mを決定する。その後、ステップS25に移る。   In step S20, the CPU 27 determines the maximum division number M of the thermal head 23 in the second pulse number range in accordance with the maximum simultaneous on-dot number determined in step S15. Thereafter, the process proceeds to step S25.

ステップS25では、CPU27は、上記第1動作環境情報に基づき、サーマルヘッド23の発熱領域への1回の通電時間Thを決定し、その決定された通電時間と上記ステップS20で決定された最大分割数Mとに基づき、印字周期T(=Th×M)を決定する。その後、ステップS30に移る。   In step S25, the CPU 27 determines a single energization time Th to the heat generation area of the thermal head 23 based on the first operating environment information, and the determined energization time and the maximum division determined in step S20. Based on the number M, the printing cycle T (= Th × M) is determined. Thereafter, the process proceeds to step S30.

ステップS30では、CPU27は、目標速度テーブル35の複数の設定速度の中から、上記ステップS25で決定された印字周期Tに応じた速度を、前述の手法により目標速度Tm1として選択する。その後、ステップS35に移る。   In step S30, the CPU 27 selects a speed corresponding to the printing cycle T determined in step S25 from the plurality of set speeds in the target speed table 35 as the target speed Tm1 by the above-described method. Thereafter, the process proceeds to step S35.

ステップS35では、CPU27は、上記ステップS35で選択された目標速度Tm1を、目標速度テーブル35の複数の設定速度に含まれる別の設定速度に置換する必要があるか否か(言い換えれば、図13の斜線ハッチングの部分に該当するか否か)を判定する。現在速度Tm0と目標速度Tm1との差が大きく、目標速度が基本モータテーブル34の遵守範囲外となる場合には、ステップS35の判定が満たされ(ステップS35:YES)、ステップS40に移る。   In step S35, the CPU 27 determines whether or not it is necessary to replace the target speed Tm1 selected in step S35 with another set speed included in the plurality of set speeds in the target speed table 35 (in other words, FIG. 13). Whether or not it corresponds to the shaded hatching part. If the difference between the current speed Tm0 and the target speed Tm1 is large and the target speed is outside the compliance range of the basic motor table 34, the determination in step S35 is satisfied (step S35: YES), and the process proceeds to step S40.

ステップS40では、CPU27は、上記ステップS35で選択された目標速度Tm1を、前述のようにして、目標速度テーブル35の複数の設定速度に含まれる別の設定速度に置き換え、新たな目標速度Tm1′とする。その後、ステップS45に移る。   In step S40, the CPU 27 replaces the target speed Tm1 selected in step S35 with another set speed included in the plurality of set speeds in the target speed table 35 as described above, and creates a new target speed Tm1 ′. And Thereafter, the process proceeds to step S45.

一方、上記ステップS35において、現在速度Tm0と目標速度Tm1との差が小さく目標速度が基本モータテーブル34の遵守範囲内となる場合にはステップS35の判定が満たされず(ステップS35:YES)、目標速度Tm1をそのまま新たな目標速度Tm1′として、ステップS45に移る。   On the other hand, if the difference between the current speed Tm0 and the target speed Tm1 is small and the target speed is within the observance range of the basic motor table 34 in step S35, the determination in step S35 is not satisfied (step S35: YES), and the target The speed Tm1 is set as a new target speed Tm1 ′ as it is, and the process proceeds to Step S45.

ステップS45では、CPU27は、パルスモータ24の現在速度Tm0が次の速度すなわち目標速度Tm1′と異なるか否か(現在速度≠次の速度であるか否か)を判定する。パルスモータ24の現在速度Tm0が目標速度Tm1′と同一であれば判定が満たされず(ステップS45:NO)、ステップS50に移る。パルスモータ24の現在速度Tm0が目標速度Tm1′と異なれば判定が満たされ(ステップS45:YES)、ステップS55に移る。   In step S45, the CPU 27 determines whether or not the current speed Tm0 of the pulse motor 24 is different from the next speed, that is, the target speed Tm1 ′ (whether or not the current speed is not the next speed). If the current speed Tm0 of the pulse motor 24 is the same as the target speed Tm1 ′, the determination is not satisfied (step S45: NO), and the process proceeds to step S50. If the current speed Tm0 of the pulse motor 24 is different from the target speed Tm1 ′, the determination is satisfied (step S45: YES), and the process proceeds to step S55.

ステップS50では、CPU27は、パルスモータ24に設定する目標速度(言い換えればパルス周期)を現在設定されている目標速度(言い換えればパルス周期)のままとし、パルスモータ24の現在速度を維持させる。その後、ステップS55に移る。   In step S <b> 50, the CPU 27 maintains the current speed of the pulse motor 24 while keeping the target speed (in other words, the pulse period) set in the pulse motor 24 as the currently set target speed (in other words, the pulse period). Thereafter, the process proceeds to step S55.

ステップS55では、CPU27は、図7〜図10に示す複数(上記の例では49個)の加減速テーブル33の中から、加減速開始点が現在速度Tm0であり、加減速完了点が目標速度が上記のようにして決定した目標速度Tm1′であるような加減速テーブルを選択し、パルス周期を設定する。その後、ステップS60に移る。   In step S55, the CPU 27 determines that the acceleration / deceleration start point is the current speed Tm0 and the acceleration / deceleration completion point is the target speed from among a plurality (49 in the above example) of the acceleration / deceleration table 33 shown in FIGS. The acceleration / deceleration table is selected so that is the target speed Tm1 ′ determined as described above, and the pulse period is set. Thereafter, the process proceeds to step S60.

ステップS60では、CPU27は、モータ駆動回路31に制御信号を出力して、モータ駆動回路31に上記ステップS55で決定されたパルス周期に基づいた周期で1パルスを付与し、モータ駆動回路31によりパルスモータ24を1パルス分回転駆動させ、被印字テープ3Aを1ライン分搬送させる。その一方、CPU27は、サーマルヘッド制御回路32に制御信号を出力して、サーマルヘッド制御回路32によりサーマルヘッド23の複数の発熱領域に対し、上記ステップS55で決定されたパルス周期に基づいた周期で、かつ上記ステップS20で決定された分割数に基づいた分割態様で給電させ、被印字テープ3Aにライン印刷データに対応した1ラインの印刷を行わせる。その後、ステップS65に移る。   In step S60, the CPU 27 outputs a control signal to the motor drive circuit 31, and gives the motor drive circuit 31 one pulse at a cycle based on the pulse cycle determined in step S55. The motor 24 is driven to rotate by one pulse, and the print-receiving tape 3A is conveyed by one line. On the other hand, the CPU 27 outputs a control signal to the thermal head control circuit 32, and the thermal head control circuit 32 applies a cycle based on the pulse cycle determined in step S55 to the plurality of heat generating regions of the thermal head 23. In addition, power is supplied in a division mode based on the number of divisions determined in step S20, and the printing tape 3A is caused to print one line corresponding to the line printing data. Thereafter, the process proceeds to step S65.

ステップS65では、CPU27は、被印字テープ3Aに対し1ブロックのパルス数範囲内に存在する全印刷ライン数、すなわち規定ライン数の印刷が終了したか否かを判定する。本実施形態では、12パルスで1ブロックのパルス数範囲を構成するので、規定ライン数は12ラインである。被印字テープ3Aに対する規定ライン数の印刷が終了した場合は判定が満たされ(ステップS65:YES)、ステップS70に移る。被印字テープ3Aに対する規定ライン数の印刷が終了していない場合は判定が満たされず(ステップS65:NO)、上記ステップS45に戻り、同様の手順を繰り返す。   In step S65, the CPU 27 determines whether or not printing of all the print lines existing within the range of the number of pulses of one block on the print-receiving tape 3A, that is, printing of the specified number of lines is completed. In the present embodiment, a pulse number range of one block is constituted by 12 pulses, and thus the specified number of lines is 12 lines. If printing of the specified number of lines on the print-receiving tape 3A is completed, the determination is satisfied (step S65: YES), and the process proceeds to step S70. If printing of the specified number of lines on the print-receiving tape 3A has not been completed, the determination is not satisfied (step S65: NO), the process returns to step S45, and the same procedure is repeated.

ステップS70では、CPU27は、被印字テープ3Aに対しプリントバッファ40に記憶された印刷データに対応した全てのライン数の印刷が終了したか否かを判定する。印刷データに対応した全てのライン数の印刷が終了すれば判定が満たされ(ステップS70:YES)、このフローを終了する。印刷データに対応した全てのライン数の印刷が終了していなければ判定が満たされず(ステップS70:NO)、上記ステップS15に戻り、同様の手順を繰り返す。   In step S70, the CPU 27 determines whether or not printing of all the lines corresponding to the print data stored in the print buffer 40 has been completed on the print-receiving tape 3A. If printing of all the lines corresponding to the print data is completed, the determination is satisfied (step S70: YES), and this flow ends. If printing of all the lines corresponding to the print data has not been completed, the determination is not satisfied (step S70: NO), the process returns to step S15, and the same procedure is repeated.

以上のフローにおいて、上記ステップS15の手順が各請求項に記載のオンドット数決定手段として機能し、上記ステップS20の手順が分割数決定手段として機能し、上記ステップS25の手順は各請求項に記載の通電時間決定手段として機能すると共に印字周期決定手段としても機能する。また、上記ステップS30の手順が各請求項記載の目標速度選択手段として機能し、上記ステップS35の手順が目標速度判定手段として機能し、上記ステップS40の手順が目標速度置換手段として機能し、上記ステップS55の手順がテーブル選択手段として機能する。   In the above flow, the procedure of step S15 functions as the on-dot number determining means described in each claim, the procedure of step S20 functions as the division number determining means, and the procedure of step S25 is described in each claim. In addition to functioning as the energization time determination unit described, it also functions as a printing cycle determination unit. Further, the procedure of step S30 functions as a target speed selection means described in each claim, the procedure of step S35 functions as a target speed determination means, the procedure of step S40 functions as a target speed replacement means, The procedure of step S55 functions as a table selection unit.

以上説明したように、本実施形態の印刷装置1によれば、パルスモータ24の停止状態から最高速度状態までの間に対応した所定のパルス数範囲を1単位とするのではなく、その1/N(N:2以上の整数)を1ブロックとして、当該ブロック単位でパルスモータ24の速度制御を行う。これにより、現在速度と目標速度との差が大きい場合であっても、確実に当該目標速度までの加減速を実行することができる。特にこのとき、上記のように、予め複数用意された設定速度の中から必要に応じて目標速度を別の値に置き換える手法とすることにより、算出する目標速度の値自体を(例えば前回のドットラインのモータ周期や予め記憶されたモータ基本周期等を用いて)所定の制約にしたがって補正する場合のように、加減速条件によっては円滑な動作ができなくなるという可能性がなくなる。すなわち、目標速度までの加減速を確実に円滑に実行することができる。また、パルスモータ24の大型化や重量増大を招くことなく、また特殊な電源を用いなくても、高速印刷(高速搬送)に対応することができる。   As described above, according to the printing apparatus 1 of the present embodiment, the predetermined pulse number range corresponding to the period from the stop state of the pulse motor 24 to the maximum speed state is not set as one unit, but 1 / With N (N: an integer of 2 or more) as one block, the speed control of the pulse motor 24 is performed in units of the block. As a result, even when the difference between the current speed and the target speed is large, acceleration / deceleration up to the target speed can be reliably executed. In particular, at this time, as described above, the target speed value itself to be calculated (for example, the previous dot) can be obtained by replacing the target speed with another value from a plurality of set speeds prepared in advance as necessary. There is no possibility that smooth operation cannot be performed depending on acceleration / deceleration conditions as in the case of correction according to a predetermined restriction (using a motor cycle of a line, a motor basic cycle stored in advance, or the like). That is, acceleration / deceleration up to the target speed can be executed smoothly and reliably. In addition, high-speed printing (high-speed conveyance) can be handled without increasing the size and weight of the pulse motor 24 and without using a special power source.

また、本実施形態では特に、図14のステップS35において、目標速度テーブル35により選択された目標速度Tm1が基本モータテーブル34の遵守範囲内であると判定された場合には、当該選択された値をそのまま最終的な目標速度Tm1′として加減速テーブルを選択する。これにより、現在速度と目標速度との差がそれほど大きくなく1ブロック(12パルス範囲)内で当該目標速度までの加減速を実現できる場合には、目標速度の置換を行わずに確実に迅速な処理を行うことができる。   In this embodiment, in particular, when it is determined in step S35 of FIG. 14 that the target speed Tm1 selected by the target speed table 35 is within the observance range of the basic motor table 34, the selected value The acceleration / deceleration table is selected as is as the final target speed Tm1 ′. As a result, when the difference between the current speed and the target speed is not so large and acceleration / deceleration up to the target speed can be realized within one block (12 pulse range), the target speed is not replaced quickly and reliably. Processing can be performed.

なお、上記図4中に示す矢印は信号の流れの一例を示すものであり、信号の流れ方向を限定するものではない。   In addition, the arrow shown in the said FIG. 4 shows an example of the flow of a signal, and does not limit the flow direction of a signal.

なお、上記図14に示すフローチャートは本発明を上記フローに示す手順に限定するものではなく、発明の趣旨及び技術的思想を逸脱しない範囲内で手順の追加・削除又は順番の変更等をしてもよい。   Note that the flowchart shown in FIG. 14 is not intended to limit the present invention to the procedure shown in the above flow, but to add or delete procedures or change the order within the scope not departing from the spirit and technical idea of the invention. Also good.

また、以上既に述べた以外にも、上記実施形態による手法を適宜組み合わせて利用しても良い。   In addition to those already described above, the methods according to the above embodiments may be used in appropriate combination.

その他、一々例示はしないが、本発明は、その趣旨を逸脱しない範囲内において、種々の変更が加えられて実施されるものである。   In addition, although not illustrated one by one, the present invention is implemented with various modifications within a range not departing from the gist thereof.

1 印刷装置
3A 被印字テープ(被印字媒体)
22 プラテンローラ(搬送手段)
23 サーマルヘッド
28 ROM(第1記憶手段、第2記憶手段)
31 モータ駆動回路(搬送制御手段)
32 サーマルヘッド制御回路(印字制御手段)
33 加減速テーブル
34 基本モータテーブル
35 目標速度テーブル
37 CPU
210 制御回路
Tm0 現在速度
Tm1 目標速度
Tm1′ 最終的な目標速度
1 Printing device 3A Printed tape (printed medium)
22 Platen roller (conveying means)
23 Thermal head 28 ROM (first storage means, second storage means)
31 Motor drive circuit (transport control means)
32 Thermal head control circuit (printing control means)
33 Acceleration / deceleration table 34 Basic motor table 35 Target speed table 37 CPU
210 Control circuit Tm0 Current speed Tm1 Target speed Tm1 'Final target speed

Claims (2)

パルスモータと、
前記パルスモータの駆動力を用いて被印字媒体を搬送するための搬送手段と、
前記被印字媒体を前記搬送方向に印字解像度に区分してなる各印字ライン上にドットをそれぞれ形成する複数の発熱素子を備えるとともに、前記搬送方向と直交する方向に沿った複数の発熱領域ごとに可変に分割して給電可能なサーマルヘッドと、
前記パルスモータの回転速度を制御する搬送制御手段と、
前記搬送手段による搬送の開始後、印字を行うための印字データを1つの前記印字ライン単位に分割したライン印字データごとに通電態様を切り替えつつ、前記印字データに対応した通電制御を行う印字制御手段と、
を有する、印刷装置であって、
前記印刷装置の動作環境に係わる第1動作環境情報に基づき、前記発熱領域への1回の通電時間を決定する通電時間決定手段と、
Nを2以上の整数としたとき、前記パルスモータの停止状態から最高速度状態までの間に対応した所定の第1ライン数範囲の1/Nである1ブロックを単位として、前記1ブロックにおける前記パルスモータの加減速開始点から加減速完了点までの加減速挙動をそれぞれ定めた複数種類の加減速テーブルを記憶した、第1記憶手段と、
予め離散して段階的に定められた前記パルスモータの複数の設定速度を記憶した、第2記憶手段と、
処理起点となる起点ブロックから前記起点ブロックのN個後の順番のブロックまでの、処理対象となる第2ライン数範囲に関する第2動作環境情報に基づき、前記第2ライン数範囲における、同時に通電される前記複数の発熱素子の最大値である最大同時オンドット数を決定するオンドット数決定手段と、
前記オンドット数決定手段により決定された前記最大同時オンドット数に基づき、前記第2ライン数範囲における、分割されて給電される前記発熱領域の数の最大値である最大分割数を決定する分割数決定手段と、
前記通電時間決定手段により決定された前記通電時間と、前記分割数決定手段により決定された前記最大分割数とに基づき、前記ライン印字データごとの通電タイミングの間隔である印字周期を決定する印字周期決定手段と、
前記第2記憶手段に記憶された前記複数の設定速度の中から、前記印字周期決定手段により決定された前記印字周期に応じた速度を、目標速度として選択する目標速度選択手段と、
前記目標速度選択手段により選択された前記目標速度が前記加減速テーブルの適用範囲内となるか適用範囲外となるかを判定する、目標速度判定手段と、
前記目標速度判定手段により、前記目標速度選択手段選択した前記目標速度が、前記第1記憶手段に記憶された前記1ブロック単位の加減速テーブルの適用範囲外であると判定された場合には、適用範囲内となるように、前記選択された目標速度を、前記第2記憶手段に記憶された前記複数の設定速度に含まれる別の速度に置き換える、目標速度置換手段と、
前記目標速度判定手段により前記目標速度が前記適用範囲外であると判定された場合には、現在の速度と、前記目標速度置換手段により前記別の速度に置き換えられた新たな目標速度とに基づき、前記第1記憶手段に記憶された前記複数種類の加減速テーブルから、対応する特定の加減速テーブルを選択するとともに、前記目標速度判定手段により前記目標速度が前記適用範囲内であると判定された場合には、前記目標速度選択手段により選択された前記目標速度に基づく加減速テーブルを選択する、テーブル選択手段と、
を有し、
前記搬送制御手段は、
前記テーブル選択手段により選択された前記特定の加減速テーブルを用いて前記パルスモータの回転速度を制御し、
前記印字制御手段は、
前記印字周期決定手段により決定された前記印字周期に基づき、前記通電制御を行う
ことを特徴とする印刷装置。
A pulse motor,
Transport means for transporting the print medium using the driving force of the pulse motor;
A plurality of heat generating elements for forming dots on each print line obtained by dividing the print medium in the transport direction into print resolutions, and for each of a plurality of heat generation regions along a direction orthogonal to the transport direction A thermal head that can be divided and supplied with power, and
A transport control means for controlling the rotational speed of the pulse motor;
Print control means for performing energization control corresponding to the print data while switching the energization mode for each line print data obtained by dividing the print data for printing into one print line unit after the start of conveyance by the conveyance means When,
A printing device comprising:
Energization time determining means for determining one energization time to the heat generation area based on first operation environment information related to an operation environment of the printing apparatus;
When N is an integer greater than or equal to 2, the unit in one block is 1 block that is 1 / N of a predetermined first line number range corresponding to the period from the stop state of the pulse motor to the maximum speed state. A first storage means for storing a plurality of types of acceleration / deceleration tables each defining acceleration / deceleration behavior from the acceleration / deceleration start point of the pulse motor to the acceleration / deceleration completion point;
A second storage means for storing a plurality of set speeds of the pulse motor determined in a discrete and stepwise manner;
Based on the second operating environment information related to the second line number range to be processed from the starting block serving as the processing start point to the N-th sequential block after the starting block, power is supplied simultaneously in the second line number range. On-dot number determination means for determining the maximum number of simultaneous on-dots that is the maximum value of the plurality of heating elements,
A division for determining a maximum division number that is a maximum value of the number of the heat generation areas to be divided and fed in the second line number range based on the maximum simultaneous on-dot number determined by the on-dot number determination means. Number determining means;
A printing cycle for determining a printing cycle, which is an interval of energization timing for each line print data, based on the energization time determined by the energization time determination unit and the maximum division number determined by the division number determination unit. A determination means;
Target speed selecting means for selecting, as a target speed, a speed corresponding to the printing cycle determined by the printing cycle determining means from the plurality of set speeds stored in the second storage means;
Target speed determination means for determining whether the target speed selected by the target speed selection means falls within or outside the application range of the acceleration / deceleration table;
By the target speed determining means, the target speed the target speed selection means has selected, if it is determined that outside the scope of the stored acceleration table of the block by block in the first storage means Target speed replacement means for replacing the selected target speed with another speed included in the plurality of set speeds stored in the second storage means so as to be within the applicable range;
When the target speed determining means determines that the target speed is out of the applicable range, based on the current speed and the new target speed replaced with the other speed by the target speed replacing means. A corresponding specific acceleration / deceleration table is selected from the plurality of types of acceleration / deceleration tables stored in the first storage means, and the target speed determination means determines that the target speed is within the applicable range. A table selection means for selecting an acceleration / deceleration table based on the target speed selected by the target speed selection means;
Have
The transport control means includes
Controlling the rotational speed of the pulse motor using the specific acceleration / deceleration table selected by the table selection means;
The print control means includes
A printing apparatus that performs the energization control based on the printing cycle determined by the printing cycle determination means.
請求項1記載の印刷装置において、
前記搬送手段が、前記被印字媒体としての、被着体に貼り付けるための粘着剤層と被印字層とを備えた被印字テープを搬送するとともに、
前記サーマルヘッドが、前記搬送手段により搬送される前記被印字テープに含まれる前記被印字層に印字形成することにより、印字ラベルを作成する印字ラベル作成装置である
ことを特徴とする印刷装置。
The printing apparatus according to claim 1 .
The transport means transports a print-receiving tape provided with an adhesive layer and a print-receiving layer to be attached to an adherend as the print-receiving medium,
The printing apparatus according to claim 1, wherein the thermal head is a print label producing device for producing a print label by forming a print on the print layer included in the print-receiving tape conveyed by the conveying means.
JP2011162615A 2011-07-25 2011-07-25 Printing device Active JP5822065B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011162615A JP5822065B2 (en) 2011-07-25 2011-07-25 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011162615A JP5822065B2 (en) 2011-07-25 2011-07-25 Printing device

Publications (2)

Publication Number Publication Date
JP2013022925A JP2013022925A (en) 2013-02-04
JP5822065B2 true JP5822065B2 (en) 2015-11-24

Family

ID=47781795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011162615A Active JP5822065B2 (en) 2011-07-25 2011-07-25 Printing device

Country Status (1)

Country Link
JP (1) JP5822065B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6237430B2 (en) 2014-03-31 2017-11-29 ブラザー工業株式会社 Printing device
JP6863761B2 (en) * 2017-02-06 2021-04-21 東芝テック株式会社 Heat generation control device
JP6859122B2 (en) 2017-02-08 2021-04-14 東芝テック株式会社 Transport speed control device
JP6760167B2 (en) 2017-03-24 2020-09-23 カシオ計算機株式会社 Printing equipment, printing system, printing control method, and program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08258313A (en) * 1995-03-23 1996-10-08 Max Co Ltd Thermal printer
JPH11240186A (en) * 1998-02-24 1999-09-07 Toshiba Tec Corp Line printer
JP2003080750A (en) * 2001-09-12 2003-03-19 Alps Electric Co Ltd Stepping motor drive controlling method for line printer
JP4572558B2 (en) * 2004-03-30 2010-11-04 ブラザー工業株式会社 Printing device
JP2007098828A (en) * 2005-10-06 2007-04-19 Seiko Epson Corp Thermal printer, method for controlling energizing electricity and program
JP2009090547A (en) * 2007-10-09 2009-04-30 Seiko Instruments Inc Thermal printer and printing speed reducing control method thereof
JP2011126140A (en) * 2009-12-17 2011-06-30 Toshiba Tec Corp Thermal printer and program

Also Published As

Publication number Publication date
JP2013022925A (en) 2013-02-04

Similar Documents

Publication Publication Date Title
EP2497644B1 (en) Thermal printer and method for controlling current passage therein
JP5822065B2 (en) Printing device
JP2007008509A (en) Mountless label printer, and method of cutting mountless label sheet
US7431521B2 (en) Printing method, printing apparatus, and computer-readable storage medium for shortening stoppage period of both motors
JP5929901B2 (en) Thermal head printing speed control method
JP5790467B2 (en) Printing device
JP2018122504A (en) Printer, printing method and printing program
EP3075550B1 (en) Thermal printer
JP5429031B2 (en) Printing device
JP2012016874A (en) Printer and program
US9764569B2 (en) Printer, and method and computer-readable medium for the same
US9718290B2 (en) Printer, and method and computer-readable medium for the same
JP5888485B2 (en) Printing device
JP6237430B2 (en) Printing device
JP2005342941A (en) Heat-activation method and handling method of heat-sensitive adhesive sheet, heat-activation device of heat-sensitive adhesive sheet and printer for heat-sensitive adhesive sheet
US11772389B2 (en) Printer device
JP2016150464A (en) Thermal printer
JP2011088370A (en) Thermal printer and energization control method thereof
JP5946346B2 (en) Label conveying device, label printer, sensor adjustment method
US9707780B1 (en) Printing device capable of switching printing method
JP5560842B2 (en) Sublimation printer
JP7197430B2 (en) printer
JPH11138872A (en) Thermal printer
JP4054911B2 (en) Print control device
JP2022006631A (en) Thermal printer and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140320

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150303

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150427

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150922

R150 Certificate of patent or registration of utility model

Ref document number: 5822065

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150