JPH0947057A - Motor control device and recording device using the control device - Google Patents

Motor control device and recording device using the control device

Info

Publication number
JPH0947057A
JPH0947057A JP7208348A JP20834895A JPH0947057A JP H0947057 A JPH0947057 A JP H0947057A JP 7208348 A JP7208348 A JP 7208348A JP 20834895 A JP20834895 A JP 20834895A JP H0947057 A JPH0947057 A JP H0947057A
Authority
JP
Japan
Prior art keywords
speed
control
recording
control mode
detected
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
JP7208348A
Other languages
Japanese (ja)
Inventor
Seiji Takahashi
誠二 高橋
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 JP7208348A priority Critical patent/JPH0947057A/en
Publication of JPH0947057A publication Critical patent/JPH0947057A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

(57)【要約】 (修正有) 【課題】 記録ヘッドと記録材供給手段を搭載するキャ
リヤを駆動する際、負荷の変動があった場合、制御部の
CPUに負担をかけることなく、キャリヤの速度を最適
に制御する。 【解決手段】 記録ヘッドと記録に応じて消費される記
録材を記録ヘッドへ供給する記録材供給手段とを搭載可
能なキャリヤと、キャリヤを記録媒体の搬送方向と垂直
な方向に操作する駆動手段と、キャリヤの速度を検出す
る速度検出手段と、検出結果と所定の目標速度と所定の
制御定数に基づいてキャリヤの速度を制御する制御手段
とを有する記録装置に、異なる制御定数よりなる複数の
制御モードを設定する制御モード設定手段と、検出速度
を保持する保持手段と、検出速度の値または該値により
算出された値を所定の比較値と比較する比較手段と、比
較手段の比較結果によって制御モード設定手段によって
設定された複数の制御モードから1つの制御モードを選
択する選択手段とを設ける。
(57) [Abstract] (Correction) [PROBLEMS] When a carrier having a recording head and recording material supply means is driven, if the load fluctuates, the CPU of the control unit is not burdened and the carrier Optimal control of speed. SOLUTION: A carrier capable of mounting a recording head and a recording material supplying means for supplying a recording material consumed according to recording to the recording head, and a driving means for operating the carrier in a direction perpendicular to a conveying direction of a recording medium. A recording device having a speed detecting means for detecting the speed of the carrier and a controlling means for controlling the speed of the carrier based on the detection result, a predetermined target speed and a predetermined control constant. The control mode setting means for setting the control mode, the holding means for holding the detected speed, the comparing means for comparing the value of the detected speed or the value calculated by the value with a predetermined comparison value, and the comparison result of the comparing means. And a selection unit for selecting one control mode from the plurality of control modes set by the control mode setting unit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、モータの制御装置に関
し、さらに詳しくはサーボ制御によってモータ制御を行
うモータ制御装置に関し、さらに、このモータ制御装置
を用いるプリンタやファクシミリ等の記録装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor control device, and more particularly to a motor control device for performing motor control by servo control, and more particularly to a recording device such as a printer or a facsimile using this motor control device.

【0002】[0002]

【従来の技術】モータ等の制御方法において、モータの
例えば回転速度等の制御結果を検出する検出手段を有
し、該検出手段の検出結果に応じてモータ等を制御する
制御方法は、いわゆる、フィードバック制御として広く
知られている。また、記録装置などの電子機器ではその
駆動部の駆動源としてモータが用いられている。
2. Description of the Related Art In a method for controlling a motor or the like, a control method for detecting a control result of the motor, for example, a rotation speed thereof, and controlling the motor or the like in accordance with the detection result of the detecting means is a so-called It is widely known as feedback control. Further, in electronic devices such as recording devices, a motor is used as a drive source of its drive unit.

【0003】記録装置として従来より良く知られている
ものに、例えば、記録ヘッドを搭載し、紙、OHP用シ
ート等の記録媒体(以下記録用紙という)の搬送方向に
対して垂直に往復運動する稼働部(以下キャリヤとい
う)を有する、いわゆる、シリアルタイプの記録装置が
ある。これらの記録装置では、種々の方式による記録ヘ
ッドが用いられ、その方式としてワイヤードット方式、
感熱方式、熱転写方式、インクジェット方式等が広く知
られている。これらの記録装置にあっては近年カラー化
や高解像度化の要求が高まっており、それに伴って記録
装置の高精度化が必須となっている。記録方式のうち、
例えばインクジェット方式はこれらの要求に対して比較
的容易な構成で達成できる点や、ランニングコストを低
く抑えることができることなどから広く普及し始めてい
る。
A conventionally well-known recording apparatus has, for example, a recording head mounted thereon and reciprocates vertically with respect to a conveyance direction of a recording medium (hereinafter referred to as recording sheet) such as paper or OHP sheet. There is a so-called serial type recording device having an operating part (hereinafter referred to as a carrier). In these recording devices, recording heads of various types are used, and as the types thereof, the wire dot type,
A heat-sensitive method, a thermal transfer method, an inkjet method and the like are widely known. In recent years, in these recording apparatuses, there has been an increasing demand for colorization and high resolution, and accordingly, it has become essential to improve the accuracy of the recording apparatuses. Of the recording methods,
For example, the inkjet method has begun to spread widely because it can be achieved with a relatively easy structure and can keep running costs low in response to these requirements.

【0004】また、近年では、キャリヤにスキャナ等の
情報入力手段を搭載し、原稿等の情報記録媒体から情報
を読み込みができる記録装置も実現されている。
Further, in recent years, a recording apparatus has been realized in which information input means such as a scanner is mounted on a carrier and information can be read from an information recording medium such as an original.

【0005】記録装置におけるキャリヤの駆動源として
はモータが用いられるが、記録命令に従ってモータを駆
動しキャリヤを往復運動させ記録を行っている。モータ
としては入力信号のパルス数に応じた量だけ回転するス
テッピングモータやエンコーダとの組み合わせによりキ
ャリヤの位置検出が容易に行えるDCモータ等が用いら
れている。モータとしてステッピングモータを用いる場
合にはキャリヤの移動速度に対して不安定であることや
キャリヤの位置検出が不正確である等の理由により、記
録の高精度化に際してはDCモータとエンコーダを用い
る例が多い。この駆動系においてはエンコーダより検出
される駆動対象であるキャリヤの移動速度を検出し目標
の移動速度との偏差を算出し、該算出結果に応じてDC
モータの駆動をフィードバック制御する制御方式が広く
知られている。
A motor is used as a drive source of the carrier in the recording apparatus, and the motor is driven in accordance with a recording command to reciprocate the carrier for recording. As the motor, a DC motor or the like that can easily detect the carrier position by using a stepping motor that rotates by an amount corresponding to the number of pulses of the input signal or a combination with an encoder is used. When a stepping motor is used as the motor, a DC motor and an encoder are used to improve the recording accuracy because of instability with respect to the moving speed of the carrier and inaccurate detection of the carrier position. There are many. In this drive system, the moving speed of the carrier to be driven detected by the encoder is detected, the deviation from the target moving speed is calculated, and DC is calculated according to the calculated result.
A control method for feedback controlling the drive of a motor is widely known.

【0006】この制御方式において算出された速度偏差
Veと、比例制御定数Kp、積分制御定数Ki、微分制
御定数Kdの各定数とにより操作量を次式に基づいて算
出し、操作量によってDCモータの速度制御を行う方法
がPID制御として知られている。
A manipulated variable is calculated based on the following equation from the velocity deviation Ve calculated in this control method and each constant of the proportional control constant Kp, the integral control constant Ki, and the differential control constant Kd, and the DC motor is calculated according to the manipulated variable. The method of performing speed control of is known as PID control.

【0007】操作量=Kp×Ve+Ki∫Vedt+K
d(dVe/dt) ここで、操作量は、例えば、モータに印加する電圧や印
加エネルギーのデューティである。このようなフィード
バック制御においては各制御定数について所定の初期値
を予め有し、キャリヤを実際に移動させながら新しい制
御定数を算出し制御する学習タイプのフィードバック制
御も知られている。
Operation amount = Kp × Ve + Ki∫Vedt + K
d (dVe / dt) Here, the operation amount is, for example, the voltage applied to the motor or the duty of the applied energy. In such feedback control, there is also known a learning type feedback control which has a predetermined initial value for each control constant in advance and calculates and controls a new control constant while actually moving the carrier.

【0008】[0008]

【発明が解決しようとする課題】モータとして、前述の
DCモータとエンコーダを用いるフィードバック制御に
よってキャリヤを駆動する場合に、例えばモータの駆動
が伝達される系の負荷が変動したときなどは、キャリッ
ジの移動速度が最適に制御されなく不安定になり、その
結果として記録結果にムラの発生などの不都合を生じる
問題がある。
When the carrier is driven by the feedback control using the above-mentioned DC motor and encoder as the motor, for example, when the load of the system to which the drive of the motor is transmitted fluctuates, the carriage is driven. There is a problem in that the moving speed is not optimally controlled and becomes unstable, resulting in inconvenience such as unevenness in the recording result.

