JPH06206354A - Serial printer - Google Patents

Serial printer

Info

Publication number
JPH06206354A
JPH06206354A JP1927193A JP1927193A JPH06206354A JP H06206354 A JPH06206354 A JP H06206354A JP 1927193 A JP1927193 A JP 1927193A JP 1927193 A JP1927193 A JP 1927193A JP H06206354 A JPH06206354 A JP H06206354A
Authority
JP
Japan
Prior art keywords
carriage
interrupt
sensor
time
signal
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
JP1927193A
Other languages
Japanese (ja)
Inventor
Hideki Otsuki
英樹 大槻
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP1927193A priority Critical patent/JPH06206354A/en
Publication of JPH06206354A publication Critical patent/JPH06206354A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To achieve the simplification and enhancement of accuracy of the processing due to a backlash (BR) correcting CPU by confirming BR quantity as time quantity. CONSTITUTION:At first, an HP is confirmed before the start of printing and a carriage is received at the printing standby position on the left side of the HP. Next, the carriage is moved in a right (forward) direction to confirm an HP trigger. A CPU counts the time (CR lag) from the confirmation time of the HP trigger to the point of time when a stepping motor control pulse (HP pulse) is generated immediately after the confirmation time using a timer. Next, the carriage is moved to a predetermined position to reverse a CR motor to be moved in a left (return) direction to enter the HP sensor in the reverse direction. The CPU counts the time from the time when the pulse corresponding to the HP pulse is generated to the time when the HP trigger is again actually generated using a timer. This time is set to an HP lag 0. Since HP lag = HP lag 0-CR lag is calculated, the carriage may be timewise delayed by the quantity corresponding to the HP lag.

Description

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

【0001】[0001]

【技術分野】本発明は、シリアルプリンタに関し、より
詳細には、ステッピングモータなど、比較的制御可能な
単位の大きなモータを使用し、キャリッジの往路と復路
の位置ずれ補正(バックラッシュ補正)を容易にしたシ
リアルプリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial printer, and more particularly, it uses a stepping motor or other motor having a relatively large controllable unit to facilitate positional deviation correction (backlash correction) on the forward and return paths of a carriage. Related to serial printers.

【0002】[0002]

【従来技術】本発明に係る従来技術を記載した公知文献
としては、例えば、特公昭62−39110号公報の
「プリンタの印字位置制御方法」がある。この公報のも
のは、キャリッジを往復移動させるためのモータの駆動
パルス数又は実際の回転量に基づいて各方向印字の印字
位置を管理するもので、印字動作の開始に先立ち、セン
サを設けた特定位置を横切るようにキャリッジを往復移
動させ、方向転換時のずれ量を検出して記憶させてお
き、印字動作時においては、印字方向に対応した前記ず
れ量で補正したモータ操作量によった印字位置を制御す
るものである。
2. Description of the Related Art As a known document describing the prior art of the present invention, there is, for example, Japanese Patent Publication No. 62-39110, entitled "Printing Position Control Method for Printer". This publication manages the printing position for printing in each direction based on the number of drive pulses of a motor for moving the carriage back and forth or the actual amount of rotation. Prior to starting the printing operation, a sensor provided By moving the carriage back and forth across the position, the shift amount at the time of direction change is detected and stored, and at the time of printing operation, printing is performed with the motor operation amount corrected by the shift amount corresponding to the printing direction. It controls the position.

【0003】しかしながら、このように、実際の移動量
で補正を行う従来方式では、キャリッジモータの最小制
御単位以上の精度は不可能であった。さらに、近年、プ
リンタの小型化にともない、キャリッジモータには小型
の安価なステッピングモータが使用され、1ステップで
の変位量が多くなっている。そして、モータ制御パルス
1回に数ドットの印字が行われるため、パルス数による
BR(バックラッシュ)補正では精度が悪すぎるという
問題点があった。
However, in the conventional method in which the correction is performed by the actual movement amount as described above, it is impossible to achieve an accuracy higher than the minimum control unit of the carriage motor. Further, in recent years, with the downsizing of printers, small and inexpensive stepping motors have been used as carriage motors, and the displacement amount in one step has increased. Since several dots are printed per motor control pulse, there is a problem in that BR (backlash) correction based on the number of pulses is too inaccurate.

【0004】[0004]

【目的】本発明は、上述のごとき実情に鑑みてなされた
もので、キャリッジの移動速度をほぼ等速度とみなすこ
とにより、バックラッシュ量をモータのパルス数ではな
く、時間量として認識し、バックラッシュ補正の中央処
理装置での処理の簡素化・高精度化を図るようにしたシ
リアルプリンタを提供することを目的としてなされたも
のである。
The present invention has been made in view of the above circumstances, and by considering the moving speed of a carriage as a substantially constant speed, the backlash amount is recognized as a time amount instead of a motor pulse number, and The purpose of the present invention is to provide a serial printer that simplifies and improves the accuracy of processing in the central processing unit for rush correction.

