JPH0911572A - Recording apparatus - Google Patents

Recording apparatus

Info

Publication number
JPH0911572A
JPH0911572A JP18795795A JP18795795A JPH0911572A JP H0911572 A JPH0911572 A JP H0911572A JP 18795795 A JP18795795 A JP 18795795A JP 18795795 A JP18795795 A JP 18795795A JP H0911572 A JPH0911572 A JP H0911572A
Authority
JP
Japan
Prior art keywords
counter
motor
carriage
count value
pseudo
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
JP18795795A
Other languages
Japanese (ja)
Inventor
Masayuki Motoe
雅之 本江
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP18795795A priority Critical patent/JPH0911572A/en
Publication of JPH0911572A publication Critical patent/JPH0911572A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To detect the positional shift of a carriage to correct the same by providing a false position counter and a counter comparison means comparing the position count position of a position counter means with a false count value. CONSTITUTION: A recording apparatus is equipped with a CR motor driver 20 for driving a CR motor 6, a CPU 2 generating an exciting phase to the CP motor driver 20 and a sensor means 23 optically reading the code pattern of a film to which the code pattern is added in parallel to the main scanning direction of a carriage. Further, a counter UP/DOWN position counter means 22 renewing a position counter means 22 renewing a position counter by a definite value at each time when a motor is driven by one pulse in non- synchronous relation to CPU processing using the output from the sensor means 23 and a memory means 27 storing a counter value are provided.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、記録手段から被記録材
へ記録を行う記録装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording device for recording on a recording material from recording means.

【0002】[0002]

【従来の技術】プリンタ、複写機、ファクシミリ等の機
能を有する記録装置、あるいはコンピュータやワードプ
ロセッサ等を含む複合機やワークステーションの出力機
器として用いられる記録装置は、画像情報に基づいて用
紙やプラスチック薄板(OHP用シート)等の被記録材
に画像(文字や記号を含む)を記録していくように構成
されており、被記録材の搬送方向(副走査方向)と交差
する方向に主走査する記録方式をとるシリアルタイプの
記録装置においては、被記録材に沿って移動(主走査)
するキャリッジ上に搭載した記録手段(記録ヘッド)に
よって画像(文字や記号を含む)を記録し、1行分の記
録を終了した後に所定量の紙送り(副走査)を行い、そ
の後に次の行の画像を記録(副走査)するという動作を
繰り返すことにより、被記録材の所望範囲に画像が記録
される。
2. Description of the Related Art A recording device having functions such as a printer, a copying machine and a facsimile, or a recording device used as an output device of a multifunction machine or a workstation including a computer, a word processor, etc., is a sheet or a plastic thin plate based on image information. An image (including characters and symbols) is recorded on a recording material such as an (OHP sheet), and the main scanning is performed in a direction intersecting the conveyance direction (sub-scanning direction) of the recording material. In a serial type recording device that uses a recording method, it moves along the recording material (main scanning)
An image (including characters and symbols) is recorded by a recording unit (recording head) mounted on the carriage, and a predetermined amount of paper is fed (sub-scanning) after one line of recording is completed, and then the next By repeating the operation of recording (sub-scanning) the image of the row, the image is recorded in the desired range of the recording material.

【0003】図1に記録装置の構成図を示す。図1にお
いて、1は、ホストコンピュータ(以下ホストとい
う)、2は、記録装置の制御の中心的な役割を果たすC
PU、3は、制御プログラム及びCG等を書き込んであ
るROM、4は、GA(ゲートアレー)であり、CPU
の機能では果たせない所をロジック設計によるカスタム
デバイスという形で補う。5は、ホスト1からのデータ
(印字データ、制御コード、記号を含む)を溜め込む受
信バッファや受信バッファからデータを読み出し、ビッ
トデータに展開されたものを格納するための印字バッフ
ァやGA4で使用される制御レジスタに使用されるメモ
リであるRAMである。
FIG. 1 shows a block diagram of a recording apparatus. In FIG. 1, reference numeral 1 is a host computer (hereinafter referred to as a host), and 2 is a central control of the printing apparatus C
PU, 3 are ROMs in which a control program, CG, etc. are written, 4 is a GA (gate array), CPU
Complement the place that cannot be achieved with the function of in the form of a custom device by logic design. 5 is used in the print buffer for storing data (including print data, control code, and symbols) from the host 1 and the print buffer for reading data from the receive buffer and storing the expanded bit data and GA4. It is a RAM that is a memory used for a control register.