【0009】また、キャリヤに情報入力手段を搭載した
場合にキャリッジの移動速度に不安定さが生じると、入
力された情報が不正確になったり、やはり結果的にムラ
等が生じてしまうという問題がある。
Further, if the carrier moving speed is unstable when the information input means is mounted on the carrier, the input information becomes inaccurate and, as a result, unevenness occurs. There is.

【0010】負荷が変動する要因としては、伝達系を構
成する部品精度のバラツキやキャリヤに搭載される記録
ヘッドの重量変化、記録ヘッドがインク等の記録材を収
容する記録材収容手段と一体的に構成された場合やキャ
リヤが記録ヘッドと共に記録材収容手段を搭載する場合
にあっては記録材の消費による重量変化、さらには装置
が使用される環境条件の変化等が挙げられる。特に、ラ
ンニングコストを低く抑えることや記録材収容手段の交
換頻度を少なくする等使用者の満足度を向上させるため
に記録材の収容量を大きく構成することが行われてお
り、記録材の消費による負荷の変化は無視できないもの
である。
Factors that cause the load to fluctuate are variations in the precision of the components that form the transmission system, changes in the weight of the recording head mounted on the carrier, and the recording head that is integral with the recording material accommodating means for accommodating recording material such as ink. In the case of the above construction or in the case where the carrier is mounted with the recording material together with the recording head, the weight change due to the consumption of the recording material and the environmental condition in which the apparatus is used may be changed. Particularly, in order to improve the user's satisfaction such as keeping running costs low and reducing the frequency of exchanging the recording material accommodating means, a large amount of the recording material is accommodated. The change in load due to is not negligible.

【0011】この問題を解決する方法として特開平5−
284768号では学習フィードバック制御を提案して
いる。この方法によれば、負荷の変動が生じたとしても
学習により最適なフィードバック制御が行えるが、制御
定数を演算しながら制御を行うため記録装置を制御する
CPUの負担を増加させたり、演算用のマイコンが必要
となる等の問題がある。
As a method for solving this problem, Japanese Patent Application Laid-Open No.
No. 284768 proposes learning feedback control. According to this method, the optimum feedback control can be performed by learning even if the load fluctuates, but since the control is performed while calculating the control constant, the load on the CPU that controls the recording apparatus is increased, and There are problems such as the need for a microcomputer.

【0012】[0012]

【課題を解決するための手段】本発明は、前述の問題を
解決するために、制御対象の速度を検出する速度検出手
段と、該速度検出手段によって検出した速度、所定の目
標速度および所定の制御定数に基づいて制御対象の速度
を制御するモータ制御装置において、異なる制御定数よ
りなる複数の制御モードを設定する制御モード設定手段
と、前記速度検出手段で検出した検出速度を保持する保
持手段と、前記保持手段で保持された検出速度の値また
は該値により算出された値を所定の比較値と比較する比
較手段と、前記比較手段の比較結果によって前記制御モ
ード設定手段によって設定された前記複数の制御モード
から1つの制御モードを選択する選択手段とを有し、前
記選択手段の選択結果に応じて前記制御対象の速度制御
を行うことを特徴とするモータ制御装置を採用するもの
である。
In order to solve the above-mentioned problems, the present invention provides a speed detecting means for detecting the speed of a controlled object, a speed detected by the speed detecting means, a predetermined target speed and a predetermined speed. In a motor control device that controls the speed of a controlled object based on a control constant, a control mode setting unit that sets a plurality of control modes having different control constants, and a holding unit that holds the detected speed detected by the speed detecting unit. Comparing means for comparing a value of the detected speed held by the holding means or a value calculated by the value with a predetermined comparison value, and the plurality of units set by the control mode setting means according to the comparison result of the comparing means. Selecting means for selecting one control mode from the control modes, and speed control of the controlled object is performed according to the selection result of the selecting means. It is to employ a motor control device for.

【0013】本発明は、また、記録媒体に記録を行う記
録ヘッドと記録に応じて消費される記録材を前記記録ヘ
ッドへ供給する記録材供給手段とを搭載可能なキャリヤ
と、該キャリヤを前記記録媒体の搬送方向と垂直な方向
に操作する駆動手段と、キャリヤの速度を検出する速度
検出手段と、該速度検出手段による検出結果と所定の目
標速度と所定の制御定数に基づいて前記キャリヤの速度
を制御する制御手段とを有する記録装置において、異な
る制御定数よりなる複数の制御モードを設定する制御モ
ード設定手段と、前記速度検出手段で検出した検出速度
を保持する保持手段と、前記保持手段で保持された検出
速度の値または該値により算出された値を所定の比較値
と比較する比較手段と、前記比較手段の比較結果によっ
て前記制御モード設定手段によって設定された前記複数
の制御モードから1つの制御モードを選択する選択手段
とを有し、前記選択手段の選択結果に応じて前記制御対
象の速度制御を行うことを特徴とする記録装置を採用す
るものである。
The present invention also provides a carrier on which a recording head for recording on a recording medium and a recording material supply means for supplying recording material consumed according to recording to the recording head can be mounted, and the carrier is Driving means for operating in a direction perpendicular to the conveying direction of the recording medium, speed detecting means for detecting the speed of the carrier, and a carrier for the carrier based on the detection result by the speed detecting means, a predetermined target speed and a predetermined control constant. In a recording apparatus having control means for controlling speed, control mode setting means for setting a plurality of control modes having different control constants, holding means for holding the detected speed detected by the speed detecting means, and the holding means Comparing means for comparing the value of the detected speed held by or the value calculated by the value with a predetermined comparison value, and the control mode according to the comparison result of the comparing means. A recording means for selecting one control mode from the plurality of control modes set by the setting means, and performing speed control of the controlled object according to a selection result of the selecting means. Is adopted.

【0014】[0014]

【実施例】以下、図面を参照して本発明のモータ制御装
置および該モータ制御装置を用いた記録装置の実施例を
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of a motor control device of the present invention and a recording device using the motor control device will be described below with reference to the drawings.

【0015】(実施例1)図1は、モータにより制御対
象の移動や回転等の速度を制御する場合を例に挙げて説
明するための実施例1のモータ制御装置の回路ブロック
図である。図1において、符号1で示すものは、フィー
ドバック制御の制御量を算出する手段であって、この実
施例の場合には、前述したPID制御による制御量を算
出するPID制御手段である。2は、PID制御手段の
算出結果からモータ4を駆動するモータドライバ3への
入力値を算出するモータドライバ制御手段であり、該モ
ータドライバ制御手段2の出力にしたがってモータドラ
イバ3によりモータ4が駆動され、制御対象5が駆動さ
れる。ここで、PID制御手段1により算出される制御
量は、この実施例の場合、モータに印加する電圧や印加
エネルギーのデューティである。
(Embodiment 1) FIG. 1 is a circuit block diagram of a motor control device of embodiment 1 for explaining an example in which the speed of movement and rotation of a controlled object is controlled by a motor. In FIG. 1, reference numeral 1 is a means for calculating the control amount of the feedback control, and in the case of this embodiment, it is a PID control means for calculating the control amount by the above-mentioned PID control. Reference numeral 2 denotes a motor driver control unit that calculates an input value to a motor driver 3 that drives the motor 4 from the calculation result of the PID control unit. The motor driver 3 drives the motor 4 according to the output of the motor driver control unit 2. Then, the controlled object 5 is driven. Here, in this embodiment, the control amount calculated by the PID control means 1 is the voltage applied to the motor and the duty of the applied energy.

【0016】6は、エンコーダ(位置検出すると共に速
度検出可能である)等の速度検出手段である。7は検出
手段6による検出結果を保持するRAM等で構成される
結果保持手段である。保持手段に保持される検出結果は
制御対象が駆動を開始されてから目標速度に到達するま
での期間、即ち、加速期間内の検出結果に関するもので
ある。
Reference numeral 6 is a speed detecting means such as an encoder (which can detect a position and a speed). Reference numeral 7 is a result holding unit configured by a RAM or the like for holding the detection result of the detection unit 6. The detection result held by the holding means relates to the detection result in the period from the start of driving of the controlled object until the target speed is reached, that is, the acceleration period.

