JPH07329360A - Printer - Google Patents

Printer

Info

Publication number
JPH07329360A
JPH07329360A JP12903794A JP12903794A JPH07329360A JP H07329360 A JPH07329360 A JP H07329360A JP 12903794 A JP12903794 A JP 12903794A JP 12903794 A JP12903794 A JP 12903794A JP H07329360 A JPH07329360 A JP H07329360A
Authority
JP
Japan
Prior art keywords
sheet
conveying
unit
printing
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12903794A
Other languages
Japanese (ja)
Inventor
Kouzou Amita
浩三 網田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP12903794A priority Critical patent/JPH07329360A/en
Publication of JPH07329360A publication Critical patent/JPH07329360A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

PURPOSE:To provide a printer in which the printing position of an image on a sheet is stabilized. CONSTITUTION:A thermal print controller 41 has photosensors 9b and 9c so disposed as to be aligned over the ends of a sheet in a direction perpendicular to the conveying direction of the sheet, amplifiers 30, 31 for amplifying the outputs of the photosensors 9b, 9c, a differential amplifier 32 for obtaining the difference of the outputs of the amplifiers 30, 31, and an A/D converter 36 for converting the output of the amplifier 32 from an analog signal to a digital signal to detect the obtained voltage value as the lateral positional deviation of the sheet, thereby reading the number of offset pixels corresponding to the deviation. Thermal pattern data deviated by the number of the offset pixels is transmitted to a thermal head 8, which generates heat from a heat generator according to its thermal pattern data to print it on the sheet, thereby correcting the printing position of the image by following up the deviation of the sheet.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、たとえば、キャッシュ
レジスタにおいて領収書の印刷を行う印刷装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus for printing receipts in a cash register, for example.

【0002】[0002]

【従来の技術】たとえば、キャッシュレジスタで用いら
れるような、領収書を印刷する印刷装置においては、巻
芯にロール状に巻かれた用紙を用紙収納部に収納し、こ
のロール状の用紙を必要に応じて繰り出して、搬送ロー
ラで搬送しながら、サーマルヘッド等により、その表面
の所定位置に金額情報等の画像を印刷し、カッターで切
って取出口から利用者が領収書として取出せるように導
くものがよく知られている。この場合、用紙収納部から
用紙を繰り出す部分には、用紙の向きや位置を整えるた
めのガイドが設けられている。ロール状の用紙は、一般
に大径になると巻芯のずれが発生しやすくなるため、紙
幅よりも広め、たとえば、紙幅よりも2mmほど広いガ
イドが用いられる。
2. Description of the Related Art For example, in a printing apparatus for printing a receipt such as used in a cash register, a roll of paper wound around a core is stored in a paper storage unit and the roll of paper is required. The thermal head, etc., prints an image of the amount information etc. at a predetermined position on the surface while conveying it with the conveying roller so that the user can take it out as a receipt from the outlet through the cutter. The ones that lead are well known. In this case, a guide for adjusting the orientation and position of the paper is provided at the portion for feeding the paper from the paper storage unit. Generally, when the roll-shaped paper has a large diameter, the core is likely to be displaced. Therefore, a guide wider than the paper width, for example, about 2 mm wider than the paper width is used.

【0003】[0003]

【発明が解決しようとする課題】このようなガイドを用
いて繰り出された用紙は、柔らかいために、搬送ローラ
で搬送中につまったり、折れやすくなるが、それをでき
るだけ少なくするために、用紙を搬送する機構部分に
は、この用紙の搬送方向に対して垂直の方向(用紙の幅
方向)には、位置を整える機構(整位機構)は設けられ
ていない。このとき、用紙に印刷が行われるときの幅方
向の位置は、用紙がガイドから繰り出されたときの位置
となる。従って、紙幅とガイド幅との差分だけ、用紙の
幅方向の位置のばらつきが生じ、紙幅と印刷領域の差が
あまりないときや、プリプリントがあるときなどは、こ
のばらつきにより、印刷が紙面にはいらなかったり、プ
リプリントとの位置ずれが目立ってしまうという問題点
があった。
Since the paper fed out using such a guide is soft, it tends to be jammed or broken during conveyance by the conveyance rollers, but in order to reduce it as much as possible, The transporting mechanism portion is not provided with a mechanism (alignment mechanism) for aligning the position in the direction perpendicular to the transport direction of the sheet (width direction of the sheet). At this time, the position in the width direction when printing is performed on the paper is the position when the paper is fed out from the guide. Therefore, when the position of the paper in the width direction varies due to the difference between the paper width and the guide width, and when there is not much difference between the paper width and the printing area, or when there is preprinting, this variation causes the printing on the paper surface. There was a problem that it did not come and the misalignment with the preprint was noticeable.

【0004】そこで、本発明は、用紙の搬送方向に対し
て垂直方向の位置ずれによる画像の印刷位置のばらつき
に対処し、用紙上の画像の印刷位置の安定化を図ること
が可能な印刷装置を提供することを目的とする。
In view of this, the present invention deals with a variation in the print position of an image due to a positional shift in the direction perpendicular to the sheet conveying direction, and can stabilize the print position of the image on the sheet. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】本発明の印刷装置は、用
紙を供給する供給手段と、この供給手段で供給された用
紙を搬送する搬送手段と、この搬送手段で搬送される用
紙に対し画像の印刷を行う印刷ヘッドと、前記搬送手段
で搬送される用紙の搬送方向に対し垂直方向の位置ずれ
量を検出する検出手段と、この検出手段で検出された位
置ずれ量に応じて、前記画像の印刷位置を変化させて印
刷を行うよう前記印刷ヘッドを制御する印刷制御手段と
を具備している。
A printing apparatus according to the present invention comprises a supply unit for supplying a sheet, a conveying unit for conveying the sheet supplied by the supplying unit, and an image for the sheet conveyed by the conveying unit. A print head for performing printing of the image, detection means for detecting a positional deviation amount of the paper conveyed by the conveying means in a direction perpendicular to the conveying direction, and the image according to the positional deviation amount detected by the detecting means. And a print control unit that controls the print head so as to change the print position and perform printing.

【0006】また、本発明の印刷装置は、用紙を供給す
る供給手段と、この供給手段で供給された用紙を搬送す
る搬送手段と、この搬送手段で搬送される用紙に対し画
像の印刷を行う印刷ヘッドと、前記搬送手段で搬送され
る用紙の搬送方向に対し垂直方向の位置ずれ量に対応し
た前記画像の印刷位置の制御量を記憶した記憶手段と、
前記搬送手段で搬送される用紙の搬送方向に対し垂直方
向の位置ずれ量を検出する検出手段と、この検出手段で
検出された位置ずれ量に対応した前記画像の印刷位置の
制御量を前記記憶手段から読み出し、その制御量をもと
に、前記画像の印刷位置を変化させて印刷を行うよう前
記印刷ヘッドを制御する印刷制御手段とを具備してい
る。
Further, the printing apparatus of the present invention carries out printing of an image on the paper conveyed by the supplying means for supplying the paper, the conveying means for conveying the paper supplied by the supplying means, and the paper conveyed by the conveying means. A print head, and a storage unit that stores a control amount of a print position of the image corresponding to a positional deviation amount in a direction perpendicular to a transport direction of a sheet transported by the transport unit;
Detecting means for detecting the amount of positional deviation of the paper conveyed by the conveying means in the direction perpendicular to the conveying direction, and the amount of control of the printing position of the image corresponding to the amount of positional deviation detected by the detecting means are stored in the memory. And a print control unit for controlling the print head so as to change the print position of the image and perform printing based on the control amount.

