JP6834481B2 - Printing device - Google Patents

Printing device Download PDF

Info

Publication number
JP6834481B2
JP6834481B2 JP2016255940A JP2016255940A JP6834481B2 JP 6834481 B2 JP6834481 B2 JP 6834481B2 JP 2016255940 A JP2016255940 A JP 2016255940A JP 2016255940 A JP2016255940 A JP 2016255940A JP 6834481 B2 JP6834481 B2 JP 6834481B2
Authority
JP
Japan
Prior art keywords
block
amount
printing
control unit
transport
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
JP2016255940A
Other languages
Japanese (ja)
Other versions
JP2018103587A (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.)
Max Co Ltd
Original Assignee
Max Co 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 Max Co Ltd filed Critical Max Co Ltd
Priority to JP2016255940A priority Critical patent/JP6834481B2/en
Publication of JP2018103587A publication Critical patent/JP2018103587A/en
Application granted granted Critical
Publication of JP6834481B2 publication Critical patent/JP6834481B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Description

本発明は、印字装置に関する。 The present invention relates to a printing device.

従来から、サーマルヘッドを用いて印字媒体に印字を行う印字装置が広く利用されている。印字装置は、カセットホルダから送り出される長尺状のチューブやテープ等の印字媒体を搬送するプラテンローラーと、このプラテンローラーにより搬送される印字媒体にブロック単位で文字等を印字するサーマルヘッドとを備えている。 Conventionally, a printing device that prints on a printing medium using a thermal head has been widely used. The printing device includes a platen roller that conveys a printing medium such as a long tube or tape sent out from a cassette holder, and a thermal head that prints characters or the like in block units on the printing medium conveyed by the platen roller. ing.

ところで、印字装置では、プラテンローラーとサーマルヘッドとにより印字媒体を挟持した状態で、プラテンローラーの回転により印字媒体を搬送している。そのため、印字媒体に使用される材料によっては、プラテンローラーと印字媒体との間で滑りが発生してしまう場合がある。特に、印字媒体が例えばプラスティック等からなる記名板である場合には、上述した滑りの現象が顕著となる。その結果、所定のピッチ長で構成されるブロック内において、文字の印刷位置がずれて印刷されてしまうという問題があった。 By the way, in the printing apparatus, the printing medium is conveyed by the rotation of the platen roller while the printing medium is sandwiched between the platen roller and the thermal head. Therefore, depending on the material used for the printing medium, slippage may occur between the platen roller and the printing medium. In particular, when the printing medium is a name plate made of, for example, plastic, the above-mentioned slipping phenomenon becomes remarkable. As a result, there is a problem that the characters are printed at different printing positions in the block having a predetermined pitch length.

そこで、上述した印刷位置のずれの問題を解消するために、例えば、特許文献1には、プラテンローラーによる入力側の送り量と送り量検出ローラーの出力側の送り量との偏差に基づいて、サーマルヘッドによる印字位置を調整する印字装置が記載されている。 Therefore, in order to solve the above-mentioned problem of print position deviation, for example, in Patent Document 1, based on the deviation between the feed amount on the input side by the platen roller and the feed amount on the output side of the feed amount detection roller, for example, A printing device that adjusts the printing position by the thermal head is described.

図14は、特許文献1に記載の印字装置における、印字媒体に印字をする場合における印字の位置ずれ補正を説明するための図である。図14に示すように、複数のブロックを印字媒体400に連続で印刷する場合、例えば、先頭ブロックA1での搬送時のズレ量をエンコーダにより検知し、検知したズレ量を等分(1/2)する。次に、先頭ブロックA1の次の中間ブロックA2の前余白および後余白のそれぞれに等分した各ズレ量を挿入することにより、印刷時の位置ずれを補正している。 FIG. 14 is a diagram for explaining the misalignment correction of printing when printing on a printing medium in the printing apparatus described in Patent Document 1. As shown in FIG. 14, when a plurality of blocks are continuously printed on the printing medium 400, for example, the amount of deviation during transportation in the leading block A1 is detected by the encoder, and the detected amount of deviation is equally divided (1/2). ). Next, the misalignment at the time of printing is corrected by inserting the respective deviation amounts equally divided into the front margin and the back margin of the intermediate block A2 next to the first block A1.

特開平11−188937号公報Japanese Unexamined Patent Publication No. 11-188937

しかしながら、上記特許文献1等に記載の従来の印字装置における位置ズレ補正では以下の(1)から(3)に示す問題がある。 However, the positional deviation correction in the conventional printing apparatus described in Patent Document 1 and the like has the following problems (1) to (3).

(1)各ブロックでのズレ量を次のブロックに反映させるため、先頭ブロックではズレ量を補正することができないので、先頭ブロック単体で見た場合、自身のズレ量分、先頭ブロックのピッチ長が合わなくなるという問題がある。 (1) Since the amount of deviation in each block is reflected in the next block, the amount of deviation cannot be corrected in the first block. Therefore, when looking at the first block alone, the amount of deviation is the same as the pitch length of the first block. There is a problem that they do not match.

(2)ズレ量は、各ブロックのピッチ長と正の相関があるので、各ブロックでのピッチ長が異なれば各ブロックでの搬送時のズレ量も異なる。中間ブロックや最終ブロックでは前のブロックでの補正量を入れ込むことになるので、前後のブロック間でピッチ長が異なる場合、各ブロックでのピッチ長が合わなくなるという問題がある。 (2) Since the amount of deviation has a positive correlation with the pitch length of each block, if the pitch length of each block is different, the amount of deviation during transportation in each block is also different. Since the correction amount in the previous block is inserted in the intermediate block and the final block, there is a problem that the pitch lengths in each block do not match when the pitch lengths are different between the preceding and following blocks.

(3)最終ブロックでのズレ量は補正量を入れ込むブロックがない。そのため、最終ブロックでのズレ量は補正されないことになるので、最終ブロックでのズレ量分、印刷するブロックの全長が合わなくなるという問題がある。 (3) There is no block to insert the correction amount in the deviation amount in the final block. Therefore, since the deviation amount in the final block is not corrected, there is a problem that the total length of the block to be printed does not match by the deviation amount in the final block.

そこで、本発明は、上記課題に鑑みてなされたものであり、印字媒体に印刷されるブロックのズレ量を高精度に補正することができる印字装置を提供することにある。 Therefore, the present invention has been made in view of the above problems, and an object of the present invention is to provide a printing device capable of correcting the amount of deviation of a block printed on a printing medium with high accuracy.

本発明に係る印字装置は、印字媒体を搬送する搬送部と、前記搬送部により搬送される前記印字媒体に、ブロック単位で印字情報を印刷する印字部と、前記印字部により前記印字情報が印刷される前記印字媒体の搬送距離を検出する検出部と、少なくとも前記搬送部を制御する制御部と、を備え、前記ブロックは、印刷中のブロックと、当該印刷中のブロックよりも搬送方向の下流側に設けられる先頭ブロックとを有し、前記各ブロックは、印字情報が印刷される印字領域と、前記印字領域よりも前記印字媒体の搬送方向の下流側に設けられる第1の余白と、前記印字領域よりも前記印字媒体の搬送方向の上流側に設けられる第2の余白とを含み、前記制御部は、前記搬送部により搬送される前記先頭ブロックから前記印刷中のブロックまでの前記印字媒体の理論上の搬送距離と前記検出部により検出される前記先頭ブロックから前記印刷中のブロックまでの前記印字媒体の実搬送距離とから搬送距離の差を算出し、算出した前記差を補正量として前記印刷中のブロックの前記第2の余白に挿入するよう前記搬送部を制御するものである。 The printing apparatus according to the present invention includes a transport unit that conveys a print medium, a print unit that prints print information in block units on the print medium conveyed by the transport unit, and the print unit prints the print information. The block includes a detection unit that detects the transport distance of the print medium to be printed, and at least a control unit that controls the transport unit, and the block is a block being printed and a block downstream of the block being printed in the transport direction. Each block has a head block provided on the side, and each block has a print area on which print information is printed, a first margin provided on the downstream side of the print area in the transport direction of the print medium, and the above. The control unit includes a second margin provided on the upstream side of the printing medium in the transport direction of the print medium, and the control unit is the print medium from the head block transported by the transport unit to the block being printed. The difference in the transport distance is calculated from the theoretical transport distance of the above and the actual transport distance of the printing medium from the head block to the block being printed detected by the detection unit, and the calculated difference is used as the correction amount. The transport unit is controlled so as to be inserted into the second margin of the block being printed .

前記制御部は、前記印刷中のブロックの下流側に隣接する直前ブロックでの補正量に基づき、前記直前ブロックのピッチ長と前記印刷中のブロックのピッチ長との比から補正量を算出し、算出した補正量を前記印刷中のブロックの前記第1の余白に挿入するよう前記搬送部を制御するものである。 The control unit calculates the correction amount from the ratio of the pitch length of the immediately preceding block to the pitch length of the printing block based on the correction amount in the immediately preceding block adjacent to the downstream side of the printing block. The transport unit is controlled so that the calculated correction amount is inserted into the first margin of the block being printed.

前記制御部は、前記差を前記ブロックの前記印字領域に挿入するよう前記搬送部を制御するものである。 The control unit controls the transport unit so as to insert the difference into the print area of the block.

本発明によれば、各ブロックで生じた搬送時の搬送距離の差であるズレ量をズレ量が発生した当該ブロック内に反映させることができるので、ブロック毎の距離精度を向上させることができる。 According to the present invention, the amount of deviation, which is the difference in the transportation distance during transportation that occurs in each block, can be reflected in the block in which the amount of deviation occurs, so that the distance accuracy for each block can be improved. ..