【0017】次に、図3を参照して実施例1のモータ制
御装置の動作を説明する。モータまたは制御対象の駆動
命令が入力されると、PID制御手段1は、偏差算出手
段10で算出した偏差Ve(目標速度Vと検出速度vと
の偏差)と、図2に示したような異なる制御定数の組み
Kp、Ki、Kdより構成される複数の制御モードのう
ち予め設定されている所定の制御定数で構成される制御
モード、例えば制御モードcとに基づいて制御量を算出
する(ステップS101、ステップS102)。
Next, the operation of the motor control device according to the first embodiment will be described with reference to FIG. When the drive command for the motor or the controlled object is input, the PID control means 1 differs from the deviation Ve (deviation between the target speed V and the detected speed v) calculated by the deviation calculation means 10 as shown in FIG. A control amount is calculated based on a control mode constituted by a preset predetermined control constant among a plurality of control modes constituted by a set of control constants Kp, Ki, Kd, for example, control mode c (step S101, step S102).

【0018】算出量に応じてモードドライバ制御手段
2、モータドライバ3、モータ4、制御対象5が駆動さ
れる(ステップS103)。制御対象5の駆動により得
られる制御結果である速度はエンコーダ等の速度検出手
段6により検出され(ステップS104)、その検出結
果はRAM等の検出結果保持手段7によって保持される
(ステップS105)。保持手段7に保持された検出結
果(この実施例では速度v)より算出される制御対象の
加速度が比較手段8により後述の比較値と比較される
(ステップS106)。
The mode driver control means 2, the motor driver 3, the motor 4, and the controlled object 5 are driven according to the calculated amount (step S103). The speed that is the control result obtained by driving the controlled object 5 is detected by the speed detecting means 6 such as an encoder (step S104), and the detection result is held by the detection result holding means 7 such as RAM (step S105). The acceleration of the controlled object calculated from the detection result (speed v in this embodiment) held in the holding means 7 is compared with a comparison value described later by the comparison means 8 (step S106).

【0019】この実施例の場合、比較値は制御対象に要
求される許容範囲内の限度の値であって、許容範囲内の
最大加速度Amaxと最小加速度Aminである。ステ
ップS106において、検出結果の速度vに基づく加速
度が許容範囲内であれば、制御モードの変更を行わない
で終了する(ステップS109)。ステップS106で
許容範囲外と判断された場合にはステップS108にお
いて現在設定されている制御モードではない制御モード
を選択する。ここでは、例えば図2に示した制御モード
aを選択する。
In the case of this embodiment, the comparison value is a limit value within the allowable range required for the controlled object and is the maximum acceleration Amax and the minimum acceleration Amin within the allowable range. In step S106, if the acceleration based on the detected speed v is within the allowable range, the control mode is not changed and the process ends (step S109). If it is determined in step S106 that it is outside the allowable range, a control mode other than the control mode currently set is selected in step S108. Here, for example, the control mode a shown in FIG. 2 is selected.

【0020】ここで、新たな制御モードが選択されても
即時にPID制御手段に反映させず、一連の制御対象の
動作が終了するまで更新を待機する(ステップS10
7)。待機している間は選択された制御モードでの制御
は行わず現在設定されている制御モードで制御され、一
連の動作を終了した後に更新される。制御モードが更新
されると、装置はイニシャル動作に移行し、制御モード
による制御結果を同様に比較する。ここで、再び許容範
囲外の制御結果と判断されると、再び後述する異なる制
御モードを選択しイニシャル動作であるので、直ちに制
御モードを更新し、同様に制御結果を比較する。イニシ
ャル動作に移行した後のステップS107での制御モー
ドの選択はイニシャル動作に移行してから設定された制
御モードとは異なる制御モードを選択する。
Here, even if a new control mode is selected, it is not immediately reflected in the PID control means, and the update is awaited until the operation of a series of controlled objects is completed (step S10).
7). The control in the selected control mode is not performed while waiting, and the control is performed in the currently set control mode, and is updated after the series of operations is completed. When the control mode is updated, the device shifts to the initial operation and similarly compares the control results according to the control mode. If it is determined that the control result is out of the allowable range, the control mode is immediately updated because a different control mode, which will be described later, is selected and the initial operation is performed, and the control results are similarly compared. In the control mode selection in step S107 after shifting to the initial operation, a control mode different from the control mode set after shifting to the initial operation is selected.

【0021】ここで、前述した装置の一連の動作とは、
例えば、装置が記録装置の場合には記録動作であり、ス
キャナ装置の場合には情報の読み込み動作である。図3
に示した動作は装置の動作中常に実行されている。この
ようにして、制御モードの制御結果が、負荷の変動等の
ように外乱が加わった結果、許容範囲外となった場合で
あっても別の最適な制御モードに更新され、制御結果の
許容範囲内への収束が達成される。
Here, the series of operations of the above-mentioned apparatus are
For example, the recording operation is performed when the apparatus is a recording apparatus, and the information reading operation is performed when the apparatus is a scanner apparatus. FIG.
The operation shown in (1) is constantly executed during the operation of the device. In this way, even if the control result of the control mode is outside the allowable range as a result of disturbance such as load fluctuation, it is updated to another optimal control mode and the control result is allowed. Convergence within the range is achieved.

【0022】この場合、制御対象の速度vから加速度を
算出して行ったが速度vを用いてもよく、速度を用いる
場合には、加速中の許容される到達速度の上限値と下限
値とに対して比較を行えばよい。加速終了後の所定期間
の制御対象の速度vを検出して保持し、この速度vと制
御対象の許容範囲内の最大速度Vmaxと最小速度Vm
inと比較する構成としてもよい。
In this case, the acceleration is calculated from the speed v of the controlled object. However, the speed v may be used. When the speed is used, the upper and lower limits of the allowable reaching speed during acceleration are set. Compare with. The speed v of the controlled object for a predetermined period after the end of acceleration is detected and held, and the speed v and the maximum speed Vmax and the minimum speed Vm within the allowable range of the controlled object.
The configuration may be compared with in.

【0023】(実施例2)実施例1では、設定されてい
る制御モードの制御結果を装置の動作中に常に比較して
いたが、制御系に加えられる負荷変動等の外乱が少ない
と考えられる場合には、制御モードの制御結果の比較は
必要に応じて実行しても構わない。
(Embodiment 2) In Embodiment 1, the control results of the set control mode are constantly compared during the operation of the apparatus, but it is considered that there is little disturbance such as load fluctuation applied to the control system. In this case, the comparison of the control results of the control modes may be executed as needed.

【0024】この場合のモータ制御装置の回路ブロック
図を図4に示した。図4においても、実施例1と同様に
モータにより制御対象の速度を制御する場合について説
明する。符号1から10は実施例1で説明した構成と同
じものである。ここで、11は制御結果である速度vの
検出手段6による検出結果と前述の許容範囲内の限度値
との比較を実行することを所定のタイミングで指示する
指示手段であり、この指示手段11によって比較が指示
されない場合は、実線で示した処理を行い、比較が指示
されると、点線で示した処理が追加される構成となって
いる。
A circuit block diagram of the motor control device in this case is shown in FIG. Also in FIG. 4, the case where the speed of the controlled object is controlled by the motor as in the first embodiment will be described. Reference numerals 1 to 10 have the same configurations as those described in the first embodiment. Here, 11 is an instruction means for instructing at a predetermined timing to perform comparison between the detection result of the speed v which is the control result by the detection means 6 and the above-mentioned limit value within the allowable range. When the comparison is not instructed, the processing indicated by the solid line is performed, and when the comparison is instructed, the processing indicated by the dotted line is added.

【0025】ここで、指示手段11により指示を行う所
定のタイミングとしては、例えば、制御対象が記録装置
のキャリッジであり、キャリッジに記録ヘッドやインク
タンク等の記録材料供給手段が交換可能に構成されてい
る場合には記録材の消費量が所定の値に達したとき、キ
ャリッジに新たな記録ヘッドや記録材料供給手段が取付
けられたとき、さらには前回の比較動作より所定の時間
が経過したとき等が挙げられる。
Here, as the predetermined timing for giving an instruction by the instructing means 11, for example, the control target is the carriage of the recording apparatus, and the recording material supply means such as the recording head and the ink tank is replaceable on the carriage. When the amount of recording material consumed reaches a predetermined value, when a new recording head or recording material supply means is attached to the carriage, or when a predetermined time has elapsed since the previous comparison operation Etc.