【0007】また、本発明の印刷装置は、用紙を供給す
る供給手段と、この供給手段で供給された用紙を搬送す
る搬送手段と、この搬送手段で搬送される用紙に対し画
像の印刷を行う印刷ヘッドと、前記搬送手段で搬送され
る用紙の搬送方向に対し垂直方向で前記用紙の端部と対
応する部位に並設され、前記用紙の端部の位置に応じた
信号を出力する少なくとも2つのセンサと、この各セン
サの出力をもとに、前記搬送手段で搬送される用紙の搬
送方向に対し垂直方向の位置ずれ量を算出する算出手段
と、この算出手段で算出された位置ずれ量に応じて、前
記画像の印刷位置を変化させて印刷を行うよう前記印刷
ヘッドを制御する印刷制御手段とを具備している。
Further, the printing apparatus according to the present invention carries out the printing of an image on the paper conveyed by the supplying means for supplying the paper, the conveying means for conveying the paper supplied by the supplying means, and the paper conveyed by the conveying means. At least two, which are arranged in parallel to the print head and a portion corresponding to the edge of the sheet in the direction perpendicular to the transport direction of the sheet transported by the transport unit, and which outputs a signal according to the position of the edge of the sheet. One sensor, a calculating unit that calculates the amount of positional deviation of the sheet conveyed by the conveying unit in the direction perpendicular to the conveying direction based on the output of each sensor, and the amount of positional deviation calculated by the calculating unit. The print control means controls the print head so as to change the print position of the image to perform printing.

【0008】さらに、本発明の印刷装置は、用紙を供給
する供給手段と、この供給手段で供給された用紙を搬送
する搬送手段と、この搬送手段で搬送される用紙に対し
画像の印刷を行う印刷ヘッドと、前記搬送手段で搬送さ
れる用紙の搬送方向に対し垂直方向で前記用紙の端部と
対応する部位に配設され、前記用紙の端部の位置に応じ
た信号を出力するラインセンサと、このラインセンサの
出力をもとに、前記搬送手段で搬送される用紙の搬送方
向に対し垂直方向の位置ずれ量を算出する算出手段と、
この算出手段で算出された位置ずれ量に応じて、前記画
像の印刷位置を変化させて印刷を行うよう前記印刷ヘッ
ドを制御する印刷制御手段とを具備している。
Further, the printing apparatus of the present invention carries out the printing of an image on the paper conveyed by the supplying means for supplying the paper, the conveying means for conveying the paper supplied by the supplying means, and the paper conveyed by the conveying means. A print head and a line sensor which is arranged at a portion corresponding to an end portion of the paper in a direction perpendicular to a conveying direction of the paper conveyed by the conveying means and outputs a signal according to a position of the end portion of the paper. And a calculation unit that calculates the amount of positional deviation of the sheet conveyed by the conveying unit in the vertical direction based on the output of the line sensor,
Print control means for controlling the print head so as to perform printing by changing the print position of the image according to the amount of positional deviation calculated by the calculating means.

【0009】[0009]

【作用】用紙の搬送方向に対して垂直な方向に、用紙の
端部にまたがって配置された少なくとも2つのセンサの
出力、あるいは、ラインセンサの出力に基づき、用紙の
搬送方向に対して垂直方向の位置ずれ量を算出し、この
算出した位置ずれ量に対応した制御量だけ画像の印刷位
置を変化させて、印刷を行うことによって、用紙の位置
ずれに追従して画像の印刷位置の補正が行え、用紙上の
画像の印刷位置の安定化が図れる。
According to the output of at least two sensors arranged across the edge of the paper in the direction perpendicular to the paper transport direction, or the output of the line sensor, the direction vertical to the paper transport direction. The amount of misregistration is calculated, the printing position of the image is changed by the control amount corresponding to the calculated amount of misregistration, and printing is performed, so that the printing position of the image is corrected by following the misregistration of the paper. Therefore, the printing position of the image on the paper can be stabilized.

【0010】[0010]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。図1は、本実施例に係る印刷装置の構成
を概略的に示すのである。本実施例の印刷装置は、サー
マル(感熱)方式によるものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 schematically shows the configuration of the printing apparatus according to this embodiment. The printing apparatus of this embodiment is of a thermal type.

【0011】図1において、装置本体0内の図面に対し
て右端部には、巻芯20にロール状に巻かれた感熱記録
紙からなる用紙1が着脱自在に収納されている。用紙1
は、必要に応じて繰り出され、繰出ローラ2を通って、
2つのローラからなる1対の搬送ローラ3、ゴムローラ
からなる搬送ローラを兼ねるプラテンローラ4、2つの
ローラからなる搬送ローラ5により、連続的に搬送され
て、取出口6に導かれるようセットされている。用紙1
が繰り出されて、搬送ローラ3、4、5により取出口6
に搬送される間、用紙1は、まず、光センサ7を通過
し、ここで、後述するサーマルヘッド8への用紙供給確
認が行われる。
In FIG. 1, a sheet 1 made of a heat-sensitive recording sheet wound in a roll around a winding core 20 is detachably accommodated at the right end of the apparatus main body 0 with respect to the drawing. Paper 1
Is fed as needed, passes through the feeding roller 2,
A pair of conveying rollers 3 composed of two rollers, a platen roller 4 also serving as a conveying roller composed of a rubber roller 4, and a conveying roller 5 composed of two rollers are continuously conveyed and set so as to be guided to an outlet 6. There is. Paper 1
Is fed out, and is taken out by the conveying rollers 3, 4 and 5
While being conveyed to the sheet 1, the sheet 1 first passes through the optical sensor 7, where the sheet supply confirmation to the thermal head 8 described later is performed.

【0012】次に、用紙1は、搬送ローラ3、4、5に
より搬送されて、プラテンローラ4上に設けられた印刷
ヘッドとしてのサーマルヘッド8に導かれる。ここで
は、電気的な信号である画像データが、それに対応する
熱パターンに変換され、発熱体により印刷が行われる。
用紙1は、搬送ローラ3、4、5により搬送されて、サ
ーマルヘッド8の下側を通過することにより、その上面
に画像が印刷されるようになっている。
Next, the sheet 1 is transported by the transport rollers 3, 4, 5 and guided to the thermal head 8 as a print head provided on the platen roller 4. Here, image data that is an electrical signal is converted into a corresponding heat pattern, and printing is performed by the heating element.
The sheet 1 is conveyed by the conveying rollers 3, 4 and 5 and passes below the thermal head 8 to print an image on the upper surface thereof.

【0013】サーマルヘッド8で印刷された後、用紙1
は、さらに搬送されて、光センサ9を通過する。この光
センサ9の出力をもとに、用紙1の通過確認あるいは用
紙供給確認、および用紙1の搬送方向に対して垂直の方
向(以下、用紙1の幅方向と呼ぶこともある。)の位置
ずれ量が検出される。
After printing with the thermal head 8, the paper 1
Are further conveyed and pass the optical sensor 9. Based on the output of the optical sensor 9, the position of the sheet 1 is confirmed in the passage or sheet supply and in the direction perpendicular to the conveying direction of the sheet 1 (hereinafter, also referred to as the width direction of the sheet 1). The amount of deviation is detected.

【0014】次に、用紙1は、搬送ローラ3、4、5
で、取出口6の方向にさらに搬送されて、用紙1の印刷
が終了済みの部分のみを取出口から取出せるよう、用紙
1の搬送方向に沿った適当な位置で、カッター10によ
り、用紙1の幅方向に沿ってカットされる。用紙1のカ
ットされた位置から先の部分は、例えば、領収書とし
て、本装置の利用者が取出口6から取出せるようになっ
ている。また、カッター10と取出口6との間には光セ
ンサ11が設けられていて、用紙1のカットされた位置
から先の部分が、取出口6から利用者により取出された
ことが確認できるようになっている。
Next, the sheet 1 is conveyed by the conveying rollers 3, 4, 5
Then, the paper 1 is further conveyed in the direction of the take-out port 6, and only the portion of the paper 1 on which the printing has been completed can be taken out from the take-out port. Is cut along the width direction of. The portion of the sheet 1 beyond the cut position can be taken out from the take-out port 6 by the user of this apparatus, for example, as a receipt. Further, an optical sensor 11 is provided between the cutter 10 and the take-out port 6 so that it is possible to confirm that the portion of the paper 1 ahead of the cut position has been taken out from the take-out port 6 by the user. It has become.