【0005】[0005]

【構成】本発明は、上記目的を達成するために、(1)
印字ヘッドを搭載したキャリッジの動作時において、あ
る決められた位置であるホームポジションをキャリッジ
が通過したことを示す信号を検出するセンサ手段と、該
センサ手段によるセンサ出力に基づき、前記キャリッジ
を往復駆動するキャリッジモータと、前記センサ手段に
よるセンサ出力に基づき、前記キャリッジの往路と復路
の位置ずれ量を電気的に認識する認識手段と、往復印字
時の印字ずれを防止するため、認識した位置ずれ量に基
づき、往路と復路の印字タイミングを補正する補正手段
と、一方のキャリッジ駆動方向の際のセンサ手段による
機械的な通過信号発生を機械的ホームポジションとし、
もう一方のキャリッジ駆動方向の際に電気的に予測され
る機械的ホームポジションの発生タイミングを電気的ホ
ームポジションとした時、電気的ホームポジションと実
際の機械的ホームポジションとの時間的差分を、前記認
識手段における位置ずれ量とする演算手段とから成るこ
と、更には、(2)前記通過信号をディジタル信号に変
換する変換手段と、モータ制御・印字タイミング制御な
どを行う中央処理手段と、該中央処理手段のタイマ機能
により前記時間的差分を認識する認識手段と、ディジタ
ル通過信号を中央処理手段の割り込み端子に取り込む手
段と、前記時間的差分を認識するためのタイマ機能の制
御を、前記割り込みに対応したソフトウェアの割り込み
ルーチンで行う処理手段を設けたこと、更には、(3)
前記(2)において、前記ディジタル通過信号を、その
発生前後でディジタル信号の0・1が変化する立ち下が
り・立ち上がり信号として出力するセンサ手段及び該セ
ンサ手段の出力変換手段と、立ち上がりエッジをトリガ
とする割り込み端子と、立ち下がりエッジをトリガとす
る割り込み端子を有する中央処理手段と、ディジタル通
過信号を前記2つの割り込み端子に取り込む手段と、2
つの割り込みによる2つのソフトウェア割り込みルーチ
ンで、それぞれに対応した前記時間的差分を認識するた
めのタイマ機能の制御を行う制御手段を設けたこと、更
には、(4)前記(2)又は(3)において、割り込み
入力から割り込みルーチンによるタイマ機能制御までの
ソフトウェア処理に必要な時間をあらかじめデータとし
て保持し、前記時間的差分の値を補正する補正手段を設
けたこと、更には、(5)前記(1),(2),(3)又は
(4)において、前記時間的差分及び該時間的差分によ
る位置ずれ補正値にあらかじめ適正範囲を設け、範囲外
になった際に警告発生・装置停止などを行う駆動手段を
設けたことを特徴としたものである。以下、本発明の実
施例に基づいて説明する。
In order to achieve the above object, the present invention provides (1)
When the carriage equipped with the print head is in operation, a sensor means for detecting a signal indicating that the carriage has passed a home position, which is a predetermined position, and the carriage is reciprocally driven based on the sensor output from the sensor means. The carriage motor that electrically recognizes the position deviation amount of the forward path and the return path of the carriage based on the sensor output from the sensor means, and the recognized position deviation amount in order to prevent the print deviation at the time of reciprocal printing. On the basis of the correction means for correcting the print timing of the forward path and the backward path, and the mechanical passing signal generation by the sensor means in the one carriage driving direction is set as the mechanical home position,
When the generation timing of the mechanical home position that is electrically predicted in the other carriage drive direction is the electrical home position, the time difference between the electrical home position and the actual mechanical home position is calculated as described above. And a conversion means for converting the passing signal into a digital signal, a central processing means for performing motor control / print timing control, and the central processing means. Recognizing means for recognizing the temporal difference by the timer function of the processing means, means for taking the digital passing signal into the interrupt terminal of the central processing means, and control of the timer function for recognizing the temporal difference are set to the interrupt. Providing a processing means for performing the interrupt routine of the corresponding software, further, (3)
In the above (2), a sensor means for outputting the digital passing signal as a falling / rising signal in which 0/1 of the digital signal changes before and after its generation, an output converting means of the sensor means, and a rising edge as a trigger. Central processing means having an interrupt terminal for triggering a falling edge, means for taking a digital passing signal into the two interrupt terminals, and 2
A control means for controlling the timer function for recognizing the time difference corresponding to each of the two software interrupt routines by one interrupt is provided, and further, (4) above (2) or (3) In the above, a correction means is provided for preliminarily holding the time required for software processing from the interrupt input to the timer function control by the interrupt routine as data, and correcting the value of the temporal difference. In 1), (2), (3), or (4), an appropriate range is set in advance for the temporal difference and the positional deviation correction value due to the temporal difference, and when it goes out of the range, a warning is issued, the device is stopped, etc. It is characterized in that a driving means for carrying out is provided. Hereinafter, description will be given based on examples of the present invention.