【0004】6は、被記録材に沿って記録ヘッドを主操
作させるように記録ヘッドを搭載したキャリッジを主走
査方向に駆動するCRモータ、7は、被記録材の搬送方
向(副走査方向)へ紙を送るためのラインフィード(以
下LF)モータ、8は、記録ヘッドの印字品位を保つた
めに、ヘッドの吐出ノズルからインクを吸い上げる動作
と、給紙及び排紙に対して使用されるモータ(以下P−
ASFモータ)である。9は、モータ6〜8の各々を駆
動する際に必要であるモータドライバやその周辺回路で
あるモータ駆動回路である。
Reference numeral 6 is a CR motor for driving a carriage carrying a recording head in the main scanning direction so that the recording head is mainly operated along the recording material. Reference numeral 7 is a recording material conveying direction (sub-scanning direction). A line feed (LF) motor 8 for feeding paper to the motor is a motor used for sucking ink from the ejection nozzles of the head and feeding and discharging paper in order to maintain the print quality of the recording head. (Hereinafter P-
ASF motor). Reference numeral 9 is a motor drive circuit that is a motor driver and its peripheral circuits necessary for driving each of the motors 6 to 8.

【0005】10は、キャリッジ上に搭載され、被記録
材に沿って、インクを吐出することにより、記録を行う
記録ヘッドであり、11のヘッド制御回路によって記録
ヘッドの種類、記録ヘッドの各吐出ノズルにあるヒータ
ーを加熱するための抵抗のばらつき、また記録ヘッドの
温度等を検出し、適切な記録を行うことが、出来るよう
に構成されている。
Reference numeral 10 is a recording head mounted on a carriage for recording by ejecting ink along a recording material. The head control circuit 11 controls the type of recording head and each ejection of the recording head. It is configured so that it is possible to perform appropriate recording by detecting variations in resistance for heating the heater in the nozzle, the temperature of the recording head, and the like.