【0015】搬送ローラ3、4、6は、搬送モータ12
により駆動され、用紙1を常に一方向に搬送するように
制御されている。光センサ7、9、11は、例えば、透
過式の光センサで、フォトトランジスタから構成される
受光部と、発光素子としてのLEDとから構成されるも
ので、用紙1を遮光体としてLEDからの光が検出され
るか否かで用紙1の供給確認や、通過確認等が検出され
る。
The carrying rollers 3, 4, 6 are provided with a carrying motor 12
And is controlled so that the sheet 1 is always conveyed in one direction. The optical sensors 7, 9 and 11 are, for example, transmissive optical sensors, each of which is composed of a light receiving portion formed of a phototransistor and an LED serving as a light emitting element. Whether the paper 1 is supplied, whether the paper 1 passes, or the like is detected depending on whether light is detected.

【0016】図2は、図1で示した印刷装置の要部の配
置を説明するための図で、図1の上から見た様子を示し
てある。図2において、用紙1の巻芯20は、両側から
突出したピン21a、21bで回転自在に支持されてお
り、このピン21a,21bは、それぞれ、用紙1の幅
よりも広い間隔で設定された2つのガイド22a,22
bのそれぞれの中央に固定されている。すなわち、ロー
ル状の用紙1は、ガイド22a、22bでそれぞれ左右
を挟まれている状態で、ピン21a、21bにより支持
されている。尚、ガイド22a、22bは、用紙1の着
脱時、外側に開き、ピン21a、21bが巻芯20内か
ら脱出可となっている。
FIG. 2 is a view for explaining the arrangement of the main parts of the printing apparatus shown in FIG. 1, and shows a state as viewed from above in FIG. In FIG. 2, the core 20 of the paper 1 is rotatably supported by pins 21 a and 21 b protruding from both sides, and the pins 21 a and 21 b are set at intervals wider than the width of the paper 1. Two guides 22a, 22
It is fixed to the center of each b. That is, the roll-shaped paper 1 is supported by the pins 21a and 21b while being sandwiched between the guides 22a and 22b on the left and right sides. The guides 22a and 22b open outward when the paper 1 is attached and detached, and the pins 21a and 21b can be removed from the core 20.

【0017】図1に示したように、用紙1は必要に応じ
て繰り出されて、繰出ローラ2、搬送ローラ3、光セン
サ7、サーマルヘッド8およびプラテンローラ4、光セ
ンサ9、搬送ローラ5、カッター10、光センサ11を
通って、取出口6から取出せるようにセットされてい
る。搬送ローラ3とサーマルヘッド8との間には、透過
式の光センサ7が設けられていて、ここでは、用紙1を
遮光体としてLEDからの光が検出されるか否かで用紙
1の有無が検出され、用紙供給確認が行われる。用紙1
は、次にサーマルヘッド8を通過することにより、ここ
で、用紙1に対し、サーマルヘッド8の発熱体23によ
り印刷が行われる。
As shown in FIG. 1, the sheet 1 is fed out as required, and is fed out by a feeding roller 2, a carrying roller 3, an optical sensor 7, a thermal head 8, a platen roller 4, an optical sensor 9, a carrying roller 5, and the like. It is set so that it can be taken out from the outlet 6 through the cutter 10 and the optical sensor 11. A transmissive optical sensor 7 is provided between the transport roller 3 and the thermal head 8. Here, the presence or absence of the paper 1 is determined by whether or not the light from the LED is detected by using the paper 1 as a light shield. Is detected and the paper supply is confirmed. Paper 1
Next, the sheet passes through the thermal head 8 so that the sheet 1 is printed by the heating element 23 of the thermal head 8.

【0018】サーマルヘッド8の発熱体23は、図3に
示すように配置されている。すなわち、図3において、
発熱体23は、例えば、448ビットに対応した構成に
なっており、用紙1の搬送方向に向かって垂直な方向に
左から1ビット、2ビット、…448ビットとそれぞれ
のビットに対応するように448個の発熱素子が順に直
線状に配置されている。この発熱体23が用紙1の上面
に安定して接する様に、サーマルヘッド8とプラテンロ
ーラ4とが、用紙1を挟んで配置されている。
The heating element 23 of the thermal head 8 is arranged as shown in FIG. That is, in FIG.
The heating element 23 has a configuration corresponding to 448 bits, for example, and corresponds to 1 bit, 2 bits, ... 448 bits from the left in the direction perpendicular to the transport direction of the sheet 1. 448 heating elements are arranged linearly in order. The thermal head 8 and the platen roller 4 are arranged so as to sandwich the paper 1 so that the heating element 23 can stably contact the upper surface of the paper 1.

【0019】用紙1は、サーマルヘッド8の次に光セン
サ9を通過するようになっている。この光センサ9につ
いて、図4を参照して説明する。図4は、用紙1の搬送
方向から見た光センサ9の配置位置を説明するための図
である。図4において、用紙1が発熱体23とプラテン
ローラ4とに挟持されて搬送されていて、発熱体23の
図面に対して最右端には1ビット目に対応する発熱素子
が配置され、最左端には448ビット目に対応する発熱
素子が配置されている。また、発熱体23の列の長さ
は、用紙1の幅よりも長く、用紙1の位置が用紙搬送方
向と垂直な方向にずれても、発熱体23による用紙全幅
に対する印刷は可能である。
The sheet 1 passes through the optical sensor 9 next to the thermal head 8. The optical sensor 9 will be described with reference to FIG. FIG. 4 is a diagram for explaining the arrangement position of the optical sensor 9 as seen from the conveyance direction of the sheet 1. In FIG. 4, the sheet 1 is conveyed while being sandwiched between the heating element 23 and the platen roller 4, and the heating element corresponding to the first bit is arranged at the rightmost end of the drawing of the heating element 23 and the leftmost end. A heating element corresponding to the 448th bit is arranged at. Further, the length of the row of the heating elements 23 is longer than the width of the sheet 1, and even if the position of the sheet 1 is displaced in the direction perpendicular to the sheet conveyance direction, printing on the entire width of the sheet by the heating elements 23 is possible.

【0020】光センサ9は、たとえば、透過式のもの
で、フォトトランジスタで構成される2つの受光部9
b,9c(以下、これを光センサ9b,9cと呼ぶ。)
と、LED9aとから構成され、用紙1を遮光体として
LED9aからの光が検出されるか否かで用紙1の有無
と、用紙1の搬送方向に対して垂直の方向の位置のずれ
を検出するものである。
The optical sensor 9 is, for example, a transmissive type, and has two light receiving portions 9 composed of phototransistors.
b, 9c (hereinafter, referred to as optical sensors 9b, 9c)
And the LED 9a, the presence / absence of the paper 1 and the positional deviation of the paper 1 in the direction perpendicular to the transport direction are detected depending on whether the light from the LED 9a is used as the light shield for the paper 1. It is a thing.

【0021】LED9aは、指向性の弱い拡散光型のも
ので、用紙1の下方側で、用紙1の図面に対して右端位
置付近に配置され、上方向に向けた発光角をもってい
る。光センサ9bは、用紙1の上方側で、用紙1の図面
に対して右端位置に配置され、また、光センサ9cは、
用紙1の上方側で、用紙1の図面に対して右端位置より
も左側になるように、用紙1の幅方向に光センサ9bと
並んで配置される。
The LED 9a is of a diffused light type having a weak directivity, is arranged on the lower side of the sheet 1 and near the right end position with respect to the drawing of the sheet 1, and has an emission angle directed upward. The optical sensor 9b is disposed on the upper side of the sheet 1 at the right end position with respect to the drawing of the sheet 1, and the optical sensor 9c is
The optical sensor 9b is arranged in the width direction of the sheet 1 on the upper side of the sheet 1 so as to be on the left side of the right end position with respect to the drawing of the sheet 1.