【0026】図4における処理の流れを図5に示した。
図5に示した処理は、比較を行う所定のタイミングが発
生した場合に行う処理ルーチンであり、この処理に移行
すると、ステップS501で比較処理を実行するがどう
かの判断をまず行う。ここで、例えば、記録装置の記録
動作中の場合等では、比較処理は実行せずそのままこの
処理ルーチンは終了し、比較動作を実行して良ければス
テップS502からステップS504によりモータを駆
動する。ここでは、最初に制御モードとして図2の制御
モードcが設定されているとすると、モータの駆動によ
り得られる制御対象の制御結果である速度を検出し(ス
テップS505)、直ちにこれを保持手段であるRAM
に保持する(ステップS506)。保持された制御対象
の速度vより算出される加速度が比較手段8により前述
の比較値と比較され(ステップS507)、比較結果が
許容範囲内であれば、このまま制御モードを更新するこ
となく終了する。
The flow of processing in FIG. 4 is shown in FIG.
The processing shown in FIG. 5 is a processing routine performed when a predetermined timing for comparison occurs, and when the processing shifts to this processing, the comparison processing is executed in step S501, and it is first determined. Here, for example, when the printing operation of the printing apparatus is being performed, the comparison processing is not executed and this processing routine is finished as it is. If the comparison operation is allowed to be executed, the motor is driven from step S502 to step S504. Here, assuming that the control mode c of FIG. 2 is initially set as the control mode, the speed that is the control result of the control target obtained by driving the motor is detected (step S505), and this is immediately held by the holding means. A RAM
(Step S506). The acceleration calculated from the velocity v of the held control target is compared with the above-mentioned comparison value by the comparison means 8 (step S507). If the comparison result is within the allowable range, the control mode is terminated without updating. .

【0027】ステップS507において比較結果が許容
範囲外と判断された場合にはステップS508に進み、
実施例1と同様に現在設定されている制御モードとは異
なる制御モードaを選択する。新しく制御モードaが選
択されると、直ちに制御モードaに基づいてモータが駆
動され(ステップS502、S503、S504)、次
に、再び制御モードaによる制御結果である速度vにつ
いて比較処理がステップS507で行われる。ここで、
新しく更新された制御モードaでの制御結果が許容範囲
内であれば、一連の比較処理は終了される。制御モード
が更新されたにもかかわらずステップS507で制御結
果が許容範囲外と判断されると、再び新しい制御モード
bを選択する。ここで新たに選択される制御モードは図
5に示した処理に移行した後設定選択された制御モード
とは異なる制御モードを選択する構成となっている。こ
のようにして、制御モードの制御結果を比較する処理を
所定のタイミングで指示する指示手段によって指示する
ことで負荷の変動等のような系に外乱が加わった結果、
許容範囲外となった場合であっても別の最適な制御モー
ドに更新され、制御結果の許容範囲内への収束が達成さ
れる。
If it is determined in step S507 that the comparison result is outside the allowable range, the process proceeds to step S508.
Similar to the first embodiment, a control mode a different from the currently set control mode is selected. When a new control mode a is selected, the motor is immediately driven based on the control mode a (steps S502, S503, S504), and then the comparison processing is performed again for the speed v which is the control result by the control mode a in step S507. Done in. here,
If the control result in the newly updated control mode a is within the allowable range, the series of comparison processing is ended. If it is determined in step S507 that the control result is out of the allowable range even though the control mode has been updated, the new control mode b is selected again. The control mode newly selected here is configured to select a control mode different from the control mode selected and set after shifting to the processing shown in FIG. In this way, as a result of the disturbance being added to the system such as load fluctuation by instructing the processing of comparing the control results of the control modes by the instructing means that instruct at a predetermined timing,
Even when the control result is out of the allowable range, another optimum control mode is updated, and the control result is converged within the allowable range.

【0028】(実施例3)図5で示した実施例2では、
制御結果の比較は、ステップS507でのように許容範
囲内限度値に基づいて実行したが、これとは異なる方法
もある。この異なる方法に基づく動作の流れを図6に示
した。図5に示した実施例2の処理方法では、許容範囲
内の限界値との比較結果に応じて新しい制御モードを選
択したが、図6に示す実施例3では、選択可能な制御モ
ードの全てについて順次選択し、その選択された制御モ
ードによる制御結果をRAMに保持し(ステップS60
6)、各制御モードによる制御結果どうしを比較するこ
とで最適な制御モードを選択する構成となっている。こ
こで、検出結果の比較には、例えば、所定の制御モード
による加速終了後の速度vの最大値と最小値との差の絶
対値と、他の制御モードによる速度vの最大値と最小値
との差の絶対値とを比較することによって速度vのバラ
ツキが加速終了後最も少ない制御モードを選択する方法
などが考えられる。このように構成にしても最適な制御
モードの選択がなされ、安定な制御結果が得られる。
(Embodiment 3) In Embodiment 2 shown in FIG.
The comparison of the control results is executed based on the allowable range inner limit value as in step S507, but there is a method other than this. The operation flow based on this different method is shown in FIG. In the processing method of the second embodiment shown in FIG. 5, a new control mode is selected according to the result of comparison with the limit value within the allowable range, but in the third embodiment shown in FIG. Are sequentially selected, and the control result according to the selected control mode is held in the RAM (step S60).
6) The optimum control mode is selected by comparing the control results of each control mode. Here, to compare the detection results, for example, the absolute value of the difference between the maximum value and the minimum value of the speed v after the end of acceleration in a predetermined control mode and the maximum value and the minimum value of the speed v in another control mode are used. A method of selecting the control mode in which the variation in the speed v is the smallest after the end of acceleration can be considered by comparing the absolute value of the difference between and. Even with such a configuration, the optimum control mode is selected and a stable control result can be obtained.

【0029】(実施例4)これまでの実施例で説明した
モータ制御装置を記録装置であるインクジェット記録装
置のキャリッジの駆動に適用した場合について説明す
る。
(Embodiment 4) A case will be described in which the motor control device described in the above embodiments is applied to drive a carriage of an ink jet recording apparatus which is a recording apparatus.

【0030】図7は、記録装置の概略断面図である。図
7において、20は記録媒体である記録用紙Sを累積し
た束の状態に保持し、自動的に順次1枚づつ記録位置に
送給する自動送給部であり、30は自動送給部20から
その分離ローラ204によって1枚づつ送出される記録
用紙Sを所望の記録位置に導き、記録済みの記録用紙S
を排出部40に導く搬送部であり、50は記録ヘッド5
01(この実施例の場合、カラー記録可能なイエロー、
マゼンタ、シアンおよびブラックのインクを吐出す
る)、記録ヘッド501を搭載するキャリッジ502、
キャリッジをタイミングベルト506により図7で紙面
とは垂直な方向に案内する案内軸503、504、記録
ヘッド501に上記各色の記録材であるインクを供給す
る記録材供給手段のインクタンク505、キャリッジ5
02の位置を検出するフィルムに所定の間隔でスリット
を形成したエンコーダ507、およびキャリッジ502
を移動走査させるキャリアモータ(この実施例の場合、
DCモータ)509等からなる記録部であり、60は記
録部50の上方に配置され、不図示のホストコンピュー
タ等から送付される記録データや情報に基づいて記録装
置全体を制御する制御部(コントロ−ル部)である。な
お、コントロ−ル部60はインナーカバー601によっ
て覆われており、インナーカバー601内にはコントロ
−ルボード602、パネルボード603が収容されてい
る。
FIG. 7 is a schematic sectional view of the recording apparatus. In FIG. 7, reference numeral 20 denotes an automatic feeding unit that holds the recording sheets S, which are recording media, in a state of being accumulated and automatically feeds the recording sheets S one by one to the recording position, and 30 denotes the automatic feeding unit 20. The recording sheets S sent out one by one from the separating roller 204 are guided to a desired recording position, and the recording sheets S already recorded are recorded.
And a recording head 5 for guiding the paper to the discharge unit 40.
01 (in this embodiment, color recordable yellow,
Ejecting magenta, cyan, and black inks), a carriage 502 carrying a recording head 501,
The guide shafts 503 and 504 for guiding the carriage in the direction perpendicular to the paper surface in FIG. 7 by the timing belt 506, the ink tank 505 of the recording material supply means for supplying the recording head 501 with the inks of the recording materials of the respective colors, and the carriage 5.
No. 02 position detecting film is formed with slits at predetermined intervals on the encoder 507 and the carriage 502
A carrier motor for moving and scanning (in this embodiment,
A DC motor) 509 or the like is a recording unit, and 60 is disposed above the recording unit 50 and controls the entire recording apparatus based on recording data and information sent from a host computer (not shown) or the like (control unit). -Part). The control section 60 is covered with an inner cover 601. Inside the inner cover 601, a control board 602 and a panel board 603 are housed.