【0006】図1は、本発明によるシリアルプリンタの
一実施例を説明するための構成図で、図中、1は記録
紙、2はプラテンローラ、3は印字ヘッド、4はキャリ
ッジ、5はHP(ホームポジション)センサ(アクチュ
エータ)、6はHP(ホームポジション)センサ(ファ
トセンサ)、7はキャリッジ駆動ベルト、8はCR(キ
ャリッジ)モータ(ステッピングモータ)、9はプーリ
である。キャリッジ4はステッピングモータ8とキャリ
ッジ駆動ベルト7によって左右に移動される。印字ヘッ
ド3はキャリッジ4上に固定され、プラテンローラ2に
巻き付けられた記録紙1上に印字を行なう。キャリッジ
4にはHPセンサ(条片)5がとりつけられており、印
字動作待ち位置において、該HPセンサ5を挟むよう設
置された発光素子と受光素子から構成されるフォトセン
サ6が備えられている。該フォトセンサ6の出力はHP
センサ5が遮光しているかどうかにより変化し、適当な
閾値で判別することにより、“1”または“0”のディ
ジタル信号が得られる。
FIG. 1 is a block diagram for explaining an embodiment of a serial printer according to the present invention. In the figure, 1 is a recording sheet, 2 is a platen roller, 3 is a print head, 4 is a carriage, and 5 is an HP. (Home position) sensor (actuator), 6 is an HP (home position) sensor (fat sensor), 7 is a carriage drive belt, 8 is a CR (carriage) motor (stepping motor), and 9 is a pulley. The carriage 4 is moved left and right by a stepping motor 8 and a carriage drive belt 7. The print head 3 is fixed on the carriage 4 and prints on the recording paper 1 wound around the platen roller 2. An HP sensor (strip) 5 is attached to the carriage 4, and at a print operation waiting position, a photo sensor 6 including a light emitting element and a light receiving element, which is installed so as to sandwich the HP sensor 5, is provided. . The output of the photo sensor 6 is HP
It changes depending on whether or not the sensor 5 is shielded from light, and a digital signal of "1" or "0" can be obtained by discriminating with an appropriate threshold value.

【0007】印字開始前には、ステッピング・モータ8
を起動し、キャリッジ4を左に移動し、フォトセンサ6
の反転する信号を基準に印字動作待ち位置(ホームポジ
ション)に停止する準備動作(イニシャライズ動作)を
行なう。次に、印字動作は、ステッピングモータ8を起
動し、ホームポジションにあるキャリッジ4を右方向に
移動し、フォトセンサ6の出力信号の反転時点からステ
ッピングモータ8の駆動パルス数をカウンタでカウント
し、その数に基づいて所定の位置に印字して行く。一行
の印字文字数を印字し終えると、減速して停止する。以
上で、キャリッジ4を左から右に移動して印字する右方
向印字が終了する。次に、前述と逆の左方向印字は、キ
ャリッジ4を右側で停止した位置から左方向に移動し、
移動にしたがってステッピングモータ8の駆動パルスに
よって前記カウンタの内容を減算してゆき、所定のカウ
ント値になった時から印字を開始し、印字し終えるとホ
ームポジションに停止する。
Before the start of printing, the stepping motor 8
Start, move the carriage 4 to the left, and
A preparatory operation (initialization operation) is performed to stop at the print operation waiting position (home position) based on the signal that is inverted. Next, in the printing operation, the stepping motor 8 is started, the carriage 4 at the home position is moved to the right, and the number of drive pulses of the stepping motor 8 is counted by the counter from the time when the output signal of the photo sensor 6 is reversed. Printing is performed at a predetermined position based on the number. When it finishes printing the number of print characters on one line, it slows down and stops. As described above, the right direction printing for moving the carriage 4 from left to right and printing is completed. Next, in the leftward printing opposite to the above, the carriage 4 is moved leftward from the position where the carriage 4 is stopped on the right side,
The content of the counter is decremented by the drive pulse of the stepping motor 8 as it moves, and printing is started when a predetermined count value is reached, and stopped at the home position when printing is completed.