【0022】このような配置で、用紙1の図面に対して
右端部が標準位置として、例えば、光センサ9bおよび
9cとのちょうど中間位置にあるときは、光センサ9c
には、用紙1を透過した光のみが入射し、光センサ9b
には、用紙1を透過した光と、直接光とが入射する。ま
た、用紙1が標準位置よりも図面に対して左側にずれる
と、光センサ9bに入射する光量が増加し、光センサ9
bの出力が大きくなる。このとき、光センサ9cには、
用紙1を透過した光が入射するが、直接光は入射しない
ので、出力は増加しない。また、用紙1が標準位置より
も図面に対して右側にずれると、光センサ9bに入射す
る直接光が減少し、出力が小さくなるが、光センサ9c
に入射する光量は変化しないので、出力も変化しない。
このように、光センサ9bは、用紙1の位置により、出
力が変化するが、光センサ9cに入射する光はすべて用
紙1を透過したものなので、その出力は、用紙1の位置
に影響をうけないように配置されている。
With such an arrangement, when the right end portion of the sheet 1 with respect to the drawing is the standard position, for example, at a position just in the middle of the optical sensors 9b and 9c, the optical sensor 9c is used.
Only the light transmitted through the paper 1 is incident on the optical sensor 9b.
The light transmitted through the paper 1 and the direct light are incident on the. Further, when the paper 1 is displaced to the left of the drawing from the standard position, the amount of light incident on the optical sensor 9b increases, and the optical sensor 9b
The output of b becomes large. At this time, the optical sensor 9c has
The light transmitted through the paper 1 is incident, but the direct light is not incident, so the output does not increase. Further, when the sheet 1 is displaced to the right side of the drawing from the standard position, the direct light incident on the optical sensor 9b is reduced and the output is reduced.
Since the amount of light incident on is not changed, the output is not changed.
As described above, the output of the optical sensor 9b changes depending on the position of the sheet 1, but all the light incident on the optical sensor 9c is transmitted through the sheet 1, so the output is affected by the position of the sheet 1. It is arranged not to.

【0023】光センサ9b、9cの出力を変化させる外
乱因子としては、用紙1の光透過率の変動や、光センサ
に付着する汚れ等が考えられる。すなわち、用紙1の右
端位置が変化しなくとも、用紙1の種類が異なって光透
過率に変化が生じたり、ほこりや汚れ等が光センサ9b
に付着したときは、光センサ9bの出力は変化すること
になる。このとき、光センサ9cも用紙の種類、汚れの
付着等、光センサ9bと同一の条件下にあるはずであ
る。従って、この外乱因子の影響を取り除くために、光
センサ9bの出力と光センサ9cの出力との差によっ
て、用紙1のずれを検出するようにしている。
Disturbance factors that change the outputs of the optical sensors 9b and 9c are considered to be fluctuations in the light transmittance of the sheet 1 and dirt adhering to the optical sensors. That is, even if the right end position of the sheet 1 does not change, the light transmittance changes due to different types of the sheet 1 and dust, dirt, and the like are detected by the optical sensor 9b.
When it adheres to, the output of the optical sensor 9b changes. At this time, the optical sensor 9c should also be under the same conditions as the optical sensor 9b, such as the type of paper and the adhesion of dirt. Therefore, in order to remove the influence of this disturbance factor, the deviation of the sheet 1 is detected by the difference between the output of the optical sensor 9b and the output of the optical sensor 9c.

【0024】以上説明したように用紙1を搬送しなが
ら、光センサ9では、用紙1の搬送方向に対して垂直の
方向の位置ずれの検出を行っている。次に、用紙1の位
置ずれを検出して、その検出された位置ずれ量に応じ
て、サーマルヘッド8における発熱体23の熱パターン
を変化させて、用紙1に文字や図等の画像の印刷を行う
印刷制御手段について説明する。
While the sheet 1 is being conveyed as described above, the optical sensor 9 detects the positional deviation in the direction perpendicular to the sheet 1 conveying direction. Next, the misregistration of the paper 1 is detected, and the heat pattern of the heating element 23 in the thermal head 8 is changed according to the detected misregistration amount to print an image such as characters and drawings on the paper 1. The print control means for performing the above will be described.

【0025】ここで、熱パターンとは、1ビット目から
448ビット目のそれぞれに対応する発熱素子に対し、
発熱するか否かの2つの状態のうちのどちらか一方を指
示するための情報を表したものである。
Here, the heat pattern means the heating elements corresponding to the 1st to 448th bits, respectively.
It represents information for instructing either one of two states of whether or not heat is generated.

【0026】図5は、本発明の印刷制御を実現するため
の回路構成の具体例を示したものである。図5におい
て、光センサ9b、9cの出力は、それぞれ増幅器3
0、31に入力され、適当な増幅率で増幅が行われる。
増幅器30、31の各出力は、差動増幅器32に供給さ
れ、この差動増幅器32では、増幅された光センサ9
b、9cの各出力の差分をとり、さらに適当な増幅率で
増幅して、切換器33に対し出力する。また、増幅器3
1の出力は、直接、切換器33にも供給される。
FIG. 5 shows a concrete example of a circuit configuration for realizing the print control of the present invention. In FIG. 5, the outputs of the optical sensors 9b and 9c are the amplifier 3 respectively.
It is input to 0 and 31, and amplification is performed at an appropriate amplification factor.
The respective outputs of the amplifiers 30 and 31 are supplied to a differential amplifier 32, and in the differential amplifier 32, the amplified optical sensor 9 is detected.
The difference between the outputs b and 9c is obtained, further amplified by an appropriate amplification factor, and output to the switch 33. Also, the amplifier 3
The output of 1 is also directly supplied to the switch 33.

【0027】増幅器30、31のオフセット値の調節
は、オフセット調整器34により行われ、増幅器30、
31の各素子の増幅のばらつきが補正される。このオフ
セット調整器34は、出力ポート35およびバス49を
介してCPU50によって制御されるものである。
The adjustment of the offset value of the amplifiers 30 and 31 is performed by the offset adjuster 34, and the amplifiers 30 and 31 are adjusted.
The variation in amplification of each element of 31 is corrected. The offset adjuster 34 is controlled by the CPU 50 via the output port 35 and the bus 49.

【0028】切換器33では、出力ポート38およびバ
ス49を介してCPU50によって、出力の切換制御が
行われる。すなわち、差動増幅器32の出力と増幅器3
1の出力のうち、通常は差動増幅器32の出力をA/D
コンバータ36に供給するが、CPU50からの一定間
隔毎の切換制御に従って、その出力を増幅器31の出力
に切換えて、A/Dコンバータ36に供給する。
In the switch 33, the output switching control is performed by the CPU 50 via the output port 38 and the bus 49. That is, the output of the differential amplifier 32 and the amplifier 3
Of the 1 outputs, the output of the differential amplifier 32 is usually the A / D
The output is supplied to the converter 36, and its output is switched to the output of the amplifier 31 according to the switching control from the CPU 50 at regular intervals, and is supplied to the A / D converter 36.

【0029】A/Dコンバータ36は、入力されたアナ
ログ信号をデジタル信号に変換するもので、その出力は
入力ポート37に供給されるように接続されている。切
換器33からA/Dコンバータ36に供給されるもの
が、差動増幅器32の出力であるときは、入力ポート3
7、バス49を介して、CPU50に光センサ9b、9
cの各出力の差分が通知されることになる。また、切換
器33からA/Dコンバータ36に供給されるものが、
増幅器31の出力であるときは、入力ポート37、バス
49を介して、CPU50に光センサ9cの出力結果が
通知され、これにより、CPU50は、一定周期で、用
紙1の有無の確認を行い、用紙切れを検出するようにな
っている。
The A / D converter 36 converts an input analog signal into a digital signal, and its output is connected so as to be supplied to the input port 37. When the one supplied from the switch 33 to the A / D converter 36 is the output of the differential amplifier 32, the input port 3
7, the optical sensors 9b, 9 to the CPU 50 via the bus 49
The difference between the outputs of c will be notified. Further, the one supplied from the switch 33 to the A / D converter 36 is
When it is the output of the amplifier 31, the output result of the optical sensor 9c is notified to the CPU 50 via the input port 37 and the bus 49, whereby the CPU 50 confirms the presence / absence of the paper 1 at a constant cycle, It is designed to detect out of paper.