本発明の一実施の形態に係る印刷装置の外観構成例を示す斜視図である。It is a perspective view which shows the appearance composition example of the printing apparatus which concerns on one Embodiment of this invention. 印刷装置の内部構成例を示す斜視図である。It is a perspective view which shows the example of the internal structure of a printing apparatus. 印刷装置の内部構成例を示す平面図である。It is a top view which shows the example of the internal structure of a printing apparatus. 印字媒体に印刷されるブロックの構成例を示す図である。It is a figure which shows the structural example of the block printed on a print medium. 印刷装置の機能構成例を示すブロック図である。It is a block diagram which shows the functional structure example of a printing apparatus. 本発明の第1の形態に係る印字媒体の搬送距離のズレを補正する補正制御を説明するための図である。It is a figure for demonstrating the correction control which corrects the deviation of the transport distance of the print medium which concerns on 1st Embodiment of this invention. 本発明の第1の形態に係る印字媒体の搬送距離のズレを補正する補正制御を行う場合における印刷装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the printing apparatus in the case of performing the correction control which corrects the deviation of the transport distance of the printing medium which concerns on 1st Embodiment of this invention. 本発明の第2の形態に係る印字媒体の搬送距離のズレを補正する補正制御を説明するための図である。It is a figure for demonstrating the correction control which corrects the deviation of the transport distance of the print medium which concerns on 2nd Embodiment of this invention. 本発明の第2の形態に係る印字媒体の搬送距離のズレを補正する補正制御を行う場合における印刷装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the printing apparatus in the case of performing the correction control which corrects the deviation of the transport distance of the printing medium which concerns on 2nd Embodiment of this invention. 本発明の第3の形態に係る印字媒体の搬送距離のズレを補正する補正制御を説明するための図である。It is a figure for demonstrating the correction control which corrects the deviation of the transport distance of the print medium which concerns on 3rd Embodiment of this invention. 本発明の第4の形態に係る印字媒体の搬送距離のズレを補正する補正制御を行う場合における印刷装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the printing apparatus in the case of performing the correction control which corrects the deviation of the transport distance of the printing medium which concerns on 4th Embodiment of this invention. 本発明の第4の形態に係る印字媒体の搬送距離のズレを補正する補正制御を説明するための図である。It is a figure for demonstrating the correction control which corrects the deviation of the transport distance of the print medium which concerns on 4th Embodiment of this invention. 本発明の第4の形態に係る印字媒体の搬送距離のズレを補正する補正制御を行う場合における印刷装置の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the printing apparatus in the case of performing the correction control which corrects the deviation of the transport distance of the printing medium which concerns on 4th Embodiment of this invention. 従来における印字媒体の搬送距離のズレを補正する補正制御を説明するための図である。It is a figure for demonstrating the correction control which corrects the deviation of the transport distance of a printing medium in the conventional.

以下に添付図面を参照しながら、本発明の好適な実施の形態について詳細に説明する。 Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

<第1の実施の形態>
[印字装置100の外観構成例]
図1は本発明の一実施の形態に係る印字装置100の外観構成の一例を示す平面図である。図1に示すように、印字装置100は、印字媒体40に文字等を印刷する装置であり、平面的に見て略矩形状からなる筐体10を備えている。印字媒体40としては、例えば、チューブや、テープ、記名板、ラベル等を用いることができる。以下では、印字媒体40として記名板を用いる場合について説明する。
<First Embodiment>
[Example of appearance configuration of printing device 100]
FIG. 1 is a plan view showing an example of the appearance configuration of the printing apparatus 100 according to the embodiment of the present invention. As shown in FIG. 1, the printing device 100 is a device for printing characters and the like on the printing medium 40, and includes a housing 10 having a substantially rectangular shape when viewed in a plane. As the printing medium 40, for example, a tube, a tape, a name plate, a label, or the like can be used. Hereinafter, a case where a name plate is used as the print medium 40 will be described.

筐体10の中央部の右側には、表示部30が設けられている。表示部30は、例えば液晶ディスプレイから構成され、印刷する文書の作成や作成した文書の位置、ピッチ長等を調整するための設定画面や、作成した文書のイメージ画面等を表示する。 A display unit 30 is provided on the right side of the central portion of the housing 10. The display unit 30 is composed of, for example, a liquid crystal display, and displays a setting screen for creating a document to be printed, adjusting the position, pitch length, etc. of the created document, an image screen of the created document, and the like.

筐体10の下部側には、操作部32が設けられている。操作部32は、文字キーや、数字キー、電源キー等の複数のキーにより構成され、ユーザーにより押下されたキーの入力情報を受け付ける。筐体10の中央部の左側には、筐体10に対して開閉可能に構成されたカセットカバー34が設けられている。カセットカバー34は、例えばインクリボンカセットや、テープカセット、印字媒体40を筐体10内にセットする際にユーザーにより開閉操作される。 An operation unit 32 is provided on the lower side of the housing 10. The operation unit 32 is composed of a plurality of keys such as character keys, number keys, and power keys, and receives input information of the keys pressed by the user. On the left side of the central portion of the housing 10, a cassette cover 34 configured to be openable and closable with respect to the housing 10 is provided. The cassette cover 34 is opened and closed by the user when, for example, an ink ribbon cassette, a tape cassette, or a printing medium 40 is set in the housing 10.

筐体10の左側の側面部には、カッタボタン36が設けられている。カッタボタン36は、印刷の終了に伴うユーザーの押下操作に基づいて、印字媒体40を所定の長さで全カットする。また、筐体10の右側の側面部には、印字媒体40を筐体10内に挿入するための挿入口38が設けられている。 A cutter button 36 is provided on the left side surface of the housing 10. The cutter button 36 cuts the entire print medium 40 to a predetermined length based on the user's pressing operation at the end of printing. Further, an insertion port 38 for inserting the print medium 40 into the housing 10 is provided on the right side surface of the housing 10.

[印字装置100の内部構成例]
図2は印字装置100を構成する筐体10の内部構成の一例を示す斜視図であり、図3はその平面図である。図2および図3に示すように、印字装置100は、ローラー12と、検出部の一例であるエンコーダ14と、押さえローラー16と、搬送部の一例であるプラテンローラー18と、印字部の一例であるサーマルヘッド20とを備えている。
[Example of internal configuration of printing device 100]
FIG. 2 is a perspective view showing an example of the internal configuration of the housing 10 constituting the printing device 100, and FIG. 3 is a plan view thereof. As shown in FIGS. 2 and 3, the printing apparatus 100 includes a roller 12, an encoder 14 which is an example of a detection unit, a pressing roller 16, a platen roller 18 which is an example of a transport unit, and an example of a printing unit. It is equipped with a certain thermal head 20.

ローラー12は、プラテンローラー18よりも印字媒体40の搬送方向Dの上流側に設けられ、印字媒体40の搬送に合わせて従動回転する。 The roller 12 is provided on the upstream side of the printing medium 40 in the transport direction D with respect to the platen roller 18, and is driven to rotate in accordance with the transport of the printing medium 40.

エンコーダ14は、ローラー12の回転軸に取り付けられ、印字媒体40の実際の搬送距離を検出する。エンコーダ14は、例えば、円周方向に等間隔で形成された複数のスリットを有するホイールと、ホイールに光を射出する発光部と、発光部から射出されてスリットを透過する光を受光する受光部とを有している。 The encoder 14 is attached to the rotating shaft of the roller 12 and detects the actual transport distance of the printing medium 40. The encoder 14 is, for example, a wheel having a plurality of slits formed at equal intervals in the circumferential direction, a light emitting unit that emits light to the wheel, and a light receiving unit that receives light emitted from the light emitting unit and transmitted through the slits. And have.

押さえローラー16は、ローラー12に対向して配置され、印字媒体40をローラー12との間で挟持(支持)した状態で従動回転する。 The pressing roller 16 is arranged so as to face the roller 12, and rotates drivenly in a state where the printing medium 40 is sandwiched (supported) with the roller 12.

プラテンローラー18は、図示しない駆動モータの駆動に基づいて回転することで印字媒体40を搬送方向Dに沿って搬送する。 The platen roller 18 rotates based on the drive of a drive motor (not shown) to convey the print medium 40 along the transfer direction D.

サーマルヘッド20は、プラテンローラー18に対向して配置されると共に、プラテンローラー18に対して圧接および離間可能に構成されている。このサーマルヘッド20は、長手方向に沿って配列された複数の発熱体を有し、印刷時においてプラテンローラー18に圧接した状態で画像データに対応する発熱体を選択的に加熱することでプラテンローラー18により搬送される印字媒体40の表面に文字等を印刷する。 The thermal head 20 is arranged so as to face the platen roller 18, and is configured to be pressure-contacted and separated from the platen roller 18. The thermal head 20 has a plurality of heating elements arranged along the longitudinal direction, and selectively heats the heating elements corresponding to the image data in a state of being in pressure contact with the platen roller 18 at the time of printing. Characters and the like are printed on the surface of the printing medium 40 conveyed by 18.

[印字媒体40の先頭ブロックB1等の構成例]
図4は、ブロックBの構成の一例を示している。図4に示すように、印字媒体40には、ブロックB毎の単位で文字等が印刷される。本実施の形態では、ブロックBとして、2つの先頭ブロックB1および中間ブロックB2を用いた場合について説明する。各先頭ブロックB1および中間ブロックB2のピッチ長Pは、同一の長さとすることもできるし、異なる長さとすることもできる。また、ブロックBは少なくとも1個以上で構成される。
[Configuration example of the first block B1 and the like of the print medium 40]
FIG. 4 shows an example of the configuration of the block B. As shown in FIG. 4, characters and the like are printed on the print medium 40 in units of each block B. In the present embodiment, a case where two leading blocks B1 and an intermediate block B2 are used as the block B will be described. The pitch lengths P of the leading block B1 and the intermediate block B2 may be the same length or different lengths. Further, the block B is composed of at least one block B.

先頭ブロックB1は、文字等が印刷される印字領域T1と、印字領域T1よりも搬送方向Dの下流側に設けられる前余白T2と、印字領域T1よりも搬送方向Dの上流側に設けられる後余白T3とから構成されている。印字領域T1、前余白T2および後余白T3の搬送方向Dの長さは、任意の長さで設定できる。他の中間ブロックB2・・・等についても先頭ブロックB1と同様の構成であるため、詳細な説明は省略する。なお、文字等は印字情報に相当し、前余白は第1の余白に相当し、後余白は第2の余白に相当している。 The first block B1 has a print area T1 on which characters and the like are printed, a front margin T2 provided on the downstream side of the transfer direction D from the print area T1, and a rear margin T2 provided on the upstream side of the transfer direction D from the print area T1. It is composed of a margin T3. The length of the print area T1, the front margin T2, and the back margin T3 in the transport direction D can be set to any length. Since the other intermediate blocks B2, etc. have the same configuration as the head block B1, detailed description thereof will be omitted. The characters and the like correspond to the print information, the front margin corresponds to the first margin, and the back margin corresponds to the second margin.

[印字装置100のブロック構成例]
図5は、印字装置100の機能構成の一例を示すブロック図である。図5に示すように、印字装置100は、装置全体の動作を制御するための制御部(マイコン)50を備えている。制御部50は、例えばCPU(Central Processing Unit)やROM(Read Only Memory)、RAM(Random Access Memory)を有し、ROMに格納されるプログラムをROMから読み出して実行することにより印字装置100の各部を制御して印字媒体40の搬送ズレ補正を含む印刷処理を実現する。
[Example of block configuration of printing device 100]
FIG. 5 is a block diagram showing an example of the functional configuration of the printing device 100. As shown in FIG. 5, the printing device 100 includes a control unit (microcomputer) 50 for controlling the operation of the entire device. The control unit 50 has, for example, a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory), and each unit of the printing device 100 is executed by reading a program stored in the ROM from the ROM and executing the program. Is controlled to realize a printing process including correction of transfer deviation of the printing medium 40.

制御部50には、表示部30、操作部32、USBインターフェース54、メモリ52、搬送モータ60、カットモータ62、エンコーダ14およびサーマルヘッド20のそれぞれがバスを介して接続されている。 The display unit 30, the operation unit 32, the USB interface 54, the memory 52, the transfer motor 60, the cut motor 62, the encoder 14, and the thermal head 20 are each connected to the control unit 50 via a bus.