【0006】また、12は、ユーザがパワーON(オ
ン)、パワーOFF(オフ)、ONLINE(オンライ
ン)、ラインフィード(LF)、MENU(給紙方法、
使用I/F、使用カートリッジ、その他Functio
n(機能)の設定等)を実操作するための操作パネルで
あり、13は、該操作パネルを制御するための回路であ
る。
Reference numeral 12 indicates that the user turns the power on (ON), power OFF (OFF), ONLINE (online), line feed (LF), MENU (paper feeding method,
Used I / F, used cartridge, other Functio
An operation panel for actually operating (setting of n (function)) 13 is a circuit for controlling the operation panel.

【0007】従来のキャリッジの脱調検出方法について
図2、図3を参照して説明する。モータには、パルスモ
ータ、DCモータ、超音波モータ等の様々なモータが今
日使用されているが、ここでは、パルスモータを使用し
たキャリッジ駆動について述べる。
A conventional carriage out-of-step detection method will be described with reference to FIGS. Various motors such as pulse motors, DC motors, and ultrasonic motors are used as motors today. Here, carriage driving using pulse motors will be described.

【0008】被記録材に沿って記録ヘッドを主操作させ
る制御としては、キャリッジ駆動用ドライバに励磁相を
発生させ、モータを1パルス駆動する割り込み処理を一
定周期において発生させるのが、一般的である。
As a control for the main operation of the recording head along the recording material, it is general to generate an excitation phase in the carriage driving driver and generate an interrupt process for driving the motor by one pulse at a constant cycle. is there.

【0009】キャリッジの割り込みが発生すると(S
1)、CPU2は、モータ駆動回路9のCRモータ駆動
用ドライバに対して励磁相を発生する(S2)。励磁相
に従い、該CRモータ駆動用ドライバは、CRモータ6
を駆動し(S3)、被記録材に沿ってキャリッジが主操
作する(S4)。CPU2は、キャリッジ14の位置を
管理するため、CRモータ6を1パルス駆動する毎に、
パルス数をカウントし(S5)、割り込み処理を抜け、
その他のCPU2の処理(S6)へ移る。
When a carriage interrupt occurs (S
1), CPU2 produces | generates an excitation phase with respect to the driver for CR motor drive of the motor drive circuit 9 (S2). According to the excitation phase, the driver for driving the CR motor drives the CR motor 6
Is driven (S3), and the carriage is mainly operated along the recording material (S4). The CPU 2 manages the position of the carriage 14, and therefore, every time the CR motor 6 is driven by one pulse,
Count the number of pulses (S5), exit interrupt processing,
Then, the process proceeds to other CPU2 processing (S6).

【0010】上記に述べたキャリッジの割り込みが、一
定周期で連続することにより、被記録材に沿って記録ヘ
ッドを主操作し、ホームポジション18として設けた部
材をキャリッジ14の下部にあるホームポジションセン
サ(以下HPセンサ)17により、光学的に検出し、ホ
ームポジション18を検出する(S7)。CPU2は、
(S5)でカウントしたパルスカウント値を確認し(S
8)、プログラム上のホームポジション18でのモータ
のパルスカウント値と比較する(S9)。一致する場合
は、ホームポジション取りO.Kであり(S10)、一
致しない場合は、脱調検出とし(S11)、エラーとす
る(S12)。
When the interrupt of the carriage described above continues at a constant cycle, the recording head is mainly operated along the recording material, and a member provided as the home position 18 is provided at the lower part of the carriage 14 as a home position sensor. The home position 18 is detected optically by the (HP sensor) 17 (S7). CPU2
Check the pulse count value counted in (S5) (S5
8) Compare with the pulse count value of the motor at the home position 18 on the program (S9). If they match, the home position is taken. If K does not match (S10), and if they do not match, step out detection is performed (S11), and an error occurs (S12).

【0011】[0011]

【発明が解決しようとする課題】ホームポジションセン
サにより、ホームポジション取りを行うことにより、脱
調検出していたため、印字中における脱調検出が不可能
であった。
Since the home position sensor detects a step-out by taking a home position, it is impossible to detect the step-out during printing.

【0012】[0012]

【課題を解決するための手段】本発明の記録装置は、被
記録材に沿って移動(主走査)するキャリッジ用のモー
タを駆動するためのCRモータ駆動用ドライバと、CR
モータ駆動用ドライバに対して励磁相を発生するCPU
と、キャリッジの主走査方向と並行にコードパターンの
付加されたフィルムのコードパターンを読み取るセンサ
手段と、該センサ手段からの出力を用いて、モータが1
パルス駆動する毎に位置カウント値を一定値更新するよ
うにカウンタUP/DOWNする位置カウンタ手段と、
該位置カウンタ手段のカウント値を記憶しておくメモリ
手段と、CPUが、1パルス、キャリッジモータを駆動
するための励磁相を発生する毎に疑似的に疑似位置カウ
ント値を一定値更新する疑似位置カウンタと、前記位置
カウンタ手段の位置カウント値と前記疑似位置カウンタ
の疑似位置カウント値を比較するカウンタ比較手段と、
を有することを特徴とする。
A recording apparatus according to the present invention comprises a CR motor driving driver for driving a carriage motor that moves (main scanning) along a recording material, and a CR motor driving driver.
CPU that generates excitation phase for motor driver
And a sensor means for reading the code pattern of the film to which the code pattern is added in parallel to the main scanning direction of the carriage, and the output from the sensor means is used to drive the motor to 1
Position counter means for counter UP / DOWN so as to update the position count value by a constant value each time pulse driving is performed,
A memory means for storing the count value of the position counter means and a pseudo position for pseudo updating the pseudo position count value by a constant value each time the CPU generates an excitation phase for driving the carriage motor for one pulse. A counter, counter comparing means for comparing the position count value of the position counter means with the pseudo position count value of the pseudo position counter,
It is characterized by having.

【0013】[0013]

【実施例】次に、本発明の実施例を説明する。Next, embodiments of the present invention will be described.

【0014】(実施例1)以下、本発明の実施例1を示
す図面を参照して説明する。図4に本発明の構成を示
す。CRモータ6を駆動するためのCRモータ駆動用ド
ライバ20、CRモータ駆動用ドライバ20に対して励
磁相を発生するCPU2、キャリッジの主走査方向と並
行にコードパターンの付加されたフィルムのコードパタ
ーンを光学的に読み取るセンサ手段23、該センサ手段
からの出力を用いて、CPU処理とは非同期にモータが
1パルス駆動する毎に位置カウンタが一定値更新するよ
うなカウントUP/DOWN(アップ/ダウン)する位
置カウンタ手段22、カウンタ値を記憶しておくメモリ
手段27で構成される。
(First Embodiment) A first embodiment of the present invention will be described below with reference to the drawings. FIG. 4 shows the configuration of the present invention. A CR motor driving driver 20 for driving the CR motor 6, a CPU 2 that generates an excitation phase for the CR motor driving driver 20, a code pattern of a film to which a code pattern is added in parallel with the main scanning direction of the carriage. A sensor means 23 for optically reading and a count UP / DOWN (up / down) such that the position counter is updated by a constant value every time the motor is driven by one pulse asynchronously with the CPU processing, using the output from the sensor means. It is composed of a position counter means 22 and a memory means 27 for storing the counter value.

【0015】図5は、本実施例で使用しているセンサ手
段23の図である。キャリッジの主走査方向と並行にコ
ードパターンの付加されたフィルム(コードフィルム)
15のコードパターンをキャリッジ下部に設置したエン
コーダセンサ19のセンサ部に挟み込むような形でコー
ドフィルム15に沿って、光学的に読み取る。
FIG. 5 is a diagram of the sensor means 23 used in this embodiment. Film with a code pattern added in parallel with the main scanning direction of the carriage (code film)
The code pattern 15 is optically read along the code film 15 in such a manner as to be sandwiched by the sensor portion of the encoder sensor 19 installed in the lower portion of the carriage.

【0016】本実施例で使用しているコードフィルム1
5は、120DPI間隔のスリット状になっており、エ
ンコーダセンサ19は、LED光をレンズを通してコー
ドフィルム15に透過させ、コードパターンに応じて位
相の違う2チャンネルのデジタル出力をするものであ
る。キャリッジ14の主走査に関しては、往路、復路で
図6で示す様な出力波形が、キャリッジ14の主走査に
伴い発生する。往路、復路にてエンコーダセンサ19の
CH1、CH2の出力波形の位相ずれが生ずるのは、エ
ンコーダセンサ19内部のCH1、CH2用の透過光検
出用ダイオードがエンコーダセンサ19の移動方向に対
して、並行に設置されているためである。
Code film 1 used in this embodiment
Reference numeral 5 is a slit with 120 DPI intervals, and the encoder sensor 19 transmits the LED light through the lens to the code film 15 and outputs digital signals of two channels having different phases according to the code pattern. Regarding the main scanning of the carriage 14, the output waveform as shown in FIG. The phase shift of the output waveforms of CH1 and CH2 of the encoder sensor 19 occurs in the forward and backward passes because the transmitted light detection diodes for CH1 and CH2 inside the encoder sensor 19 are parallel to the moving direction of the encoder sensor 19. It is because it is installed in.

【0017】図6は、位置カウンタ手段22の図であ
る。エンコーダセンサ19の出力は、同じくキャリッジ
14上に搭載されている記録ヘッド10の制御信号等を
コントロール基板に伝達するフレキシブルケーブルによ
ってコントロール基板上のGA4内の位置カウンタ手段
22に入力される。エンコーダセンサ19の出力波形を
ノイズフィルタであるロジックフィルター24によって
サンプリングする。往復路CLK作成回路25では、該
ロジックフィルター24でサンプリングされた波形から
往路では、120DPI毎にカウントUPしていき、復
路ではカウントDOWNするCLK(クロックパルス)
を作成する。
FIG. 6 is a diagram of the position counter means 22. The output of the encoder sensor 19 is input to the position counter means 22 in the GA 4 on the control board by a flexible cable that transmits the control signal of the recording head 10 mounted on the carriage 14 to the control board. The output waveform of the encoder sensor 19 is sampled by the logic filter 24 which is a noise filter. In the round trip path CLK creating circuit 25, CLK (clock pulse) that counts up every 120 DPI on the forward path from the waveform sampled by the logic filter 24 and counts down on the backward path.
Create

【0018】図7を参照し、CRパルスと位置カウンタ
CLKの関係を説明する。本実施例では、CRモータ6
を1パルス駆動する間に、360DPIで12ドットの
印字を行う。ここでコードフィルム15は、120DP
IであるのでUP/DOWNカウンタ26へのカウンタ
CLKとしては、a−1〜a−4の4CLK分が1パル
ス内に発生することとなる。
The relationship between the CR pulse and the position counter CLK will be described with reference to FIG. In this embodiment, the CR motor 6
12 dots are printed with 360 DPI while driving 1 pulse. Here, the code film 15 is 120DP
Since it is I, as the counter CLK to the UP / DOWN counter 26, 4 CLKs of a-1 to a-4 are generated within one pulse.

【0019】UP/DOWNカウンタ26は、キャリッ
ジの往路ではカウントUP、復路ではカウントDOWN
していく回路であり、CPUのREADにより、データ
バスへ出力可能な構成になっている。
The UP / DOWN counter 26 counts up on the forward path of the carriage and counts down on the backward path of the carriage.
It is a circuit that is used to output data to the data bus by READ of the CPU.

【0020】図8のフローチャートに従って説明する。
キャリッジの割り込みが発生(S1)するとCPU2
は、モータ駆動回路9のCRモータ駆動用ドライバに対
して励磁相を発生する(S2)。励磁相に従い、該CR
モータ駆動用ドライバは、CRモータ6を駆動し(S
3)、被記録材に沿ってキャリッジが主操作する(S
4)。キャリッジの主走査に伴い、エンコーダセンサ1
9は、120DPIのコードフィルム15のコードパタ
ーンを検出し、コントロール基板上のGA4内の位置カ
ウンタ手段22に出力する。上記で説明したように、C
Rモータ6が、1パルス駆動する間に位置カウンタは、
往路、復路を考慮すると±4更新される(S13)。C
PU2は、GA4に対して、位置カウンタREAD(リ
ード:読み取り)用のアドレスを出力し、位置カウンタ
値をREADする(S14)。CPU2は、正常にキャ
リッジが走査した場合の位置カウンタ値を想定し、CR
モータの1パルス駆動励磁をする毎に、前回1パルス駆
動時の疑似カウンタ値をメモリ手段から引き出してき
て、±4(往復路)更新していく(S15)。更新後の
疑似カウンタ値と実際、位置カウンタ手段22からリー
ドしてきた位置カウンタ値と比較し(S16)、±1以
上が否かを判断し(S17)、±1以上なら脱調検出と
し(S11)、エラーとする(S12)。
A description will be given according to the flowchart of FIG.
When a carriage interrupt occurs (S1), the CPU2
Generates an excitation phase for the CR motor drive driver of the motor drive circuit 9 (S2). According to the excitation phase, the CR
The motor drive driver drives the CR motor 6 (S
3) The main operation of the carriage along the recording material (S
4). Encoder sensor 1 along with the main scan of the carriage
9 detects the code pattern of the code film 15 of 120 DPI and outputs it to the position counter means 22 in the GA 4 on the control board. As explained above, C
While the R motor 6 is driving one pulse, the position counter
It is updated by ± 4 in consideration of the forward and backward paths (S13). C
PU2 outputs an address for position counter READ (read: read) to GA4 and READs the position counter value (S14). The CPU 2 assumes the position counter value when the carriage scans normally, and CR
Each time the motor is excited by one pulse, the pseudo counter value at the previous one-pulse drive is fetched from the memory means and updated by ± 4 (reciprocating path) (S15). The updated pseudo counter value is compared with the position counter value actually read from the position counter means 22 (S16), and it is determined whether or not ± 1 or more (S17). ), And an error occurs (S12).