【0030】出力ポート35は、バス49を介して送ら
れるデータをオフセット調整器34に供給するめのイン
タフェイスを司るものでる。出力ポート38は、バス4
9を介して送られるデータを切換器33に供給するめの
インタフェイスを司るものでる。
The output port 35 controls the interface for supplying the data sent via the bus 49 to the offset adjuster 34. The output port 38 is the bus 4
It controls the interface for supplying the data sent via 9 to the switch 33.

【0031】入力ポート37は、A/Dコンバータ36
からのデータをバス49を介してCPU50へ送るため
のインタフェイスを司るものである。CPU50には、
さらに、バス49を介して、ROM47、RAM48、
出力ポート39、出力ポート40が接続されている。
The input port 37 is connected to the A / D converter 36.
It controls the interface for sending data from the CPU to the CPU 50 via the bus 49. The CPU 50 has
Further, via the bus 49, ROM47, RAM48,
The output port 39 and the output port 40 are connected.

【0032】ROM47には、印刷制御等を行うための
プログラムが記憶されている。RAM48には、用紙1
に印刷される画像データ(以下、画素データとも呼
ぶ。)や、検出された用紙1の位置ずれ量に対応したオ
フセット画素数などが記憶されている。
The ROM 47 stores a program for performing print control and the like. Paper 1 in RAM 48
The image data (hereinafter, also referred to as pixel data) to be printed on, the number of offset pixels corresponding to the detected positional deviation amount of the sheet 1, and the like are stored.

【0033】検出された用紙1の位置ずれ量をオフセッ
ト画素数に変換するためには、たとえば、図6に示すよ
うな変換グラフを用いる。すなわち、光センサ9bの出
力と光センサ9cの出力との差分は、電圧値で表されて
おり、あらかじめ、その電圧値に対応するように、発熱
体23の列方向にずらす熱パターンのビット数、すなわ
ち、オフセット画素数を定めておくものである。このよ
うな用紙1の位置ずれ量とオフセット画素数との相関関
係は、印刷位置の制御量としてRAM48に記憶されて
いる。
To convert the detected positional deviation amount of the sheet 1 into the number of offset pixels, for example, a conversion graph as shown in FIG. 6 is used. That is, the difference between the output of the optical sensor 9b and the output of the optical sensor 9c is represented by a voltage value, and the number of bits of the heat pattern to be shifted in the column direction of the heating element 23 in advance so as to correspond to the voltage value. That is, the number of offset pixels is determined. Such a correlation between the amount of positional deviation of the sheet 1 and the number of offset pixels is stored in the RAM 48 as a control amount of the printing position.

【0034】RAM48から、検出された用紙1の位置
ずれ量に対応したオフセット画素数が読み出されると、
このオフセット画素数はCPU50によりバス49を介
して出力ポート39に送られる。また、RAM48に記
憶されている画素データは、バス49を介して出力ポー
ト39に送られる。
When the number of offset pixels corresponding to the detected position shift amount of the sheet 1 is read from the RAM 48,
This offset pixel number is sent by the CPU 50 to the output port 39 via the bus 49. The pixel data stored in the RAM 48 is sent to the output port 39 via the bus 49.

【0035】出力ポート39にはサーマル印刷コントロ
ーラ41が接続されていて、このサーマル印刷コントロ
ーラ41には、インタフェイス部42を介してサーマル
ヘッド8が接続されている。
A thermal printing controller 41 is connected to the output port 39, and the thermal head 8 is connected to the thermal printing controller 41 via an interface section 42.

【0036】サーマル印刷コントローラ41では、出力
ポート39からの画素データをそれに対応する熱パター
ンデータに変換し、出力ポート39からのオフセット画
素数だけ発熱体23の列方向にその熱パターンデータを
ずらして、インタフェイス部42を介してサーマルヘッ
ド8に送る。
The thermal printing controller 41 converts the pixel data from the output port 39 into corresponding thermal pattern data, and shifts the thermal pattern data in the column direction of the heating element 23 by the number of offset pixels from the output port 39. , To the thermal head 8 via the interface unit 42.

【0037】インタフェイス部42は、サーマル印刷コ
ントローラ41からの各種信号をサーマルヘッド8に送
信するためのインタフェイスを司るものである。サーマ
ルヘッド8では、受信した熱パターンデータに応じて、
発熱体23を発熱させて、用紙1に印刷を行う。
The interface section 42 controls the interface for transmitting various signals from the thermal printing controller 41 to the thermal head 8. In the thermal head 8, according to the received heat pattern data,
The heating element 23 is caused to generate heat to print on the paper 1.

【0038】出力ポート40には、搬送制御部43が接
続されている。この搬送制御部43では、CPU50か
らの各種命令を出力ポート40を介して受信し、その命
令に応じて、モータ12を駆動するものである。
A transfer control section 43 is connected to the output port 40. The transport control unit 43 receives various commands from the CPU 50 via the output port 40, and drives the motor 12 according to the commands.

【0039】搬送制御部43にはドライバ44が接続さ
れている。このドライバ44は、搬送制御部43からの
制御に従ってモータ12をサーマルヘッド8での印刷動
作に同期して駆動し、搬送ローラ3、4、5により、用
紙1が搬送される。
A driver 44 is connected to the transport control section 43. The driver 44 drives the motor 12 in synchronization with the printing operation of the thermal head 8 under the control of the conveyance control unit 43, and the conveyance rollers 3, 4 and 5 convey the sheet 1.

【0040】出力ポート40は、バス49を介して送ら
れる各種命令を搬送制御部43に供給するためのインタ
フェイスを司るものでる。図7は、サーマル印刷コント
ローラ41の構成を概略的に示したものである。図7に
おいて、印刷動作を同期させるために必要なクロック信
号S1がシフトレジスタ60、キャラクタカウンタ6
1、タイミングコントローラ62に供給され、さらに、
サーマルヘッド8へも送信される。CPU50から送ら
れてくる画素データおよびオフセット画素数は、出力ポ
ート63、64において、たとえば、8ビットのパラレ
ル信号で受信される。出力ポート63は、シフトレジス
タ60に対し、たとえば、8ビットのパラレルデータと
して画素データを供給するものである。また、出力ポー
ト64は、タイミングコントローラ62に対し、たとえ
ば、8ビットのパラレルデータとしてオフセット画素数
を供給するものである。
The output port 40 serves as an interface for supplying various commands sent via the bus 49 to the transport control unit 43. FIG. 7 schematically shows the configuration of the thermal printing controller 41. In FIG. 7, the clock signal S1 necessary for synchronizing the printing operation is the shift register 60 and the character counter 6.
1, is supplied to the timing controller 62,
It is also transmitted to the thermal head 8. The pixel data and the number of offset pixels sent from the CPU 50 are received at the output ports 63 and 64 as, for example, 8-bit parallel signals. The output port 63 supplies pixel data to the shift register 60, for example, as 8-bit parallel data. The output port 64 supplies the number of offset pixels to the timing controller 62 as 8-bit parallel data, for example.

【0041】シフトレジスタ60では、出力ポート63
からの8ビットのパラレルデータの画素データを、クロ
ック信号S1のタイミングに同期したシリアルな熱パタ
ーンデータS2に変換して、サーマルヘッド8へ出力す
る。
In the shift register 60, the output port 63
The pixel data of 8-bit parallel data is converted into serial thermal pattern data S2 synchronized with the timing of the clock signal S1 and output to the thermal head 8.