表示部30は、制御部50の制御に基づいて設定画面等を表示する。操作部32は、ユーザーにより押下されたキーに対応する操作信号を生成して制御部50に出力する。 The display unit 30 displays a setting screen or the like based on the control of the control unit 50. The operation unit 32 generates an operation signal corresponding to the key pressed by the user and outputs the operation signal to the control unit 50.

USBインターフェース54は、筐体10に設けられた挿入口38に挿入されたUSBメモリから、印字媒体40に印刷する文書を読み出してメモリ52等に記憶する。なお、USBインターフェース54には、外付けのHDD(Hard Disk Drive)やコンピュータ等を取り付けることもできる。また、USBメモリ以外にも、他の半導体メモリ等のインターフェースを採用することもできる。 The USB interface 54 reads a document to be printed on the print medium 40 from the USB memory inserted into the insertion slot 38 provided in the housing 10 and stores it in the memory 52 or the like. An external HDD (Hard Disk Drive), a computer, or the like can be attached to the USB interface 54. In addition to the USB memory, an interface such as another semiconductor memory can also be adopted.

メモリ52は、SDRAM(Synchronous Dynamic Random Access Memory)等の半導体メモリから構成され、エンコーダ14で検出されたスリットの開閉の切り替わりカウントや、印字動作を実行するプログラム等を格納している。 The memory 52 is composed of a semiconductor memory such as an SDRAM (Synchronous Dynamic Random Access Memory), and stores a slit opening / closing switching count detected by the encoder 14 and a program for executing a printing operation.

搬送モータ60は、例えばステッピングモータから構成され、制御部50から図示しないドライバを経由して供給される駆動信号に基づいて駆動し、プラテンローラー18を回転させる。 The transfer motor 60 is composed of, for example, a stepping motor, and is driven based on a drive signal supplied from the control unit 50 via a driver (not shown) to rotate the platen roller 18.

カットモータ62は、例えばDCモータから構成され、制御部50から図示しないドライバを経由して供給される駆動信号に基づいて駆動し、図示しないカッタを動作させる。 The cut motor 62 is composed of, for example, a DC motor, and is driven based on a drive signal supplied from the control unit 50 via a driver (not shown) to operate a cutter (not shown).

エンコーダ14は、ローラー12の回転に連動して動作するスリットの開閉の切り替わり数をカウントし、カウント結果を制御部50に供給する。また、エンコーダ14により検出されるスリットの開閉の切り替わり数は、メモリ52に記憶される。 The encoder 14 counts the number of switching of opening and closing of the slit that operates in conjunction with the rotation of the roller 12, and supplies the count result to the control unit 50. Further, the number of switching of opening and closing of the slit detected by the encoder 14 is stored in the memory 52.

サーマルヘッド20は、制御部50から供給される駆動信号に基づいて所定の発熱体を駆動し、印字媒体40に所定の文字等を印刷する。 The thermal head 20 drives a predetermined heating element based on a drive signal supplied from the control unit 50, and prints a predetermined character or the like on the printing medium 40.

[搬送補正の概要]
図6は、第1の実施の形態に係る印字媒体40の搬送時のズレ量を補正する補正制御を説明するための図である。なお、図6では、3つの先頭ブロックB1,中間ブロックB2、最終ブロックB3を印字媒体40に連続して印刷する場合について説明するが、印字媒体40に印刷するブロックBの個数はこれに限定されるものではない。
[Overview of transport correction]
FIG. 6 is a diagram for explaining a correction control for correcting a deviation amount during transportation of the print medium 40 according to the first embodiment. Note that FIG. 6 describes a case where the three leading blocks B1, the intermediate block B2, and the final block B3 are continuously printed on the printing medium 40, but the number of blocks B to be printed on the printing medium 40 is limited to this. It's not something.

ブロックBの印字媒体40への印刷の開始に伴い、印字媒体40がプラテンローラー18等により搬送方向Dに沿って搬送される。 With the start of printing on the print medium 40 of the block B, the print medium 40 is conveyed along the transfer direction D by the platen roller 18 or the like.

先頭ブロックB1の後余白終了地点までの印刷が終了すると、先頭ブロックB1の搬送モータ60のステップ数に基づく理論上の搬送量(以下、理論搬送量という)と、エンコーダ14により検出される先頭ブロックB1の実際の搬送量(以下、実搬送量という)とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の先頭ブロックB1での搬送時のズレ量が算出される。なお、実搬送量は、印字媒体40の滑り等により理論上のピッチ長も短くなる。本実施の形態では、この場合における先頭ブロックB1を補正前先頭ブロックB1aと呼ぶ。 When printing to the end point of the back margin of the head block B1 is completed, the theoretical transport amount based on the number of steps of the transport motor 60 of the head block B1 (hereinafter referred to as the theoretical transport amount) and the head block detected by the encoder 14 The actual transport amount of B1 (hereinafter referred to as the actual transport amount) is acquired, and the deviation amount at the time of transport in the head block B1 of the print medium 40 is calculated from the difference between the theoretical transport amount and the actual transport amount. In addition, in the actual transport amount, the theoretical pitch length is shortened due to slippage of the print medium 40 or the like. In the present embodiment, the head block B1 in this case is referred to as a pre-correction head block B1a.

算出されたズレ量は、補正前先頭ブロックB1aの後余白終了後の印刷位置に補正量Taとして挿入される。これにより、補正前先頭ブロックB1aに当該ブロックB1で生じたズレ量が反映され、補正前先頭ブロックB1aを理論上の先頭ブロックB1と同一のピッチ長に補正することができる。 The calculated deviation amount is inserted as the correction amount Ta at the print position after the end of the rear margin of the leading block B1a before correction. As a result, the amount of deviation generated in the block B1 is reflected in the pre-correction head block B1a, and the pre-correction head block B1a can be corrected to have the same pitch length as the theoretical head block B1.

続けて、中間ブロックB2で発生することが予測される搬送時のズレ量が、先頭ブロックB1で算出したズレ量(補正量Ta)に基づいて算出される。先頭ブロックB1で算出されたズレ量は等分(1/2)され、等分された一方のズレ量が次の中間ブロックB2の前余白に挿入される補正量Tbとされる。 Subsequently, the amount of deviation during transportation, which is predicted to occur in the intermediate block B2, is calculated based on the amount of deviation (correction amount Ta) calculated in the leading block B1. The deviation amount calculated in the first block B1 is equally divided (1/2), and one of the equally divided deviation amounts is used as a correction amount Tb to be inserted into the front margin of the next intermediate block B2.

中間ブロックB2の印刷の開始に伴い、算出された補正量Tbは、中間ブロックB2の前余白開始前の印刷位置に挿入される。なお、補正量Tbの挿入位置は、中間ブロックB2の前余白終了後の印刷位置であっても良い。 With the start of printing of the intermediate block B2, the calculated correction amount Tb is inserted at the printing position before the start of the front margin of the intermediate block B2. The insertion position of the correction amount Tb may be the printing position after the end of the front margin of the intermediate block B2.

中間ブロックB2の印刷が終了すると、先頭ブロックB1から中間ブロックB2の理論搬送量とエンコーダ14により検出された先頭ブロックB1から中間ブロックB2の実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の先頭ブロックB1から中間ブロックB2での搬送時のズレ量が算出される。なお、エンコーダ14により検出される中間ブロックB2の実際のピッチ長は、印字媒体40の滑り等により理論上のピッチ長も短くなる。本実施の形態では、この場合における中間ブロックB2を補正前中間ブロックB2aと呼ぶ。 When the printing of the intermediate block B2 is completed, the theoretical transport amount of the intermediate block B2 from the head block B1 and the actual transport amount of the intermediate block B2 from the head block B1 detected by the encoder 14 are acquired, respectively, and the theoretical transport amount and the actual transport amount are obtained. From the difference from the amount, the amount of deviation during transportation from the head block B1 to the intermediate block B2 of the print medium 40 is calculated. The actual pitch length of the intermediate block B2 detected by the encoder 14 is theoretically shortened due to slippage of the print medium 40 or the like. In the present embodiment, the intermediate block B2 in this case is referred to as a pre-correction intermediate block B2a.

算出されたズレ量は、補正前中間ブロックB2aの後余白終了後の印刷位置に補正量Tcとして挿入される。これにより、補正前中間ブロックB2aに当該ブロックで生じたズレ量が反映され、補正前中間ブロックB2aを理論上の中間ブロックB2と同一のピッチ長に補正することができる。 The calculated deviation amount is inserted as a correction amount Tc at the print position after the end of the rear margin of the intermediate block B2a before correction. As a result, the amount of deviation generated in the block before correction is reflected in the intermediate block B2a before correction, and the intermediate block B2a before correction can be corrected to the same pitch length as the theoretical intermediate block B2.

続けて、最終ブロックB3で発生することが予測される搬送時のズレ量が、先頭ブロックB1から中間ブロックB2で算出したズレ量(補正量Tb,Tc)に基づいて算出される。先頭ブロックB1から中間ブロックB2で算出されたズレ量は等分され、等分された一方のズレ量は次の最終ブロックB3の前余白に挿入される補正量Tdとされる。 Subsequently, the amount of deviation during transportation, which is predicted to occur in the final block B3, is calculated based on the amount of deviation (correction amount Tb, Tc) calculated from the first block B1 to the intermediate block B2. The amount of deviation calculated from the first block B1 to the intermediate block B2 is equally divided, and the amount of deviation of one of the equally divided amounts is the correction amount Td inserted in the front margin of the next final block B3.

最終ブロックB3の印刷の開始に伴い、中間ブロックB2で算出された補正量Tdは、最終ブロックB3の前余白開始前の印刷位置に挿入される。なお、補正量Tdの挿入位置は、最終ブロックB3の前余白終了後の印刷位置であっても良い。 With the start of printing of the final block B3, the correction amount Td calculated in the intermediate block B2 is inserted at the printing position before the start of the front margin of the final block B3. The insertion position of the correction amount Td may be the print position after the end of the front margin of the final block B3.

最終ブロックB3の印刷が終了すると、最終ブロックB3の理論搬送量とエンコーダ14により検出された最終ブロックB3の実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の最終ブロックB3での搬送時のズレ量が算出される。なお、実搬送量は、印字媒体40の滑り等により理論上のピッチ長(搬送距離)も短くなる。本実施の形態では、この場合における最終ブロックB3を補正前最終ブロックB3aと呼ぶ。 When the printing of the final block B3 is completed, the theoretical transport amount of the final block B3 and the actual transport amount of the final block B3 detected by the encoder 14 are obtained, respectively, and the printing medium 40 is obtained from the difference between the theoretical transport amount and the actual transport amount. The amount of deviation during transportation in the final block B3 is calculated. In the actual transport amount, the theoretical pitch length (transport distance) becomes shorter due to slippage of the printing medium 40 or the like. In the present embodiment, the final block B3 in this case is referred to as a pre-correction final block B3a.