【0008】図2及び図3は、本発明によるシリアルプ
リンタのブロック図及びタイムチャートで、図中、10
は中央処理装置(CPU)、11はディジタルエッジ信
号生成部、12は印字制御部、13はモータ制御部で、
その他、図1と同じ作用をする部分には同一の符号を付
してある。なお図3における電気信号のタイムチャート
の横軸は距離ではなく時間を示している。以下、図2及
び図3に基づいて、本発明によるシリアルプリンタの動
作について説明する。
2 and 3 are a block diagram and a time chart of a serial printer according to the present invention.
Is a central processing unit (CPU), 11 is a digital edge signal generator, 12 is a print controller, 13 is a motor controller,
In addition, the same reference numerals are attached to the portions having the same operations as those in FIG. The horizontal axis of the time chart of the electric signal in FIG. 3 indicates time instead of distance. The operation of the serial printer according to the present invention will be described below with reference to FIGS.

【0009】シリアルプリンタは、印字開始の前に、ま
ずHPを確認し、キャリッジをHPの左側の印字待機位
置に格納する。その後、キャリッジを右方向(往路)に
動かして、その通過時間(HPトリガ)を認識する。C
PUは、HPトリガ認識時刻からその直後のステッピン
グモータ制御パルス(HPパルス)発生までの時間(C
Rラグ)をタイマカウントする。その後、所定の位置ま
でキャリッジを動かし、CRモータを逆転させ、左方向
(復路)に動かし、HPセンサに逆方向から進入する。
この時、CPUは、HPパルスに相当するパルスを発生
させた時刻から、実際にHPトリガが再び発生するまで
の時間をタイマカウントする。この時間をHPラグ0と
する。
Before starting printing, the serial printer first checks the HP and stores the carriage at the print standby position on the left side of the HP. After that, the carriage is moved to the right (outward path) to recognize the passing time (HP trigger). C
PU is the time (C) from the HP trigger recognition time to the generation of the stepping motor control pulse (HP pulse) immediately after that.
R lag) is counted by a timer. After that, the carriage is moved to a predetermined position, the CR motor is rotated in the reverse direction, is moved to the left (return path), and enters the HP sensor from the opposite direction.
At this time, the CPU counts the time from the time when the pulse corresponding to the HP pulse is generated until the HP trigger is actually generated again. This time is referred to as HP lag 0.

【0010】なお、本発明では、キャリッジ速度を一定
とみなすことで、距離と時間を等価と考えているため、
当然のことながらタイマカウントなどのBR補正用デー
タを採取している際は、すでにCRモータの加減速は終
了し、当速度領域にあることが望ましい。このとき、以
下の関係が成り立つから、これによりHPラグが算出さ
れる。 HPラグ=HPラグ0−CRラグ さて、実際の印字のBR補正では、往路の印字開始信号
の発生タイミングに対し、復路の印字開始信号の発生
を、HPラグ分だけ時間的に遅らせてやればよい。以上
の操作により、CPUのタイマ精度でのBR補正が可能
となる。
In the present invention, since the distance and the time are considered to be equivalent by considering the carriage speed to be constant,
As a matter of course, while the BR correction data such as the timer count is being collected, it is desirable that the acceleration / deceleration of the CR motor has already been completed and the speed is within the current speed range. At this time, the following relationship holds, and thus the HP lag is calculated. HP lag = HP lag 0-CR lag In the BR correction of the actual printing, if the generation of the print start signal on the return path is delayed by the amount of HP lag with respect to the timing of the generation of the print start signal on the outward path. Good. By the above operation, BR correction with the timer accuracy of the CPU becomes possible.

