[go: up one dir, main page]

JP2005200222A - PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM - Google Patents

PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM Download PDF

Info

Publication number
JP2005200222A
JP2005200222A JP2005092449A JP2005092449A JP2005200222A JP 2005200222 A JP2005200222 A JP 2005200222A JP 2005092449 A JP2005092449 A JP 2005092449A JP 2005092449 A JP2005092449 A JP 2005092449A JP 2005200222 A JP2005200222 A JP 2005200222A
Authority
JP
Japan
Prior art keywords
paper
current value
paper feed
motor
encoder
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
JP2005092449A
Other languages
Japanese (ja)
Inventor
Hirotomo Tanaka
中 啓 友 田
Hidetoshi Kodama
玉 秀 俊 児
Masashi Furuyama
山 将 史 古
Toshiyuki Takahara
原 俊 行 高
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005092449A priority Critical patent/JP2005200222A/en
Publication of JP2005200222A publication Critical patent/JP2005200222A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Handling Of Cut Paper (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

【課題】 紙の端部近くまで印字することを可能にする。
【解決手段】 紙送りモータ1の回転に従って回転するエンコーダ13の出力パルスに基づいて紙送りモータによって駆動される紙の位置を検出する位置検出部6aと、前記紙送り量の目標値と位置検出部の出力とに基づいて紙送りモータに電流値を付加して紙送りモータを駆動制御する駆動制御部とを備えた印刷制御装置において、前記紙の送り量が前記目標値に到達してからの前記エンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生し、この電流値信号に基づいて前記紙送りモータを前記駆動制御部によって駆動制御するように構成したことを特徴とする。
【選択図】 図1
PROBLEM TO BE SOLVED: To make printing near the edge of paper.
A position detector 6a that detects the position of a paper driven by a paper feed motor based on an output pulse of an encoder 13 that rotates according to the rotation of the paper feed motor 1, and a target value and position detection of the paper feed amount. And a drive control unit that drives and controls the paper feed motor by adding a current value to the paper feed motor based on the output of the printing unit, and after the paper feed amount reaches the target value Based on the output pulse of the encoder, the paper movement is stopped, or a current value signal for moving the paper in the direction opposite to the normal paper feeding direction is generated, and the paper feeding motor is generated based on the current value signal. Is configured to be driven and controlled by the drive control unit.
[Selection] Figure 1

Description

本発明は印刷制御装置および印刷制御方法ならびに印刷制御プログラムを記録した記録媒体に関し、特に紙送りの制御に用いられる。   The present invention relates to a print control apparatus, a print control method, and a recording medium on which a print control program is recorded, and is particularly used for paper feed control.

従来の印刷制御装置を図5乃至図11を参照して説明する。この印刷制御装置はインクジェットプリンタに用いられ、このインクジェットプリンタの概略の構成を図5に示す。   A conventional print control apparatus will be described with reference to FIGS. This print control apparatus is used in an ink jet printer, and FIG. 5 shows a schematic configuration of the ink jet printer.

このインクジェットプリンタは、紙送りを行う紙送りモータ(以下、PFモータともいう)1と、この紙送りモータ1を駆動する紙送りモータドライバ2と、キャリッジ3と、このキャリッジ3を駆動するキャリッジモータ(以下、CRモータともいう)4と、このキャリッジモータ4を駆動するCRモータドライバ5と、DCユニット6と、目詰まり防止のためのインクの吸い出しを制御するポンプモータ7と、このポンプモータ7を駆動するポンプモータドライバ8と、キャリッジ3に固定されて印刷紙50にインクを吐出するヘッド9と、このヘッド9を駆動制御するヘッドドライバ10と、キャリッジ3に固定されたリニア式エンコーダ11と、所定の間隔にスリットが形成された符号板12と、PFモータ1用のロータリ式エンコーダ13と、印刷処理されている紙の終端位置を検出する紙検出センサ15と、プリンタ全体の制御を行うCPU16と、CPU16に対して周期的に割込み信号を発生するタイマIC17と、ホストコンピュータ18との間でデータの送受信を行うインタフェース部(以下IFともいう)19と、ホストコンピュータ18からIF19を介して送られてくる印字情報に基づいて印字解像度やヘッド9の駆動波形等を制御するASIC20と、ASIC20およびCPU16の作業領域やプログラム格納領域として用いられるPROM21,RAM22およびEEPROM23と、印刷中の紙50を支持するプラテン25と、PFモータ1によって駆動されて印刷紙50を搬送する搬送ローラ27と、CRモータ4の回転軸に取付けられたプーリ30と、このプーリ30によって駆動されるタイミングベルト31と、を備えている。   The ink jet printer includes a paper feed motor (hereinafter also referred to as a PF motor) 1 that feeds paper, a paper feed motor driver 2 that drives the paper feed motor 1, a carriage 3, and a carriage motor that drives the carriage 3. (Hereinafter also referred to as a CR motor) 4, a CR motor driver 5 that drives the carriage motor 4, a DC unit 6, a pump motor 7 that controls the suction of ink to prevent clogging, and the pump motor 7 A pump motor driver 8 that drives the head 9, a head 9 that is fixed to the carriage 3 and discharges ink onto the printing paper 50, a head driver 10 that drives and controls the head 9, and a linear encoder 11 that is fixed to the carriage 3. , A code plate 12 having slits formed at predetermined intervals, and a rotary encoder for the PF motor 1 , A paper detection sensor 15 that detects the end position of the paper being printed, a CPU 16 that controls the entire printer, a timer IC 17 that periodically generates an interrupt signal for the CPU 16, and a host computer 18 And an ASIC 20 for controlling the print resolution and the drive waveform of the head 9 based on the print information sent from the host computer 18 via the IF 19. A PROM 21, RAM 22 and EEPROM 23 used as work areas and program storage areas of the ASIC 20 and CPU 16, a platen 25 that supports the paper 50 being printed, and a transport roller 27 that is driven by the PF motor 1 to transport the print paper 50. And the prop attached to the rotary shaft of the CR motor 4 And Li 30, and a timing belt 31 driven by the pulley 30, the.

なお、DCユニット6は、CPU16から送られてくる制御指令、エンコーダ11,13の出力に基づいて紙送りモータドライバ2およびCRモータドライバ5を駆動制御する。また、紙送りモータ1およびCRモータ4はいずれもDCモータで構成されている。   The DC unit 6 controls the drive of the paper feed motor driver 2 and the CR motor driver 5 based on the control command sent from the CPU 16 and the outputs of the encoders 11 and 13. Both the paper feed motor 1 and the CR motor 4 are DC motors.

このインクジェットプリンタのキャリッジ3の周辺の構成を図6に示す。   The configuration around the carriage 3 of this ink jet printer is shown in FIG.

キャリッジ3は、タイミングベルト31によりプーリ30を介してキャリッジモータ4に接続され、ガイド部材32に案内されてプラテン25に平行に移動するように駆動される。キャリッジ3の印刷紙に対向する面には、ブラックインクを吐出するノズル列およびカラーインクを吐出するノズル列からなる記録ヘッド9が設けられ、各ノズル列はインクカートリッジ34からインクの供給を受けて印刷紙にインク滴を吐出して文字や画像を印字する。   The carriage 3 is connected to the carriage motor 4 via a pulley 30 by a timing belt 31 and is driven so as to move parallel to the platen 25 while being guided by a guide member 32. On the surface of the carriage 3 facing the printing paper, there is provided a recording head 9 comprising a nozzle row for ejecting black ink and a nozzle row for ejecting color ink. Each nozzle row is supplied with ink from the ink cartridge 34. Characters and images are printed by ejecting ink droplets onto printing paper.

またキャリッジ3の非印字領域には、非印字時に記録ヘッド9のノズル開口を封止するためのキャッピング装置35と、図5に示すポンプモータ7を有するポンプユニット36とが設けられている。キャリッジ3が印字領域から非印字領域に移動すると、図示しないレバーに当接してキャッピング装置35は上方に移動し、ヘッド9を封止する。   In the non-printing area of the carriage 3, a capping device 35 for sealing the nozzle openings of the recording head 9 during non-printing and a pump unit 36 having the pump motor 7 shown in FIG. 5 are provided. When the carriage 3 moves from the printing area to the non-printing area, the capping device 35 moves upward by contacting a lever (not shown) and seals the head 9.

ヘッド9のノズル開口列に目詰まりが生じた場合や、カートリッジ34の交換等を行ってヘッド9から強制的にインクを吐出する場合は、ヘッド9を封止した状態でポンプユニット36を作動させ、ポンプユニット36からの負圧により、ノズル開口列からインクを吸い出す。これにより、ノズル開口列の近傍に付着している塵埃や紙粉が洗浄され、さらにはヘッド9内の気泡がインクとともにキャップ37に排出される。   When the nozzle opening row of the head 9 is clogged or when the ink is forcibly ejected from the head 9 by replacing the cartridge 34 or the like, the pump unit 36 is operated with the head 9 sealed. The ink is sucked out from the nozzle opening row by the negative pressure from the pump unit 36. As a result, dust and paper dust adhering to the vicinity of the nozzle opening row are washed, and air bubbles in the head 9 are discharged to the cap 37 together with ink.

次に、キャリッジ3に取付けられたリニア式エンコーダ11の構成を図7に示す。このエンコーダ11は発光ダイオード11aと、コリメータレンズ11bと、検出処理部11cとを備えている。この検出処理部11cは複数(4個)のフォトダイオード11dと、信号処理回路11eと、2個のコンパレータ11f ,11fと、を有している。 Next, the configuration of the linear encoder 11 attached to the carriage 3 is shown in FIG. The encoder 11 includes a light emitting diode 11a, a collimator lens 11b, and a detection processing unit 11c. The detection processing unit 11c includes a plurality (four) of photodiodes 11d, a signal processing circuit 11e, and two comparators 11f A and 11f B.

発光ダイオード11aの両端に抵抗を介して電圧Vccが印加されると、発光ダイオード11aから光が発せられる。この光はコリメータレンズ11bによって平行にされて符号板12を通過する。符号板12には所定の間隔(例えば1/180インチ(=1/180×2.54cm))毎にスリットが設けられた構成となっている。   When the voltage Vcc is applied to both ends of the light emitting diode 11a via a resistor, light is emitted from the light emitting diode 11a. This light is collimated by the collimator lens 11b and passes through the code plate 12. The code plate 12 has a configuration in which slits are provided at predetermined intervals (for example, 1/180 inch (= 1/180 × 2.54 cm)).

この符号板12を通過した平行光は、図示しない固定スリットを通って各フォトダイオード11dに入射し、電気信号に変換される。4個のフォトダイオード11dから出力される電気信号が信号処理回路11eにおいて信号処理される。この信号処理回路11eから出力される信号がコンパレータ11f,11fにおいて比較され、比較結果がパルスとして出力される。コンパレータ11f、11f から出力されるパルスENC−A,ENC−Bがエンコーダ11の出力となる。 The parallel light that has passed through the code plate 12 enters each photodiode 11d through a fixed slit (not shown) and is converted into an electrical signal. The electric signals output from the four photodiodes 11d are processed in the signal processing circuit 11e. The signals output from the signal processing circuit 11e are compared in the comparators 11f A and 11f B , and the comparison result is output as a pulse. Pulses ENC-A and ENC-B output from the comparators 11 f A and 11 f B are output from the encoder 11.

パルスENC−AとパルスENC−Bは位相が90度だけ異なっている。CRモータ4が正転すなわちキャリッジ3が主走査方向に移動しているときは図8(a)に示すようにパルスENC−AはパルスENC−Bよりも90度だけ位相が進み、CRモータ4が逆転しているときは図8(b)に示すようにパルスENC−AはパルスENC−Bよりも90度だけ位相が遅れるようにエンコーダ4は構成されている。そして、上記パルスの1周期Tは符号板12のスリット間隔(例えば1/180インチ(=1/180×2.54cm))に対応し、 キャリッジ3が上記スリット間隔を移動する時間に等しい。   The phases of the pulse ENC-A and the pulse ENC-B are different by 90 degrees. When the CR motor 4 is rotating forward, that is, when the carriage 3 is moving in the main scanning direction, the phase of the pulse ENC-A is advanced by 90 degrees from the pulse ENC-B as shown in FIG. As shown in FIG. 8B, the encoder 4 is configured such that the phase of the pulse ENC-A is delayed by 90 degrees from the pulse ENC-B. One period T of the pulse corresponds to a slit interval (for example, 1/180 inch (= 1/180 × 2.54 cm)) of the code plate 12, and is equal to a time for the carriage 3 to move the slit interval.

一方、PFモータ1用のロータリ式エンコーダ13は符号板がPFモータ1の回転に応じて回転する回転円板である以外は、リニア式エンコーダ11と同様の構成となっており、2つの出力パルスENC−A,ENC−Bを出力する。なおインクジェットプリンタにおいては、PFモータ1用のエンコーダ13の符号板に設けられている複数のスリットのスリット間隔は、1/180インチ(=1/180×2.54cm)であり、PFモータ1が上記1スリット間隔だけ回転すると、1/1440インチ(=1/1440×2.54cm)だけ紙送りされるような構成となっている。   On the other hand, the rotary encoder 13 for the PF motor 1 has the same configuration as that of the linear encoder 11 except that the code plate is a rotating disc that rotates in accordance with the rotation of the PF motor 1, and has two output pulses. ENC-A and ENC-B are output. In the ink jet printer, the slit interval of the plurality of slits provided on the code plate of the encoder 13 for the PF motor 1 is 1/180 inch (= 1/180 × 2.54 cm). When rotated by the 1 slit interval, the paper is fed by 1/1440 inch (= 1/1440 × 2.54 cm).

次に図5において示した紙検出センサ15の位置について図9を参照して説明する。図9において、プリンタ60の給紙挿入口61に挿入された紙50は、給紙モータ63によって駆動される給紙ローラ64によってプリンタ60内に送り込まれる。プリンタ60内に送り込まれた紙50の先端が例えば光学式の紙検出センサ15によって検出される。この紙検出センサ15によって先端が検出された紙50はPFモータ1によって駆動される紙送りローラ65および従動ローラ66によって紙送りが行われる。   Next, the position of the paper detection sensor 15 shown in FIG. 5 will be described with reference to FIG. In FIG. 9, the paper 50 inserted into the paper feed insertion slot 61 of the printer 60 is fed into the printer 60 by a paper feed roller 64 driven by a paper feed motor 63. The leading edge of the paper 50 fed into the printer 60 is detected by, for example, the optical paper detection sensor 15. The paper 50 whose leading edge is detected by the paper detection sensor 15 is fed by a paper feed roller 65 and a driven roller 66 driven by the PF motor 1.

続いてキャリッジガイド部材32に沿って移動するキャリッジ3に固定された記録ヘッド(図示せず)からインクが滴下されることにより印字が行われる。そして所定の位置まで紙送りが行われると、現在、印字されている紙50の終端が紙検出センサ15によって検出される。そしてPFモータ1によって駆動される歯車67aにより、歯車67bを介して歯車67cが駆動され、これにより、排紙ローラ68および従動ローラ69が回転駆動されて、印字が終了した紙50が排紙口62から外部に排出される。なお、紙送りローラ65の回転軸には、エンコーダ13の符号板が取り付けられている。   Subsequently, printing is performed by dropping ink from a recording head (not shown) fixed to the carriage 3 that moves along the carriage guide member 32. When the paper is fed to a predetermined position, the end of the currently printed paper 50 is detected by the paper detection sensor 15. Then, the gear 67c driven by the PF motor 1 drives the gear 67c via the gear 67b, whereby the paper discharge roller 68 and the driven roller 69 are rotationally driven, and the paper 50 that has finished printing is discharged into the paper discharge port. 62 is discharged to the outside. A sign plate of the encoder 13 is attached to the rotation shaft of the paper feed roller 65.

次に、この従来のインクジェットプリンタのPFモータ1の制御について図10および図11を参照して説明する。このPFモータ1の制御はDCユニット6によって行われ、このDCユニット6は図10に示すように位置カウンタ6aと、減算部6bと、目標速度演算部6cと、速度演算部6dと、減算器6eと、比例要素6fと、積分要素6gと、微分要素6hと、加算器6iと、D/Aコンバータ6jと、タイマ6kと、加速制御部6mとを備えている。   Next, control of the PF motor 1 of this conventional ink jet printer will be described with reference to FIGS. The PF motor 1 is controlled by a DC unit 6. The DC unit 6 has a position counter 6a, a subtractor 6b, a target speed calculator 6c, a speed calculator 6d, and a subtractor as shown in FIG. 6e, a proportional element 6f, an integral element 6g, a differential element 6h, an adder 6i, a D / A converter 6j, a timer 6k, and an acceleration controller 6m.

位置カウンタ6aはエンコーダ13の出力パルスENC−A,ENC−Bの各々の立ち上がりエッジ、立ち下がりエッジを検出し、検出されたエッジの個数を計数し、この計数値に基づいて、PFモータ1によって送られる紙の送り量を演算する。この計数はPFモータ1が正転しているときは1個のエッジが検出されると「+1」を加算し、逆転しているときは、1個のエッジが検出されると「−1」を加算する。パルスENC−AおよびENC−Bの各々の周期は符号板のスリット間隔に等しく、かつパルスENC−AとパルスENC−Bは位相が90度だけ異なっている。このため、上記計数のカウント値「1」はエンコーダ13の符号板のスリット間隔の1/4に対応する。また、PFモータ1が1スリット間隔だけ回転すると、1/1440インチ(=1/1440×2.54cm)だけ紙送りされるからこれにより上記位置カウンタ6aの計数値に1/4×1/1440インチ(=1/4×1/1440×2.54cm)を乗算すれば、PFモータ1の、計数値が「0」に対応する位置すなわち起動開始位置からの紙送り量を求めることができる。このときエンコーダ13の解像度は1/5760インチ(=1/5760×2.54cm)となる。   The position counter 6a detects the rising edge and falling edge of each of the output pulses ENC-A and ENC-B of the encoder 13, counts the number of detected edges, and based on the counted value, the PF motor 1 Calculate the amount of paper to be sent. This count is incremented by "+1" when one edge is detected when the PF motor 1 is rotating forward, and is "-1" when one edge is detected when rotating reversely. Is added. The period of each of the pulses ENC-A and ENC-B is equal to the slit interval of the code plate, and the pulse ENC-A and the pulse ENC-B are different in phase by 90 degrees. For this reason, the count value “1” of the count corresponds to ¼ of the slit interval of the code plate of the encoder 13. Further, when the PF motor 1 is rotated by one slit interval, paper is fed by 1/1440 inch (= 1/1440 × 2.54 cm), so that the count value of the position counter 6a is reduced to 1/4 × 1/1440. By multiplying by inch (= 1/4 × 1/1440 × 2.54 cm), the paper feed amount from the position corresponding to the count value “0” of the PF motor 1, that is, the start start position can be obtained. At this time, the resolution of the encoder 13 is 1/5760 inch (= 1/5760 × 2.54 cm).

減算器6bは、目標位置と、位置カウンタ6aのカウント値との位置偏差を演算する。   The subtractor 6b calculates a position deviation between the target position and the count value of the position counter 6a.

目標速度演算部6cは、減算器6bの出力である位置偏差に基づいてPFモータ1の目標速度を演算する。この演算は位置偏差にゲインKpを乗算することにより行われる。このゲインKpは位置偏差に応じて決定される。なお、このゲインKpの値は図示しないテーブルに格納していても良い。   The target speed calculator 6c calculates the target speed of the PF motor 1 based on the position deviation that is the output of the subtractor 6b. This calculation is performed by multiplying the position deviation by the gain Kp. This gain Kp is determined according to the position deviation. Note that the value of the gain Kp may be stored in a table (not shown).

速度演算部6dはエンコーダ13の出力パルスENC−A,ENC−Bに基づいてPFモータ1の速度を演算する。この速度は次のようにして求められる。まずエンコーダ13の出力パルスENC−A,ENC−Bの各々の立ち上がりエッジ、立ち下がりエッジを検出し、エッジ間の時間間隔を例えばタイマカウンタによってカウントする。このカウント値をTとすると、速度は1/Tに比例したものとなる。   The speed calculation unit 6 d calculates the speed of the PF motor 1 based on the output pulses ENC-A and ENC-B of the encoder 13. This speed is obtained as follows. First, the rising edge and the falling edge of each of the output pulses ENC-A and ENC-B of the encoder 13 are detected, and the time interval between the edges is counted by, for example, a timer counter. When this count value is T, the speed is proportional to 1 / T.

減算器6eは、目標速度と、速度演算部6dによって演算されたPFモータ1の実際の速度との速度偏差を演算する。   The subtractor 6e calculates a speed deviation between the target speed and the actual speed of the PF motor 1 calculated by the speed calculation unit 6d.

比例要素6fは上記速度偏差に定数Gpを乗算し、乗算結果を出力する。積分要素6gは速度偏差に定数Giを乗じたものを積算する。微分要素6hは現在の速度偏差と、1つ前の速度偏差との差に定数Gdを乗算し、乗算結果を出力する。なお比例要素6f、積分要素6g、および微分要素6hの演算はエンコーダ13の出力パルスENC−Aの1周期毎を、例えば出力パルスENC−Aの立ち上がりエッジに同期して行う。   The proportional element 6f multiplies the speed deviation by a constant Gp and outputs the multiplication result. The integrating element 6g integrates the speed deviation multiplied by a constant Gi. The differentiation element 6h multiplies the difference between the current speed deviation and the previous speed deviation by a constant Gd, and outputs the multiplication result. The calculation of the proportional element 6f, the integral element 6g, and the derivative element 6h is performed every period of the output pulse ENC-A of the encoder 13 in synchronization with, for example, the rising edge of the output pulse ENC-A.

比例要素6f、積分要素6g、および微分要素6hの出力は加算器6iにおいて加算される。そして加算結果、すなわちPFモータ1の駆動電流がD/Aコンバータ6jに送られてアナログ電流に変換される。このアナログ電流に基づいてドライバ2によってPFモータ1が駆動される。   Outputs of the proportional element 6f, the integral element 6g, and the derivative element 6h are added by the adder 6i. Then, the addition result, that is, the driving current of the PF motor 1 is sent to the D / A converter 6j and converted into an analog current. The PF motor 1 is driven by the driver 2 based on the analog current.

また、タイマ6kおよび加速制御部6mは加速制御に用いられ、比例要素6f、積分要素6g、および微分要素6hを使用するPID制御は加速途中の定速および減速制御に用いられる。   The timer 6k and the acceleration control unit 6m are used for acceleration control, and the PID control using the proportional element 6f, the integral element 6g, and the derivative element 6h is used for constant speed and deceleration control during acceleration.

タイマ6kはCPU16から送られてくるクロック信号に基づいて所定時間毎にタイマ割込み信号を発生する。   The timer 6k generates a timer interrupt signal every predetermined time based on the clock signal sent from the CPU 16.

加速制御部6mは上記タイマ割込信号を受ける度毎に所定の電流値(例えば20mA)を目標電流値に積算し、積算結果すなわち加速時におけるPFモータ1の目標電流値がD/Aコンバータ6jに送られる。PID制御の場合と同様に上記目標電流値はD/Aコンバータ6jによってアナログ電流に変換され、このアナログ電流に基づいてドライバ2によってPFモータ1が駆動される。   Every time the acceleration control unit 6m receives the timer interrupt signal, the acceleration control unit 6m integrates a predetermined current value (for example, 20 mA) to the target current value, and the integration result, that is, the target current value of the PF motor 1 at the time of acceleration is obtained as the D / A converter 6j. Sent to. As in the case of PID control, the target current value is converted into an analog current by the D / A converter 6j, and the PF motor 1 is driven by the driver 2 based on this analog current.

ドライバ2は、例えば4個のトランジスタを備えており、D/Aコンバータ6jの出力に基づいて上記トランジスタを各々ONまたはOFFさせることにより
(a)PFモータ1を正転または逆転させる運転モード
(b)回生ブレーキ運転モード(ショートブレーキ運転モード、すなわちPFモータ1の停止を維持するモード)
(c)PFモータ1を停止させようとするモード
を行わせることが可能な構成となっている。
The driver 2 includes, for example, four transistors, and each of the transistors is turned on or off based on the output of the D / A converter 6j. (A) An operation mode in which the PF motor 1 is rotated forward or reverse (b ) Regenerative brake operation mode (short brake operation mode, that is, a mode in which the stop of the PF motor 1 is maintained)
(C) The configuration is such that a mode for stopping the PF motor 1 can be performed.

次に図11(a),(b)を参照してDCユニット6の動作を説明する。PFモータ1が停止しているときにCPU16からDCユニット6にPFモータ1を起動させる起動指令信号が送られると、加速制御部6mから起動初期電流値I がD/Aコンバータ6jに送られる。なお、この起動初期電流値Iは起動指令信号とともにCPU16から加速制御部6mに送られてくる。そしてこの電流値IはD/Aコンバータ6jによってアナログ電流に変換されてドライバ2に送られ、このドライバ2によってPFモータ1が起動開始する(図11(a),(b)参照)。 Next, the operation of the DC unit 6 will be described with reference to FIGS. 11 (a) and 11 (b). When a start command signal for starting the PF motor 1 is sent from the CPU 16 to the DC unit 6 when the PF motor 1 is stopped, the start initial current value I 0 is sent from the acceleration control unit 6m to the D / A converter 6j. . Note that the start initial current value I 0 is sent to the acceleration controller 6m from CPU16 together with the start-up command signal. The current value I 0 is converted into an analog current by the D / A converter 6j and sent to the driver 2, and the PF motor 1 starts to be started by the driver 2 (see FIGS. 11A and 11B).

起動指令信号を受信した後、所定の時間毎にタイマ6kからタイマ割込信号が発生される。加速制御部6mはタイマ割込信号を受信する度毎に、起動初期電流値Iに所定の電流値(例えば20mA)を積算し、積算した電流値をD/Aコンバータ6jに送る。するとこの積算した電流値はD/Aコンバータ6jによってアナログ電流に変換されてドライバ2に送られる。そしてPFモータ1に供給される電流の値が上記積算した電流値となるように、ドライバ2によってPFモータ1が駆動されPFモータ1の速度は上昇する(図11(b)参照)。このためPFモータ1に供給される電流値は図11(a)に示すように階段状になる。 After receiving the start command signal, a timer interrupt signal is generated from the timer 6k every predetermined time. Acceleration controller 6m each time receiving a timer interrupt signal, starts a predetermined current value to an initial current value I 0 by integrating (e.g. 20 mA), and sends the integrated current value to the D / A converter 6j. Then, the integrated current value is converted into an analog current by the D / A converter 6j and sent to the driver 2. Then, the PF motor 1 is driven by the driver 2 and the speed of the PF motor 1 is increased so that the value of the current supplied to the PF motor 1 becomes the integrated current value (see FIG. 11B). For this reason, the current value supplied to the PF motor 1 is stepped as shown in FIG.

なお、このときPID制御系も動作しているが、D/Aコンバータ6jは加速制御部6mの出力を選択して取込む。   At this time, the PID control system is also operating, but the D / A converter 6j selects and captures the output of the acceleration control unit 6m.

加速制御部6mの電流値の積算処理は、積算した電流値が一定の電流値Iとなるまで行われる。時刻tにおいて積算した電流値が所定値Iとなると、加速制御部6mは積算処理を停止し、D/Aコンバータ6jに一定の電流値Iを供給する。これによりPFモータ1に供給される電流の値が電流値Iとなるようにドライバ2によって駆動される(図11(a)参照)。 Integration process of the current value of the acceleration controller 6m is carried out until the integrated current value becomes a constant current value I S. When the current value obtained by integrating at time t 1 becomes the predetermined value I S, the acceleration controller 6m stops the integration processing, and supplies a constant current I S to the D / A converter 6j. Thus the value of the current supplied to the PF motor 1 is driven by the driver 2 so that the current value I S (see FIG. 11 (a)).

そして、PFモータ1の速度がオーバーシュートするのを防止するために、PFモータ1が所定の速度Vになると(時刻t )になると、PFモータ1に供給される電流を減小させるように加速制御部6mが制御する。このときPFモータ1の速度は更に上昇するが、PFモータ1の速度が所定の速度vに達すると(図11(b)の時刻t参照)、D/Aコンバータ6jが、PID制御系の出力すなわち加算器6iの出力を選択し、PID制御が行われる。 In order to prevent the speed of the PF motor 1 from overshooting, when the PF motor 1 reaches a predetermined speed V 1 (time t 2 ), the current supplied to the PF motor 1 is reduced. The acceleration control unit 6m controls. At this time PF speed of the motor 1 further increases, but the speed of the PF motor 1 reaches a predetermined speed v c (see time t 3 in FIG. 11 (b)), D / A converter 6j is, PID control system Output, that is, the output of the adder 6i is selected, and PID control is performed.

すなわち、目標位置と、カウンタ6aのカウント値との位置偏差に基づいて目標速度が演算され、この目標速度と、エンコーダ13の出力から得られる実際の速度との速度偏差に基づいて、比例要素6f、積分要素6g、および微分要素6hが動作し、各々比例、積分、および微分演算が行われ、これらの演算結果の和に基づいて、PFモータ1の制御が行われる。なお、上記比例、積分、および微分演算は、例えばエンコーダ13の出力パルスENC−Aの立ち上がりエッジに同期して行われる。これによりPFモータ1の速度は所望の速度vとな るように制御される。なお、所定の速度vは所望の速度vの70〜80%の値であることが好ましい。 That is, the target speed is calculated based on the position deviation between the target position and the count value of the counter 6a, and the proportional element 6f is calculated based on the speed deviation between the target speed and the actual speed obtained from the output of the encoder 13. The integral element 6g and the differential element 6h operate to perform proportional, integral and differential calculations, respectively, and the PF motor 1 is controlled based on the sum of these calculation results. The proportional, integral, and differential calculations are performed in synchronization with the rising edge of the output pulse ENC-A of the encoder 13, for example. Thus the speed of the PF motor 1 is controlled in so that such a desired speed v e. Incidentally, it is preferable that the predetermined speed v c 70 to 80% of the value of desired speed v e.

時刻tからPFモータ1は所望の速度vとなる。その後、PFモータ1が目標位置に近づくと(図11(b)の時刻t参照)、PFモータ1の減速が行われ、時刻tにPFモータ1が停止する。 PF motor 1 from the time t 4 is the desired speed v e. Thereafter, the PF motor 1 approaches the target position (see time t 5 in FIG. 11 (b)), deceleration of the PF motor 1 is carried out, the PF motor 1 is stopped at time t 6.

このように構成された従来の印刷制御装置においては、図9で説明したように紙送りは、PFモータ1によって駆動される紙送りローラ65および従動ローラ66によって行われる。この従動ローラ66は図12に示すように紙送り中にバネ80によって紙50を紙送りローラ65に押付けるように構成されている。   In the conventional print control apparatus configured as described above, the paper feed is performed by the paper feed roller 65 and the driven roller 66 driven by the PF motor 1 as described with reference to FIG. The driven roller 66 is configured to press the paper 50 against the paper feed roller 65 by a spring 80 during paper feed as shown in FIG.

一方、紙50の終端近くまで印字することが要求されつつある。このためには、紙50の終端を紙送りローラ65と、従動ローラ66とで図13に示す所定の範囲x(例えば紙送りローラ65の中心と従動ローラ66の中心を結ぶ線の前後0.25mmの範囲)に押えておく必要がある。   On the other hand, there is a demand for printing up to the end of the paper 50. For this purpose, the end of the paper 50 is bounded by a paper feed roller 65 and a driven roller 66 at a predetermined range x shown in FIG. (A range of 25 mm).

しかし、従来の印刷装置においては、従動ローラ66はバネ80によって紙送りローラ65側に押付けられるように構成されているため、紙50の終端が上記所定の範囲に位置するように紙送りが行われた場合には、図13に示すようにバネ80によって紙50が送り出されるような力Fが紙50に作用する。このため、紙50が紙送りローラ65と従動ローラ66との間から送り出されてしまい、紙50の終端近くの印字ができないという問題が生じる。   However, in the conventional printing apparatus, since the driven roller 66 is configured to be pressed against the paper feed roller 65 by the spring 80, the paper feed is performed so that the end of the paper 50 is positioned within the predetermined range. In the case of breakage, a force F such that the paper 50 is fed out by the spring 80 acts on the paper 50 as shown in FIG. For this reason, the paper 50 is fed out from between the paper feed roller 65 and the driven roller 66, and there arises a problem that printing near the end of the paper 50 cannot be performed.

本発明は上記事情を考慮してなされたものであって、紙の終端近くまで印字することが可能な印刷制御装置および印刷制御方法を提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a print control apparatus and a print control method capable of printing up to the end of paper.

本発明による印刷制御装置は、紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙送りモータによって駆動される紙の位置を検出する位置検出部と、前記紙送り量の目標値と前記位置検出部の出力とに基づいて前記紙送りモータに電流値を付加して、前記紙送りモータを駆動制御する駆動制御部とを備えた印刷制御装置において、前記紙の送り量が前記目標値に到達してからの前記エンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生し、この電流値信号に基づいて前記紙送りモータを前記駆動制御部によって駆動制御するように構成したことを特徴とする。   A printing control apparatus according to the present invention includes a position detection unit that detects the position of a paper driven by the paper feed motor based on an output pulse of an encoder that rotates according to the rotation of the paper feed motor, and a target value of the paper feed amount. A print control apparatus comprising: a drive control unit that drives and controls the paper feed motor by adding a current value to the paper feed motor based on the output of the position detection unit. Based on the output pulse of the encoder after reaching the value, the paper movement is stopped or a current value signal for moving the paper in the direction opposite to the normal paper feeding direction is generated. Based on this, the paper feed motor is configured to be driven and controlled by the drive control unit.

なお、前記紙の送り量が前記目標値に到達してから前記紙が通常の紙送り方向と逆方向に移動しているときの前記エンコーダの出力パルスをカウントし、カウント値が所定値となったときに指令信号を出力するパルスカウンタと、前記指令信号を受信したとき、または前記紙が通常の紙送り方向と逆方向に移動しているときに、前記電流値信号を発生する電流値信号発生部と、を備えるように構成しても良い。   The encoder output pulses are counted when the paper is moving in the direction opposite to the normal paper feed direction after the paper feed amount reaches the target value, and the count value becomes a predetermined value. A pulse counter that outputs a command signal when the command signal is received, and a current value signal that generates the current value signal when the command signal is received or when the paper is moving in a direction opposite to the normal paper feed direction And a generator.

なお、前記電流値信号発生部は、前記エンコーダの出力に基づいて前記紙が停止しているかまたは通常の紙送り方向と逆方向に移動しているかを検出する検出手段と、前記指令信号または前記検出手段の検出結果に基づいて前記電流値信号を決定し、出力する電流値決定手段と、を備えるように構成しても良い。   The current value signal generator is configured to detect, based on the output of the encoder, whether the paper is stopped or moving in a direction opposite to a normal paper feeding direction, the command signal or the A current value determining unit that determines and outputs the current value signal based on the detection result of the detecting unit may be provided.

なお、前記電流値決定手段は、前記紙が停止している場合は、直前の電流値信号と同じ電流値信号を出力し、前記紙が通常の紙送り方向と逆方向に移動しているときは前回よりも絶対値が小さいが符号が同一の電流値信号を発生するように構成しても良い。   The current value determining means outputs the same current value signal as the previous current value signal when the paper is stopped, and the paper is moving in the direction opposite to the normal paper feeding direction. May be configured to generate a current value signal having a smaller absolute value than the previous one but the same sign.

また、本発明による印刷制御方法は、紙の送り量が目標値に到達してからの、紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生するステップと、この電流値信号に基づいて前記紙送りモータを駆動制御するステップと、を備えたこと特徴とする。   Further, the printing control method according to the present invention may stop the movement of the paper based on the output pulse of the encoder that rotates according to the rotation of the paper feed motor after the paper feed amount reaches the target value, or The method includes a step of generating a current value signal for moving the paper in a direction opposite to the paper feed direction, and a step of driving and controlling the paper feed motor based on the current value signal.

なお、前記電流信号を発生するステップは、前記紙が通常の紙送り方向と逆方向に移動しているときの前記エンコーダの出力パルスをカウントするステップと、前記出力パルスのカウント値が所定値になったときに前記電流値信号を発生するステップと、を備えるように構成しても良い。   The step of generating the current signal includes a step of counting output pulses of the encoder when the paper is moving in a direction opposite to a normal paper feeding direction, and a count value of the output pulse is set to a predetermined value. A step of generating the current value signal when the current value signal is reached.

また、本発明による印刷制御プログラムを記録した記録媒体は、紙の送り量が目標値に到達してからの、紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生する手順と、この電流値信号に基づいて前記紙送りモータを駆動制御する手順と、を備え、前記電流信号を発生する手順は、前記紙が通常の紙送り方向と逆方向に移動しているときの前記エンコーダの出力パルスをカウントする手順と、前記出力パルスのカウント値が所定値になったときに前記電流値信号を発生する手順と、を少なくとも備えるものである。   The recording medium on which the print control program according to the present invention is recorded stops the movement of the paper based on the output pulse of the encoder that rotates according to the rotation of the paper feed motor after the paper feed amount reaches the target value. Or a procedure for generating a current value signal for moving the paper in a direction opposite to a normal paper feeding direction, and a procedure for driving and controlling the paper feeding motor based on the current value signal. The steps of generating the encoder are the steps of counting the output pulses of the encoder when the paper is moving in the direction opposite to the normal paper feeding direction, and the count value of the output pulses reaches the predetermined value. And a procedure for generating a current value signal.

本発明によれば紙の終端を紙送りローラと従動ローラとの間の所定の範囲に保持することが可能となり、紙の終端近くまで印字することができる。   According to the present invention, the end of the paper can be held within a predetermined range between the paper feed roller and the driven roller, and printing can be performed up to the vicinity of the end of the paper.

本発明による印刷制御装置の一実施の形態を図1乃至図4を参照して説明する。この実施の形態の印刷制御装置の構成を図1に示す。この実施の形態の印刷制御装置6は、図10に示す従来の印刷制御装置6において、パルスカウンタ6pと、電流値信号発生部6qとを付加した構成となっている。パルスカウンタ6pおよび電流値信号発生部6q以外は図10で説明済のため、説明を省略する。   An embodiment of a print control apparatus according to the present invention will be described with reference to FIGS. The configuration of the print control apparatus of this embodiment is shown in FIG. The print control apparatus 6 of this embodiment has a configuration in which a pulse counter 6p and a current value signal generator 6q are added to the conventional print control apparatus 6 shown in FIG. Since the components other than the pulse counter 6p and the current value signal generator 6q have already been described with reference to FIG.

パルス数カウンタ6pおよび電流値信号発生部6qの構成および作用を図2乃至図4を参照して説明する。   The configuration and operation of the pulse number counter 6p and the current value signal generator 6q will be described with reference to FIGS.

電流値信号発生部6qは図2に示すように電流値決定手段71と、検出手段72と、を備えているように構成されている。   As shown in FIG. 2, the current value signal generator 6 q is configured to include a current value determination unit 71 and a detection unit 72.

今、紙送り後に紙50の終端が紙送りローラ65と従動ローラ66との間の所定の範囲(図13に示す範囲x)に位置するような目標位置がDCユニット6に与えられPFモータ1が起動している場合を考える。紙50の終端が紙送りローラ65と従動ローラ66との間の所定範囲内の目標位置に近づくにつれて減算器6bの出力である位置偏差は零に近づいていく。   Now, a target position is given to the DC unit 6 so that the end of the paper 50 is located within a predetermined range (range x shown in FIG. 13) between the paper feed roller 65 and the driven roller 66 after the paper feed. Suppose that is running. As the end of the paper 50 approaches the target position within a predetermined range between the paper feed roller 65 and the driven roller 66, the positional deviation, which is the output of the subtractor 6b, approaches zero.

減算器6bの出力である位置偏差が零になると、すなわち、目標位置に到達すると(図3のステップF1および図3の時刻t参照)、パルス数カウンタ6pがエンコーダ13の出力パルスENC−A、ENC−Bの立上がりおよび立下がりの数のカウントを開始する(図3のステップF2参照)。そしてそのカウント値が所定時間経過しても所定値(例えば5)未満の場合(ステップF3参照)は、紙50が紙送りローラ65と従動ローラ66との間の所定範囲内に保持されていると考え、制御を終了し、印字処理に移行する。 If the position deviation which is the output of the subtracter 6b becomes zero, i.e., when it reaches the target position (see time t 0 in FIG steps F1 and Figure 3 3), the output pulse ENC-A of the pulse number counter 6p encoder 13 ENC-B starts counting the number of rising and falling edges (see step F2 in FIG. 3). If the count value is less than a predetermined value (for example, 5) even after a predetermined time has elapsed (see step F3), the paper 50 is held within a predetermined range between the paper feed roller 65 and the driven roller 66. The control is terminated and the process proceeds to the printing process.

なお、上記所定値を例えば5としたのは、DCモータは位置偏差が零のところに停止するのが難しく、位置偏差が±3以内の範囲に停止するのが一般的であるからである。   The reason why the predetermined value is set to 5, for example, is that it is difficult for the DC motor to stop at a position deviation of zero, and it is common to stop the position deviation within a range of ± 3.

カウント値が所定値(=5)以上となると(図3の時刻t参照)、パルスカウンタ6pから電流値信号発生部6qの電流値決定手段71に指令信号が送られる。すると、電流値信号発生部6qの電流値決定手段71から、PFモータ1が逆方向に回転するために必要な所定の電流値Iとなる電流値信号が決定され、D/Aコンバータ6jに送られる(図2のステップF4参照)。この所定の電流値Iは、例えば紙50の厚さに応じて決定されるものであり、例えばPFモータ1が逆方向に回転する電流値の絶対値のうちの最小値であって、予め、実験を行って求めておく。 Count value becomes a predetermined value (= 5) or more (see time t 1 in FIG. 3), the command signal is sent from the pulse counter 6p to the current value signal generator current determining means 71 of 6q. Then, a current value signal that becomes a predetermined current value I 1 required for the PF motor 1 to rotate in the reverse direction is determined from the current value determining means 71 of the current value signal generating unit 6q, and is supplied to the D / A converter 6j. Sent (see step F4 in FIG. 2). The predetermined current value I 1 is determined according to the thickness of the paper 50, for example. For example, the predetermined current value I 1 is a minimum value among the absolute values of the current value at which the PF motor 1 rotates in the reverse direction. Find out by conducting an experiment.

この所定の電流値Iとなる電流値信号はD/Aコンバータ6jによってアナログ電流指令値に変換され、ドライバ2に送出される。するとドライバ2によってPFモータ1に印加される電流値がIとなるようにPFモータ1が駆動される。なおこのとき、加算器6iおよび加速制御部6mは動作しておらず、これらの出力は全て零である。また、上記所定の電流値Iとなる電流値信号信号はエンコーダ13の出力パルスENC−Bが”H”レベルのとき、すなわち図4に示す時刻tからtまでの間、電流値信号発生部6qから出力される。 The current value signal having the predetermined current value I 1 is converted into an analog current command value by the D / A converter 6 j and sent to the driver 2. Then, the PF motor 1 is driven so that the current value applied to the PF motor 1 by the driver 2 becomes I 1 . At this time, the adder 6i and the acceleration control unit 6m are not operating, and their outputs are all zero. The current value signal signal having the predetermined current value I 1 is a current value signal when the output pulse ENC-B of the encoder 13 is at “H” level, that is, from time t 1 to time t 2 shown in FIG. Output from the generator 6q.

これにより、PFモータ1が逆転されるか、または停止する。このPFモータ1が停止したか否かが、エンコーダ13の出力パルスに基づいて電流値信号発生部6qの検出手段72によって検出される(図3のステップF5参照)。   As a result, the PF motor 1 is reversed or stopped. Whether or not the PF motor 1 has stopped is detected by the detection means 72 of the current value signal generator 6q based on the output pulse of the encoder 13 (see step F5 in FIG. 3).

停止しなかったと判定された場合は、前回よりも絶対値が小さいが符号が同一の電流値I(|I|<|I|)となる電流値信号が電流値信号発生部6qの電流値信号決定部71で決定され(図4の時刻t参照)、D/Aコンバータ6jに送られる(図3のステップF6参照)。これによりPFモータ1に付加される電流が電流値Iとなるように制御される。なお、この電流値Iとなる電流値信号はエンコーダ13の出力パルスENC−Bが”H”レベルのとき、すなわち図4に示す時刻tからtまでの間、電流値信号発生部6qから出力される。 If it is determined that the current has not stopped, a current value signal having a current value I 2 (| I 2 | <| I 1 |) having an absolute value smaller than that of the previous but the same sign is generated by the current value signal generator 6q. is determined by a current value signal determining section 71 (see time t 3 in FIG. 4), it is sent to the D / a converter 6j (see the step of FIG. 3 F6). Thus the current to be added to the PF motor 1 is controlled so that the current value I 2. Incidentally, during when the current value signal as a current value I 2 is the output pulse ENC-B is "H" level of the encoder 13, i.e. from the time t 3 when 4 to t 4, the current value signal generator 6q Is output from.

その後、ステップF5に戻り紙50が停止するまで上述のステップが繰り返される。ステップF5において、停止したと判定された場合は、紙50の終端が紙送りローラ65と従動ローラ66との間の所定範囲(図13に示す範囲x)に保持されていると考え、検出手段72から電流値決定手段71に信号が送られ、電流値決定手段71が電流値信号を出力し続ける(図4に示す時刻t参照)。 Thereafter, the process returns to step F5 and the above steps are repeated until the paper 50 stops. If it is determined in step F5 that the sheet has stopped, it is considered that the end of the paper 50 is held within a predetermined range (range x shown in FIG. 13) between the paper feed roller 65 and the driven roller 66, and the detection means 72 signal into a current value determining means 71 is sent from the current value determining means 71 continues to output a current value signal (see time t 5 shown in FIG. 4).

なお、電流値決定手段71によって、決定される電流値は、実験等によって予め求めておき、この求めた値をテーブルに格納し、このテーブルから取出すように構成することが好ましい。   The current value determined by the current value determining means 71 is preferably obtained in advance by experiments or the like, and the obtained value is stored in a table and taken out from this table.

以上説明したように本実施の形態によれば、紙50の終端を紙送りローラ65と従動ローラ66との間の所定範囲に保持することが可能となり、紙の終端近くまで印字することができる。   As described above, according to the present embodiment, the end of the paper 50 can be held within a predetermined range between the paper feed roller 65 and the driven roller 66, and printing can be performed to the vicinity of the end of the paper. .

次に、本発明によるモータの制御プログラムを記録した記録媒体の一実施の形態について図14および図15を参照して説明する。図14,図15は、本実施の形態のモータの制御プログラムを記録した記録媒体が用いられるコンピュータシステム130の一例を示す斜視図およびブロック図である。図14において、コンピュータシステム130は、CPUを含むコンピュータ本体131と、例えばCRT等の表示装置132と、キーボードやマウス等の入力装置133と、印刷を実行する印刷装置134と、を備えている。   Next, an embodiment of a recording medium on which a motor control program according to the present invention is recorded will be described with reference to FIGS. FIGS. 14 and 15 are a perspective view and a block diagram showing an example of a computer system 130 in which a recording medium recording a motor control program of the present embodiment is used. 14, a computer system 130 includes a computer main body 131 including a CPU, a display device 132 such as a CRT, an input device 133 such as a keyboard and a mouse, and a printing device 134 that executes printing.

コンピュータ本体131は、図15に示すように、RAMより構成される内部メモリ135と、内蔵または外付け可能なメモリユニット136と、を備えており、メモリユニット136としてはフレキシブルまたはフロッピディスク(FD)ドライブ137,CD−ROMドライブ138,ハードディスクドライブ(HD)ユニット139が搭載されている。図14に示すように、これらのメモリユニット136に用いられる記録媒体140としては、FDドライブ137のスロットに挿入されて使用されるフレキシブルディスクまたはフロッピディスク(FD)141と、CD−ROMドライブ138に用いられるCD−ROM142等が用いられる。   As shown in FIG. 15, the computer main body 131 includes an internal memory 135 composed of a RAM and a memory unit 136 that can be built in or externally attached. The memory unit 136 is a flexible or floppy disk (FD). A drive 137, a CD-ROM drive 138, and a hard disk drive (HD) unit 139 are installed. As shown in FIG. 14, the recording medium 140 used in these memory units 136 includes a flexible disk or floppy disk (FD) 141 used by being inserted into a slot of the FD drive 137, and a CD-ROM drive 138. The CD-ROM 142 or the like used is used.

図14および図15に示すように、一般的なコンピュータシステムに用いられる記録媒体140としては、FD141やCD−ROM142が考えられるが、本実施の形態は特に印刷装置134の制御プログラムに関するものであるので、例えば印刷装置134に内蔵させる不揮発性メモリとしてのROMチップ143に本発明のモータの制御プログラムを記録させるようにしても良い。   As shown in FIGS. 14 and 15, the recording medium 140 used in a general computer system may be an FD 141 or a CD-ROM 142, but this embodiment particularly relates to a control program for the printing apparatus 134. Therefore, for example, the motor control program of the present invention may be recorded in the ROM chip 143 as a nonvolatile memory built in the printing apparatus 134.

本実施の形態の記録媒体140は、紙の送り量が目標値に到達してからの、紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生する手順と、この電流値信号に基づいて前記紙送りモータを駆動制御する手順と、を備え、前記電流信号を発生する手順は、前記紙が通常の紙送り方向と逆方向に移動しているときの前記エンコーダの出力パルスをカウントする手順と、前記出力パルスのカウント値が所定値になったときに前記電流値信号を発生する手順と、を少なくとも備えるものである。   In the recording medium 140 of the present embodiment, the movement of the paper is stopped based on the output pulse of the encoder that rotates according to the rotation of the paper feed motor after the paper feed amount reaches the target value, or the normal amount A procedure for generating a current value signal for moving the paper in a direction opposite to the paper feed direction, and a procedure for driving and controlling the paper feed motor based on the current value signal, The procedure for counting the output pulses of the encoder when the paper is moving in the direction opposite to the normal paper feed direction, and the current value signal is generated when the count value of the output pulses reaches a predetermined value. And at least a procedure to perform.

本発明による印刷制御装置の一実施の形態の構成を示すブロック図。1 is a block diagram showing the configuration of an embodiment of a print control apparatus according to the present invention. 本発明にかかる電流値信号発生部の一具体例を示すブロック図。The block diagram which shows one specific example of the electric current value signal generation part concerning this invention. 本発明の実施の形態の動作を説明するフローチャート。The flowchart explaining operation | movement of embodiment of this invention. 本発明の実施の形態の動作を説明するタイミングチャート。3 is a timing chart for explaining the operation of the embodiment of the present invention. インクジェットプリンタの概略の構成を示す構成図。1 is a configuration diagram illustrating a schematic configuration of an inkjet printer. キャリッジ周辺の構成を示す斜視図。The perspective view which shows the structure of a carriage periphery. リニア式エンコーダの構成を示す模式図。The schematic diagram which shows the structure of a linear encoder. エンコーダの出力パルスの波形図。Waveform diagram of encoder output pulse. 紙検出センサの位置を説明するプリンタの概略の斜視図。FIG. 2 is a schematic perspective view of a printer for explaining a position of a paper detection sensor. 従来の印刷制御装置の構成を示すブロック図。FIG. 6 is a block diagram illustrating a configuration of a conventional print control apparatus. 従来の印刷制御装置の速度制御を説明するタイミングチャート。6 is a timing chart illustrating speed control of a conventional print control apparatus. 紙送り機構を説明する図。The figure explaining a paper feeding mechanism. 従来の問題点を説明する図。The figure explaining the conventional problem. 本発明によるモータの制御プログラムを記録した記録媒体が用いられるコンピュータシステムの一例を示す斜視図。The perspective view which shows an example of the computer system using the recording medium which recorded the control program of the motor by this invention. 本発明によるモータの制御プログラムを記録した記録媒体が用いられるコンピュータシステムの一例を示すブロック図。The block diagram which shows an example of the computer system using the recording medium which recorded the control program of the motor by this invention.

符号の説明Explanation of symbols

1 紙送りモータ(PFモータ)
2 紙送りモータドライバ
3 キャリッジ
4 キャリッジモータ(CRモータ)
5 キャリッジモータドライバ(CRモータドライバ)
6 DCユニット
6a 位置カウンタ
6b 減算器
6c 目標速度演算手段
6d 速度演算部
6e 減算器
6f 比例要素
6g 積分要素
6h 微分要素
6j D/Aコンバータ
6k タイマ
6m 加速制御部
6p パルスカウンタ
6q 電流値信号発生部
7 ポンプモータ
8 ポンプモータドライバ
9 記録ヘッド
10 ヘッドドライバ
11 リニア式エンコーダ
12 符号板
13 エンコーダ(ロータリ式エンコーダ)
15 紙検出センサ
16 CPU
17 タイマIC
18 ホストコンピュータ
19 インタフェース部
20 ASIC
21 PROM
22 RAM
23 EEPROM
25 プラテン
30 プーリ
31 タイミングベルト
32 キャリッジモータのガイド部材
34 インクカートリッジ
35 キャッピング装置
36 ポンプユニット
37 キャップ
50 記録紙
65 紙送りローラ
66 従動ローラ
68 排紙ローラ
69 従動ローラ
71 電流値決定手段
72 検出手段
80 バネ
1 Paper feed motor (PF motor)
2 Paper feed motor driver 3 Carriage 4 Carriage motor (CR motor)
5 Carriage motor driver (CR motor driver)
6 DC unit 6a Position counter 6b Subtractor 6c Target speed calculator 6d Speed calculator 6e Subtractor 6f Proportional element 6g Integral element 6h Differentiating element 6j D / A converter 6k Timer 6m Acceleration controller 6p Pulse counter 6q Current value signal generator 7 Pump Motor 8 Pump Motor Driver 9 Recording Head 10 Head Driver 11 Linear Encoder 12 Code Plate 13 Encoder (Rotary Encoder)
15 Paper detection sensor 16 CPU
17 Timer IC
18 Host computer 19 Interface unit 20 ASIC
21 PROM
22 RAM
23 EEPROM
25 Platen 30 Pulley 31 Timing belt 32 Carriage motor guide member 34 Ink cartridge 35 Capping device 36 Pump unit 37 Cap 50 Recording paper 65 Paper feed roller 66 Drive roller 68 Paper discharge roller 69 Drive roller 71 Current value determination means 72 Detection means 80 Spring

Claims (7)

紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙送りモータによって駆動される紙の位置を検出する位置検出部と、前記紙の送り量の目標値と前記位置検出部の出力とに基づいて前記紙送りモータに電流値を付加して、前記紙送りモータを駆動制御する駆動制御部とを備えた印刷制御装置において、
前記紙の送り量が前記目標値に到達してからの前記エンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生し、この電流値信号に基づいて前記紙送りモータを前記駆動制御部によって駆動制御するように構成したことを特徴とする印刷制御装置。
A position detector that detects the position of the paper driven by the paper feed motor based on an output pulse of an encoder that rotates according to the rotation of the paper feed motor; a target value of the paper feed amount; and an output of the position detector; A printing control apparatus comprising a drive control unit for controlling the driving of the paper feed motor by adding a current value to the paper feed motor based on
Based on an output pulse of the encoder after the paper feed amount reaches the target value, a current value signal for stopping the paper movement or moving the paper in a direction opposite to the normal paper feed direction is generated. A print control apparatus configured to drive and control the paper feed motor by the drive control unit based on the current value signal.
前記紙の送り量が前記目標値に到達してから前記紙が通常の紙送り方向と逆方向に移動しているときの前記エンコーダの出力パルスをカウントし、カウント値が所定値となったときに指令信号を出力するパルスカウンタと、
前記指令信号を受信したとき、または前記紙が通常の紙送り方向と逆方向に移動しているときに、前記電流値信号を発生する電流値信号発生部と、
を備えたことを特徴とする請求項1記載の印刷制御装置。
When the output pulse of the encoder is counted when the paper moves in the direction opposite to the normal paper feed direction after the paper feed amount reaches the target value, and the count value reaches a predetermined value A pulse counter that outputs a command signal to
A current value signal generating unit that generates the current value signal when the command signal is received or when the paper is moving in a direction opposite to a normal paper feeding direction;
The print control apparatus according to claim 1, further comprising:
前記電流値信号発生部は、
前記エンコーダの出力に基づいて前記紙が停止しているかまたは通常の紙送り方向と逆方向に移動しているかを検出する検出手段と、
前記指令信号または前記検出手段の検出結果に基づいて前記電流値信号を決定し、出力する電流値決定手段と、
を備えたことを特徴とする請求項2記載の印刷制御装置。
The current value signal generator is
Detecting means for detecting whether the paper is stopped or moving in a direction opposite to a normal paper feeding direction based on an output of the encoder;
Current value determination means for determining and outputting the current value signal based on the command signal or the detection result of the detection means;
The printing control apparatus according to claim 2, further comprising:
前記電流値決定手段は、前記紙が停止している場合は、直前の電流値信号と同じ電流値信号を出力し、前記紙が通常の紙送り方向と逆方向に移動しているときは前回よりも絶対値が小さいが符号が同一の電流値信号を発生することを特徴とする請求項3記載の印刷制御装置。   The current value determining means outputs the same current value signal as the previous current value signal when the paper is stopped, and the previous time when the paper is moving in the direction opposite to the normal paper feeding direction. The print control apparatus according to claim 3, wherein current value signals having an absolute value smaller than an absolute value but the same sign are generated. 紙の送り量が目標値に到達してからの、紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生するステップと、
この電流値信号に基づいて前記紙送りモータを駆動制御するステップと、
を備えたこと特徴とする印刷制御方法。
After the paper feed amount reaches the target value, the paper movement stops based on the output pulse of the encoder that rotates according to the rotation of the paper feed motor, or the paper moves in the direction opposite to the normal paper feed direction. Generating a moving current value signal;
Driving and controlling the paper feed motor based on the current value signal;
A printing control method comprising:
前記電流信号を発生するステップは、
前記紙が通常の紙送り方向と逆方向に移動しているときの前記エンコーダの出力パルスをカウントするステップと、
前記出力パルスのカウント値が所定値になったときに前記電流値信号を発生するステップと、
を備えたことを特徴とする請求項5記載の印刷制御方法。
Generating the current signal comprises:
Counting the output pulses of the encoder when the paper is moving in the direction opposite to the normal paper feed direction;
Generating the current value signal when the count value of the output pulse reaches a predetermined value;
The printing control method according to claim 5, further comprising:
紙の送り量が目標値に到達してからの、紙送りモータの回転に従って回転するエンコーダの出力パルスに基づいて前記紙の移動が停止するかまたは通常の紙送り方向と逆方向に前記紙が移動する電流値信号を発生する手順と、
この電流値信号に基づいて前記紙送りモータを駆動制御する手順と、
を備えたこと特徴とするコンピュータによって印刷制御するための印刷制御プログラムを記録した記録媒体。
After the paper feed amount reaches the target value, the paper movement stops based on the output pulse of the encoder that rotates according to the rotation of the paper feed motor, or the paper moves in the direction opposite to the normal paper feed direction. A procedure for generating a moving current value signal;
A procedure for driving and controlling the paper feed motor based on the current value signal;
A recording medium on which a printing control program for controlling printing by a computer is recorded.
JP2005092449A 2005-03-28 2005-03-28 PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM Pending JP2005200222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005092449A JP2005200222A (en) 2005-03-28 2005-03-28 PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005092449A JP2005200222A (en) 2005-03-28 2005-03-28 PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000058486A Division JP3871181B2 (en) 2000-03-03 2000-03-03 PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM

Publications (1)

Publication Number Publication Date
JP2005200222A true JP2005200222A (en) 2005-07-28

Family

ID=34824910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005092449A Pending JP2005200222A (en) 2005-03-28 2005-03-28 PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM

Country Status (1)

Country Link
JP (1) JP2005200222A (en)

Similar Documents

Publication Publication Date Title
EP1602504B1 (en) Motor control device and motor control method
US20040197126A1 (en) Print control system, print control method, and recording medium having recorded print control program
JP4457456B2 (en) Printing device
US6877837B1 (en) Control unit and method for controlling motor for use in printer, and storage medium storing control program
JP3859115B2 (en) Printer motor control apparatus, control method, and recording medium recording control program
JP3832174B2 (en) Motor control device and control method
JP3780804B2 (en) Motor control device and control method
US6967729B1 (en) Control unit and method for controlling motor for use in printer, and storage medium storing control program
JP3705061B2 (en) MOTOR CONTROL DEVICE, ITS CONTROL METHOD, AND RECORDING MEDIUM CONTAINING MOTOR CONTROL PROGRAM
JP3871181B2 (en) PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP3893853B2 (en) Printer motor control apparatus and control method
JP3777936B2 (en) Motor control method and control apparatus
JP3849908B2 (en) Print control apparatus and print control method
JP2005200222A (en) PRINT CONTROL DEVICE, CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
US20050195226A1 (en) Printer-control apparatus, printer-control method and printer
JP4432055B2 (en) Printer motor control apparatus and control method
JP3818496B2 (en) Printer control apparatus and printer control method
JP3812283B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP3812351B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP3900401B2 (en) DC motor control method and control apparatus
JP3780768B2 (en) Print control apparatus and print control method
JP3871185B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP2001078475A (en) Motor control device and control method
JP2005237198A (en) DC motor control method and control apparatus
JP2005186630A (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND RECORDING MEDIUM CONTAINING PRINT CONTROL PROGRAM