算出されたズレ量は、補正前最終ブロックB3aの後余白終了後の印刷位置に、補正量Teとして挿入される。これにより、補正前最終ブロックB3aに当該ブロックで生じたズレ量が反映され、補正前最終ブロックB3aを理論上の最終ブロックB3と同一のピッチ長に補正することができる。 The calculated deviation amount is inserted as a correction amount Te at the print position after the end of the rear margin of the final block B3a before correction. As a result, the amount of deviation generated in the block is reflected in the final block B3a before correction, and the final block B3a before correction can be corrected to the same pitch length as the theoretical final block B3.

[印字装置100の動作例]
図7は、第1の実施の形態に係る各ブロックBの搬送時のズレ量の補正を行う場合における印字装置100の動作の一例を示すフローチャートである。本フローチャートは搬送モータ60の1ステップ中の処理を示し、S100〜S210で1ライン分(1ドット分)の処理に相当する。S100〜S210を繰り返し処理することで、ブロックB内の印字が行われる。制御部50は、ROM等のメモリに格納されたプログラムを読み出して実行することにより、以下の図7に示す処理を実現する。
[Operation example of printing device 100]
FIG. 7 is a flowchart showing an example of the operation of the printing device 100 when the deviation amount during transportation of each block B according to the first embodiment is corrected. This flowchart shows the processing in one step of the transfer motor 60, and corresponds to the processing for one line (one dot) in S100 to S210. By repeatedly processing S100 to S210, printing in the block B is performed. The control unit 50 realizes the process shown in FIG. 7 below by reading and executing a program stored in a memory such as a ROM.

ステップS100において、制御部50は、搬送モータ60を1ステップ駆動する。これにより、操作部32やUSBメモリ等から入力された文字等の画像データのうち1ドット(1ライン)分の画像が印字媒体40に印刷され印字媒体40が搬送される。または、補正の為の余白データの1ドット分印字媒体が搬送される。ステップS100が終了したら、ステップS110に進む。 In step S100, the control unit 50 drives the transfer motor 60 in one step. As a result, one dot (one line) of images such as characters input from the operation unit 32 or the USB memory is printed on the print medium 40, and the print medium 40 is conveyed. Alternatively, the print medium for one dot of the margin data for correction is conveyed. When step S100 is completed, the process proceeds to step S110.

ステップS110において、制御部50は、印刷中(搬送中)の印字媒体40の印刷位置が先頭ブロックB1の前余白の先端部であるか否かを判断する。ここで、本実施の形態において、先頭ブロックB1の前余白の先端部とは、実行するブロックBに付加されているコマンドが先頭ブロックを示すコマンドであり、かつ、エンコーダ14でスリットの開閉が最初に検出される搬送位置を意味している。制御部50は、印字媒体40の印刷位置が先頭ブロックB1の前余白の先端部であると判断した場合、ステップS120に進む。 In step S110, the control unit 50 determines whether or not the printing position of the printing medium 40 during printing (during transportation) is the tip of the front margin of the head block B1. Here, in the present embodiment, the tip of the front margin of the head block B1 is a command added to the block B to be executed to indicate the head block, and the encoder 14 opens and closes the slit first. It means the transport position detected in. When the control unit 50 determines that the print position of the print medium 40 is the tip of the front margin of the head block B1, the control unit 50 proceeds to step S120.

ステップS120において、制御部50は、搬送モータ60のステップ数のカウンタをリセットする。ステップS120が終了したら、ステップS130に進む。 In step S120, the control unit 50 resets the counter for the number of steps of the transfer motor 60. When step S120 is completed, the process proceeds to step S130.

ステップS130において、制御部50は、S120と同様に、エンコーダ14の切り替わり数のカウンタをリセットする。ステップS130が終了したら、ステップS140に進む。 In step S130, the control unit 50 resets the counter for the number of switchings of the encoder 14 as in S120. When step S130 is completed, the process proceeds to step S140.

一方、ステップS110において、制御部50は、印字媒体40の印刷位置が先頭ブロックB1の前余白の先端部ではないと判断した場合、搬送モータ60のステップ数のカウンタおよびエンコーダ14の切り替わり数のカウンタをリセットせずに、ステップS140に進む。 On the other hand, in step S110, when the control unit 50 determines that the print position of the print medium 40 is not the tip of the front margin of the head block B1, the counter for the number of steps of the transfer motor 60 and the counter for the number of switches of the encoder 14 The process proceeds to step S140 without resetting.

ステップS140において、制御部50は、印字媒体40の搬送距離の補正中であるか否かを判断する。制御部50は、印字媒体40の搬送距離の補正中でないと判断した場合、ステップS150に進む。 In step S140, the control unit 50 determines whether or not the transfer distance of the print medium 40 is being corrected. When the control unit 50 determines that the correction of the transport distance of the print medium 40 is not in progress, the control unit 50 proceeds to step S150.

ステップS150において、制御部50は、搬送モータ60のステップ数のカウンタをインクリメントする。これにより、印字媒体40の各ブロックBにおける理論上の搬送距離を正確に検出することができる。ステップS150が終了したら、ステップS160に進む。 In step S150, the control unit 50 increments the counter for the number of steps of the transfer motor 60. As a result, the theoretical transport distance in each block B of the print medium 40 can be accurately detected. When step S150 is completed, the process proceeds to step S160.

一方、ステップS140において、制御部50は、印字媒体40の搬送距離の補正中であると判断した場合、ステップS160に進む。これは、印字媒体40の搬送距離の補正時における補正量(ズレ量)をカウントに含めてしまうと、本来加算するべきではないステップ数を理論上のステップ数に加算することとなり、各ブロックBのピッチ長を正確に検出することができないからである。 On the other hand, if the control unit 50 determines in step S140 that the transport distance of the print medium 40 is being corrected, the process proceeds to step S160. This is because if the correction amount (deviation amount) at the time of correcting the transport distance of the print medium 40 is included in the count, the number of steps that should not be added originally is added to the theoretical number of steps, and each block B This is because it is not possible to accurately detect the pitch length of.

ステップS160において、制御部50は、エンコーダ14でスリットの開閉の切り替わりが検出されたか否かを判断する。制御部50は、エンコーダ14でスリットの開閉の切り替わりが検出されたと判断した場合、ステップS170に進む。 In step S160, the control unit 50 determines whether or not the encoder 14 has detected the switching of opening and closing of the slit. When the control unit 50 determines that the encoder 14 has detected the switching of opening and closing of the slit, the control unit 50 proceeds to step S170.

ステップS170において、制御部50は、エンコーダ14で検出されるスリットの開閉の切り替わり数のカウンタをインクリメントする。これにより、エンコーダ14の切り替わり数を搬送モータのステップ数に換算することで、印字媒体40の実際の搬送距離を得ることができる。ステップS170が終了したら、ステップS180に進む。 In step S170, the control unit 50 increments the counter for the number of slit open / close switching detected by the encoder 14. As a result, the actual transfer distance of the print medium 40 can be obtained by converting the number of switching of the encoder 14 into the number of steps of the transfer motor. When step S170 is completed, the process proceeds to step S180.

一方、ステップS160において、制御部50は、エンコーダ14でスリットの開閉の切り替わりが検出されてないと判断した場合、ステップS180に進む。 On the other hand, in step S160, when the control unit 50 determines that the switching of opening / closing of the slit is not detected by the encoder 14, the control unit 50 proceeds to step S180.

ステップS180において、制御部50は、印字媒体40の印刷位置を判断する。例えば、制御部50は、搬送モータ60の現在のステップ数から印字媒体40の理論上の搬送位置を判断する。制御部50は、印字媒体40の印刷位置が先頭ブロックB1以外のブロックBの前余白終了時点であると判断した場合、ステップS190に進む。 In step S180, the control unit 50 determines the print position of the print medium 40. For example, the control unit 50 determines the theoretical transfer position of the print medium 40 from the current number of steps of the transfer motor 60. When the control unit 50 determines that the print position of the print medium 40 is at the end of the front margin of the block B other than the head block B1, the control unit 50 proceeds to step S190.

ステップS190において、制御部50は、印刷中のブロックの前余白に挿入する補正量(図6の補正量Tb,Td)を算出する。補正量は、以下に示す式(1)により算出することができる。 In step S190, the control unit 50 calculates the correction amount (correction amount Tb, Td in FIG. 6) to be inserted into the front margin of the block being printed. The correction amount can be calculated by the following equation (1).

補正量=(直前ブロック補正量×(当ブロックのピッチ長/直前ブロックのピッチ長)×1/2)・・・(1) Correction amount = (immediate block correction amount x (pitch length of this block / pitch length of immediately preceding block) x 1/2) ... (1)

上記式(1)において、直前ブロックは、当ブロックの搬送方向Dの下流側に隣接するブロックとする。また、上記式(1)の直前ブロック補正量は、以下に示す式(2)により算出することができる。 In the above formula (1), the immediately preceding block is a block adjacent to the downstream side of the transport direction D of the block. Further, the immediately preceding block correction amount of the above formula (1) can be calculated by the following formula (2).

直前ブロック補正量=直前ブロックの前余白補正量+直前ブロックの後余白補正量
・・・(2)
Immediate block correction amount = Front margin correction amount of the previous block + Back margin correction amount of the previous block ... (2)

ステップS190が終了したら、ステップS200に進む。 When step S190 is completed, the process proceeds to step S200.

また、ステップS180において、制御部50は、印字媒体40の印刷位置がブロックBの後余白終了時点であると判断した場合、ステップS220に進む。 Further, in step S180, when the control unit 50 determines that the print position of the print medium 40 is at the end of the rear margin of the block B, the control unit 50 proceeds to step S220.

ステップS220において、制御部50は、印刷中のブロックBの後余白に挿入する補正量(図6の補正量Ta,Tc,Te)を算出する。補正量は、以下に示す式(3)により算出することができる。 In step S220, the control unit 50 calculates the correction amount (correction amount Ta, Tc, Te in FIG. 6) to be inserted into the back margin of the block B being printed. The correction amount can be calculated by the following equation (3).

補正量=理論搬送量−実搬送量・・・(3)
理論搬送量:搬送モータ60のステップ数
実搬送量:(エンコーダ14の切り替わり数×エンコーダ14のスリット間隔)/搬送モータ60のステップ数の間隔
Correction amount = theoretical transfer amount-actual transfer amount ... (3)
Theoretical transfer amount: Number of steps of the transfer motor 60 Actual transfer amount: (Number of switching of encoder 14 x Slit interval of encoder 14) / Interval of number of steps of transfer motor 60

ステップS220が終了したら、ステップS200に進む。 When step S220 is completed, the process proceeds to step S200.

ステップS200において、制御部50は、算出した印字媒体40のブロックBでの補正量をセットする。これにより、補正量に相当する搬送モータ60のステップ数分、各ブロックB内に余白が挿入されるので、ブロックBの実搬送量を理論搬送量に合わせることができる。ステップS200が終了したら、ステップS210に進む。 In step S200, the control unit 50 sets the calculated correction amount in the block B of the print medium 40. As a result, a margin is inserted in each block B for the number of steps of the transfer motor 60 corresponding to the correction amount, so that the actual transfer amount of the block B can be adjusted to the theoretical transfer amount. When step S200 is completed, the process proceeds to step S210.