【0011】まず、請求項1について説明する。以下の
(1)〜(5)の機能を有し、バックラッシュ(BR)
量を時間として認識する往復印字可能なシリアルプリン
タである。 (1);センサ手段(HPセンサ)は、印字ヘッドを搭
載したキャリッジの動作時において、ある決められた位
置(ホームポジション:HP)をキャリッジが通過した
ことを示す信号を検出する。なお、通過信号をHPトリ
ガと言う。 (2);キャリッジモータ(CDモータ)は、前記HP
センサの出力に基づきキャリッジを往復駆動する。 (3);BR量認識手段は、前記HPセンサの出力に基
づきキャリッジの往路と復路の位置ずれ(バックラッシ
ュ:BR)量を電気的に認識する。 (4);印字タイミング補正手段は、往復印字時の印字
ずれを防止するため、認識したBR量に基づき、往路と
復路の印字タイミングを補正する。 (5);BR量演算手段は、一方のキャリッジ駆動方向
の際のHPセンサにより機械的なHPトリガ発生を機械
的HPとし、もう一方のキャリッジ駆動方向の際に電気
的に予測される機械的HP発生タイミングを電気的HP
とした時、電気的HPと実際の機械的HPとの時間的差
分(HPラグ)を、前記(3)におけるBR量とする。
First, claim 1 will be described. It has the following functions (1) to (5) and backlash (BR)
It is a serial printer capable of reciprocal printing that recognizes quantity as time. (1); The sensor means (HP sensor) detects a signal indicating that the carriage has passed a predetermined position (home position: HP) during the operation of the carriage on which the print head is mounted. The passing signal is called an HP trigger. (2); the carriage motor (CD motor) is the HP
The carriage is reciprocally driven based on the output of the sensor. (3); The BR amount recognition means electrically recognizes the amount of positional deviation (backlash: BR) between the forward and backward passes of the carriage based on the output of the HP sensor. (4); The print timing correction means corrects the print timings of the forward pass and the return pass based on the recognized BR amount in order to prevent the print misalignment during the reciprocal printing. (5); the BR amount calculation means sets the mechanical HP trigger to mechanical HP by the HP sensor in one carriage driving direction, and electrically predicts the mechanical HP trigger in the other carriage driving direction. HP generation timing is electrical HP
Then, the temporal difference (HP lag) between the electrical HP and the actual mechanical HP is defined as the BR amount in (3) above.

【0012】次に、請求項2について説明する。前記請
求項1記載の実施例において、HPトリガをディジタル
エッジ信号とすることで、CPUに割り込み信号として
取り込むことを可能にする。以下の(6)〜(10)の
各手段を有するHPラグ認識手段である。 (6);変換手段は、HPトリガをディジタル信号(デ
ィジタルHPトリガ)に変換する。 (7);CPUは、モータ制御・印字タイミング制御等
を行う。 (8);HPラグ認識手段は、CPUのタイマ機能によ
りHPラグを認識する。 (9);取り込み手段は、ディジタルHPトリガをCP
Uの割り込み端子に取り込む。 (10);処理手段は、HPラグを認識するためのタイ
マ機能の制御を、前記割り込みに対応したソフトウェア
の割り込みルーチンで行う。
Next, claim 2 will be described. In the embodiment of the first aspect, the HP trigger is a digital edge signal so that the HP trigger can be fetched as an interrupt signal. This is an HP lag recognition means having the following means (6) to (10). (6); The conversion means converts the HP trigger into a digital signal (digital HP trigger). (7); The CPU performs motor control, print timing control, and the like. (8); The HP lag recognition means recognizes the HP lag by the timer function of the CPU. (9); The capturing means uses a digital HP trigger as a CP.
Take in the interrupt terminal of U. (10); The processing means controls the timer function for recognizing the HP lag by an interrupt routine of software corresponding to the interrupt.

【0013】次に、請求項3について説明する。前記請
求項2記載の実施例において、HPトリガをトリガの前
後でディジタルレベルが変化する信号とし、CPUの異
なる割り込み端子に入力させることにより、往路時と復
路時のいずれの割り込み信号かを簡単に判別可能とす
る。以下の(1)〜(14)の各手段を有するディジタ
ルHPトリガのCPU割り込み入力手段である。 (11);HPセンサ及びHPセンサ出力変換手段は、
ディジタルHPトリガを、その発生前後でディジタル信
号の0・1が変化する立ち下がり・立ち上がり信号とし
て出力する。 (12);CPUは、立ち上がりエッジをトリガとする
割り込み端子と、立ち下がりエッジをトリガとする割り
込み端子を有する。 (13);取り込み手段は、ディジタルHPトリガを上
記2つの割り込み端子に取り込む。 (14);制御手段は、2つの割り込みによる2つのソ
フトウェア割り込みルーチンで、それぞれに対応したH
Pラグを認識するためのタイマ機能の制御を行う。
Next, claim 3 will be described. In the embodiment according to claim 2, the HP trigger is a signal whose digital level changes before and after the trigger, and the interrupt signal is input to different interrupt terminals of the CPU, so that it can be easily determined whether the interrupt signal is a forward path or a backward path. Can be identified. It is a CPU interrupt input means of a digital HP trigger having the following means (1) to (14). (11); HP sensor and HP sensor output conversion means,
The digital HP trigger is output as a falling / rising signal in which 0/1 of the digital signal changes before and after the generation. (12); The CPU has an interrupt terminal triggered by a rising edge and an interrupt terminal triggered by a falling edge. (13); The capturing means captures the digital HP trigger into the above two interrupt terminals. (14); The control means is two software interrupt routines by two interrupts, and H corresponding to each of them.
It controls the timer function for recognizing the P lag.