【0021】例としてカウンタUP(往路)について図
7を参照して説明する。前回のカウンタ値が0であり、
1パルス駆動する間に本来ならば、a−1〜a−4のよ
うに4CLK発生し、+4カウンタを更新して、位置カ
ウンタ手段22の位置カウンタ値としては、4となる。
何らかの原因により、CRモータ1パルス駆動の間に1
20DPI分余計にキャリッジが主走査した場合、位置
カウンタ値は5となり、CPUが1パルス駆動する毎に
±4カウントUPしている疑似カウンタ値と比較すると
その差が+1となり、脱調エラーとなる。
As an example, the counter UP (outward path) will be described with reference to FIG. The previous counter value is 0,
Normally, during one pulse drive, 4 CLKs are generated like a-1 to a-4, the +4 counter is updated, and the position counter value of the position counter means 22 becomes 4.
Due to some cause, 1 during 1 pulse drive of CR motor
If the carriage is main-scanned by an extra 20 DPI, the position counter value becomes 5, and the difference becomes +1 when compared with the pseudo counter value that is up by ± 4 counts each time the CPU drives one pulse, and a step out error occurs. .

【0022】上記エラー以外の場合は、更新した疑似位
置カウンタ値をメモリ手段27に格納し(S18)、そ
の他のCPUの処理(S6)へ戻る。メモリ手段として
は、外部RAMまたはCPU内部RAMのどちらでもよ
い。
In cases other than the above error, the updated pseudo position counter value is stored in the memory means 27 (S18), and the process returns to the other CPU processing (S6). The memory means may be an external RAM or a CPU internal RAM.