一方、ステップS180において、制御部50は、印字媒体40の印刷位置が先頭ブロックB1以外のブロックBの前余白終了時点、およびブロックBの後余白終了時点以外であると判断した場合、印字媒体40の印字位置が印字領域T1であると判断できるので、補正量を算出せずにステップS210に進む。 On the other hand, in step S180, when the control unit 50 determines that the print position of the print medium 40 is other than the front margin end time of the block B other than the head block B1 and the back margin end time of the block B, the print medium 40 Since it can be determined that the print position of is the print area T1, the process proceeds to step S210 without calculating the correction amount.

ステップS210において、制御部50は、入力された文字等の全ての印刷が終了したか否かを判断する。制御部50は、全ての印刷が終了していないと判断した場合、ステップS100に戻り、残りの印刷を実行する。一方、全ての印刷が終了したと判断した場合、一連の印刷処理を終了する。 In step S210, the control unit 50 determines whether or not all printing of the input characters and the like has been completed. When the control unit 50 determines that all printing has not been completed, the control unit 50 returns to step S100 and executes the remaining printing. On the other hand, when it is determined that all printing is completed, a series of printing processes is terminated.

以上説明したように、第1の実施の形態によれば、各ブロックBで生じた搬送時のズレ量を、ズレ量が発生した当該ブロックB内に反映させることができるので、ブロックB毎の距離精度を向上させることができる。 As described above, according to the first embodiment, the amount of deviation during transportation generated in each block B can be reflected in the block B in which the amount of deviation has occurred, so that each block B can be reflected. Distance accuracy can be improved.

また、搬送モータ60を構成するステッピングモータでは、ズレ量を算出させる際にどうしても1ステップ分の誤差が生じることが知られている。上述した特許文献1に開示されるブロックBの搬送距離のズレ量の補正制御では、各ブロックBのズレ量を次のブロックBに反映させる制御であるため、ズレ量がブロック数分累積するという問題がある。これに対し、第1の実施の形態によれば、先頭ブロックB1から印刷中のブロックBまでの搬送距離のズレ量を、各ブロックB内に反映させるため、ズレ量の誤差が累積せず、常に搬送モータ60の1ステップ内の誤差に収めることができる。その結果、印刷するブロックBの全長の距離精度をより向上させることができる。 Further, it is known that in the stepping motor constituting the transfer motor 60, an error of one step is inevitably generated when calculating the deviation amount. In the correction control of the deviation amount of the transport distance of the block B disclosed in Patent Document 1 described above, the deviation amount of each block B is reflected in the next block B, so that the deviation amount is accumulated by the number of blocks. There's a problem. On the other hand, according to the first embodiment, since the deviation amount of the transport distance from the head block B1 to the block B being printed is reflected in each block B, the error of the deviation amount does not accumulate. It is possible to always keep the error within one step of the transfer motor 60. As a result, the distance accuracy of the total length of the block B to be printed can be further improved.

また、第1の実施の形態によれば、ブロックBの後余白のみ補正するのではなく、直前のブロックBのズレ量に基づいて当該ブロックBのズレ量を予測し、その予測したズレ量を前余白に挿入するので、ブロックB内の印刷位置が前側に偏ることなく、中央部に印刷することができる。これにより、印字位置の正確化を図ることができ、印字媒体40に印字される文字等の見栄えも向上させることができる。 Further, according to the first embodiment, instead of correcting only the back margin of the block B, the deviation amount of the block B is predicted based on the deviation amount of the immediately preceding block B, and the predicted deviation amount is calculated. Since it is inserted in the front margin, it is possible to print in the center portion without biasing the printing position in the block B to the front side. As a result, the printing position can be made accurate, and the appearance of characters and the like printed on the printing medium 40 can be improved.

<第2の実施の形態>
第2の実施の形態では、各ブロックB1で印刷する文字や文字間にも補正用の余白を挿入する点において上記第1の実施の形態等と相違している。なお、第2の実施の形態において、第1の実施の形態と実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。
<Second Embodiment>
The second embodiment is different from the first embodiment in that the characters to be printed in each block B1 and the margins for correction are inserted between the characters. In the second embodiment, the components having substantially the same functional configuration as that of the first embodiment are designated by the same reference numerals, so that duplicate description will be omitted.

[搬送補正の概要]
図8は、第2の実施の形態に係る各ブロックの搬送距離のズレを補正する補正方法を説明するための図である。以下では、1つの先頭ブロックB1内に、印字情報として「■HEFH■」からなる文字列を印刷する場合について説明する。
[Overview of transport correction]
FIG. 8 is a diagram for explaining a correction method for correcting the deviation of the transport distance of each block according to the second embodiment. Hereinafter, a case where a character string consisting of “■ HEFH ■” is printed as print information in one head block B1 will be described.

印字媒体40への印刷の開始に伴い、印字媒体40がプラテンローラー18等により搬送方向Dに沿って搬送される。印字媒体40が搬送されると、先頭ブロックB1の先端部から現在位置までの理論搬送量と、エンコーダ14により検出された先頭ブロックB1の先端部から現在位置までの実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の先頭ブロックB1での搬送時のズレ量が算出される。例えば、ズレ量は、エンコーダ14のスリットの開閉の所定の切り替わり回数毎に算出しても良いし、搬送モータ60の所定のステップ数毎に算出するようにしても良い。 With the start of printing on the print medium 40, the print medium 40 is conveyed along the transfer direction D by the platen roller 18 or the like. When the print medium 40 is conveyed, the theoretical transfer amount from the tip of the head block B1 to the current position and the actual transfer amount detected by the encoder 14 from the tip to the current position are acquired. From the difference between the theoretical transport amount and the actual transport amount, the deviation amount at the time of transport in the head block B1 of the print medium 40 is calculated. For example, the deviation amount may be calculated for each predetermined number of times of switching the opening and closing of the slit of the encoder 14, or may be calculated for each predetermined number of steps of the transfer motor 60.

先頭ブロックB1でのズレ量が予め設定された閾値を超えたと判断された場合、ズレ量に対応する補正量が先頭ブロックB1内に挿入される。例えば、印刷中の先頭ブロックB1の前余白位置Tfや、文字位置Tg,Th、文字間位置Ti、後余白位置Tjに補正量(余白)が挿入される。なお、文字位置Tg,Thに補正量を挿入すると、文字が搬送方向Dに若干伸びてしまうので、文字以外の前余白位置Tf等に補正量を挿入することが好ましい。本フローチャートは搬送モータ60の1ステップ中の処理を示し、S300〜S410で1ライン分(1ドット分)の処理に相当する。 When it is determined that the deviation amount in the first block B1 exceeds a preset threshold value, a correction amount corresponding to the deviation amount is inserted into the first block B1. For example, the correction amount (margin) is inserted into the front margin position Tf, the character positions Tg, Th, the character spacing position Ti, and the back margin position Tj of the head block B1 during printing. If the correction amount is inserted at the character positions Tg and Th, the character is slightly extended in the transport direction D. Therefore, it is preferable to insert the correction amount at the front margin position Tf or the like other than the character. This flowchart shows the processing in one step of the transfer motor 60, and corresponds to the processing for one line (one dot) in S300 to S410.

[印字装置100の動作例]
図9は、第2の実施の形態に係る各ブロックBのズレ量の補正を行う場合における印字装置100の動作の一例を示すフローチャートである。制御部50は、ROM等のメモリに格納されたプログラムを読み出して実行することにより、以下の図9に示す処理を実現する。なお、ステップS300〜S370までの処理については、第1の実施の形態の図7に示したS100〜S170の処理と共通するため詳細な説明については省略し、ステップS380以降の処理について詳しく説明する。
[Operation example of printing device 100]
FIG. 9 is a flowchart showing an example of the operation of the printing device 100 when the deviation amount of each block B according to the second embodiment is corrected. The control unit 50 realizes the process shown in FIG. 9 below by reading and executing a program stored in a memory such as a ROM. Since the processes from steps S300 to S370 are common to the processes of S100 to S170 shown in FIG. 7 of the first embodiment, detailed description thereof will be omitted, and the processes after step S380 will be described in detail. ..

ステップS380において、制御部50は、印字媒体40の先端部から現在の印刷位置までの理論搬送量および実搬送量をそれぞれ取得し、これらの差分から印字媒体40の現在の印刷位置でのズレ量を逐次算出する。例えば、制御部50は、エンコーダ14でのスリットの開閉の切り替わりを1回または規定回数、検出する毎にズレ量を算出する。ステップS380が終了したら、ステップS390に進む。なお、ズレ量の算出については、上述した式(3)を用いることができる。 In step S380, the control unit 50 acquires the theoretical transport amount and the actual transport amount from the tip end portion of the print medium 40 to the current print position, respectively, and the deviation amount of the print medium 40 at the current print position from these differences. Is calculated sequentially. For example, the control unit 50 calculates the amount of deviation each time the switching of opening and closing of the slit in the encoder 14 is detected once or a specified number of times. When step S380 is completed, the process proceeds to step S390. The above-mentioned equation (3) can be used for calculating the amount of deviation.

ステップS390において、制御部50は、算出したズレ量と予め設定されている閾値とを比較し、ズレ量が閾値以上であるか否かを判断する。閾値は、例えばメモリ52に記憶されており、搬送モータ60の1ステップまたは複数のステップ(規定値)に設定される。制御部50は、ズレ量が閾値以上であると判断した場合、ステップS400に進む。 In step S390, the control unit 50 compares the calculated deviation amount with the preset threshold value, and determines whether or not the deviation amount is equal to or greater than the threshold value. The threshold value is stored in, for example, the memory 52, and is set in one step or a plurality of steps (specified value) of the transfer motor 60. When the control unit 50 determines that the deviation amount is equal to or greater than the threshold value, the control unit 50 proceeds to step S400.

ステップS400において、制御部50は、算出したズレ量に応じた補正量をセットする。これにより、補正量に相当する搬送モータ60のステップ数分、ブロックB内に余白や文字の一部(ライン)が挿入されるので、ブロックBの実搬送量を理論搬送量に合わせることができる。ステップS400が終了したら、ステップ410に進む。 In step S400, the control unit 50 sets a correction amount according to the calculated deviation amount. As a result, a margin or a part (line) of characters is inserted in the block B for the number of steps of the transfer motor 60 corresponding to the correction amount, so that the actual transfer amount of the block B can be adjusted to the theoretical transfer amount. .. When step S400 is completed, the process proceeds to step 410.

一方、ステップS390において、制御部50は、ズレ量が閾値未満であると判断した場合、搬送距離の補正を行う必要がないので、ステップS410に進む。 On the other hand, in step S390, when the control unit 50 determines that the deviation amount is less than the threshold value, it is not necessary to correct the transport distance, so the process proceeds to step S410.