【0014】次に、請求項4について説明する。HPト
リガを割り込みでCPUに取り込んでも、CPUが割り
込みルーチンから、タイマカウント開始/終了ルーチン
へソフトウェア制御を移すには、数[μs]の時間(ソフ
トラグ)がかかる(ただし、割り込みでタイマをスター
ト/ストップ可能なCPUではこの限りではない)。そ
こで、その分カウント値に誤差が生じる。そこで、これ
を防ぐには、このソフトを予めデータとして記憶してお
き、HPラグ算出の際、補正してやればよい。以下の
(15)の手段を有するHPラグ補正手段である。 (15);HPラグ補正手段は、割り込み入力から、割
り込みルーチンによるタイマ機能制御までのソフトウェ
ア処理に必要な時間をあらかじめデータとして保持し、
HPラグの値を補正する。
Next, claim 4 will be described. Even if the HP trigger is fetched into the CPU by an interrupt, it takes several [μs] time (soft lag) for the CPU to transfer the software control from the interrupt routine to the timer count start / end routine (however, the timer is started by the interrupt. / This is not the case with CPUs that can be stopped). Therefore, an error occurs in the count value accordingly. Therefore, to prevent this, this software may be stored as data in advance and corrected when calculating the HP lag. This is an HP lag correction means having the following means (15). (15); The HP lag correction means holds in advance the time required for software processing from interrupt input to timer function control by an interrupt routine as data,
Correct the HP lag value.

【0015】次に請求項5について説明する。なお、H
Pラグの値は、そのシステムのメカ的設計値によって適
正範囲は決定されるため、その範囲外の場合はCRモー
タの脱調などの異常が考えられる。そこで、HPラグ・
算出されたBR補正値などの適正範囲を予め記憶してお
き、範囲外になった場合は警告発生・動作停止などを行
う。以下の(16)の駆動手段を有する。 (16);駆動手段は、該HPラグ、HPラグによるB
R補正値などにあらかじめ適正範囲を設け、範囲外にな
った際に警告発生・装置停止などを行う。 なお、前述では、タイマカウントはCPUの内蔵タイマ
を想定しているが、CPU外部のタイマでも構わないの
は言うまでもない。さらに、本発明の実施例では、CR
モータはステッピングモータとしているが、サーボモー
タなどでも構わないのは言うまでもない。
Next, claim 5 will be described. In addition, H
Since the appropriate range of the P lag value is determined by the mechanical design value of the system, if it is out of the range, an abnormality such as step-out of the CR motor may be considered. So HP lag
An appropriate range such as the calculated BR correction value is stored in advance, and when it is out of the range, a warning is generated and operation is stopped. It has the following drive means (16). (16); The drive means is the HP lug, B by the HP lug
An appropriate range is set in advance for the R correction value, etc., and when it goes out of the range, a warning is issued and the device is stopped. In the above description, the timer count is assumed to be the internal timer of the CPU, but it goes without saying that a timer external to the CPU may be used. Further, in the embodiment of the present invention, CR
Although the motor is a stepping motor, it goes without saying that a servo motor or the like may be used.

【0016】[0016]

【効果】以上の説明から明らかなように、本発明による
と、以下のような効果がある。 (1)請求項1に対応する効果;ステッピングモータな
ど、比較的制御可能単位が大きなモータを使用したシス
テムにおいても、BR補正がCPUなどの電気回路的タ
イマ精度で行うことができる。 (2)請求項2に対応する効果;HPトリガを割り込み
で受け付け、ソフトウェア処理のタイムラグを減少させ
ることにより、BR補正の精度を向上できる。 (3)請求項3に対応する効果;ディジタルHPトリガ
をHPトリガの前後でディジタルレベルが変化する信号
とし、CPUの割り込み判定を行うソフトウェア処理時
間を減少させることにより、BR補正の精度を向上でき
る。 (4)請求項4に対応する効果;割り込み処理に移るま
での処理時間を記憶しておき、BR補正に利用すること
により、BR補正の精度を向上できる。 (5)請求項5に対応する効果;BR補正値などの適正
範囲を記憶しておき、電気的カウンタ精度で行うことに
より、微少な異常も検出でき、警告・動作停止などの精
度が向上し、装置の安全性を向上できる。
As is apparent from the above description, the present invention has the following effects. (1) Effect corresponding to claim 1; Even in a system using a motor having a relatively large controllable unit such as a stepping motor, the BR correction can be performed with the accuracy of an electric circuit timer such as a CPU. (2) Effect corresponding to claim 2; The accuracy of BR correction can be improved by accepting an HP trigger by an interrupt and reducing the time lag of software processing. (3) Effect corresponding to claim 3; The accuracy of BR correction can be improved by using the digital HP trigger as a signal whose digital level changes before and after the HP trigger and reducing the software processing time for CPU interrupt determination. . (4) Effect corresponding to claim 4; The accuracy of BR correction can be improved by storing the processing time until the interrupt processing and using it for BR correction. (5) Effect corresponding to claim 5: By storing an appropriate range such as a BR correction value and performing it with electrical counter accuracy, even a minute abnormality can be detected, and accuracy such as warning and operation stop is improved. The safety of the device can be improved.

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