【0042】タイミングコントローラ62では、クロッ
ク信号S1のタイミングに同期した、各種タイミング信
号が生成される。すなわち、サーマルヘッド8に対して
は、熱パターンデータS2をラッチするためのタイミン
グ信号であるラッチタイミング信号S3と、発熱体23
の1ビットから448ビットに対応する各発熱素子を駆
動するためのドライバ回路(図8参照)を動作可能にす
るためのタイミング信号であるドライバ制御信号S4を
生成して出力し、また、キャラクタカウンタ61に対し
ては、サーマルヘッド8に送信された熱パターンデータ
のビット数に対応した信号であるキャラクタ信号を生成
して出力する。
The timing controller 62 generates various timing signals synchronized with the timing of the clock signal S1. That is, for the thermal head 8, the latch timing signal S3, which is a timing signal for latching the thermal pattern data S2, and the heating element 23.
1-bit to 448-bits, a driver control signal S4, which is a timing signal for enabling each driver circuit (see FIG. 8) for driving each heating element, is generated and output. For 61, a character signal which is a signal corresponding to the number of bits of the heat pattern data transmitted to the thermal head 8 is generated and output.

【0043】キャラクタカウンタ61では、タイミング
コントローラ62からのキャラクタ信号をもとにして、
CPU50に対して画素データやオフセット画素数を送
信するよう要求するためのデータリクエスト信号が生成
されて、この信号がCPU50に対して出力される。
In the character counter 61, based on the character signal from the timing controller 62,
A data request signal for requesting the CPU 50 to transmit pixel data and the number of offset pixels is generated, and this signal is output to the CPU 50.

【0044】図8は、サーマルヘッド8の構成を概略的
に示したものである。すなわち、サーマルヘッド8は、
主に、シフトレジスタ70、ラッチ回路71、ドライバ
回路72、発熱体23で構成されている。
FIG. 8 schematically shows the structure of the thermal head 8. That is, the thermal head 8
It mainly includes a shift register 70, a latch circuit 71, a driver circuit 72, and a heating element 23.

【0045】シフトレジスタ70には、クロック信号S
1および熱パターンデータS2が供給され、熱パターン
データS2がクロック信号S1のタイミングでシリアル
に448ビット読み込まれるようになっている。
The shift register 70 has a clock signal S.
1 and the heat pattern data S2 are supplied, and the heat pattern data S2 is serially read at 448 bits at the timing of the clock signal S1.

【0046】ラッチ回路71は、シフトレジスタ70で
読み込んだ448ビットのシリアな熱パターンデータ
を、448ビットのパラレルデータとしてラッチできる
ように接続されている。このラッチ回路71には、ラッ
チタイミング信号S3が供給されていて、このラッチタ
イミング信号S3に従って、448ビットのパラレルな
熱パターンデータをラッチする。
The latch circuit 71 is connected so that the 448-bit serial thermal pattern data read by the shift register 70 can be latched as 448-bit parallel data. The latch timing signal S3 is supplied to the latch circuit 71, and 448-bit parallel heat pattern data is latched according to the latch timing signal S3.

【0047】発熱体23は、448ビットの各ビットに
対応して448個の発熱素子で構成されているが、この
発熱素子を駆動するためのドライバ回路72が、448
ビットの各発熱素子にそれぞれ対応させて設けられてい
る。このドライバ回路72には、ドライバ制御信号S4
が供給されていて、そのドライバ制御信号S4のタイミ
ングに応じて動作可能となり、ラッチ回路71にラッチ
された448ビットの熱パターンデータに従って、各ビ
ットに対応する発熱素子を発熱させたり、発熱させなか
ったりして、用紙1に画像の印刷が行われる。
The heating element 23 is composed of 448 heating elements corresponding to each bit of 448 bits, and the driver circuit 72 for driving the heating elements is 448.
It is provided corresponding to each heating element of the bit. The driver control signal S4 is supplied to the driver circuit 72.
Is supplied and becomes operable in accordance with the timing of the driver control signal S4, and according to the 448-bit heat pattern data latched by the latch circuit 71, the heating element corresponding to each bit is heated or does not heat. Then, the image is printed on the sheet 1.

【0048】以上説明したような構成のサーマル印刷コ
ントローラ41、サーマルヘッド8を用いて、用紙1に
対して印刷を行う場合、たとえば、図4において、用紙
1が所定位置よりも図面に対して左側にずれたとき、光
センサ9bと光センサ9cとの出力差は大きくなり、従
って、オフセット画素数の大きさも大きくなり、サーマ
ル印刷コントローラ41は、熱パターンデータを、発熱
体23の448ビット目の方向に、このオフセット画素
数だけずらしてサーマルヘッド8へ送信する。すなわ
ち、この動作は、サーマル印刷コントローラ41におい
て、まず、用紙1の標準位置に対応する熱パターンデー
タがシフトレジスタ60から出力された後、さらに、オ
フセット画素数分の「白画素」の熱パターンデータを出
力する。「白画素」の熱パターンデータに対応するサー
マルヘッド8の発熱体23は発熱しないようになってい
る。サーマルヘッド8では、この「白画素」の熱パター
ンデータを含む熱パターンデータS2をシフトレジスタ
70で読み込み、最後の白画素データを読み込んだ時点
で、ラッチタイミング信号S3がサーマル印刷コントロ
ーラ41から送信されて、ラッチ回路71でラッチされ
る。このラッチされた熱パターンデータは、用紙1が標
準位置にあるときと比較すると、「白画素」の熱パター
ンデータのビット数だけ448ビット目の方向にずれた
ものとなっている。従って、このラッチ回路71でラッ
チされた熱パターンデータの各ビットに対応させて発熱
体23を発熱させることにより、用紙1のずれ量に追従
して、画像の印刷位置の補正が行える。
When printing is performed on the paper 1 by using the thermal printing controller 41 and the thermal head 8 having the above-described structure, for example, in FIG. 4, the paper 1 is located on the left side of the drawing with respect to the predetermined position. , The output difference between the optical sensor 9b and the optical sensor 9c becomes large, and the size of the offset pixel also becomes large, and the thermal print controller 41 transfers the thermal pattern data to the 448th bit of the heating element 23. The offset pixel number is shifted in the direction and transmitted to the thermal head 8. That is, in this operation, in the thermal printing controller 41, first, after the thermal pattern data corresponding to the standard position of the paper 1 is output from the shift register 60, the thermal pattern data of “white pixels” for the number of offset pixels is further added. Is output. The heating element 23 of the thermal head 8 corresponding to the heat pattern data of "white pixel" does not generate heat. In the thermal head 8, the thermal pattern data S2 including the thermal pattern data of this "white pixel" is read by the shift register 70, and when the last white pixel data is read, the latch timing signal S3 is transmitted from the thermal print controller 41. And is latched by the latch circuit 71. The latched thermal pattern data is shifted in the direction of the 448th bit by the number of bits of the thermal pattern data of "white pixel", as compared with the case where the sheet 1 is at the standard position. Therefore, by causing the heating element 23 to generate heat corresponding to each bit of the heat pattern data latched by the latch circuit 71, it is possible to correct the printing position of the image by following the deviation amount of the sheet 1.

【0049】尚、上記実施例では、用紙1の通過確認お
よび用紙1の幅方向の位置ずれ量を検出するために光セ
ンサ9を用いているが、他の実施例として、ラインセン
サを用いてもこの目的は同様に達成できる。
In the above embodiment, the optical sensor 9 is used to confirm the passage of the sheet 1 and to detect the positional deviation amount of the sheet 1 in the width direction, but as another example, a line sensor is used. This objective can be achieved as well.

【0050】次に、他の実施例について説明する。図9
は、他の実施例として、図4の光センサ9の代わりにラ
インセンサ75を用いた場合の、用紙1の搬送方向から
見たときのラインセンサ75の配置位置を説明するため
の図である。
Next, another embodiment will be described. Figure 9
FIG. 9 is a diagram for explaining the arrangement position of the line sensor 75 when viewed from the transport direction of the paper 1 when the line sensor 75 is used instead of the optical sensor 9 of FIG. 4 as another embodiment. .