【0031】続いて、記録装置を構成する他の主要部を
説明する。自動送給部20は伸縮自在な2枚の受け板か
らなる用紙受け201と摺動軸202Aに一端が支持さ
れ、他端が圧接バネ203のバネ力により、分離ローラ
204に向けて当接される圧板202等で構成されてい
て、不図示の歯車列や駆動切り替え手段を介して送給ロ
ーラ301により連動される分離ローラ204により用
紙受け201上にセットされている用紙束205のうち
から用紙を一枚ずつ送出する。また、搬送部30は、自
動送給部20から分離ローラ204により送出される用
紙Sを記録ヘッド501のインク吐出面対向位置に導く
ための送給ローラ301、ピンチローラ302、送給ロ
ーラ301に連動し、排出ローラ303に駆動力を伝達
する伝達ローラ304、不図示のコイルバネを介して支
持される拍車405等で構成されている。さらにまた、
排出部40は排出される用紙Sの長さに応じて伸縮自在
に2枚のトレイ401、402で構成されている。40
3はトレイ401の先端に設けられたストッパであり、
排出される用紙Sが落下等しないように構成されてい
る。70は下部ケース71に収納固定される電源部であ
り、72は記録ヘッド501から回復動作のために排出
されたインクを収容する排出インク用タンクである。
Next, other main parts constituting the recording apparatus will be described. The automatic feeding unit 20 has one end supported by a paper receiver 201 composed of two retractable receiving plates and a sliding shaft 202A, and the other end abutted toward the separation roller 204 by a spring force of a pressure contact spring 203. Of the sheet bundle 205 set on the sheet receiver 201 by a separation roller 204 that is interlocked with a feeding roller 301 via a gear train (not shown) or a drive switching means (not shown). Are sent one by one. Further, the transport unit 30 includes a feed roller 301, a pinch roller 302, and a feed roller 301 for guiding the paper S sent from the automatic feed unit 20 by the separation roller 204 to a position facing the ink ejection surface of the recording head 501. It is composed of a transmission roller 304 that is interlocked and transmits a driving force to the discharge roller 303, a spur 405 supported via a coil spring (not shown), and the like. Furthermore,
The discharge unit 40 is configured by two trays 401 and 402 that can expand and contract according to the length of the paper S to be discharged. 40
3 is a stopper provided at the tip of the tray 401,
The ejected paper S is configured not to drop. Reference numeral 70 denotes a power supply unit housed and fixed in the lower case 71, and 72 denotes a discharged ink tank that stores ink discharged from the recording head 501 for a recovery operation.

【0032】図8は、この実施例のインクジェット記録
装置の制御構成を示す回路ブロック図である。図8にお
いて、801は記録装置全体の制御を行うMPUであ
り、制御上の時間管理を行うタイマ802を備えてい
る。さらに、MPU801には先の実施例で示したフィ
ードバック制御を行うPID制御手段1、PID制御手
段1で算出される制御量に応じてモータ4(この実施例
の場合、キャリヤモータ509)を駆動するモータドラ
イバ3(この実施例の場合、キャリヤモータドライバ8
07)を制御するモータドライバ制御手段2、制御結果
を比較する比較手段8、および比較手段の比較結果に応
じて制御モードを選択する選択手段9等が内包されてい
る。803はMPUの制御プログラムを収めたROMで
あり、図2に示した制御モードを決定する制御定数の情
報も該ROMに収納されている。804はMPU801
の制御実行時ワークエリア、エンコーダ507、エンコ
ーダセンサ部8によるキャリア502の速度v等の情報
を蓄えるRAMである。
FIG. 8 is a circuit block diagram showing the control structure of the ink jet recording apparatus of this embodiment. In FIG. 8, reference numeral 801 denotes an MPU that controls the entire recording apparatus, and includes a timer 802 that performs time management on control. Further, the MPU 801 drives the motor 4 (the carrier motor 509 in this embodiment) according to the PID control means 1 for performing the feedback control shown in the previous embodiment and the control amount calculated by the PID control means 1. Motor driver 3 (carrier motor driver 8 in this embodiment)
07) for controlling the motor driver, a comparing means 8 for comparing the control results, and a selecting means 9 for selecting the control mode according to the comparison result of the comparing means. Reference numeral 803 denotes a ROM that stores a control program for the MPU, and information about control constants that determine the control mode shown in FIG. 2 is also stored in the ROM. 804 is MPU801
Is a RAM that stores information such as the control execution work area, the encoder 507, and the speed v of the carrier 502 by the encoder sensor unit 8.

【0033】805は記録装置の電源がオフされても情
報の保持が可能なEEPROMであって、この実施例の
場合、現在設定されている制御モードの制御定数等を保
持している。806は記録ヘッドから所望の記録情報等
に応じてインクを吐出する吐出ヒータを駆動する吐出ヒ
ータドライバであり、807はキャリヤ502をタイミ
ングベルト506や不図示のプーリ等を介して駆動させ
るキャリヤモータ509を駆動するキャリヤモータドラ
イバである。808は搬送ローラ301や分離ローラ2
04を駆動させる搬送モータ809を駆動制御する搬送
モータドライバである。810は用紙Sの搬送部30内
での有無の状態や用紙Sの先端や後端を検出するための
センサである。また、811は記録ヘッドを記録するの
に適する状態に復帰あるいは記録状態に適した状態に維
持するための不図示の回復系を駆動する回復系モータド
ライバである。813は回復系を構成する不図示のカム
等の動作位置を検出ためのセンサである。814は記録
装置とホストコンピュータ等を接続するインターフェイ
スであり、このインターフェイス部を介して記録装置は
ホストコンピュータ等の情報の交換が可能に構成されて
いる。
Reference numeral 805 denotes an EEPROM capable of retaining information even when the power of the recording apparatus is turned off. In this embodiment, it retains control constants of the currently set control mode. Reference numeral 806 denotes an ejection heater driver that drives an ejection heater that ejects ink from the recording head according to desired recording information and the like. Reference numeral 807 denotes a carrier motor 509 that drives the carrier 502 via a timing belt 506, a pulley (not shown), or the like. Is a carrier motor driver for driving the. Reference numeral 808 denotes the conveyance roller 301 and the separation roller 2
A transport motor driver that drives and controls a transport motor 809 that drives 04. Reference numeral 810 denotes a sensor for detecting the presence / absence of the paper S in the transport unit 30 and the front and rear edges of the paper S. Reference numeral 811 denotes a recovery system motor driver for driving a recovery system (not shown) for returning the recording head to a state suitable for recording or maintaining the state suitable for recording. Reference numeral 813 is a sensor for detecting the operating position of a cam or the like (not shown) that constitutes the recovery system. An interface 814 connects the printing apparatus to a host computer or the like, and the printing apparatus is configured to exchange information of the host computer or the like via this interface section.

【0034】次に、図3を参照してこの実施例の記録装
置におけるキャリヤモータ509の制御動作を説明す
る。ホストコンピュータ等からの記録動作開始命令によ
ってキャリヤモータ509の駆動命令が入力されると、
PID制御手段は速度偏差算出手段10と、図2に示し
たような異なる制御定数の組Kp、Ki、Kdより構成
される複数の制御モードのうち予め設定されている所定
の制御定数で構成される制御モード、例えば、制御モー
ドcに基づいて制御量を算出し(ステップS101、ス
テップS102)、算出量に応じてモータドライバ制御
手段2、モータドライバ3であるキャリヤモータドライ
バ807、モータ4であるキャリヤモータ509、制御
対象5であるキャリヤ502が駆動される(ステップS
103)。
Next, the control operation of the carrier motor 509 in the recording apparatus of this embodiment will be described with reference to FIG. When a drive command for the carrier motor 509 is input by a recording operation start command from the host computer or the like,
The PID control means is composed of the speed deviation calculation means 10 and a predetermined control constant preset among a plurality of control modes composed of different sets of control constants Kp, Ki and Kd as shown in FIG. A control amount is calculated based on the control mode, for example, the control mode c (steps S101 and S102), and the motor driver control unit 2, the carrier motor driver 807 which is the motor driver 3, and the motor 4 are calculated according to the calculated amount. The carrier motor 509 and the carrier 502 which is the controlled object 5 are driven (step S
103).

【0035】キャリヤ502の駆動により得られる制御
結果である速度vはエンコーダ507、エンコーダセン
サ508により構成される速度検出手段6によって検出
され(ステップS104)、その検出結果はRAM80
4の検出結果保持手段7に保持される(ステップS10
5)。ここで、速度検出手段による検出はエンコーダ5
07上に印刷等で所定の間隔で構成されたスリットをキ
ャリッジ502に設けられたエンコーダセンサ部508
によって検出し、所定のスリット間距離を移動する時間
と所定のスリット間距離とからキャリヤ502の速度v
を算出している。
The speed v, which is the control result obtained by driving the carrier 502, is detected by the speed detecting means 6 composed of the encoder 507 and the encoder sensor 508 (step S104), and the detection result is the RAM 80.
It is held in the detection result holding means 7 of No. 4 (step S10).
5). Here, the detection by the speed detecting means is performed by the encoder 5
Encoder sensor unit 508 provided on the carriage 502 with slits formed on the 07 at predetermined intervals by printing or the like.
The velocity v of the carrier 502 is detected from the time to move the predetermined slit distance and the predetermined slit distance.
Is calculated.