ステップS410において、制御部50は、入力された文字列(文章)の全ての印刷が終了したか否かを判断する。制御部50は、全ての印刷が終了していないと判断した場合、ステップS300に戻り、残りの印刷を実行する。一方、全ての印刷が終了したと判断した場合、一連の印刷処理を終了する。 In step S410, the control unit 50 determines whether or not all the input character strings (sentences) have been printed. When the control unit 50 determines that all printing has not been completed, the control unit 50 returns to step S300 and executes the remaining printing. On the other hand, when it is determined that all printing is completed, a series of printing processes is terminated.

以上説明したように、第2の実施の形態によれば、各ブロックBで生じた搬送時のズレ量を、ズレ量が発生した当該ブロックB内に反映させることができるので、ブロックB毎の距離精度を向上させることができる。 As described above, according to the second embodiment, the amount of deviation during transportation generated in each block B can be reflected in the block B in which the amount of deviation has occurred, so that each block B can be reflected. Distance accuracy can be improved.

<第3の実施の形態>
第3の実施の形態では、最終ブロックB3の後余白に当該ブロックBでの搬送時のズレ量を補正する補正用の余白を挿入する点において、上記第1の実施の形態等と相違している。なお、第3の実施の形態において、第1の実施の形態と実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。
<Third embodiment>
The third embodiment is different from the first embodiment and the like in that a margin for correction for correcting the amount of deviation during transportation in the block B is inserted in the back margin of the final block B3. There is. In the third embodiment, the components having substantially the same functional configuration as that of the first embodiment are designated by the same reference numerals, so that duplicate description will be omitted.

[搬送補正の概要]
図10は、第3の実施の形態に係る印字媒体40の搬送時のズレ量を補正する補正制御を説明するための図である。なお、図10では、3つの先頭ブロックB1,中間ブロックB2、最終ブロックB3を印字媒体40に連続して印刷する場合について説明するが、印字媒体40に印刷するブロックBの個数はこれに限定されるものではない。
[Overview of transport correction]
FIG. 10 is a diagram for explaining a correction control for correcting a deviation amount during transportation of the print medium 40 according to the third embodiment. Note that FIG. 10 describes a case where the three leading blocks B1, the intermediate block B2, and the final block B3 are continuously printed on the printing medium 40, but the number of blocks B to be printed on the printing medium 40 is limited to this. It's not something.

印字媒体40への印刷の開始に伴い、印字媒体40がプラテンローラー18等により搬送方向Dに沿って搬送される。先頭ブロックB1の印刷が終了すると、先頭ブロックB1の理論搬送量とエンコーダ14により検出された先頭ブロックB1の実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の先頭ブロックB1での搬送時のズレ量が算出される。また、算出されたズレ量は等分される。等分された一方のズレ量は次の中間ブロックB2の前余白に挿入される補正量Tkとされ、等分された他方のズレ量は次の中間ブロックB2の後余白に挿入される補正量Tlとされる。 With the start of printing on the print medium 40, the print medium 40 is conveyed along the transfer direction D by the platen roller 18 or the like. When the printing of the head block B1 is completed, the theoretical transport amount of the head block B1 and the actual transport amount of the head block B1 detected by the encoder 14 are acquired, respectively, and the printing medium 40 is obtained from the difference between the theoretical transport amount and the actual transport amount. The amount of deviation during transportation in the leading block B1 of the above is calculated. In addition, the calculated deviation amount is equally divided. The amount of deviation of one equally divided is the correction amount Tk inserted in the front margin of the next intermediate block B2, and the amount of deviation of the other equally divided is the amount of correction inserted in the back margin of the next intermediate block B2. It is said to be Tl.

続けて、中間ブロックB2の印刷が開始されると、中間ブロックB2の前余白開始前の印刷位置に、補正量Tkが挿入される。また、補正前中間ブロックB2aの後余白終了後の印刷位置に、補正量Tlが挿入される。これにより、先頭ブロックB1での搬送距離のズレを中間ブロックB2にて補正することができる。 Subsequently, when printing of the intermediate block B2 is started, the correction amount Tk is inserted at the printing position before the start of the front margin of the intermediate block B2. Further, the correction amount Tl is inserted at the print position after the end of the rear margin of the intermediate block B2a before correction. As a result, the deviation of the transport distance in the leading block B1 can be corrected in the intermediate block B2.

中間ブロックB2の印刷が終了すると、中間ブロックB2の理論搬送量とエンコーダ14により検出された中間ブロックB2(補正前中間ブロックB2a)の実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の中間ブロックB2での搬送時のズレ量が算出される。また、算出されたズレ量は等分され、等分された一方のズレ量は次の最終ブロックB3の前余白に挿入される補正量Tmとされ、等分された他方のズレ量は次の最終ブロックB3の後余白に挿入される補正量Tnとされる。 When printing of the intermediate block B2 is completed, the theoretical transport amount of the intermediate block B2 and the actual transport amount of the intermediate block B2 (intermediate block B2a before correction) detected by the encoder 14 are acquired, respectively, and the theoretical transport amount and the actual transport amount are obtained. The amount of deviation during transportation in the intermediate block B2 of the print medium 40 is calculated from the difference between the two. Further, the calculated deviation amount is equally divided, one equally divided deviation amount is set as the correction amount Tm inserted in the front margin of the next final block B3, and the equally divided deviation amount is the following. It is the correction amount Tn inserted in the back margin of the final block B3.

続けて、最終ブロックB3の印刷が開始されると、最終ブロックB3の前余白開始前の印刷位置に補正量Tmが挿入される。また、補正前最終ブロックB3aの後余白終了後の印刷位置に補正量Tnが挿入される。これにより、中間ブロックB2での搬送距離のズレ量を最終ブロックB3に反映させて補正することができる。 Subsequently, when printing of the final block B3 is started, the correction amount Tm is inserted at the print position before the start of the front margin of the final block B3. Further, the correction amount Tn is inserted at the print position after the end of the rear margin of the final block B3a before correction. As a result, the deviation amount of the transport distance in the intermediate block B2 can be reflected in the final block B3 and corrected.

また、最終ブロックB3の印刷が終了すると、最終ブロックB3の理論搬送量とエンコーダ14により検出された最終ブロックB3(補正前最終ブロックB3a)の実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の最終ブロックB3での搬送時のズレ量が算出される。算出されたズレ量は、補正量Toとして、最終ブロックB3の補正量Tnの挿入後の印刷位置に挿入される。これにより、最終ブロックB3に自身のブロックのズレ量も反映され、全てのブロックBのピッチ長を理論上のピッチ長に補正することができる。 When the printing of the final block B3 is completed, the theoretical transport amount of the final block B3 and the actual transport amount of the final block B3 (final block B3a before correction) detected by the encoder 14 are acquired, respectively, and the theoretical transport amount and the actual transport amount are obtained. From the difference from the conveyed amount, the amount of deviation of the print medium 40 during transportation in the final block B3 is calculated. The calculated deviation amount is inserted as the correction amount To at the print position after the correction amount Tn of the final block B3 is inserted. As a result, the amount of deviation of the own block is reflected in the final block B3, and the pitch lengths of all the blocks B can be corrected to the theoretical pitch lengths.

[印字装置100の動作例]
図11は、第3の実施の形態に係る各ブロックBのズレ量の補正を行う場合における印字装置100の動作の一例を示すフローチャートである。制御部50は、ROM等のメモリに格納されたプログラムを読み出して実行することにより、以下の図11に示す処理を実現する。なお、ステップS500〜S570の処理については、第1の実施の形態の図7に示したS100〜S170の処理と共通するため詳細な説明については省略し、ステップS580からの処理について説明する。本フローチャートは搬送モータ60の1ステップ中の処理を示し、S500〜S620で1ライン分(1ドット分)の処理に相当する。
[Operation example of printing device 100]
FIG. 11 is a flowchart showing an example of the operation of the printing device 100 when the deviation amount of each block B according to the third embodiment is corrected. The control unit 50 realizes the process shown in FIG. 11 below by reading and executing a program stored in a memory such as a ROM. Since the processes of steps S500 to S570 are common to the processes of S100 to S170 shown in FIG. 7 of the first embodiment, detailed description thereof will be omitted, and the processes from step S580 will be described. This flowchart shows the processing in one step of the transfer motor 60, and corresponds to the processing for one line (one dot) in S500 to S620.

ステップS580において、制御部50は、印字媒体40の印刷位置を判断する。制御部50は、印字媒体40の印刷位置が先頭ブロックB1以外のブロックBの前余白終了時点であると判断した場合、ステップS590に進む。 In step S580, the control unit 50 determines the print position of the print medium 40. When the control unit 50 determines that the print position of the print medium 40 is at the end of the front margin of the block B other than the head block B1, the control unit 50 proceeds to step S590.

ステップS590において、制御部50は、印刷中のブロックBの前余白に挿入するための補正量(ズレ量)を算出する。補正量は、上述した式(3)により算出することができる。ステップS590が終了したら、ステップS600に進む。 In step S590, the control unit 50 calculates a correction amount (deviation amount) for inserting into the front margin of the block B being printed. The correction amount can be calculated by the above-mentioned equation (3). When step S590 is completed, the process proceeds to step S600.

ステップS600において、制御部50は、算出した補正量のうち印刷中のブロックBの前余白に挿入していない残りの補正量があるか否かを判断する。制御部50は、ブロックBの前余白に挿入していない残りの補正量があると判断した場合、ステップS610に進む。 In step S600, the control unit 50 determines whether or not there is a remaining correction amount that is not inserted in the front margin of the block B being printed among the calculated correction amounts. When the control unit 50 determines that there is a remaining correction amount not inserted in the front margin of the block B, the control unit 50 proceeds to step S610.

ステップS610において、制御部50は、搬送モータ60を1ステップ駆動することで、算出した補正量に応じた余白をブロックBの前余白に挿入する。ステップS610が終了したら、ステップS600に戻る。 In step S610, the control unit 50 inserts the margin corresponding to the calculated correction amount into the front margin of the block B by driving the transfer motor 60 in one step. When step S610 is completed, the process returns to step S600.

一方、ステップS600において、制御部50は、算出した補正量のうち印刷中のブロックBの前余白に挿入していない残りの補正量がないと判断した場合、ステップS620に進む。 On the other hand, in step S600, when the control unit 50 determines that there is no remaining correction amount not inserted in the front margin of the block B being printed out of the calculated correction amount, the process proceeds to step S620.

また、ステップS580において、制御部50は、印字媒体40の印刷位置がブロックBの後余白終了時点であると判断した場合、ステップS630に進む。 If the control unit 50 determines in step S580 that the print position of the print medium 40 is at the end of the rear margin of the block B, the control unit 50 proceeds to step S630.

ステップS630において、制御部50は、印刷中のブロックBの後余白に挿入するための補正量(ズレ量)を算出する。補正量は、上述した式(3)により算出することができる。ステップS630が終了したら、ステップS640に進む。 In step S630, the control unit 50 calculates a correction amount (deviation amount) for inserting into the back margin of the block B being printed. The correction amount can be calculated by the above-mentioned equation (3). When step S630 is completed, the process proceeds to step S640.