【図1】 本発明によるシリアルプリンタの一実施例を
説明するための構成図である。
FIG. 1 is a configuration diagram for explaining an embodiment of a serial printer according to the present invention.

【図2】 本発明によるシリアルプリンタのブロック図
である。
FIG. 2 is a block diagram of a serial printer according to the present invention.

【図3】 図2における電気信号のタイムチャートであ
る。
FIG. 3 is a time chart of electric signals in FIG.

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

1…記録紙、2…プラテンローラ、3…印字ヘッド、4
…キャリッジ、5…HP(ホームポジション)センサ
(アクチュエータ)、6…HP(ホームポジション)セ
ンサ(ファトセンサ)、7…キャリッジ駆動ベルト、8
…CR(キャリッジ)モータ(ステッピングモータ)、
9…プーリ、10…中央処理装置(CPU)、11…デ
ィジタルエッジ信号生成部、12…印字制御部、13…
モータ制御部。
1 ... Recording paper, 2 ... Platen roller, 3 ... Print head, 4
... Carriage, 5 ... HP (home position) sensor (actuator), 6 ... HP (home position) sensor (fat sensor), 7 ... Carriage drive belt, 8
... CR (carriage) motor (stepping motor),
9 ... Pulley, 10 ... Central processing unit (CPU), 11 ... Digital edge signal generation unit, 12 ... Print control unit, 13 ...
Motor control unit.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 印字ヘッドを搭載したキャリッジの動作
時において、ある決められた位置であるホームポジショ
ンをキャリッジが通過したことを示す信号を検出するセ
ンサ手段と、該センサ手段によるセンサ出力に基づき、
前記キャリッジを往復駆動するキャリッジモータと、前
記センサ手段によるセンサ出力に基づき、前記キャリッ
ジの往路と復路の位置ずれ量を電気的に認識する認識手
段と、往復印字時の印字ずれを防止するため、認識した
位置ずれ量に基づき、往路と復路の印字タイミングを補
正する補正手段と、一方のキャリッジ駆動方向の際のセ
ンサ手段による機械的な通過信号発生を機械的ホームポ
ジションとし、もう一方のキャリッジ駆動方向の際に電
気的に予測される機械的ホームポジションの発生タイミ
ングを電気的ホームポジションとした時、電気的ホーム
ポジションと実際の機械的ホームポジションとの時間的
差分を、前記認識手段における位置ずれ量とする演算手
段とから成ることを特徴とするシリアルプリンタ。
1. A sensor means for detecting a signal indicating that the carriage has passed a home position, which is a predetermined position, during operation of a carriage having a print head, and based on a sensor output from the sensor means,
A carriage motor that reciprocally drives the carriage, a recognition unit that electrically recognizes a positional deviation amount between the forward path and the return path of the carriage based on a sensor output from the sensor unit, and a print deviation during reciprocating printing, Correction means for correcting the print timing of the forward path and the return path based on the recognized positional deviation amount, and the mechanical passage signal generation by the sensor means in the one carriage drive direction is set as the mechanical home position, and the other carriage drive When the generation timing of the mechanical home position that is electrically predicted in the direction is the electrical home position, the time difference between the electrical home position and the actual mechanical home position is determined by the positional deviation in the recognition means. A serial printer characterized by comprising a calculation means for calculating a quantity.
【請求項2】 前記通過信号をディジタル信号に変換す
る変換手段と、モータ制御・印字タイミング制御などを
行う中央処理手段と、該中央処理手段のタイマ機能によ
り前記時間的差分を認識する認識手段と、ディジタル通
過信号を中央処理手段の割り込み端子に取り込む手段
と、前記時間的差分を認識するためのタイマ機能の制御
を、前記割り込みに対応したソフトウェアの割り込みル
ーチンで行う処理手段を設けたことを特徴とする請求項
1記載のシリアルプリンタ。
2. A conversion means for converting the passing signal into a digital signal, a central processing means for performing motor control and print timing control, and a recognition means for recognizing the temporal difference by a timer function of the central processing means. A means for fetching the digital passing signal into the interrupt terminal of the central processing means and a processing means for controlling the timer function for recognizing the temporal difference by an interrupt routine of software corresponding to the interrupt. The serial printer according to claim 1.
【請求項3】 前記ディジタル通過信号を、その発生前
後でディジタル信号の0・1が変化する立ち下がり・立
ち上がり信号として出力するセンサ手段及び該センサ手
段の出力変換手段と、立ち上がりエッジをトリガとする
割り込み端子と、立ち下がりエッジをトリガとする割り
込み端子を有する中央処理手段と、ディジタル通過信号
を前記2つの割り込み端子に取り込む手段と、2つの割
り込みによる2つのソフトウェア割り込みルーチンで、
それぞれに対応した前記時間的差分を認識するためのタ
イマ機能の制御を行う制御手段を設けたことを特徴とす
る請求項2記載のシリアルプリンタ。
3. A sensor means for outputting the digital pass signal as a falling / rising signal in which 0/1 of the digital signal changes before and after its generation, an output converting means of the sensor means, and a rising edge as a trigger. An interrupt terminal, a central processing means having an interrupt terminal triggered by a falling edge, a means for capturing a digital passing signal into the two interrupt terminals, and two software interrupt routines by two interrupts,
3. The serial printer according to claim 2, further comprising control means for controlling a timer function for recognizing the temporal difference corresponding to each of them.
【請求項4】 割り込み入力から割り込みルーチンによ
るタイマ機能制御までのソフトウェア処理に必要な時間
をあらかじめデータとして保持し、前記時間的差分の値
を補正する補正手段を設けたことを特徴とする請求項2
又は3記載のシリアルプリンタ。
4. A correction means is provided for previously holding, as data, a time required for software processing from interrupt input to timer function control by an interrupt routine, and correcting the value of the temporal difference. Two
Or the serial printer described in 3.
【請求項5】 前記時間的差分及び該時間的差分による
位置ずれ補正値にあらかじめ適正範囲を設け、範囲外に
なった際に警告発生・装置停止などを行う駆動手段を設
けたことを特徴とする請求項1,2,3又は4記載のシ
リアルプリンタ。
5. An appropriate range is set in advance for the temporal difference and the positional deviation correction value based on the temporal difference, and drive means is provided for issuing a warning and stopping the device when the range is out of the range. The serial printer according to claim 1, 2, 3, or 4.
JP1927193A 1993-01-11 1993-01-11 Serial printer Pending JPH06206354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1927193A JPH06206354A (en) 1993-01-11 1993-01-11 Serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1927193A JPH06206354A (en) 1993-01-11 1993-01-11 Serial printer