【0036】この実施例の記録装置のエンコーダは36
0dpi(0,07056mm)間隔で300mmの長
さにわたり構成されている。ここで、この実施例のキャ
リヤの加速は等加速度運動であり、加速距離は15mm
であり、目標到達速度は後述のように431.8mm/
secである。この実施例の場合、保持手段7に保持さ
れた速度vと加速領域を通過する時間より平均加速度を
算出し、算出した加速度aが比較手段8により後述の比
較値と比較される(ステップS106)。この実施例で
は、目標速度として431.8mm/secとしてい
る。これは記録ヘッドの応答周波数6.12KHz、記
録密度360dpiに対応したキャリヤ速度となてい
る。
The encoder of the recording apparatus of this embodiment has 36 encoders.
It is configured over a length of 300 mm at 0 dpi (0.07056 mm) intervals. Here, the acceleration of the carrier in this embodiment is a uniform acceleration motion, and the acceleration distance is 15 mm.
And the target arrival speed is 431.8 mm /
sec. In the case of this embodiment, the average acceleration is calculated from the velocity v held in the holding means 7 and the time of passing through the acceleration region, and the calculated acceleration a is compared with the comparison value described later by the comparing means 8 (step S106). . In this embodiment, the target speed is 431.8 mm / sec. This is a carrier speed corresponding to a recording head response frequency of 6.12 KHz and a recording density of 360 dpi.

【0037】この実施例の場合、実施例1と同様に、比
較値は装置の要求される許容範囲内の限度の値であって
許容範囲内の最大速度Amaxと最小速度Aminであ
り、この場合、Amaxは加速度と目標速度より算出さ
れる加速度の+5%、Aminは、同様に、−5%に設
定されている。ステップ106において、検出結果速度
vから算出される加速度が許容範囲内であれば、制御モ
ードの変更はしないまま終了する。ステップS106に
おいて、キャリヤ502に搭載されている記録ヘッドへ
インクを供給するインクタンク505ののインクが消費
され、キャリヤの重量が大きく変化したこと等により許
容範囲外と判断された場合にはステップS108におい
て現在設定されている制御モードでない制御モードが選
択される。
In the case of this embodiment, as in the case of the first embodiment, the comparison value is the maximum value Amax and the minimum speed Amin within the allowable range, which is the limit value within the allowable range required by the apparatus. , Amax is set to + 5% of the acceleration calculated from the acceleration and the target speed, and Amin is similarly set to -5%. In step 106, if the acceleration calculated from the detection result speed v is within the allowable range, the control mode is not changed and the process ends. In step S106, if the ink in the ink tank 505 that supplies the ink to the print head mounted on the carrier 502 is consumed and it is determined that the weight of the carrier is significantly changed and the like is outside the allowable range, step S108. A control mode other than the control mode currently set in is selected.

【0038】ここでは、例えば、図2に示した制御モー
ドaを選択する。ここで、新たな制御モードが選択され
ても即時にPID制御手段に反映されず一連の記録動作
が終了するまで更新を待機する(ステップS107)。
待機している間は、選択された制御モードでの制御は行
わず、現在設定されている制御モードで制御され、一連
の動作を終了した後に更新される。制御モードが更新さ
れると、記録装置はイニシャル動作に移行し、制御モー
ドによる制御結果を同様に比較する。ここで再び許容範
囲外の制御結果と判断されると、再び後述する異なる制
御モードを選択し、イニシャル動作であるので、直ちに
制御モードを更新し同様に制御結果を比較する。イニシ
ャル動作に移行してから設定された制御モードとは異な
る制御モードを選択し最終的には許容範囲内に収束する
制御モードが選択更新される。こうして更新されて制御
モードに関する情報はEEPROM805に保持され
る。このようにして、制御モードの制御結果が負荷の変
動等系に外乱が加わった結果許容範囲外となった場合で
あっても簡単な構成により別の最適な制御モードに更新
され、制御結果の許容範囲内への収束が達成される。ま
た、制御モードの更新は一連の記録動作の終了後に行わ
れる構成としたため1ページ内での制御モードの変更に
よる記録結果の劣化は見られない。
Here, for example, the control mode a shown in FIG. 2 is selected. Here, even if a new control mode is selected, it is not immediately reflected in the PID control means and the update is awaited until a series of recording operations is completed (step S107).
While waiting, the control in the selected control mode is not performed, the control is performed in the currently set control mode, and is updated after completing the series of operations. When the control mode is updated, the printing apparatus shifts to the initial operation and similarly compares the control results according to the control mode. If it is again determined that the control result is out of the allowable range, a different control mode, which will be described later, is selected again, and since it is the initial operation, the control mode is immediately updated and the control results are similarly compared. After shifting to the initial operation, a control mode different from the set control mode is selected, and finally the control mode that converges within the allowable range is selected and updated. In this way, the information about the control mode updated is held in the EEPROM 805. In this way, even if the control result of the control mode is outside the permissible range as a result of disturbance added to the load fluctuation system, etc., it is updated to another optimum control mode with a simple configuration, and the control result Convergence within an acceptable range is achieved. Further, since the control mode is updated after the series of recording operations is completed, deterioration of the recording result due to the change of the control mode within one page is not seen.

【0039】(実施例5)また、記録装置が、キャリヤ
502から記録ヘッド501やインクタンク505を取
外し、キャリヤにスキャナ等の情報入力手段が搭載可能
に構成されている場合にも好適に適用でき、さらにこの
場合には、記録ヘッド501やインクタンク505やス
キャナ等が交換されたことを検出する不図示の交換検出
手段を設け、実施例2による制御方法を用い、スキャナ
や記録ヘッド、インクタンク等が交換された場合に制御
モードによる制御結果を比較する指示を行うこともでき
る。
(Fifth Embodiment) Further, the present invention can be preferably applied to the case where the recording apparatus is configured such that the recording head 501 and the ink tank 505 are removed from the carrier 502 and the carrier can be equipped with information input means such as a scanner. Further, in this case, a replacement detection means (not shown) for detecting the replacement of the recording head 501, the ink tank 505, the scanner, etc. is provided, and the scanner, the recording head, the ink tank are used by using the control method according to the second embodiment. It is also possible to give an instruction to compare the control results according to the control modes when the items such as the above are exchanged.

【0040】[0040]

【発明の効果】以上説明したように、制御系に制御結果
が不安定にあるような負荷の変動のような外乱が加わっ
ても安定に制御できる。
As described above, stable control can be performed even when a disturbance such as a load change that causes an unstable control result is applied to the control system.

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

【図1】図1は、本発明の実施例1のモータ制御装置の
回路ブロック図である。
FIG. 1 is a circuit block diagram of a motor control device according to a first embodiment of the present invention.

【図2】図2は、本発明の各実施例の制御モードを説明
するための図である。
FIG. 2 is a diagram for explaining a control mode of each embodiment of the present invention.

【図3】図3は、本発明の実施例1のモータ制御装置の
動作のフローチャートである。
FIG. 3 is a flowchart of the operation of the motor control device according to the first embodiment of the present invention.

【図4】図4は、本発明の実施例2のモータ制御装置の
回路ブロック図である。
FIG. 4 is a circuit block diagram of a motor control device according to a second embodiment of the present invention.

【図5】図5は、本発明の実施例2のモータ制御装置の
動作のフローチャートである。
FIG. 5 is a flowchart of the operation of the motor control device according to the second embodiment of the present invention.

【図6】図6は、本発明の実施例3のモータ制御装置の
動作のフローチャートである。
FIG. 6 is a flowchart of the operation of the motor control device according to the third embodiment of the present invention.

【図7】図7は、本発明のモータ制御装置を適用した記
録装置の概略断面図である。
FIG. 7 is a schematic cross-sectional view of a recording device to which the motor control device of the present invention is applied.

【図8】図8は、記録装置の回路ブロック図である。FIG. 8 is a circuit block diagram of the recording apparatus.

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