【0023】(実施例2)図9に実施例1の構成図を示
す。CRモータ21を駆動するためのCRモータ駆動用
ドライバ20、CRモータ駆動用ドライバ20に対して
励磁相を発生するCPU2、キャリッジの主走査方向と
並行にコードパターンの付加されたフィルムのコードパ
ターンを光学的に読み取るセンサ手段23、該センサ手
段からの出力を用いて、CPU処理とは非同期にモータ
が1パルス駆動する毎に位置カウンタが一定値更新する
ようなカウンタUP/DOWNする位置カウンタ手段2
2、カウンタ値を記憶しておくメモリ手段27、ホーム
ポジション18を光学的に検出するホームポジションセ
ンサ手段28で構成される。
(Second Embodiment) FIG. 9 shows a block diagram of the first embodiment. A CR motor driving driver 20 for driving the CR motor 21, a CPU 2 that generates an excitation phase for the CR motor driving driver 20, a code pattern of a film to which a code pattern is added in parallel with the main scanning direction of the carriage. A sensor means 23 for optically reading, and a position counter means 2 for performing a counter UP / DOWN such that the position counter updates a constant value every time the motor is driven by one pulse asynchronously with the CPU processing by using the output from the sensor means 23.
2. A memory means 27 for storing the counter value and a home position sensor means 28 for optically detecting the home position 18.