【0051】図9において、ラインセンサ75は、用紙
1の搬送方向に対し垂直な方向に、用紙1の図面に対し
て右端部にまたがるように配置されている。このライン
センサ75は、用紙1の右端部を照明する図示しない光
源と、用紙1の右端部の像をラインセンサ75の受光面
に結像する光学系76と組み合わせて、例えば1次元線
上の各点の光の強度を電気信号として得て、イメージと
して用紙1の最右端の位置を検出するものである。ま
た、同時に、用紙1の最右端の位置が検出されれば、用
紙1の通過確認も行える。この場合、たとえば、ライン
センサ75の出力をA/Dコンバータ36でデジタル化
した後、入力ポート37およびバス49を介してCPU
50に送る。そして、CPU50でラインセンサ75の
出力に基づき用紙1の最右端部(図9において)の位置
を検出し、この検出した位置をあらかじめ設定される標
準位置と比較することにより、用紙1の幅方向の位置ず
れ量を求める。これ以降は前記実施例と同様な処理が行
われる。
In FIG. 9, the line sensor 75 is arranged in a direction perpendicular to the conveying direction of the sheet 1 so as to straddle the right end portion of the sheet 1 in the drawing. The line sensor 75 is combined with a light source (not shown) that illuminates the right end portion of the sheet 1 and an optical system 76 that forms an image of the right end portion of the sheet 1 on the light receiving surface of the line sensor 75. The intensity of light at a point is obtained as an electric signal, and the position of the rightmost end of the sheet 1 is detected as an image. At the same time, if the rightmost position of the sheet 1 is detected, the passage of the sheet 1 can be confirmed. In this case, for example, after the output of the line sensor 75 is digitized by the A / D converter 36, the CPU is processed via the input port 37 and the bus 49.
Send to 50. Then, the CPU 50 detects the position of the rightmost end portion (in FIG. 9) of the paper 1 based on the output of the line sensor 75, and compares the detected position with a preset standard position, whereby the width direction of the paper 1 is determined. The amount of positional deviation of is calculated. After that, the same processing as that of the above-described embodiment is performed.

【0052】以上、説明したように、前述の2つの実施
例によれば、光センサ9bおよび9cの出力、あるい
は、ラインセンサ75の出力から用紙1の幅方向の位置
ずれ量を検出し、その位置ずれ量に対応したオフセット
画素数をRAM48から読み出し、サーマル印刷コント
ローラ41において、そのオフセット画素数だけずらし
て熱パターンデータをサーマルヘッド8に送信し、サー
マルヘッド8は、その熱パターンデータに従って発熱体
23を発熱させて用紙1に対して印刷を行うことによ
り、用紙1の位置ずれに追従して画像の印刷位置の補正
が行える。
As described above, according to the above-described two embodiments, the positional deviation amount of the sheet 1 in the width direction is detected from the output of the optical sensors 9b and 9c or the output of the line sensor 75, and the detected amount is obtained. The offset pixel number corresponding to the amount of positional deviation is read from the RAM 48, and the thermal print controller 41 shifts the offset pixel number and sends the thermal pattern data to the thermal head 8. The thermal head 8 then generates the heating element according to the thermal pattern data. By heating 23 to print on the paper 1, the print position of the image can be corrected by following the positional deviation of the paper 1.

【0053】尚、上記実施例において、光センサ9ある
いはラインセンサ75は、用紙1の右端、言い換える
と、発熱体23の1ビット目に相当する発熱素子の側に
設けられているが、用紙1の左端、すなわち、発熱体2
3の448ビット目に相当する発熱素子の側に設けても
よい。
In the above embodiment, the optical sensor 9 or the line sensor 75 is provided on the right end of the sheet 1, in other words, on the side of the heating element corresponding to the 1st bit of the heating element 23. Left edge of the heating element 2
It may be provided on the side of the heating element corresponding to the 448th bit of No. 3.

【0054】また、上記実施例では、2つの光センサ9
b、9cを用いているが、これに限らず、必要があれ
ば、2つ以上の光センサを用紙の搬送方向に対して垂直
な方向に用紙の端部にまたがるように並べて配置して用
いてもよい。
In the above embodiment, the two optical sensors 9 are used.
However, the present invention is not limited to this, and if necessary, two or more optical sensors are arranged and used so as to straddle the edge of the sheet in a direction perpendicular to the sheet conveying direction. May be.

【0055】[0055]

【発明の効果】以上説明したように本発明によれば、用
紙の搬送方向に対して垂直の方向の位置ずれに追従して
画像の印刷位置の補正が行え、用紙上の画像の印刷位置
の安定化が図れる印刷装置を提供できる。
As described above, according to the present invention, the printing position of the image can be corrected by following the positional deviation in the direction perpendicular to the sheet conveying direction, and the printing position of the image on the sheet can be corrected. A printing device that can be stabilized can be provided.

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

【図1】本発明の一実施例に係る印刷装置を概略的に示
す構成図。
FIG. 1 is a configuration diagram schematically showing a printing apparatus according to an embodiment of the present invention.

【図2】印刷装置の要部を説明するための平面図。FIG. 2 is a plan view illustrating a main part of the printing apparatus.

【図3】サーマルヘッドの発熱体の配置を説明するため
の図。
FIG. 3 is a view for explaining the arrangement of heating elements of a thermal head.

【図4】光センサの配置位置を説明するための図。FIG. 4 is a diagram for explaining an arrangement position of an optical sensor.

【図5】印刷制御の回路の具体例を示すブロック図。FIG. 5 is a block diagram showing a specific example of a print control circuit.

【図6】用紙の位置ずれ量をオフセット画素数に変換す
るため具体例を示した図。
FIG. 6 is a diagram showing a specific example for converting a positional deviation amount of a sheet into an offset pixel number.

【図7】サーマル印刷コントローラの概略構成を示すブ
ロック図。
FIG. 7 is a block diagram showing a schematic configuration of a thermal printing controller.

【図8】サーマルヘッドの概略構成を示すブロック図。FIG. 8 is a block diagram showing a schematic configuration of a thermal head.

【図9】本発明の他の実施例におけるラインセンサの配
置位置を説明するための図。
FIG. 9 is a diagram for explaining an arrangement position of a line sensor according to another embodiment of the present invention.

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