ステップS640において、制御部50は、算出した補正量のうち印刷中のブロックBの後余白に挿入していない残りの補正量があるか否かを判断する。制御部50は、ブロックBの後余白に挿入していない残りの補正量があると判断した場合、ステップS650に進む。 In step S640, the control unit 50 determines whether or not there is a remaining correction amount that is not inserted in the back margin of the block B being printed among the calculated correction amounts. When the control unit 50 determines that there is a remaining correction amount not inserted in the rear margin of the block B, the control unit 50 proceeds to step S650.

ステップS650において、制御部50は、搬送モータ60を1ステップ駆動することで、算出した補正量に応じた余白をブロックBの後余白に挿入する。ステップS650が終了したら、ステップS640に戻る。 In step S650, the control unit 50 inserts a margin corresponding to the calculated correction amount into the rear margin of the block B by driving the transfer motor 60 in one step. When step S650 is completed, the process returns to step S640.

一方、ステップS640において、制御部50は、算出した補正量のうち印刷中のブロックBの後余白に挿入していない残りの補正量がないと判断した場合、ステップS620に進む。 On the other hand, in step S640, when the control unit 50 determines that there is no remaining correction amount not inserted in the back margin of the block B being printed out of the calculated correction amount, the process proceeds to step S620.

また、ステップS580において、制御部50は、印字媒体40の印刷位置が最終ブロックB3以外の後白終了時点であると判断した場合、ステップS660に進む。 Further, in step S580, when the control unit 50 determines that the print position of the print medium 40 is the end time of the back white other than the final block B3, the control unit 50 proceeds to step S660.

ステップS660において、制御部50は、印刷中の最終ブロックB以外の後余白に挿入するための補正量(ズレ量)を算出する。補正量は、上述した式(3)により算出することができる。ステップS660が終了したら、ステップS670に進む。 In step S660, the control unit 50 calculates a correction amount (deviation amount) for inserting into the back margin other than the final block B during printing. The correction amount can be calculated by the above-mentioned equation (3). When step S660 is completed, the process proceeds to step S670.

ステップS670において、制御部50は、算出した補正量のうち印刷中の最終ブロックB以外の後余白に挿入していない残りの補正量があるか否かを判断する。制御部50は、印刷中の最終ブロックB以外の後余白に挿入していない残りの補正量があると判断した場合、ステップS680に進む。 In step S670, the control unit 50 determines whether or not there is a remaining correction amount that is not inserted in the back margin other than the final block B during printing among the calculated correction amounts. When the control unit 50 determines that there is a remaining correction amount that has not been inserted in the back margin other than the final block B during printing, the control unit 50 proceeds to step S680.

ステップS680において、制御部50は、搬送モータ60を1ステップ駆動することで、算出した補正量に応じた余白を印刷中の最終ブロックB以外の後余白に挿入する。ステップS680が終了したら、ステップS670に戻る。 In step S680, the control unit 50 drives the transfer motor 60 in one step to insert a margin corresponding to the calculated correction amount into the rear margin other than the final block B being printed. When step S680 is completed, the process returns to step S670.

一方、ステップS670において、制御部50は、算出した補正量のうち印刷中のブロックBの印刷中の最終ブロックB以外の後余白に挿入していない残りの補正量がないと判断した場合、ステップS620に進む。 On the other hand, in step S670, when the control unit 50 determines that there is no remaining correction amount not inserted in the back margin other than the final block B being printed in the printing block B among the calculated correction amounts, the step S670 is performed. Proceed to S620.

さらに、ステップS580において、制御部50は、印字媒体40の印刷位置が、先頭ブロックB1以外のブロックBの前余白終了時点、ブロックBの後余白終了時点、および最終ブロックB3以外の後白終了時点以外であると判断した場合、ステップS620に進む。つまり、印字媒体40の印刷位置が文字または文字間である場合には、補正量としての余白を挿入せずに、ステップS620に進む。第3の実施の形態では、このような補正制御を繰り返し実行する。 Further, in step S580, the control unit 50 determines that the print position of the print medium 40 is at the end of the front margin of the block B other than the first block B1, the end of the back margin of the block B, and the end of the back white other than the final block B3. If it is determined to be other than, the process proceeds to step S620. That is, when the print position of the print medium 40 is between characters or characters, the process proceeds to step S620 without inserting a margin as a correction amount. In the third embodiment, such correction control is repeatedly executed.

以上説明したように、第3の実施の形態によれば、最終ブロックB3で生じた搬送時のズレ量を最終ブロックB3内の後余白に入れ込むので、印字媒体40に印刷する全体のブロックBのピッチ長を、理論搬送量に合わせることができる。 As described above, according to the third embodiment, the amount of deviation during transportation generated in the final block B3 is inserted into the rear margin in the final block B3, so that the entire block B to be printed on the printing medium 40 is printed. The pitch length of can be adjusted to the theoretical transport amount.

<第4の実施の形態>
第4の実施の形態では、先頭ブロックB1の前余白にも補正用の余白を挿入する点において、上記第1の実施の形態等と相違している。なお、第4の実施の形態において、第1の実施の形態と実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。
<Fourth Embodiment>
The fourth embodiment is different from the first embodiment and the like in that a margin for correction is also inserted in the front margin of the head block B1. In the fourth embodiment, the components having substantially the same functional configuration as that of the first embodiment are designated by the same reference numerals, so that duplicate description will be omitted.

[搬送補正の概要]
図12は、第4の実施の形態に係る印字媒体40の搬送時のズレ量を補正する補正制御を説明するための図である。なお、図では、3つの先頭ブロックB1,中間ブロックB2、最終ブロックB3を印字媒体40に連続して印刷する場合について説明するが、印字媒体40に印刷するブロックBの個数はこれに限定されるものではない。
[Overview of transport correction]
FIG. 12 is a diagram for explaining correction control for correcting the amount of deviation of the print medium 40 during transportation according to the fourth embodiment. In the figure, a case where the three leading blocks B1, the intermediate block B2, and the final block B3 are continuously printed on the printing medium 40 will be described, but the number of blocks B to be printed on the printing medium 40 is limited to this. It's not a thing.

第4の実施の形態では、印字媒体40への印刷の開始前に、印字媒体40の空送りが行われる。以下では、空送りが行われる印字媒体40の区間を空送りブロックBaと呼ぶ。空送りブロックBaは、最終的に捨て部分となる。 In the fourth embodiment, the print medium 40 is blank-fed before the start of printing on the print medium 40. Hereinafter, the section of the print medium 40 on which the blank feed is performed is referred to as a blank feed block Ba. The blank feed block Ba is finally discarded.

印字媒体40の空送りが終了すると、空送りブロックBaの搬送モータ60のステップ数から得られる理論搬送量とエンコーダ14により検出された空送りブロックBaの実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の空送りブロックBaでの搬送時のズレ量が算出される。空送りブロックBaで算出されたズレ量に基づき、先頭ブロックB1のピッチ長から先頭ブロックB1で発生する予測のズレ量を算出する。先頭ブロックで発生する予測のズレ量は等分され、等分された一方のズレ量は次の先頭ブロックB1の前余白に挿入される補正量Tpとされる。 When the blank feed of the print medium 40 is completed, the theoretical transport amount obtained from the number of steps of the transport motor 60 of the blank feed block Ba and the actual transport amount of the blank feed block Ba detected by the encoder 14 are acquired, and the theoretical transport is obtained. From the difference between the amount and the actual transport amount, the deviation amount of the print medium 40 during transport in the blank feed block Ba is calculated. Based on the deviation amount calculated in the blank feed block Ba, the deviation amount of the prediction that occurs in the head block B1 is calculated from the pitch length of the head block B1. The predicted deviation amount that occurs in the first block is equally divided, and one of the equally divided deviation amounts is the correction amount Tp inserted in the front margin of the next leading block B1.

先頭ブロックB1の印刷が開始されると、先頭ブロックB1の前余白開始前の印刷位置に補正量Tpが挿入される。なお、補正量Tpの挿入位置は、先頭ブロックB1の前余白終了後の印刷位置であっても良い。 When printing of the first block B1 is started, the correction amount Tp is inserted at the print position before the start of the front margin of the first block B1. The insertion position of the correction amount Tp may be the print position after the end of the front margin of the head block B1.

先頭ブロックB1の印刷が終了すると、空送りブロックBaから先頭ブロックB1の理論搬送量とエンコーダ14により検出された空送りブロックBaから先頭ブロックB1(補正前先頭ブロックB1a)の実搬送量とがそれぞれ取得され、理論搬送量と実搬送量との差分から印字媒体40の先頭ブロックB1での搬送時のズレ量が算出される。ズレ量は、先頭ブロックB1の後余白に挿入される補正量Tqとされる。 When the printing of the first block B1 is completed, the theoretical transport amount of the first block B1 from the blank feed block Ba and the actual transport amount of the first block B1 (the first block B1a before correction) from the blank feed block Ba detected by the encoder 14 are respectively. The amount of deviation during transportation in the head block B1 of the print medium 40 is calculated from the difference between the theoretical transfer amount and the actual transfer amount. The deviation amount is a correction amount Tq inserted in the rear margin of the head block B1.

続けて、算出された補正量Tqは、補正前先頭ブロックB1aの後余白終了後の印刷位置に挿入される。これにより、補正前先頭ブロックB1aを理論上のピッチ長と同一の長さに補正することができる。 Subsequently, the calculated correction amount Tq is inserted at the print position after the end of the rear margin of the pre-correction leading block B1a. As a result, the head block B1a before correction can be corrected to have the same length as the theoretical pitch length.

なお、それ以降の中間ブロックB2での補正量Tr,Tsの補正や、最終ブロックB3での補正量Tt,Tuの補正制御は、上述した第1の実施の形態と同様であるため、詳細な説明は省略する。 Since the subsequent corrections of the correction amounts Tr and Ts in the intermediate block B2 and the correction control of the correction amounts Tt and Tu in the final block B3 are the same as those in the first embodiment described above, they are detailed. The description is omitted.

[印字装置100の動作例]
図13は、第4の実施の形態に係る各ブロックのズレ量の補正を行う場合における印字装置100の動作の一例を示すフローチャートである。制御部50は、ROM等のメモリに格納されたプログラムを読み出して実行することにより、以下の図13に示す処理を実現する。なお、ステップS700〜S770の処理については、第1の実施の形態の図1に示したS100〜S170の処理と共通するため詳細な説明については省略し、ステップS780からの処理について説明する。本フローチャートは搬送モータ60の1ステップ中の処理を示し、S700〜S810で1ライン分(1ドット分)の処理に相当する。
[Operation example of printing device 100]
FIG. 13 is a flowchart showing an example of the operation of the printing device 100 in the case of correcting the deviation amount of each block according to the fourth embodiment. The control unit 50 realizes the process shown in FIG. 13 below by reading and executing a program stored in a memory such as a ROM. Since the processes of steps S700 to S770 are common to the processes of S100 to S170 shown in FIG. 1 of the first embodiment, detailed description thereof will be omitted, and the processes from step S780 will be described. This flowchart shows the processing in one step of the transfer motor 60, and corresponds to the processing for one line (one dot) in S700 to S810.