【0024】図10のフローチャートに従って説明す
る。キャリッジの割り込みが発生(S1)するとCPU
2は、モータ駆動回路9のCRモータ駆動用ドライバに
対して励磁相を発生する(S2)。励磁相に従い、該C
Rモータ駆動用ドライバは、CRモータ6を駆動し(S
3)、被記録材に沿ってキャリッジが主操作する(S
4)。キャリッジの主走査に伴い、エンコーダセンサ1
9は、120DPIのコードフィルム15のコードパタ
ーンを検出し、コントロール基板上のGA4内の位置カ
ウンタ手段22に出力する。キャリッジのモータが、1
パルス駆動する間に位置カウンタは、往路、復路を考慮
すると±4更新される(S13)。CPU2は、GA4
に対して、位置カウンタREAD用のアドレスを出力
し、位置カウンタ値をREADする(S14)。CPU
2は、正常にキャリッジが走査した場合の位置カウンタ
値を想定し、CRモータの1パルス駆動励磁をする毎
に、前回1パルス駆動時の疑似カウンタ値をメモリ手段
27から引き出してきて、±4(往復路)更新していく
(S15)。更新後の疑似カウンタ値と実際の位置カウ
ンタ手段22からリードしてきた位置カウンタ値と比較
し(S16)、±4以上が否かを判断し(S17)、±
1以上なら±4以上なら、脱調検出とし(S11)、エ
ラーとする(S12)。(S17)での値は、画像品
位、スループットとの兼ね合いで設定するものであり、
ここでは仮に±4とする。更新後の疑似カウンタ値と実
際、位置カウンタ手段22からリードしてきた位置カウ
ンタ値と比較して±1以上±3以下の場合は、位置ずれ
をフラグを立ててから(S20)、更新した疑似位置カ
ウンタ値をメモリ手段27に格納し(S18)、その他
のCPUの処理(S6)へ戻る。
A description will be given according to the flowchart of FIG. When a carriage interrupt occurs (S1), the CPU
2 generates an excitation phase for the CR motor drive driver of the motor drive circuit 9 (S2). According to the excitation phase, the C
The R motor driving driver drives the CR motor 6 (S
3) The main operation of the carriage along the recording material (S
4). Encoder sensor 1 along with the main scan of the carriage
9 detects the code pattern of the code film 15 of 120 DPI and outputs it to the position counter means 22 in the GA 4 on the control board. Carriage motor is 1
During pulse driving, the position counter is updated by ± 4 considering the forward and backward passes (S13). CPU2 is GA4
, The address for position counter READ is output and the position counter value is read (S14). CPU
Assuming a position counter value when the carriage scans normally, 2 is ± 4 each time the CR motor is excited by one pulse and the pseudo counter value at the previous one-pulse drive is fetched from the memory means 27. (Round way) Updating (S15). The updated pseudo counter value is compared with the actual position counter value read from the position counter means 22 (S16), and it is determined whether ± 4 or more (S17).
If it is 1 or more, if it is ± 4 or more, a step out detection is made (S11), and an error is made (S12). The value in (S17) is set in consideration of image quality and throughput,
Here, it is temporarily set to ± 4. When the updated pseudo counter value is actually compared with the position counter value read from the position counter means 22 and is ± 1 or more and ± 3 or less, a position deviation is flagged (S20), and then the updated pseudo position is set. The counter value is stored in the memory means 27 (S18), and the process returns to the other CPU processing (S6).

【0025】被記録材の搬送方向(副走査方向)へ紙を
送るためのラインフィード処理が発生して(S21)、
ラインフィード処理が終了した後(S22)、位置ずれ
フラグが立っているかどうかチェックする(S23)。
位置ずれフラグが立っていない場合は、その他のCPU
の処理(S6)へ戻る。位置ずれフラグが立っている場
合は、キャリッジ14を主走査し(S24)、キャリッ
ジ14下部に設置されたホームポジションセンサ17に
より、ホームポジション18を検出し(S7)、CPU
2は、位置ずれを修正するため、位置カウンタ手段22
の位置カウンタをリセット(S25)、および、メモリ
手段27に格納されている疑似位置カウンタ値を0クリ
アし(S26)、位置ずれフラグも初期化する(S2
7)。その後、その他のCPUの処理(S6)へ戻る。
Line feed processing for feeding the paper in the conveying direction of the recording material (sub-scanning direction) occurs (S21),
After the line feed process is completed (S22), it is checked whether or not the position shift flag is set (S23).
If the misalignment flag is not set, the other CPU
The process returns to step S6. If the position deviation flag is set, the carriage 14 is scanned in the main direction (S24), the home position sensor 17 installed below the carriage 14 detects the home position 18 (S7), and the CPU
2 is a position counter means 22 for correcting the position shift.
The position counter is reset (S25), the pseudo position counter value stored in the memory means 27 is cleared to 0 (S26), and the position shift flag is also initialized (S2).
7). After that, the process returns to the other CPU processing (S6).

【0026】[0026]

【発明の効果】実施例1の発明の効果上述で説明したよ
うに本構成によれば、キャリッジの位置が、最小120
DPIずれたことを検出することが可能である。また、
コードフィルムのコードパターンピッチを細かくしてい
けば、さらに小さなキャリッジの位置ずれも検出可能で
ある。
As described above, according to the present configuration, the carriage position is at least 120.
It is possible to detect a DPI shift. Also,
If the code pattern pitch of the code film is made finer, even a smaller displacement of the carriage can be detected.