1…用紙、2…繰出ローラ、3…搬送ローラ、4…プラ
テンローラ、5…搬送ローラ、6…取出口、7…光セン
サ、8…サーマルヘッド、9…光センサ、10…カッタ
ー、11…光センサ、12…モータ、23…発熱体、3
0…増幅器、31…増幅器、32…差動増幅器、33…
切換器、34…オフセット調整器、35…出力ポート、
36…A/Dコンバータ、37…入力ポート、38…出
力ポート、39…出力ポート、40…出力ポート、41
…サーマル印刷コントローラ、42…インタフェイス
部、43…搬送制御部、44…ドライバ、48…RA
M、49…ROM,50…CPU、60…シフトレジス
タ、61…キャラクタカウンタ、62…タイミングコン
トローラ、63…出力ポート、64…出力ポート、S1
…クロック信号、S2…熱パターンデータ、S3…ラッ
チタイミング信号、S4…ドライバ制御信号、70…シ
フトレジスタ、71…ラッチ回路、72…ドライバ回
路、75…ラインセンサ、76…光学系。
DESCRIPTION OF SYMBOLS 1 ... Paper, 2 ... Delivery roller, 3 ... Conveying roller, 4 ... Platen roller, 5 ... Conveying roller, 6 ... Exit, 7 ... Optical sensor, 8 ... Thermal head, 9 ... Optical sensor, 10 ... Cutter, 11 ... Optical sensor, 12 ... Motor, 23 ... Heating element, 3
0 ... Amplifier, 31 ... Amplifier, 32 ... Differential amplifier, 33 ...
Switching device, 34 ... Offset adjuster, 35 ... Output port,
36 ... A / D converter, 37 ... Input port, 38 ... Output port, 39 ... Output port, 40 ... Output port, 41
... thermal printing controller, 42 ... interface section, 43 ... transport control section, 44 ... driver, 48 ... RA
M, 49 ... ROM, 50 ... CPU, 60 ... Shift register, 61 ... Character counter, 62 ... Timing controller, 63 ... Output port, 64 ... Output port, S1
... clock signal, S2 ... thermal pattern data, S3 ... latch timing signal, S4 ... driver control signal, 70 ... shift register, 71 ... latch circuit, 72 ... driver circuit, 75 ... line sensor, 76 ... optical system.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 用紙を供給する供給手段と、 この供給手段で供給された用紙を搬送する搬送手段と、 この搬送手段で搬送される用紙に対し画像の印刷を行う
印刷ヘッドと、 前記搬送手段で搬送される用紙の搬送方向に対し垂直方
向の位置ずれ量を検出する検出手段と、 この検出手段で検出された位置ずれ量に応じて、前記画
像の印刷位置を変化させて印刷を行うよう前記印刷ヘッ
ドを制御する印刷制御手段と、 を具備したことを特徴とする印刷装置。
1. A supply unit for supplying a sheet, a conveying unit for conveying the sheet supplied by the supplying unit, a print head for printing an image on the sheet conveyed by the conveying unit, and the conveying unit. Detecting means for detecting the amount of positional deviation of the sheet conveyed in the direction perpendicular to the conveying direction, and changing the printing position of the image in accordance with the amount of positional deviation detected by the detecting means to perform printing. A printing apparatus comprising: a print control unit that controls the print head.
【請求項2】 用紙を供給する供給手段と、 この供給手段で供給された用紙を搬送する搬送手段と、 この搬送手段で搬送される用紙に対し画像の印刷を行う
印刷ヘッドと、 前記搬送手段で搬送される用紙の搬送方向に対し垂直方
向の位置ずれ量に対応した前記画像の印刷位置の制御量
を記憶した記憶手段と、 前記搬送手段で搬送される用紙の搬送方向に対し垂直方
向の位置ずれ量を検出する検出手段と、 この検出手段で検出された位置ずれ量に対応した前記画
像の印刷位置の制御量を前記記憶手段から読み出し、そ
の制御量をもとに、前記画像の印刷位置を変化させて印
刷を行うよう前記印刷ヘッドを制御する印刷制御手段
と、 を具備したことを特徴とする印刷装置。
2. A supply unit for supplying a sheet, a conveying unit for conveying the sheet supplied by the supplying unit, a print head for printing an image on the sheet conveyed by the conveying unit, and the conveying unit. Storage means for storing the control amount of the print position of the image corresponding to the amount of misalignment of the sheet conveyed in the direction perpendicular to the conveying direction; A detection unit that detects the amount of positional deviation, and a control amount of the printing position of the image corresponding to the amount of positional deviation detected by the detection unit is read from the storage unit, and the image is printed based on the control amount. A printing apparatus comprising: a print control unit that controls the print head so as to change the position to perform printing.
【請求項3】 用紙を供給する供給手段と、 この供給手段で供給された用紙を搬送する搬送手段と、 この搬送手段で搬送される用紙に対し画像の印刷を行う
印刷ヘッドと、 前記搬送手段で搬送される用紙の搬送方向に対し垂直方
向で、前記用紙の端部と対応する部位に並設され、前記
用紙の端部の位置に応じた信号を出力する少なくとも2
つのセンサと、 この各センサの出力をもとに、前記搬送手段で搬送され
る用紙の搬送方向に対し垂直方向の位置ずれ量を算出す
る算出手段と、 この算出手段で算出された位置ずれ量に応じて、前記画
像の印刷位置を変化させて印刷を行うよう前記印刷ヘッ
ドを制御する印刷制御手段と、 を具備したことを特徴とする印刷装置。
3. A supply unit for supplying a sheet, a conveying unit for conveying the sheet supplied by the supplying unit, a print head for printing an image on the sheet conveyed by the conveying unit, and the conveying unit. At least 2 which are arranged in parallel to a portion corresponding to the end portion of the sheet in the direction perpendicular to the conveying direction of the sheet conveyed by the above and output a signal according to the position of the end portion of the sheet.
One sensor, a calculating unit that calculates the amount of positional deviation of the sheet conveyed by the conveying unit in the direction perpendicular to the conveying direction based on the output of each sensor, and the amount of positional deviation calculated by the calculating unit And a print control unit that controls the print head so as to change the print position of the image to perform printing.
【請求項4】 用紙を供給する供給手段と、 この供給手段で供給された用紙を搬送する搬送手段と、 この搬送手段で搬送される用紙に対し画像の印刷を行う
印刷ヘッドと、 前記搬送手段で搬送される用紙の搬送方向に対し垂直方
向で前記用紙の端部と対応する部位に配設され、前記用
紙の端部の位置に応じた信号を出力するラインセンサ
と、 このラインセンサの出力をもとに、前記搬送手段で搬送
される用紙の搬送方向に対し垂直方向の位置ずれ量を算
出する算出手段と、 この算出手段で算出された位置ずれ量に応じて、前記画
像の印刷位置を変化させて印刷を行うよう前記印刷ヘッ
ドを制御する印刷制御手段と、 を具備したことを特徴とする印刷装置。
4. A supply unit for supplying a sheet, a conveying unit for conveying the sheet supplied by the supplying unit, a print head for printing an image on the sheet conveyed by the conveying unit, and the conveying unit. A line sensor which is arranged at a position corresponding to the edge of the sheet in a direction perpendicular to the transport direction of the sheet transported by the line sensor and which outputs a signal according to the position of the edge of the sheet; Based on the calculation means for calculating the amount of positional deviation of the paper conveyed by the conveying means in the direction perpendicular to the conveying direction, and the printing position of the image according to the amount of positional deviation calculated by the calculating means. And a print control unit that controls the print head so as to perform printing by changing the print speed.
JP12903794A 1994-06-10 1994-06-10 Printer Pending JPH07329360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12903794A JPH07329360A (en) 1994-06-10 1994-06-10 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12903794A JPH07329360A (en) 1994-06-10 1994-06-10 Printer

Publications (1)

Publication Number Publication Date
JPH07329360A true JPH07329360A (en) 1995-12-19

Family

ID=14999548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12903794A Pending JPH07329360A (en) 1994-06-10 1994-06-10 Printer

Country Status (1)

Country Link
JP (1) JPH07329360A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2449940A (en) * 2007-06-08 2008-12-10 Ffei Ltd Lateral Position Adjustment in a Printing Device
US9844956B2 (en) * 2015-10-07 2017-12-19 Intermec Technologies Corporation Print position correction

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2449940A (en) * 2007-06-08 2008-12-10 Ffei Ltd Lateral Position Adjustment in a Printing Device
GB2449940B (en) * 2007-06-08 2012-03-07 Ffei Ltd Digital web weave
US9844956B2 (en) * 2015-10-07 2017-12-19 Intermec Technologies Corporation Print position correction
US10894431B2 (en) 2015-10-07 2021-01-19 Intermec Technologies Corporation Print position correction

Similar Documents

Publication Publication Date Title
JP2010284884A (en) Continuous paper double-sided printing system
JPH07329360A (en) Printer
EP1552947B1 (en) Image recording apparatus
JP7455586B2 (en) Label printer and label printer control program
JPH09267527A (en) Printer
JP3631737B2 (en) Thermal printer
JP5951298B2 (en) Thermal printer and printing paper position correction method
JPH07276721A (en) Printer
JP2000158776A (en) Printer
JP2001002290A (en) Skewing detecting device for sheet material
JPH0890837A (en) Printing method for line printer
JP2006182460A (en) Image forming device
JP2000071505A (en) Thermal printer
JP2006175777A (en) Thermal printer
JP2002036612A (en) Method for correcting print position
JP4473682B2 (en) Printing device
JP3806266B2 (en) Printer device
JP2002137478A (en) Printer
JP3885340B2 (en) Image reading device
JPH10138602A (en) Printing apparatus
KR100207735B1 (en) Printing process control method for printer
JP2006321105A (en) Intermediate transfer thermal transfer printer
JP2010023455A (en) Printer and print position control method
EP0373622B1 (en) Thermal printer
JPS62152877A (en) Printing paper confirming system