Publications (1)

Publication Number Publication Date
JPH06206354A true JPH06206354A (en) 1994-07-26

Family

ID=11994786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1927193A Pending JPH06206354A (en) 1993-01-11 1993-01-11 Serial printer

Country Status (1)

Country Link
JP (1) JPH06206354A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006142444A (en) * 2004-11-22 2006-06-08 Konica Minolta Business Technologies Inc Sheet post-processing device and its method
US7363109B2 (en) 2003-05-20 2008-04-22 Fujitsu Limited Backlash compensation control method, backlash compensation controller and backlash compensation control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363109B2 (en) 2003-05-20 2008-04-22 Fujitsu Limited Backlash compensation control method, backlash compensation controller and backlash compensation control program
JP2006142444A (en) * 2004-11-22 2006-06-08 Konica Minolta Business Technologies Inc Sheet post-processing device and its method

Similar Documents

Publication Publication Date Title
US7195239B2 (en) Printer and paper feed controller
JP3053144B2 (en) Printer carriage motor controller
US7121749B2 (en) Device and method for carriage drive control
JPS6239110B2 (en)
JPH06206354A (en) Serial printer
JP2003145872A (en) Printer control method and printer controller
US20170217230A1 (en) Movement control device, ink-droplet ejection device, movement control method, and recording medium
US5087134A (en) Method of and device for printer control
JP2004237501A (en) Carriage driving device and motor control method
US4603984A (en) Apparatus and method for the reduction of printing offset in bidirectional printing devices
JP3690374B2 (en) Motor control method and motor control apparatus
JP3503429B2 (en) Motor control device
JPH0577514A (en) Setting device for home position of printer
JP2546338B2 (en) Impact printer
JP2023169678A (en) Electronic apparatus
US20050083370A1 (en) Method and device for boosting printing speed of a printer
JPH05254217A (en) Printer
JPH0113437B2 (en)
JPH0958081A (en) Controlling device for stop of spacing motor
JP2000280558A (en) Printer and method for recognizing carriage position
JP3454835B2 (en) Data processing printer
KR100205750B1 (en) Automatic compensation method of both-direction printing position error for serial printer
JP2693997B2 (en) Print head gap automatic adjustment mechanism
JP2002107842A (en) Image reader and image processor
JPH09141961A (en) Printer and controller therefor