【0027】実施例2の発明の効果実際のキャリッジの
主走査制御においては、キャリッジの速度変動、またメ
カ公差のバラつきやモータドライバの特性のバラつき等
の影響により、微小な位置ずれが発生する場合がある。
その様な位置ずれが発生した時、本構成によれば、脱調
エラーとしてホストから入ってきたデータを捨てること
をしないで位置ずれを修正することにより、印字が続行
可能である。
Effect of the Invention of Embodiment 2 In the actual main scanning control of the carriage, when a minute positional deviation occurs due to variations in the speed of the carriage, variations in mechanical tolerances, variations in motor driver characteristics, etc. There is.
When such a positional deviation occurs, according to the present configuration, printing can be continued by correcting the positional deviation without discarding the data input from the host as a step out error.

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

【図1】図1は、記録装置の構成図である。FIG. 1 is a configuration diagram of a recording device.

【図2】図2は、記録装置外形図である。FIG. 2 is an external view of a recording device.

【図3】図3は、従来例の脱調検出フローチャートであ
る。
FIG. 3 is a step-out detection flowchart of a conventional example.

【図4】図4は、実施例1の構成図である。FIG. 4 is a configuration diagram of the first embodiment.

【図5】図5は、エンコーダセンサの概略図である。FIG. 5 is a schematic diagram of an encoder sensor.

【図6】図6は、位置カウンタ手段22の構成図であ
る。
FIG. 6 is a configuration diagram of a position counter means 22.

【図7】図7は、CRパルスと位置カウンタの説明図で
ある。
FIG. 7 is an explanatory diagram of a CR pulse and a position counter.

【図8】図8は、実施例1の制御フローチャートであ
る。
FIG. 8 is a control flowchart of the first embodiment.

【図9】図9は、実施例2の構成図である。FIG. 9 is a configuration diagram of a second embodiment.

【図10】図10は、実施例2の制御フローチャートで
ある。
FIG. 10 is a control flowchart of the second embodiment.

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

1 ホスト 2 CPU 3 ROM 4 GA 5 RAM 6 CRモータ 7 LFモータ 8 ASFモータ 9 モータ駆動回路 10 記録ヘッド 11 ヘッド制御回路 12 操作パネル 13 パネル制御回路 14 キャリッジ 15 コードフィルム 17 ホームポジションセンサ 18 ホームポジション 19 エンコーダセンサ 20 CRモータ駆動用ドライバ 22 位置カウンタ手段 23 コードフィルムパターン検出手段 24 ロジックフィルター 25 往復路CLK作成回路 26 UP/DOWNカウンタ(位置カウンタ) 27 メモリ手段 28 ホームポジションセンサ手段 1 Host 2 CPU 3 ROM 4 GA 5 RAM 6 CR Motor 7 LF Motor 8 ASF Motor 9 Motor Drive Circuit 10 Recording Head 11 Head Control Circuit 12 Operation Panel 13 Panel Control Circuit 14 Carriage 15 Code Film 17 Home Position Sensor 18 Home Position 19 Encoder sensor 20 CR motor driving driver 22 Position counter means 23 Code film pattern detecting means 24 Logic filter 25 Round-trip path CLK creating circuit 26 UP / DOWN counter (position counter) 27 Memory means 28 Home position sensor means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 被記録材に沿って移動(主走査)するキ
ャリッジ用のモータを駆動するためのCRモータ駆動用
ドライバと、CRモータ駆動用ドライバに対して励磁相
を発生するCPUと、キャリッジの主走査方向と並行に
コードパターンの付加されたフィルムのコードパターン
を読み取るセンサ手段と、該センサ手段からの出力を用
いて、モータが1パルス駆動する毎に位置カウント値を
一定値更新するようにカウンタUP/DOWNする位置
カウンタ手段と、該位置カウンタ手段のカウント値を記
憶しておくメモリ手段と、CPUが、1パルス、キャリ
ッジモータを駆動するための励磁相を発生する毎に疑似
的に疑似位置カウント値を一定値更新する疑似位置カウ
ンタと、前記位置カウンタ手段の位置カウント値と前記
疑似位置カウンタの疑似位置カウント値を比較するカウ
ンタ比較手段と、を有し、印字中に、前記カウンタ比較
手段により、両カウンタのカウント値を比較して脱調検
出を行う事を特徴とする記録装置。
1. A CR motor driving driver for driving a carriage motor that moves (main scanning) along a recording material, a CPU that generates an excitation phase for the CR motor driving driver, and a carriage. The sensor means for reading the code pattern of the film to which the code pattern is added in parallel with the main scanning direction of (1) and the output from the sensor means are used to update the position count value by a constant value every time the motor is driven by one pulse. Position counter means for counter UP / DOWN, a memory means for storing the count value of the position counter means, and a pseudo for each generation of the excitation phase for driving the carriage motor by the CPU for one pulse. A pseudo position counter for updating the pseudo position count value by a constant value; a position count value of the position counter means; And a counter comparing means for comparing pseudo position count values, wherein the counter comparing means compares the count values of both counters to detect a step out during printing.
【請求項2】 被記録材に沿って移動(主走査)するキ
ャリッジ用のモータを駆動するためのCRモータ駆動用
ドライバと、CRモータ駆動用ドライバに対して励磁相
を発生するCPUと、キャリッジの主走査方向と並行に
コードパターンの付加されたフィルムのコードパターン
を読み取るセンサ手段と、該センサ手段からの出力を用
いて、モータが1パルス駆動する毎に位置カウント値を
一定値更新するようにカウンタUP/DOWNする位置
カウンタ手段と、カウント値を記憶しておくメモリ手段
と、キャリッジのホームポジションを検出するホームポ
ジションセンサ手段と、CPUが、1パルス、キャリッ
ジモータを駆動するための励磁相を発生する毎に疑似的
に疑似位置カウント値を一定値更新する疑似位置カウン
タと、カウンタUP/DOWNする位置カウンタ手段の
位置カウント値と前記疑似位置カウンタの疑似位置カン
ウト値とを比較する比較手段と、を有し、印字中に、前
記カウンタ比較手段により、両カウンタのカウント値を
比較して脱調検出を行い、かつキャリッジの位置ずれが
所定値以下のとき、主走査方向の印字が1ライン終了
後、ホームポジション検出を行い、位置カウンタ手段の
位置カウント値と疑似位置カウンタの疑似位置カウント
値をリセットする事により、位置ずれを修正して印字の
続行を行う事を特徴とする記録装置。
2. A CR motor driving driver for driving a carriage motor that moves (main scanning) along a recording material, a CPU that generates an excitation phase for the CR motor driving driver, and a carriage. The sensor means for reading the code pattern of the film to which the code pattern is added in parallel with the main scanning direction of (1) and the output from the sensor means are used to update the position count value by a constant value every time the motor is driven by one pulse. Position counter means for UP / DOWN counter, memory means for storing the count value, home position sensor means for detecting the home position of the carriage, and an excitation phase for the CPU to drive the carriage motor for one pulse. A pseudo position counter for updating the pseudo position count value by a constant value each time / DOWN, and a comparison means for comparing the position count value of the position counter means with the pseudo position count value of the pseudo position counter, and during printing, the counter comparison means compares the count values of both counters. When the step-out detection is performed and the carriage position deviation is less than the predetermined value, the home position is detected after the printing of one line in the main scanning direction is completed, and the position count value of the position counter means and the pseudo position of the pseudo position counter are detected. A recording device characterized by correcting misalignment and continuing printing by resetting the count value.
JP18795795A 1995-06-30 1995-06-30 Recording apparatus Pending JPH0911572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18795795A JPH0911572A (en) 1995-06-30 1995-06-30 Recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18795795A JPH0911572A (en) 1995-06-30 1995-06-30 Recording apparatus