1 PID制御手段 2 モータドライバ制御手段 3 モータドライバ 4 モータ 5 制御対象 6 速度検出手段 7 検出結果保持手段 8 検出結果比較手段 9 制御モード選択手段 10 偏差算出手段 11 比較指示手段 20 自動給送部 30 搬送部 40 排出部 50 記録部 501 記録ヘッド 502 キャリヤ 507 エンコーダ 508 エンコーダセンサ部 509 キャリヤモータ 1 PID control means 2 Motor driver control means 3 Motor driver 4 Motor 5 Control object 6 Speed detection means 7 Detection result holding means 8 Detection result comparison means 9 Control mode selection means 10 Deviation calculation means 11 Comparison instruction means 20 Automatic feeding section 30 Conveyance unit 40 Ejection unit 50 Recording unit 501 Recording head 502 Carrier 507 Encoder 508 Encoder sensor unit 509 Carrier motor

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 制御対象の速度を検出する速度検出手段
と、該速度検出手段によって検出した速度、所定の目標
速度および所定の制御定数に基づいて制御対象の速度を
制御するモータ制御装置において、 異なる制御定数よりなる複数の制御モードを設定する制
御モード設定手段と、 前記速度検出手段で検出した検出速度を保持する保持手
段と、 前記保持手段で保持された検出速度の値または該値によ
り算出された値を所定の比較値と比較する比較手段と、 前記比較手段の比較結果によって前記制御モード設定手
段によって設定された前記複数の制御モードから1つの
制御モードを選択する選択手段とを有し、 前記選択手段の選択結果に応じて前記制御対象の速度制
御を行うことを特徴とするモータ制御装置。
1. A speed detecting means for detecting a speed of a controlled object, and a motor control device for controlling the speed of the controlled object based on a speed detected by the speed detecting means, a predetermined target speed and a predetermined control constant, Control mode setting means for setting a plurality of control modes having different control constants, holding means for holding the detected speed detected by the speed detecting means, and a value of the detected speed held by the holding means or calculated by the value A comparison unit that compares the calculated value with a predetermined comparison value; and a selection unit that selects one control mode from the plurality of control modes set by the control mode setting unit according to the comparison result of the comparison unit. A motor control device, wherein speed control of the controlled object is performed according to a selection result of the selection means.
【請求項2】 制御対象の速度を検出する速度検出手段
と、該速度検出手段によって検出した速度、所定の目標
速度および所定の制御定数に基づいて制御対象の速度を
制御するモータ制御装置において、 異なる制御定数よりなる複数の制御モードを設定する制
御モード設定手段と、 前記速度検出手段で検出した検出速度を保持する保持手
段と、 前記保持手段で保持された検出速度の値または該値によ
り算出された値を所定の比較値と比較する比較手段と、 前記比較手段による比較を指示する指示手段と、 前記比較手段の比較結果によって前記制御モード設定手
段によって設定された前記複数の制御モードから1つの
制御モードを選択する選択手段とを有し、 前記指示手段による比較の指示があるときだけ、前記比
較手段による比較を行い、かつ前記指示手段による指示
の有無にかかわらず、前記選択手段の選択結果に応じて
前記制御対象の速度制御を行うことを特徴とするモータ
制御装置。
2. A speed detecting means for detecting a speed of a controlled object, and a motor control device for controlling the speed of the controlled object based on a speed detected by the speed detecting means, a predetermined target speed and a predetermined control constant, Control mode setting means for setting a plurality of control modes having different control constants, holding means for holding the detected speed detected by the speed detecting means, and a value of the detected speed held by the holding means or calculated by the value Comparing means for comparing the determined value with a predetermined comparison value, instructing means for instructing comparison by the comparing means, and one of the plurality of control modes set by the control mode setting means according to the comparison result of the comparing means. And a selection means for selecting one of the control modes, and only when there is an instruction for comparison by the instruction means, the comparison by the comparison means is performed, Further, the motor control device is characterized in that the speed control of the controlled object is performed according to the selection result of the selecting means regardless of the presence or absence of the instruction by the instructing means.
【請求項3】 請求項1または2記載のモータ制御装置
において、前記保持手段により保持された検出速度の値
から前記比較手段により算出される値は制御対象の速度
または加速度であることを特徴とするモータ制御装置。
3. The motor control device according to claim 1, wherein the value calculated by the comparison means from the value of the detected speed held by the holding means is the speed or acceleration of the controlled object. Motor control device.
【請求項4】 請求項3記載のモータ制御装置におい
て、前記保持手段により保持される検出速度は前記制御
対象の定速度制御領域移行後の所定の期間内に検出され
る速度であることを特徴とするモータ制御装置。
4. The motor control device according to claim 3, wherein the detected speed held by the holding means is a speed detected within a predetermined period after the control target is moved to a constant speed control region. Motor control device.
【請求項5】 請求項3記載のモータ制御装置におい
て、前記保持手段により保持される検出速度は前記制御
対象の加速開始から定速度制御領域移行までの所定期間
内で検出される速度であることを特徴とするモータ制御
装置。
5. The motor control device according to claim 3, wherein the detected speed held by the holding means is a speed detected within a predetermined period from the start of acceleration of the controlled object to the transition to a constant speed control region. A motor control device characterized by:
【請求項6】 制御対象の速度を検出する速度検出手段
と、該速度検出手段によって検出した速度、所定の目標
速度および所定の制御定数に基づいて制御対象の速度を
制御するモータ制御装置において、 異なる制御定数よりなる複数の制御モードを設定する制
御モード設定手段と、 前記複数の制御モードを順次選択する制御モード順次選
択手段と、 前記制御モード順次選択手段で選択した各制御モードに
おいて、前記速度検出手段で検出した検出速度の各々を
保持する保持手段と、 前記保持手段で保持された検出速度の各々の値から最適
の制御モードを選択する最適制御モード選択手段とを有
し、 前記最適制御モード選択手段で選択した制御モードで前
記制御対象の速度制御を行うことを特徴とするモータ制
御装置。
6. A speed detecting means for detecting a speed of a controlled object, and a motor control device for controlling the speed of the controlled object based on a speed detected by the speed detecting means, a predetermined target speed and a predetermined control constant, Control mode setting means for setting a plurality of control modes consisting of different control constants, control mode sequential selection means for sequentially selecting the plurality of control modes, and each speed in each control mode selected by the control mode sequential selection means Holding means for holding each of the detection speeds detected by the detecting means, and optimum control mode selecting means for selecting an optimum control mode from each value of the detection speeds held by the holding means, A motor control device, wherein speed control of the controlled object is performed in a control mode selected by a mode selection means.
【請求項7】 記録媒体に記録を行う記録ヘッドと記録
に応じて消費される記録材を前記記録ヘッドへ供給する
記録材供給手段とを搭載可能なキャリヤと、該キャリヤ
を前記記録媒体の搬送方向と垂直な方向に操作する駆動
手段と、キャリヤの速度を検出する速度検出手段と、該
速度検出手段による検出結果と所定の目標速度と所定の
制御定数に基づいて前記キャリヤの速度を制御する制御
手段とを有する記録装置において、 異なる制御定数よりなる複数の制御モードを設定する制
御モード設定手段と、 前記速度検出手段で検出した検出速度を保持する保持手
段と、 前記保持手段で保持された検出速度の値または該値によ
り算出された値を所定の比較値と比較する比較手段と、 前記比較手段の比較結果によって前記制御モード設定手
段によって設定された前記複数の制御モードから1つの
制御モードを選択する選択手段とを有し、 前記選択手段の選択結果に応じて前記制御対象の速度制
御を行うことを特徴とする記録装置。
7. A carrier on which a recording head for recording on a recording medium and a recording material supply means for supplying recording material consumed according to recording to the recording head can be mounted, and the carrier for conveying the recording medium. Driving means for operating in a direction perpendicular to the direction, speed detecting means for detecting the speed of the carrier, and controlling the speed of the carrier based on the detection result of the speed detecting means, a predetermined target speed and a predetermined control constant. In a recording apparatus having a control means, a control mode setting means for setting a plurality of control modes having different control constants, a holding means for holding the detected speed detected by the speed detecting means, and a holding means held by the holding means Comparing means for comparing the value of the detected speed or the value calculated by the value with a predetermined comparison value; and the control mode setting means according to the comparison result of the comparing means. And selection means for selecting one control mode from the set of the plurality of control modes Te, the recording apparatus characterized by controlling the speed of said controlled object in accordance with a selection result of said selection means.
【請求項8】 記録媒体に記録を行う記録ヘッドと記録
に応じて消費される記録材を前記記録ヘッドへ供給する
記録材供給手段とを搭載可能なキャリヤと、該キャリヤ
を前記記録媒体の搬送方向と垂直な方向に操作する駆動
手段と、キャリヤの速度を検出する速度検出手段と、該
速度検出手段による検出結果と所定の目標速度と所定の
制御定数に基づいて前記キャリヤの速度を制御する制御
手段とを有する記録装置において、 異なる制御定数よりなる複数の制御モードを設定する制
御モード設定手段と、 前記速度検出手段で検出した検出速度を保持する保持手
段と、 前記保持手段で保持された検出速度の値または該値によ
り算出された値を所定の比較値と比較する比較手段と、 前記比較手段による比較を指示する指示手段と、 前記比較手段の比較結果によって前記制御モード設定手
段によって設定された前記複数の制御モードから1つの
制御モードを選択する選択手段とを有し、 前記指示手段による比較の指示があるときだけ、前記比
較手段による比較を行い、かつ前記指示手段による指示
の有無にかかわらず、前記選択手段の選択結果に応じて
前記制御対象の速度制御を行うことを特徴とする記録装
置。
8. A carrier on which a recording head for recording on a recording medium and recording material supply means for supplying recording material consumed according to recording to the recording head can be mounted, and a carrier for conveying the recording medium. Driving means for operating in a direction perpendicular to the direction, speed detecting means for detecting the speed of the carrier, and controlling the speed of the carrier based on the detection result of the speed detecting means, a predetermined target speed and a predetermined control constant. In a recording apparatus having a control means, a control mode setting means for setting a plurality of control modes having different control constants, a holding means for holding the detected speed detected by the speed detecting means, and a holding means held by the holding means Comparison means for comparing the value of the detected speed or a value calculated by the value with a predetermined comparison value; instruction means for instructing comparison by the comparison means; Selection means for selecting one control mode from the plurality of control modes set by the control mode setting means according to the comparison result, and the comparison by the comparison means is performed only when there is an instruction for comparison by the instruction means. The recording apparatus is characterized in that the speed control of the controlled object is performed according to the selection result of the selection unit regardless of whether or not the instruction is given by the instruction unit.
【請求項9】 請求項7または8記載の記録装置におい
て、前記保持手段により保持された検出速度の値から前
記比較手段により算出される値は制御対象の速度または
加速度であることを特徴とする記録装置。
9. The recording apparatus according to claim 7, wherein the value calculated by the comparing means from the value of the detected speed held by the holding means is the speed or acceleration of the controlled object. Recording device.
【請求項10】 請求項9記載の記録装置において、前
記保持手段により保持される検出速度は前記制御対象の
定速度制御領域移行後の所定の期間内に検出される速度
であることを特徴とする記録装置。
10. The recording apparatus according to claim 9, wherein the detected speed held by the holding means is a speed detected within a predetermined period after the control target is moved to a constant speed control area. Recording device.
【請求項11】 請求項9記載の記録装置において、前
記保持手段により保持される検出速度は前記制御対象の
加速開始から定速度制御領域移行までの所定期間内で検
出される速度であることを特徴とする記録装置。
11. The recording apparatus according to claim 9, wherein the detected speed held by the holding means is a speed detected within a predetermined period from the start of acceleration of the controlled object to the transition to a constant speed control region. Characteristic recording device.
【請求項12】 請求項7または8記載の記録装置にお
いて、前記比較手段による比較は記録装置の記録動作中
に行われることを特徴とする記録装置。
12. The recording apparatus according to claim 7, wherein the comparison by the comparison unit is performed during a recording operation of the recording apparatus.
【請求項13】 請求項7または8記載の記録装置にお
いて、前記選択手段により新たな制御モードが選択され
た場合、一連の記録動作終了後に制御モードの更新が行
われることを特徴とする記録装置。
13. The recording apparatus according to claim 7, wherein when the selection unit selects a new control mode, the control mode is updated after a series of recording operations is completed. .
【請求項14】 請求項7または8記載の記録装置にお
いて、前記保持手段に保持される検出結果は前記複数の
制御モードの各々に対応した検出結果であることを特徴
とする記録装置。
14. The recording apparatus according to claim 7, wherein the detection result held by the holding means is a detection result corresponding to each of the plurality of control modes.
【請求項15】 請求項8記載の記録装置において、前
記記録ヘッドおよび前記記録材供給手段は前記キャリヤ
に交換可能に搭載され、装着可能な情報入力手段をさら
に有し、前記記録ヘッド、前記記録材供給手段または情
報入力手段の交換を検出する装着検出手段を有し、該装
着検出手段の検出結果に応じて前記指示手段が比較を指
示することを特徴とする記録装置。
15. The recording apparatus according to claim 8, wherein the recording head and the recording material supply means are mounted on the carrier in a replaceable manner, and further have mountable information input means, the recording head and the recording means. A recording apparatus comprising: a mounting detecting means for detecting replacement of the material supplying means or the information inputting means, and the instructing means instructing comparison in accordance with a detection result of the mounting detecting means.
【請求項16】 記録媒体に記録を行う記録ヘッドと記
録に応じて消費される記録材を前記記録ヘッドへ供給す
る記録材供給手段とを搭載可能なキャリヤと、該キャリ
ヤを前記記録媒体の搬送方向と垂直な方向に操作する駆
動手段と、キャリヤの速度を検出する速度検出手段と、
該速度検出手段による検出結果と所定の目標速度と所定
の制御定数に基づいて前記キャリヤの速度を制御する制
御手段とを有する記録装置において、 異なる制御定数よりなる複数の制御モードを設定する制
御モード設定手段と、 前記複数の制御モードを順次選択する制御モード順次選
択手段と、 前記制御モード順次選択手段で選択した各制御モードに
おいて、前記速度検出手段で検出した検出速度の各々を
保持する保持手段と、 前記保持手段で保持された検出速度の各々の値から最適
の制御モードを選択する最適制御モード選択手段とを有
し、 前記最適制御モード選択手段で選択した制御モードで前
記制御対象の速度制御を行うことを特徴とする記録装
置。
16. A carrier on which a recording head for recording on a recording medium and a recording material supply means for supplying recording material consumed in accordance with recording to the recording head can be mounted, and the carrier conveys the recording medium. Drive means for operating in a direction perpendicular to the direction, speed detecting means for detecting the speed of the carrier,
In a recording apparatus having a control means for controlling the speed of the carrier based on a detection result of the speed detecting means, a predetermined target speed and a predetermined control constant, a control mode for setting a plurality of control modes having different control constants. Setting means, control mode sequential selection means for sequentially selecting the plurality of control modes, and holding means for holding each of the detected speeds detected by the speed detection means in each control mode selected by the control mode sequential selection means And an optimum control mode selecting means for selecting an optimum control mode from each value of the detected speeds held by the holding means, and the speed of the controlled object in the control mode selected by the optimum control mode selecting means. A recording device characterized by performing control.
JP7208348A 1995-07-24 1995-07-24 Motor control device and recording device using the control device Pending JPH0947057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7208348A JPH0947057A (en) 1995-07-24 1995-07-24 Motor control device and recording device using the control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7208348A JPH0947057A (en) 1995-07-24 1995-07-24 Motor control device and recording device using the control device