ステップS780において、制御部50は、印字媒体40の印刷位置を判断する。制御部50は、印字媒体40の印刷位置がブロックBの前余白終了時点であると判断した場合、ステップS790に進む。 In step S780, the control unit 50 determines the print position of the print medium 40. When the control unit 50 determines that the print position of the print medium 40 is at the end of the front margin of the block B, the control unit 50 proceeds to step S790.

ステップS790において、制御部50は、印刷中のブロックBの前余白に挿入する補正量(図12の補正量Tp,Tr,Tt)を算出する。補正量は、上述した式(1)により算出することができる。ステップS790が終了したら、ステップS800に進む。 In step S790, the control unit 50 calculates the correction amount (correction amount Tp, Tr, Tt in FIG. 12) to be inserted into the front margin of the block B being printed. The correction amount can be calculated by the above-mentioned equation (1). When step S790 is completed, the process proceeds to step S800.

ステップS800において、制御部50は、算出した印字媒体40のブロックBでの補正量をセットする。これにより、補正量に相当する搬送モータ60のステップ数分、各ブロックB内に余白が挿入されるので、ブロックBの実搬送量を理論搬送量に合わせることができる。ステップS800が終了したら、ステップS810に進む。 In step S800, the control unit 50 sets the calculated correction amount in the block B of the print medium 40. As a result, a margin is inserted in each block B for the number of steps of the transfer motor 60 corresponding to the correction amount, so that the actual transfer amount of the block B can be adjusted to the theoretical transfer amount. When step S800 is completed, the process proceeds to step S810.

一方、ステップS780において、制御部50は、印字媒体40の印刷位置がブロックBの後余白終了時点であると判断した場合、ステップS820に進む。 On the other hand, in step S780, when the control unit 50 determines that the print position of the print medium 40 is at the end of the rear margin of the block B, the control unit 50 proceeds to step S820.

ステップS820において、制御部50は、印刷中のブロックBの後余白に挿入する補正量(図12の補正量Tq,Ts,Tu)を算出する。補正量は、上述した式(3)により算出することができる。ステップS820が終了したら、ステップS830に進む。 In step S820, the control unit 50 calculates the correction amount (correction amount Tq, Ts, Tu in FIG. 12) to be inserted into the back margin of the block B being printed. The correction amount can be calculated by the above-mentioned equation (3). When step S820 is completed, the process proceeds to step S830.

ステップS830において、制御部50は、算出した印字媒体40のブロックBでの補正量をセットする。これにより、補正量に相当する搬送モータ60のステップ数分、各ブロックB内に余白が挿入されるので、ブロックBの実搬送量を理論搬送量に合わせることができる。ステップS830が終了したら、ステップS810に進む。第4の実施の形態では、このような補正制御が繰り返し実行される。 In step S830, the control unit 50 sets the calculated correction amount in the block B of the print medium 40. As a result, a margin is inserted in each block B for the number of steps of the transfer motor 60 corresponding to the correction amount, so that the actual transfer amount of the block B can be adjusted to the theoretical transfer amount. When step S830 is completed, the process proceeds to step S810. In the fourth embodiment, such correction control is repeatedly executed.

以上説明したように、第4の実施の形態によれば、上述した第1の実施の形態と同様の作用効果を奏することができる。また、第4の実施の形態によれば、印字媒体40を印刷を行う前に空送りし、空送りブロックBaのズレ量に基づいて先頭ブロックB1のズレ量を予測し、その予測したズレ量を先頭ブロックB1の前余白にも挿入するので、先頭ブロックB1内の印刷位置が前側に偏ることなく、中央部に印刷することができる。これにより、全てのブロックBにおいて、印字位置の正確化を図ることができる。 As described above, according to the fourth embodiment, it is possible to obtain the same effects as those of the first embodiment described above. Further, according to the fourth embodiment, the print medium 40 is blank-fed before printing, the deviation amount of the leading block B1 is predicted based on the deviation amount of the blank-feed block Ba, and the predicted deviation amount is predicted. Is also inserted in the front margin of the head block B1, so that the print position in the head block B1 is not biased to the front side, and printing can be performed in the center portion. As a result, the printing position can be made accurate in all the blocks B.

なお、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は、上記実施の形態に記載の範囲には限定されない。本発明の趣旨を逸脱しない範囲で、上記実施の形態に、多様な変更または改良を加えることが可能である。また、上記の実施形態で説明した要件の1つ以上は、省略されることがある。そのような変更または改良、省略した形態も本発明の技術的範囲に含まれる。 Although the present invention has been described using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. Various changes or improvements can be made to the above-described embodiment without departing from the spirit of the present invention. In addition, one or more of the requirements described in the above embodiments may be omitted. Such modifications, improvements, or omitted forms are also included in the technical scope of the present invention.

14 エンコーダ(検出部)
18 プラテンローラー(搬送部)
20 サーマルヘッド(印字部)
40 印字媒体
50 制御部
100 印字装置
B ブロック
T1 印字領域
T2 前余白(第1の余白)
T3 後余白(第2の余白)
14 Encoder (detector)
18 Platen roller (conveyor)
20 Thermal head (printing part)
40 Printing medium 50 Control unit 100 Printing device B Block T1 Printing area T2 Front margin (first margin)
T3 back margin (second margin)

Claims (3)

印字媒体を搬送する搬送部と、
前記搬送部により搬送される前記印字媒体に、ブロック単位で印字情報を印刷する印字部と、
前記印字部により前記印字情報が印刷される前記印字媒体の搬送距離を検出する検出部と、
少なくとも前記搬送部を制御する制御部と、を備え、
前記ブロックは、印刷中のブロックと、当該印刷中のブロックよりも搬送方向の下流側に設けられる先頭ブロックとを有し、
前記各ブロックは、印字情報が印刷される印字領域と、前記印字領域よりも前記印字媒体の搬送方向の下流側に設けられる第1の余白と、前記印字領域よりも前記印字媒体の搬送方向の上流側に設けられる第2の余白とを含み、
前記制御部は、前記搬送部により搬送される前記先頭ブロックから前記印刷中のブロックまでの前記印字媒体の理論上の搬送距離と前記検出部により検出される前記先頭ブロックから前記印刷中のブロックまでの前記印字媒体の実搬送距離とから搬送距離の差を算出し、算出した前記差を補正量として前記印刷中のブロックの前記第2の余白に挿入するよう前記搬送部を制御する
ことを特徴とする印字装置。
A transport unit that transports print media and
The printing medium conveyed by the conveying unit, a printing unit for printing the print information block units,
A detection unit that detects the transport distance of the print medium on which the print information is printed by the print unit, and
A control unit that controls at least the transport unit is provided.
The block has a block being printed and a leading block provided on the downstream side in the transport direction with respect to the block being printed.
Each block has a print area on which print information is printed, a first margin provided on the downstream side of the print area in the transport direction of the print medium, and a print medium in the transport direction of the print medium. Includes a second margin provided on the upstream side
The control unit has a theoretical transport distance of the print medium from the head block transported by the transport unit to the block being printed, and from the head block detected by the detection unit to the block being printed. The difference in transport distance is calculated from the actual transport distance of the print medium, and the transport unit is controlled so that the calculated difference is used as a correction amount and inserted into the second margin of the block being printed. Printing device.
前記制御部は、
前記印刷中のブロックの下流側に隣接する直前ブロックでの補正量に基づき、前記直前ブロックのピッチ長と前記印刷中のブロックのピッチ長との比から補正量を算出し、算出した補正量を前記印刷中のブロックの前記第1の余白に挿入するよう前記搬送部を制御する
ことを特徴とする請求項1に記載の印字装置。
The control unit
Based on the correction amount in the immediately preceding block adjacent to the downstream side of the printing block, the correction amount is calculated from the ratio of the pitch length of the immediately preceding block to the pitch length of the printing block, and the calculated correction amount is calculated. The printing apparatus according to claim 1, wherein the transport unit is controlled so as to be inserted into the first margin of the block being printed.
前記制御部は、前記差を前記ブロックの前記印字領域に挿入するよう前記搬送部を制御する
ことを特徴とする請求項1または2に記載の印字装置。
The printing apparatus according to claim 1 or 2 , wherein the control unit controls the transport unit so as to insert the difference into the printing area of the block.
JP2016255940A 2016-12-28 2016-12-28 Printing device Active JP6834481B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016255940A JP6834481B2 (en) 2016-12-28 2016-12-28 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016255940A JP6834481B2 (en) 2016-12-28 2016-12-28 Printing device

Publications (2)

Publication Number Publication Date
JP2018103587A JP2018103587A (en) 2018-07-05
JP6834481B2 true JP6834481B2 (en) 2021-02-24

Family

ID=62785209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016255940A Active JP6834481B2 (en) 2016-12-28 2016-12-28 Printing device

Country Status (1)

Country Link
JP (1) JP6834481B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07251539A (en) * 1994-03-14 1995-10-03 Brother Ind Ltd Tape printer
JP3584712B2 (en) * 1997-12-26 2004-11-04 マックス株式会社 Printing device
JP2001187470A (en) * 1999-12-28 2001-07-10 Nippon Typewriter Co Ltd Printer for long print medium
JP5803093B2 (en) * 2010-12-02 2015-11-04 セイコーエプソン株式会社 Printing apparatus and control method thereof

Also Published As

Publication number Publication date
JP2018103587A (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN102555549B (en) Printing device and control method therefor
JP4732946B2 (en) Page pitch detection method, page pitch detection device and printer
US10752016B2 (en) Printing apparatus, printing system, printing control method and computer-readable recording medium
JP6834481B2 (en) Printing device
JP4492594B2 (en) Printer
EP2279874B1 (en) Printer
JP5400081B2 (en) Label printer and program
US20180257394A1 (en) Printing apparatus, printing system, printing control method and computer-readable recording medium
JPH08230266A (en) Printer
JP2008055604A (en) Printer
JP5818726B2 (en) Thermal transfer recording method and thermal transfer recording apparatus
US10293621B2 (en) Printing device, printing method, and nonvolatile computer-readable recording medium
JP4961867B2 (en) Image forming method and image forming apparatus
JP6932913B2 (en) Printing device and control program for printing device
JP5951298B2 (en) Thermal printer and printing paper position correction method
JPH11227274A (en) Sensor position correcting method and sheet position control method for printer
JP2019048690A (en) Printer and program
JP2002254756A (en) Printer for long print medium
JP6445405B2 (en) Printing device
JP2004009713A (en) Recording system, recorder, recording medium, and method of correcting deviation in recording
JPH04118260A (en) Label printer
JP2023045997A (en) printer
JP3412860B2 (en) Tape printer
JPS61211073A (en) Electronic typewriter
JP2006272611A (en) Printing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200619

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200707

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200907

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210118

R150 Certificate of patent or registration of utility model

Ref document number: 6834481

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150