Publications (1)

Publication Number Publication Date
JPH0911572A true JPH0911572A (en) 1997-01-14

Family

ID=16215131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18795795A Pending JPH0911572A (en) 1995-06-30 1995-06-30 Recording apparatus

Country Status (1)

Country Link
JP (1) JPH0911572A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006016131A (en) * 2004-06-30 2006-01-19 Ricoh Co Ltd Sheet handling device and image forming device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006016131A (en) * 2004-06-30 2006-01-19 Ricoh Co Ltd Sheet handling device and image forming device

Similar Documents

Publication Publication Date Title
JP4887411B2 (en) Printing device
JPH0911572A (en) Recording apparatus
JP4439207B2 (en) Image forming method and apparatus
JP2907692B2 (en) Serial printer
JP6649694B2 (en) Recording apparatus and recording control method
JP2007030253A (en) Inkjet recording apparatus
JP4933672B2 (en) Printing device
JP5104445B2 (en) Printing apparatus and printing method
JP3609269B2 (en) Image forming method and apparatus
JPH1120204A (en) Ink jet recorder
JP2004216615A (en) Printer, program and computer system
JP2003175650A (en) Imaging apparatus
GB2233175A (en) Printer and stepping motor control
KR100210353B1 (en) Precision printing control apparatus of printer
JP4165359B2 (en) Liquid ejection apparatus and liquid ejection method
JP4481773B2 (en) Recording device
JPH11129495A (en) Method and mechanism for detecting residual quantity of ink in ink jet printer
JPH0995023A (en) Recorder and control method for lf motor in recorder
JPH0280274A (en) Printing device
JP2000168151A (en) Recording apparatus
JP3714422B2 (en) Inkjet printer
JP2002273964A (en) Serial ink jet printer
JP2010105248A (en) Recorder, and method of controlling recorder
US7377604B2 (en) Printer and method for printing thereof
JP4574887B2 (en) Inkjet printer