Publications (1)

Publication Number Publication Date
JPH0947057A true JPH0947057A (en) 1997-02-14

Family

ID=16554796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7208348A Pending JPH0947057A (en) 1995-07-24 1995-07-24 Motor control device and recording device using the control device

Country Status (1)

Country Link
JP (1) JPH0947057A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002307792A (en) * 2001-04-11 2002-10-23 Seiko Instruments Inc Ink jet printer
JP2005335259A (en) * 2004-05-28 2005-12-08 Seiko Epson Corp Printing apparatus and control method thereof
KR100584548B1 (en) * 2002-06-29 2006-05-30 삼성전자주식회사 Motor control system and method that can be quickly adapted to the operating environment
JP2006218663A (en) * 2005-02-09 2006-08-24 Funai Electric Co Ltd Inkjet printer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002307792A (en) * 2001-04-11 2002-10-23 Seiko Instruments Inc Ink jet printer
KR100584548B1 (en) * 2002-06-29 2006-05-30 삼성전자주식회사 Motor control system and method that can be quickly adapted to the operating environment
JP2005335259A (en) * 2004-05-28 2005-12-08 Seiko Epson Corp Printing apparatus and control method thereof
JP2006218663A (en) * 2005-02-09 2006-08-24 Funai Electric Co Ltd Inkjet printer

Similar Documents

Publication Publication Date Title
US8529012B2 (en) Image forming apparatus and method for correcting landing positions of liquid droplets
US20070216714A1 (en) Recording apparatus
EP0664221B1 (en) A serial printing apparatus controlled by open loop control system
US8348372B2 (en) Ink jet printing apparatus and ink jet printing method
JP4829717B2 (en) Recording apparatus and conveyance control method
US6592198B2 (en) Recording apparatus with control of a recording medium conveying mechanism
JPH0947057A (en) Motor control device and recording device using the control device
JP2013215914A (en) Recording device, drive control method of recording device, and drive control program of recording device
US7463000B2 (en) Motor controlling method, motor controlling apparatus, and recording apparatus
JP4342906B2 (en) Image forming apparatus
JP2020108922A (en) Control device and program
JPH11138928A (en) Ink jet recording device
KR100946720B1 (en) Image forming apparatus
JP4446833B2 (en) Image forming apparatus
JP4355545B2 (en) Motor drive control and image forming apparatus
US7771000B2 (en) Setting method and image forming apparatus
JP2003237057A (en) Ink jet recording apparatus and recording method
JP2007313725A (en) Image forming apparatus
JP2005111936A (en) Recording device
JP2008179057A (en) Printer
JP2005305841A (en) Image forming apparatus
US6341909B1 (en) Recording apparatus and recording-medium supply apparatus
JP4662821B2 (en) Motor drive control device, image forming apparatus, and program
JP4481121B2 (en) Image forming apparatus and program
JP2007136851A (en) Carriage motor control device for recording apparatus, carriage motor control method, and carriage motor control program