JP2010213424A - Motor control device and image forming apparatus - Google Patents
Motor control device and image forming apparatus Download PDFInfo
- Publication number
- JP2010213424A JP2010213424A JP2009055567A JP2009055567A JP2010213424A JP 2010213424 A JP2010213424 A JP 2010213424A JP 2009055567 A JP2009055567 A JP 2009055567A JP 2009055567 A JP2009055567 A JP 2009055567A JP 2010213424 A JP2010213424 A JP 2010213424A
- Authority
- JP
- Japan
- Prior art keywords
- compensation
- count value
- section
- dirt
- 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.)
- Granted
Links
- 230000002159 abnormal effect Effects 0.000 claims abstract description 128
- 230000005856 abnormality Effects 0.000 claims abstract description 17
- 238000001514 detection method Methods 0.000 claims description 83
- 238000004364 calculation method Methods 0.000 claims description 39
- 230000006866 deterioration Effects 0.000 abstract description 6
- 238000000034 method Methods 0.000 description 42
- 230000008569 process Effects 0.000 description 37
- 238000012545 processing Methods 0.000 description 28
- 238000011109 contamination Methods 0.000 description 21
- 101100163897 Caenorhabditis elegans asic-2 gene Proteins 0.000 description 9
- 230000015572 biosynthetic process Effects 0.000 description 9
- 230000000630 rising effect Effects 0.000 description 7
- 238000012937 correction Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000004519 grease Substances 0.000 description 2
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Character Spaces And Line Spaces In Printers (AREA)
- Control Of Direct Current Motors (AREA)
Abstract
【課題】 リニアスケールに汚れが付着している区間を特定し、その区間内では補償制御を行うことで、汚れに起因した制御性能の劣化を抑制する。
【解決手段】 リニアスケール46の汚れ71,72によってキャリッジの異常速度が検出された場合、キャリッジを全走査域で駆動させて異常時全カウント値Mを計測し、更に、キャリッジを走査域の一端側から駆動させてその駆動開始から異常速度が検出されるまでの第1カウント値kaと、他端側から駆動させてその駆動開始から異常速度が検出されるまでの第2カウント値kbを計測する。そして、全走査域のノミナルカウント値Nからkaとkbの和を減算して汚れ区間幅mを算出し、異常時全カウント値Mからkaとkbの和を減算して汚れ区間内実カウント値zを算出して、汚れ区間を特定する。この汚れ区間を補償区間とし、以後この補償区間内では保持操作量を用いた補償制御を行う。
【選択図】図5PROBLEM TO BE SOLVED: To suppress deterioration of control performance due to dirt by specifying a section where dirt is attached to a linear scale and performing compensation control in the section.
When an abnormal speed of a carriage is detected due to dirt 71 and 72 of a linear scale 46, the carriage is driven in the entire scanning area to measure the total count value M at the time of abnormality, and the carriage is further connected to one end of the scanning area. The first count value ka from the start of driving until the abnormal speed is detected, and the second count value kb from the other end side until the abnormal speed is detected are measured. To do. Then, the sum of ka and kb is calculated by subtracting the sum of ka and kb from the nominal count value N in the entire scanning area, and the sum of ka and kb is subtracted from the total count value M at the time of abnormality to obtain the actual count value z in the dirt section. Is calculated to identify the dirt section. This dirt section is used as a compensation section, and thereafter, compensation control using the holding operation amount is performed in this compensation section.
[Selection] Figure 5
Description
本発明は、モータにより駆動される被駆動体の駆動をリニアエンコーダからの信号に基づいて制御するモータ制御装置、及びこのモータ制御装置を搭載した画像形成装置に関する。 The present invention relates to a motor control device that controls driving of a driven body driven by a motor based on a signal from a linear encoder, and an image forming apparatus equipped with the motor control device.
従来、インクジェットプリンタにおいて、記録ヘッドを搭載したキャリッジの駆動は、モータによって制御されている。モータによるキャリッジの駆動制御を高精度に行うためには、キャリッジの位置や速度等の駆動状態を検出する必要があるが、その駆動状態検出には、一般に、所定間隔でスリットが形成されたリニアスケールを有するリニアエンコーダが用いられている。 Conventionally, in an ink jet printer, driving of a carriage on which a recording head is mounted is controlled by a motor. In order to control the carriage drive by the motor with high accuracy, it is necessary to detect the driving state such as the position and speed of the carriage. In general, linearity in which slits are formed at predetermined intervals is used for detecting the driving state. A linear encoder having a scale is used.
リニアエンコーダを用いたモータ制御装置では、キャリッジが一定量(スリットの間隔)移動する度にリニアエンコーダから出力されるパルス信号(エンコーダ信号)がカウントされ、そのカウント値に基づいてキャリッジの位置や速度が検出される。そして、その検出された位置や速度が目標位置・目標速度に一致するよう、フィードバック制御が行われる。なお、エンコーダ信号のカウントは、例えばその立ち上がりエッジ、立ち下がりエッジ、又はその両方に基づいて行われるのが一般的である。 In a motor control device using a linear encoder, a pulse signal (encoder signal) output from the linear encoder is counted each time the carriage moves by a certain amount (slit interval), and the position and speed of the carriage are based on the count value. Is detected. Then, feedback control is performed so that the detected position and speed coincide with the target position / target speed. The encoder signal is generally counted based on, for example, its rising edge, falling edge, or both.
ところで、リニアエンコーダを構成するリニアスケールは、インクジェットプリンタの製造ラインにおいてインクが付着したり、ユーザによる使用時に機器内部のグリスが付着したりするなどして、汚れが付着してしまうことがある。 By the way, the linear scale constituting the linear encoder may become contaminated due to ink adhering to the production line of the ink jet printer or grease inside the apparatus adhering when used by the user.
そして、リニアスケールに汚れが付着すると、モータ制御装置では、その汚れの影響によってエンコーダ信号の数が実際よりも少なく(或いは多く)カウントされてしまい、キャリッジの速度が誤検出されてしまうおそれがある。 If dirt is attached to the linear scale, the motor control device may count the number of encoder signals less (or more) than actual due to the dirt, and the carriage speed may be erroneously detected. .
そのため、例えばキャリッジが一定速度で駆動されている場合に、リニアスケールの汚れに起因して検出速度に変動が生じると、実際には変動していないにもかかわらず、誤検出された速度変動に基づいて、その速度変動を抑えるための不要な制御がなされてしまう。 Therefore, for example, when the carriage is driven at a constant speed, if the detection speed fluctuates due to the contamination of the linear scale, the detected fluctuating speed fluctuates even though it does not actually fluctuate. On the basis of this, unnecessary control for suppressing the speed fluctuation is performed.
このようなエンコーダスケールの汚れに対し、例えば特許文献1には、モータによってキャリッジを移動させる画像形成装置において、キャリッジの検出速度が予め定めた閾値以外の速度異常値であった場合に、その速度異常値の出現区間が微小範囲(例えば制御周期1区間)である場合は当該検出速度に代えて直前の検出速度を用いてモータの駆動制御を行い、連続した制御周期(例えば制御周期4回以上)で速度異常値が検出された場合や同一箇所で複数回連続して速度異常値が検出された場合には、エンコーダ汚れと判断してユーザへの通知等を行う。 For example, Japanese Patent Application Laid-Open No. H10-260260 discloses a technique for dealing with such encoder scale contamination, in an image forming apparatus in which a carriage is moved by a motor, when the detected speed of the carriage is an abnormal speed value other than a predetermined threshold value. When the abnormal value appearance section is in a very small range (for example, one section of the control cycle), the drive control of the motor is performed using the immediately preceding detection speed instead of the detection speed, and a continuous control cycle (for example, four or more control cycles). If an abnormal speed value is detected in step (1), or if an abnormal speed value is detected continuously several times at the same location, it is determined that the encoder is dirty and a notification to the user is made.
また、特許文献2には、搬送ベルトや中間転写ベルトなどのベルト上にエンコーダスケールが設けられたレーザプリンタにおいて、スケールの継ぎ目や、スケールに付着したトナーの影響などによって、演算速度が所定の正規範囲を逸脱していると判断された場合に、目標速度もしくは過去の演算速度の平均値をフィードバック量として用い、これに基づき操作量を演算することが記載されている。 Further, in Patent Document 2, in a laser printer in which an encoder scale is provided on a belt such as a conveyance belt or an intermediate transfer belt, the calculation speed is set to a predetermined regularity due to the joint of the scale or the influence of toner attached to the scale. It is described that, when it is determined that the value is out of the range, an average value of a target speed or a past calculation speed is used as a feedback amount, and an operation amount is calculated based on this.
しかしながら、特許文献1に記載の技術は、速度異常値の発生区間や発生頻度に基づいてエンコーダ汚れの有無を判断できるものの、エンコーダ汚れを判定した場合は単にその旨を通知してユーザへメンテナンス等を促すだけであり、エンコーダ汚れが生じている区間においてそのエンコーダ汚れの影響を排除するための具体的制御法までは提案されていない。 However, although the technique described in Patent Document 1 can determine the presence / absence of encoder contamination based on the generation section and frequency of abnormal speed values, when encoder contamination is determined, it simply notifies the user and performs maintenance, etc. No specific control method has been proposed for eliminating the influence of encoder contamination in a section where encoder contamination has occurred.
また、特許文献1,2のいずれにおいても、エンコーダスケールの汚れが発生している区間を正確に検出することはできず、エンコーダスケールの汚れに起因して生じる検出速度の異常に対してこれを補償するための制御が必要以上になされ、制御性能が悪化するおそれがある。 In both Patent Documents 1 and 2, it is not possible to accurately detect the section where the encoder scale is contaminated, and this is detected with respect to the abnormal detection speed caused by the encoder scale dirt. Control for compensation is performed more than necessary, and control performance may be deteriorated.
しかも、エンコーダスケールの汚れの影響を排除するために、速度異常が検出された場合には直前の検出速度や目標速度等をフィードバック量としてモータ制御を行うようにしているため、実際の位置における摺動負荷が考慮された制御が行われず、制御精度が劣化するおそれがある。 In addition, in order to eliminate the influence of dirt on the encoder scale, when a speed abnormality is detected, the motor control is performed using the immediately preceding detected speed, target speed, etc. as a feedback amount. There is a possibility that control in consideration of the dynamic load is not performed and the control accuracy is deteriorated.
本発明は上記課題に鑑みなされたものであり、リニアエンコーダによって被駆動体の駆動状態を検出すると共に、その検出した駆動状態に基づいて被駆動体の駆動をモータにより制御するよう構成されたモータ制御装置において、被駆動体の全駆動範囲のうち、リニアスケールに汚れが付着している区間を特定すると共に、その区間内においては実際の検出結果を用いずにその区間に応じた適切な補償制御を行うことで、リニアスケールの汚れに起因した制御性能の劣化を抑制することを目的とする。 The present invention has been made in view of the above problems, and a motor configured to detect a driving state of a driven body by a linear encoder and to control driving of the driven body by a motor based on the detected driving state. In the control device, in the entire drive range of the driven body, the section where the linear scale is contaminated is specified, and appropriate compensation corresponding to the section is used without using the actual detection result in the section. The purpose is to suppress the deterioration of the control performance due to the contamination of the linear scale.
上記課題を解決するためになされた請求項1記載の発明は、予め設定された移動経路上をモータにより駆動される被駆動体の移動量に応じてパルス状のエンコーダ信号を出力するリニアエンコーダと、このリニアエンコーダからのエンコーダ信号をカウントし、該カウント値に基づいて被駆動体の速度及び位置を検出する駆動状態検出手段と、所定の演算タイミング毎に、駆動状態検出手段による検出速度に基づいてモータを制御するための操作量を演算して該モータへ出力する操作量演算手段と、を備えたモータ制御装置であって、異常速度検知手段と、補償区間検出手段と、操作量補償手段と、を備えている。 The invention according to claim 1, which has been made to solve the above-mentioned problems, includes a linear encoder that outputs a pulse-like encoder signal in accordance with the amount of movement of a driven body driven by a motor on a preset movement path. A drive state detection unit that counts encoder signals from the linear encoder and detects the speed and position of the driven body based on the count value; and a detection speed by the drive state detection unit at every predetermined calculation timing. An operation amount calculation means for calculating an operation amount for controlling the motor and outputting the operation amount to the motor, comprising: an abnormal speed detection means; a compensation section detection means; and an operation amount compensation means And.
異常速度検知手段は、駆動状態検出手段による検出速度が予め設定された速度正常範囲から外れた異常速度であるか否かを検知する。
補償区間検出手段は、異常速度検知手段によって異常速度が検知された場合に、被駆動体を移動経路の一端から駆動させて異常速度検知手段により異常速度が検知されるまでのエンコーダ信号をカウントすることにより第1カウント値kaを計測すると共に、被駆動体を移動経路の他端から駆動させて異常速度検知手段により異常速度が検知されるまでのエンコーダ信号をカウントすることにより第2カウント値kbを計測して、該各カウント値ka,kbに対応した位置の間を補償区間として検出する。
The abnormal speed detecting means detects whether or not the speed detected by the drive state detecting means is an abnormal speed that is out of a preset normal speed range.
When the abnormal speed is detected by the abnormal speed detecting means, the compensation section detecting means drives the driven body from one end of the movement path and counts an encoder signal until the abnormal speed is detected by the abnormal speed detecting means. Thus, the first count value ka is measured, and the second count value kb is measured by driving the driven body from the other end of the movement path and counting the encoder signal until the abnormal speed is detected by the abnormal speed detecting means. Is measured, and a position between the positions corresponding to the respective count values ka and kb is detected as a compensation section.
そして、操作量補償手段は、補償区間検出手段により補償区間が検出された後の被駆動体の駆動の際、駆動状態検出手段による検出位置に基づいて被駆動体が補償区間に入ったかどうかを判断すると共に、補償区間に入った場合、該補償区間内においては、操作量として、該補償区間に入る前に操作量演算手段により演算された一又は複数の操作量に基づいて得られる保持操作量を出力する。 The manipulated variable compensation means determines whether the driven body has entered the compensation section based on the detection position by the driving state detection means when driving the driven body after the compensation section is detected by the compensation section detection means. When determining and entering the compensation section, a holding operation obtained based on one or a plurality of operation amounts calculated by the operation amount calculation means before entering the compensation section as the operation amount within the compensation section Output quantity.
リニアエンコーダにおいて、例えばこれを構成するリニアスケールに汚れ等が付着していると、被駆動体が移動経路上を一定速度で移動していても、その汚れ等が付着している位置に対応した位置を通過する際、その汚れ等の影響を受けて、駆動状態検出手段における検出速度に変動が生じるおそれがある。 In a linear encoder, for example, if dirt is attached to the linear scale constituting the linear encoder, even if the driven body is moving at a constant speed on the movement path, it corresponds to the position where the dirt is attached. When passing through the position, the detection speed in the drive state detection means may vary due to the influence of dirt or the like.
そこで請求項1に記載の発明では、異常速度が検知された場合には、その異常速度がリニアスケールの汚れ等に起因するものである(即ちリニアスケールに汚れ等が付着している)との一応の仮定の元で、その汚れ等が付着している区間を補償区間として特定する。そして、以後の被駆動体の駆動時は、その補償区間においては、操作量演算手段により演算される操作量(駆動状態検出手段による検出速度に基づいて演算される操作量)に代えて、操作量補償手段からの保持操作量によってモータを制御する。 Therefore, in the first aspect of the invention, when an abnormal speed is detected, the abnormal speed is caused by dirt or the like of the linear scale (that is, dirt or the like is attached to the linear scale). Based on a temporary assumption, a section where the dirt is attached is specified as a compensation section. Then, when driving the driven body thereafter, in the compensation section, instead of the operation amount calculated by the operation amount calculation means (the operation amount calculated based on the detection speed by the drive state detection means), the operation amount The motor is controlled by the holding operation amount from the amount compensation means.
従って、請求項1に記載のモータ制御装置によれば、汚れ等が付着している区間(補償区間)において、汚れ等に起因して生じる検出速度の変動の影響がモータ制御に反映されてしまうのを防止でき、被駆動体を安定して駆動させることができる。しかも、保持操作量によるモータ制御はあくまでも補償区間内で行われ、それ以外の区間では通常通り検出速度に基づいて演算された操作量が用いられるため、全体として制御性能の劣化を大幅に抑え、高精度にモータを制御することができる。 Therefore, according to the motor control device of the first aspect, in the section (compensation section) where dirt or the like is attached, the influence of the variation in the detection speed caused by the dirt or the like is reflected in the motor control. Can be prevented, and the driven body can be driven stably. In addition, the motor control based on the holding operation amount is performed only within the compensation section, and the operation amount calculated based on the detection speed is used in the other sections as usual. The motor can be controlled with high accuracy.
また、補償区間で用いられる保持操作量は、被駆動体が補償区間に入る前に操作量演算手段によって実際に演算された、被駆動体の摺動負荷等が考慮された値である。そのため、このような保持操作量を補償区間で用いることによって、補償区間内においてもより適切な制御を実現することができる。 The holding operation amount used in the compensation section is a value that takes into account the sliding load of the driven body, which is actually calculated by the operation amount calculation means before the driven body enters the compensation section. Therefore, by using such a holding operation amount in the compensation section, more appropriate control can be realized even in the compensation section.
次に、請求項2に記載の発明は、請求項1に記載のモータ制御装置において、異常速度検知手段によって異常速度が検知された場合に、被駆動体を移動経路の一端から他端までの全領域を駆動させ、該駆動中のエンコーダ信号をカウントすることにより異常時全カウント値Mを計測する異常時全カウント値計測手段と、第1カウント値kaと第2カウント値kbの和を異常時全カウント値Mから減算することにより補償区間内実カウント値zを演算する補償区間内実カウント値演算手段を備えている。そして、操作量補償手段は、被駆動体が補償区間に入った場合、該入った後の駆動状態検出手段によるカウント値及び補償区間内実カウント値zに基づいて該補償区間の終了位置を検出し、該終了位置が検出されるまで保持操作量を出力する。 Next, according to a second aspect of the present invention, in the motor control device according to the first aspect, when the abnormal speed is detected by the abnormal speed detecting means, the driven body is moved from one end of the moving path to the other end. An abnormal total count value measuring means for measuring the abnormal total count value M by driving the entire area and counting the encoder signals being driven, and the sum of the first count value ka and the second count value kb is abnormal Compensation interval actual count value calculating means for calculating the compensation interval actual count value z by subtracting from the entire time count value M is provided. Then, when the driven body enters the compensation section, the manipulated variable compensation means detects the end position of the compensation section based on the count value and the actual count value z within the compensation section after the entry of the driven state detection means. The holding operation amount is output until the end position is detected.
即ち、異常時全カウント値Mから第1カウント値kaと第2カウント値kbの和を減算することにより、汚れ等が生じている補償区間内において現にカウント可能な値(補償区間内実カウント値z)が得られる。 That is, by subtracting the sum of the first count value ka and the second count value kb from the total count value M at the time of abnormality, a value that can be actually counted in the compensation section where the contamination or the like occurs (the actual count value z in the compensation section). ) Is obtained.
そのため、被駆動体が補償区間に入った後は、この補償区間内実カウント値zに基づき、補償区間の終了位置を検出できる。例えばz=2の場合、補償区間に入った後、2カウント計測されるまではまだ補償区間であり、3カウント目が計測されたときに、補償区間から出たものと判断できる。 Therefore, after the driven body enters the compensation section, the end position of the compensation section can be detected based on the actual count value z in the compensation section. For example, in the case of z = 2, after entering the compensation section, it is still a compensation section until 2 counts are measured, and when the third count is measured, it can be determined that the exit is from the compensation section.
従って、請求項2に記載のモータ制御装置によれば、被駆動体が補償区間に入った後、補償区間が終了するタイミングを正確に検出することができる。そのため、保持操作量によるモータ制御を必要十分に行うことができ、制御性能の劣化をより確実に抑えることができる。 Therefore, according to the motor control device of the second aspect, it is possible to accurately detect the timing at which the compensation section ends after the driven body enters the compensation section. Therefore, the motor control by the holding operation amount can be performed sufficiently and sufficiently, and the deterioration of the control performance can be more reliably suppressed.
次に、請求項3に記載の発明は、請求項2に記載のモータ制御装置において、リニアエンコーダが正常である場合に被駆動体を移動経路の一端から他端までの全領域を駆動させたときの、該駆動中の前記エンコーダ信号のカウント値であるノミナルカウント値Nが予め記憶されている記憶手段と、異常速度検知手段によって異常速度が検知された場合に、前常時全カウント値計測手段により計測された異常時全カウント値Mをノミナルカウント値Nから減算することにより、異常時カウント誤差nを検出する異常時カウント誤差検出手段と、補償区間検出手段により補償区間が検出された後の被駆動体の駆動の際、被駆動体が補償区間から出たときに、駆動状態検出手段によるカウント中のカウント値を、補償区間から出たときのカウント値に異常時カウント誤差nを加算した値に修正する修正手段と、を備えている。 Next, in the third aspect of the invention, in the motor control device of the second aspect, when the linear encoder is normal, the driven body is driven in the entire region from one end to the other end of the moving path. Storage means in which a nominal count value N, which is a count value of the encoder signal being driven, is stored in advance, and when an abnormal speed is detected by the abnormal speed detection means, the all-time count value measurement means always before By subtracting the abnormal total count value M measured by the above from the nominal count value N, the abnormal count error detecting means for detecting the abnormal count error n and the compensation section detecting means after detecting the compensation section When driving the driven body, when the driven body goes out of the compensation section, the count value being counted by the drive state detecting means is changed to the count value when the driven body goes out of the compensation section It comprises a correction means for correcting a value obtained by adding the abnormal count difference n, the.
即ち、被駆動体が補償区間を移動している間にカウントされるエンコーダ信号の数は、汚れ等の影響により、補償区間内が仮に汚れ等が存在していない正常状態であったならばカウントされるはずのカウント数とは異なる値になる。 That is, the number of encoder signals counted while the driven body is moving in the compensation section is counted if the compensation section is in a normal state in which there is no dirt due to the influence of dirt, etc. It becomes a value different from the count number that should be done.
そこで、異常時全カウント値Mをノミナルカウント値Nから減算することによって異常時カウント誤差nを検出する。この異常時カウント誤差nは、補償区間内における、汚れ等の影響を受けた実際のカウント値と汚れ等がなかったならばカウントされるはずの正常時のカウント値との差を意味するものである。そして、被駆動体が補償区間から出たとき、その時の実際のカウント値に異常時カウント誤差nを加算することで、カウント値を、その時の被駆動体の位置に対応した正しい値に修正する。 Therefore, the abnormal count error n is detected by subtracting the abnormal total count value M from the nominal count value N. This abnormal count error n means the difference between the actual count value affected by dirt and the like and the normal count value that should be counted if there is no dirt in the compensation interval. is there. When the driven body goes out of the compensation section, the count value is corrected to a correct value corresponding to the position of the driven body at that time by adding the abnormal count error n to the actual count value at that time. .
従って、請求項3に記載のモータ制御装置によれば、補償区間を通過した後の被駆動体の実際の位置とカウント値とのずれをなくすことができ、補償区間通過後のモータ制御を、補償区間の影響(即ち汚れ等の影響)を受けることなく、より高精度に行うことができる。 Therefore, according to the motor control device of the third aspect, the deviation between the actual position of the driven body after passing through the compensation section and the count value can be eliminated, and the motor control after passing through the compensation section is performed. This can be performed with higher accuracy without being affected by the compensation interval (that is, the influence of dirt or the like).
次に請求項4に記載の発明は、請求項3に記載のモータ制御装置において、操作量補償手段は、異常時カウント誤差nが0ではない場合に、保持操作量を出力する。
異常速度が検出される原因は、必ずしも、リニアスケールの汚れ等、エンコーダに起因するものに限らず、例えば負荷変動等によって実際に速度が変動することも起こり得る。そこで、異常速度が検出された場合、異常時カウント誤差nが0かどうかをみることで、その異常速度の原因がエンコーダに起因するものであるのか否かを判断する。そして、異常時カウント誤差nが0ではない場合、即ち異常速度の原因がエンコーダに起因するものと判断された場合に、補償区間における保持操作量による制御を行う。
Next, according to a fourth aspect of the present invention, in the motor control device according to the third aspect, the operation amount compensation means outputs the holding operation amount when the abnormality count error n is not zero.
The reason why the abnormal speed is detected is not necessarily limited to that caused by the encoder, such as contamination of the linear scale, and the speed may actually fluctuate due to, for example, load fluctuation. Therefore, when an abnormal speed is detected, it is determined whether or not the cause of the abnormal speed is due to the encoder by checking whether the abnormal count error n is 0 or not. Then, when the abnormal count error n is not 0, that is, when it is determined that the cause of the abnormal speed is caused by the encoder, the control with the holding operation amount in the compensation section is performed.
従って、請求項4に記載のモータ制御装置によれば、補償制御の要否をより正確に判断でき、より高性能のモータ制御装置を提供することができる。
次に、請求項5に記載の発明は、請求項4に記載のモータ制御装置において、異常時カウント誤差検出手段によって異常時カウント誤差nが0と検出された場合に該検出結果に基づく予め決められた報知を行う第1報知手段を備えている。
Therefore, according to the motor control device of the fourth aspect, it is possible to more accurately determine whether or not compensation control is necessary, and it is possible to provide a motor control device with higher performance.
According to a fifth aspect of the present invention, in the motor control device according to the fourth aspect, when the abnormal count error n is detected as 0 by the abnormal count error detecting means, a predetermined determination is made based on the detection result. First notification means for performing the notified notification is provided.
異常時カウント誤差nが0、即ち異常時全カウント値Mとノミナルカウント値Nが一致していれば、リニアエンコーダは汚れ等がなく正常な状態であると判断することができる。そのため、異常時カウント誤差nが0であるにもかかわらず異常速度が検知されたということは、リニアエンコーダの汚れ等とは異なる何らかの異常が生じている可能性がある。そこで、異常速度検知時に異常時カウント誤差nが0である場合は、第1報知手段が報知を行う。 If the abnormal count error n is 0, that is, if the abnormal total count value M and the nominal count value N coincide with each other, it can be determined that the linear encoder is not contaminated and is in a normal state. For this reason, the fact that the abnormal speed is detected even though the count error n at the time of abnormality is 0 may mean that some abnormality different from the contamination of the linear encoder has occurred. Therefore, if the abnormal time count error n is 0 when the abnormal speed is detected, the first notification means performs notification.
従って、請求項5に記載のモータ制御装置によれば、異常速度の原因がリニアエンコーダの汚れ等に起因するものではない場合には報知が行われるため、当該モータ制御装置のユーザ等は、その報知に基づいて、異常発生に対する適切な措置をとることができる。 Therefore, according to the motor control device of the fifth aspect, since the notification is performed when the cause of the abnormal speed is not due to the contamination of the linear encoder, the user of the motor control device Based on the notification, it is possible to take appropriate measures against the occurrence of an abnormality.
次に、請求項6に記載の発明は、請求項3〜請求項5の何れか1項に記載のモータ制御装置において、第1カウント値kaと第2カウント値kbの和をノミナルカウント値Nから減算することにより、補償区間において駆動状態検出手段により本来カウントされるべきカウント値である補償区間幅mを演算する補償区間幅演算手段と、この補償区間幅演算手段により検出された補償区間幅mが、予め設定した補償区間幅閾値より大きいか否かを判断する補償区間幅判断手段と、を備えている。そして、操作量補償手段は、補償区間幅判断手段により補償区間幅mが補償区間幅閾値以下と判断された場合に、保持操作量を出力する。 Next, according to a sixth aspect of the present invention, in the motor control apparatus according to any one of the third to fifth aspects, the sum of the first count value ka and the second count value kb is calculated as a nominal count value N. The compensation interval width calculating means for calculating the compensation interval width m, which is the count value that should be counted by the driving state detecting means in the compensation interval, and the compensation interval width detected by the compensation interval width calculating means compensation interval width determining means for determining whether m is larger than a preset compensation interval width threshold value. The operation amount compensation means outputs the holding operation amount when the compensation section width determination means determines that the compensation section width m is equal to or less than the compensation section width threshold.
保持操作量は、補償区間に入る前の実際の操作量に基づいて得られる値であるとはいえ、補償区間内を移動中の被駆動体の実際の位置・速度が直接的に反映された値ではない。そのため、補償区間幅mが広すぎる場合に、その広い補償区間全体にわたって保持操作量による制御を行うのは、あまり好ましくない。 Although the holding operation amount is a value obtained based on the actual operation amount before entering the compensation section, the actual position and speed of the driven body moving in the compensation section are directly reflected. Not a value. For this reason, when the compensation interval width m is too wide, it is not preferable to perform the control with the holding operation amount over the wide compensation interval.
そこで、請求項6に記載の発明のように、保持操作量による制御を、補償区間幅mが補償区間幅閾値以下の場合に限定して行うようにすることで、制御性能の劣化を防ぐことができる。 Therefore, as in the invention described in claim 6, the control by the holding operation amount is limited to the case where the compensation interval width m is equal to or less than the compensation interval width threshold, thereby preventing the deterioration of the control performance. Can do.
なお、補償区間幅mが広くなるケースとしては、単純に1つの汚れが広い範囲にわたって連続的に付着しているケースの他、狭い領域の汚れが断続的に点在しているケースなどが想定される。 As a case where the compensation interval width m is wide, a case where a single dirt is continuously adhered over a wide range, a case where dirt in a narrow region is intermittently scattered, and the like are assumed. Is done.
次に、請求項7に記載の発明は、請求項6に記載のモータ制御装置において、補償区間幅判断手段により補償区間幅mが補償区間幅閾値より大きいと判断された場合に該判断結果に基づく予め決められた報知を行う第2報知手段を備えている。 Next, in the seventh aspect of the present invention, in the motor control device according to the sixth aspect, when the compensation section width determining unit determines that the compensation section width m is larger than the compensation section width threshold, the determination result is obtained. Second notification means for performing predetermined notification based thereon is provided.
上述したように、補償区間幅mが広すぎる場合にその広い補償区間全体にわたって保持操作量による制御を行うのはあまり好ましくない。
そこで、請求項7に記載の発明のように、補償区間幅mが広すぎる(補償区間幅閾値より大きい)場合に報知を行うようにすれば、当該モータ制御装置のユーザ等は、その報知に基づいて、異常発生に対する適切な措置をとることができる。
As described above, when the compensation interval width m is too wide, it is not preferable to perform the control with the holding operation amount over the entire wide compensation interval.
Therefore, as in the seventh aspect of the invention, if the notification is performed when the compensation interval width m is too wide (larger than the compensation interval width threshold), the user of the motor control device or the like can notify the notification. Based on this, it is possible to take appropriate measures against abnormal occurrence.
次に、請求項8に記載の発明は、請求項1〜請求項7の何れか1項に記載のモータ制御装置において、補償区間検出手段により補償区間が検出された後の被駆動体の駆動の際、被駆動体が補償区間に入る前に異常速度検知手段によって異常速度が検知された場合に、補償区間の開始位置を、現在検出されている位置よりも予め決められた量だけ前の位置へ更新する更新手段を備えている。 Next, according to an eighth aspect of the present invention, in the motor control device according to any one of the first to seventh aspects, the driven body is driven after the compensation section is detected by the compensation section detecting means. In this case, when the abnormal speed is detected by the abnormal speed detection means before the driven body enters the compensation section, the start position of the compensation section is set by a predetermined amount before the currently detected position. Updating means for updating to a position is provided.
補償区間検出手段によって検出された補償区間の開始位置(各カウント値ka,kbに基づく)は、異常速度が検出されたときのカウント値に基づくものであるため、必ずしも現実に汚れ等が付着している位置の端部に一致しているとは限らない。即ち、異常速度の検知タイミングとエンコーダ信号のカウントタイミングの関係によっては、汚れ等が付着している範囲に入ってしばらく経過(移動)した後に異常速度が検知される可能性もある。そうなると、実際に汚れ等が付着している範囲全体がもれなく補償区間として設定されず、補償区間に入る前にエンコーダ汚れ等による検出速度の変動が生じてしまうおそれがある。 The start position of the compensation section (based on the count values ka and kb) detected by the compensation section detection means is based on the count value when the abnormal speed is detected. It does not always coincide with the end of the position. In other words, depending on the relationship between the detection timing of the abnormal speed and the count timing of the encoder signal, the abnormal speed may be detected after a certain time has passed (moved) after entering the area where dirt or the like is attached. In this case, the entire area where dirt or the like is actually attached is not completely set as a compensation section, and there is a possibility that the detection speed fluctuates due to encoder dirt or the like before entering the compensation section.
そこで、請求項8に記載の発明では、補償区間を検出してその区間内では保持操作量による制御を行うようにした後も、異常速度が検知された場合には、補償区間の開始位置をより早めるようにしている。 Therefore, in the invention described in claim 8, when the compensation section is detected and the control based on the holding operation amount is performed in the section, if the abnormal speed is detected, the start position of the compensation section is set. I try to make it faster.
これにより、設定された補償区間の開始位置と実際の汚れ等付着開始位置との間にずれ・誤差等があってもそれを修正することができ、汚れ等が付着している区間全体に渡って確実に保持操作量による制御を行うようにすることができる。 As a result, even if there is a deviation or error between the start position of the set compensation section and the actual dirt start position, it can be corrected. Thus, the control based on the holding operation amount can be surely performed.
ここで、操作量補償手段が出力する保持操作量は、具体的には、例えば請求項9に記載のように、被駆動体が補償区間に入る直前の演算タイミングで操作量演算手段により演算された操作量としてもよいし、例えば請求項10に記載のように、被駆動体が補償区間に入る前における複数の演算タイミングで操作量演算手段により演算された各操作量の平均値としてもよい。 Here, specifically, the holding operation amount output by the operation amount compensation unit is calculated by the operation amount calculation unit at a calculation timing immediately before the driven body enters the compensation section, for example, as described in claim 9. For example, as described in claim 10, the operation amount may be an average value of each operation amount calculated by the operation amount calculation means at a plurality of calculation timings before the driven body enters the compensation section. .
請求項9に記載のモータ制御装置によれば、補償区間に入る直前に演算された実際の操作量を用いることで、その地点の摺動負荷が考慮されたより適切な操作量にて補償制御を行うことができるため、補償区間内においても被駆動体に対してより適切な駆動力を与えることができる。 According to the motor control device of the ninth aspect, by using the actual operation amount calculated immediately before entering the compensation section, the compensation control is performed with a more appropriate operation amount considering the sliding load at the point. Since this can be performed, a more appropriate driving force can be applied to the driven body even within the compensation section.
但し、操作量演算手段により演算される操作量は、モータの回転に伴って生じるコギングによるトルク変動やノイズなどの影響によって変動するおそれがある。そのため、上記請求項9のように補償区間に入る直前の(1つの)操作量を保持操作量とする場合、その1つの操作量がモータのトルク変動やノイズ等の影響をどの程度受けたものであるかによっては、必ずしもその操作量を保持操作量とすることが適切とはいえない場合がある。 However, the operation amount calculated by the operation amount calculation means may vary due to the influence of torque variation or noise due to cogging generated as the motor rotates. Therefore, when (one) operation amount immediately before entering the compensation section is set as the holding operation amount as in claim 9, how much the one operation amount is affected by the torque fluctuation of the motor, noise, etc. In some cases, it is not always appropriate to set the operation amount as the holding operation amount.
そこで、請求項10に記載のように、補償区間に入る前において演算された複数の操作量の平均値を保持操作量として用いれば、トルク変動やノイズ等の影響が低減されたより適切な操作量にて補償制御を行うことができる。従って、補償区間内において、被駆動体に対してさらに適切な駆動力を与えることができる。 Therefore, as described in claim 10, if an average value of a plurality of operation amounts calculated before entering the compensation section is used as a holding operation amount, a more appropriate operation amount in which influences such as torque fluctuation and noise are reduced. Compensation control can be performed at. Accordingly, a more appropriate driving force can be applied to the driven body within the compensation section.
次に、請求項11に記載の発明は、請求項1〜請求項10の何れか1項に記載のモータ制御装置と、インクを吐出することにより被記録媒体に画像を形成する記録ヘッドと、被駆動体としての記録ヘッドを搭載したキャリッジと、を備えていることを特徴とする画像形成装置である。 Next, an invention according to an eleventh aspect is the motor control device according to any one of the first to tenth aspects, a recording head that forms an image on a recording medium by ejecting ink, An image forming apparatus comprising: a carriage on which a recording head as a driven body is mounted.
このように構成された画像形成装置によれば、エンコーダに汚れ等が付着していても、その影響を抑えてキャリッジを高精度に制御でき、高品質の画像を形成することができる。 According to the image forming apparatus configured as described above, even if dirt or the like adheres to the encoder, the influence can be suppressed and the carriage can be controlled with high accuracy, and a high-quality image can be formed.
以下に、本発明の好適な実施形態を図面に基づいて説明する。
(1)インクジェットプリンタの構成
図1に、本発明が適用された実施形態のインクジェットプリンタ1の電気的構成を示す。
Preferred embodiments of the present invention will be described below with reference to the drawings.
(1) Configuration of Inkjet Printer FIG. 1 shows an electrical configuration of an inkjet printer 1 according to an embodiment to which the present invention is applied.
本実施形態のインクジェットプリンタ1は、用紙トレイに収容された用紙P(図1では図示略。図2参照。)を一枚ずつ分離・搬送しつつ、用紙Pへの画像形成を行うものであり、図1に示すように、用紙Pへインク液滴を吐出するためのノズルが複数配列されてなる記録ヘッド11と、この記録ヘッド11が搭載されたキャリッジ12と、記録ヘッド11による用紙Pへの画像形成の際にキャリッジ12を主走査方向(用紙Pが搬送される副走査方向と直交する方向)へ往復駆動させるための駆動源であるキャリッジ(CR)モータ13と、キャリッジ12の移動量(位置や速度、移動方向など)を検出するためのCRリニアエンコーダ14と、用紙Pを副走査方向へ搬送する搬送ローラ(図示略)の駆動源であるラインフィード(LF)モータ21と、LFモータ21の回転量(ひいては用紙Pの搬送量)を検出するためのLFロータリエンコーダ22と、を備えている。 The ink jet printer 1 of this embodiment forms an image on the paper P while separating and transporting the paper P (not shown in FIG. 1; see FIG. 2) contained in a paper tray one by one. As shown in FIG. 1, a recording head 11 in which a plurality of nozzles for ejecting ink droplets onto the paper P are arranged, a carriage 12 on which the recording head 11 is mounted, and the paper P by the recording head 11. A carriage (CR) motor 13 that is a drive source for reciprocatingly driving the carriage 12 in the main scanning direction (a direction perpendicular to the sub-scanning direction in which the paper P is conveyed) and the amount of movement of the carriage 12 A CR linear encoder 14 for detecting (position, speed, moving direction, etc.) and a line feed (LF) that is a driving source of a conveying roller (not shown) that conveys the paper P in the sub-scanning direction. And over motor 21, and a, and LF rotary encoder 22 for detecting the rotation amount of the LF motor 21 (and thus the transport amount of the paper P).
なお、CRモータ13及びLFモータ21は、本実施形態ではいずれも直流モータである。また、CRリニアエンコーダ14及びLFロータリエンコーダ22は、本実施形態ではいずれも、インクリメンタル型の光学式エンコーダである。 Note that the CR motor 13 and the LF motor 21 are both DC motors in this embodiment. Further, the CR linear encoder 14 and the LF rotary encoder 22 are both incremental optical encoders in the present embodiment.
また、インクジェットプリンタ1は、記録ヘッド11を駆動してインク液滴を吐出させるための記録ヘッドドライバ15と、CRモータ13を駆動させるためのCRモータドライバ16と、LFモータ21を駆動させるためのLFモータドライバ23と、を備え、更に、各ドライバ15,16,23に対して駆動指令を出力することによりこれらの動作を制御するASIC2と、を備えている。 The ink jet printer 1 also includes a recording head driver 15 for driving the recording head 11 to eject ink droplets, a CR motor driver 16 for driving the CR motor 13, and an LF motor 21. And an ASIC 2 for controlling these operations by outputting a drive command to each of the drivers 15, 16, and 23.
ここで、インクジェットプリンタ1における、キャリッジ12、CRモータ13、及びCRリニアエンコーダ14等からなる画像形成機構の具体的構成について、図2を用いて説明する。図2は、本実施形態のインクジェットプリンタ1における画像形成機構の概略構成を表す説明図である。 Here, a specific configuration of the image forming mechanism including the carriage 12, the CR motor 13, the CR linear encoder 14 and the like in the inkjet printer 1 will be described with reference to FIG. FIG. 2 is an explanatory diagram illustrating a schematic configuration of an image forming mechanism in the inkjet printer 1 of the present embodiment.
図2に示すように、本実施形態のインクジェットプリンタ1における画像形成機構では、ガイド軸41が、用紙Pの幅方向(主走査方向)に設置され、このガイド軸41に、記録ヘッド11を搭載したキャリッジ12が挿通されている。 As shown in FIG. 2, in the image forming mechanism in the inkjet printer 1 of the present embodiment, the guide shaft 41 is installed in the width direction (main scanning direction) of the paper P, and the recording head 11 is mounted on the guide shaft 41. The carriage 12 is inserted.
キャリッジ12は、ガイド軸41に沿って設けられた無端ベルト42に連結され、その無端ベルト42は、ガイド軸41の一端側に設置された従動プーリ44と、ガイド軸41の他端側に設置されたCRモータ13の駆動プーリ43との間に掛け止められている。これにより、キャリッジ12は、無端ベルト42を介して伝達されるCRモータ13の駆動力により、ガイド軸41に沿って主走査方向に往復駆動される。 The carriage 12 is connected to an endless belt 42 provided along the guide shaft 41, and the endless belt 42 is installed on a driven pulley 44 installed on one end side of the guide shaft 41 and on the other end side of the guide shaft 41. It is latched between the driven pulley 43 of the CR motor 13. Accordingly, the carriage 12 is reciprocated in the main scanning direction along the guide shaft 41 by the driving force of the CR motor 13 transmitted through the endless belt 42.
また、ガイド軸41の近傍には、主走査方向に所定の間隔でスリットが形成されたリニアスケール46が、ガイド軸41に沿って(即ちキャリッジ12の移動経路に沿って)設置されている。また、キャリッジ12におけるリニアスケール46と対向する位置には、リニアスケール46を挟んで発光部50および受光部60が配置された検出部47(図3参照)が備えられており、上述のリニアスケール46と共にCRリニアエンコーダ14を構成している。 Further, in the vicinity of the guide shaft 41, a linear scale 46 having slits formed at predetermined intervals in the main scanning direction is installed along the guide shaft 41 (that is, along the movement path of the carriage 12). In addition, a detection unit 47 (see FIG. 3) in which the light emitting unit 50 and the light receiving unit 60 are arranged with the linear scale 46 interposed therebetween is provided at a position facing the linear scale 46 in the carriage 12. 46 constitutes a CR linear encoder 14.
ここで、CRリニアエンコーダ14のより具体的な構成について、図3を用いて説明する。CRリニアエンコーダ14を構成するリニアスケール46は、図3(a)に示すように、所定の間隔でスリット48が形成されてなるものである。 Here, a more specific configuration of the CR linear encoder 14 will be described with reference to FIG. As shown in FIG. 3A, the linear scale 46 constituting the CR linear encoder 14 has slits 48 formed at predetermined intervals.
また、検出部47は、図3(b)に示すように、発光部50および受光部60が、両者の間にリニアスケール46が挟まれるように配置されている。発光部50は、二つの発光素子(A相発光素子51およびB相発光素子52)を備え、受光部60も、二つの受光素子(A相受光素子61およびB相受光素子62)を備える。そして、A相発光素子51から照射された光はA相受光素子61で受光され、B相発光素子52から照射された光はB相受光素子62で受光される。 In addition, as shown in FIG. 3B, the detection unit 47 is arranged such that the light emitting unit 50 and the light receiving unit 60 are sandwiched between the linear scale 46. The light emitting unit 50 includes two light emitting elements (A phase light emitting element 51 and B phase light emitting element 52), and the light receiving unit 60 also includes two light receiving elements (A phase light receiving element 61 and B phase light receiving element 62). The light emitted from the A phase light emitting element 51 is received by the A phase light receiving element 61, and the light emitted from the B phase light emitting element 52 is received by the B phase light receiving element 62.
この検出部47は、キャリッジ12の移動に伴って主走査方向へ移動するため、検出部47とリニアスケール46との相対的位置関係によって、各受光素子61,62において対応する各発光素子51,52からの光が受光される場合と受光されない場合とが生じる。 図3(b)に示されている状態は、A相発光素子51からの光はリニアスケール46に遮られてA相受光素子61で受光されないが、B相発光素子52からの光はスリット48を通過してB相受光素子62で受光される状態である。 Since the detection unit 47 moves in the main scanning direction with the movement of the carriage 12, the corresponding light emitting elements 51, 62 correspond to the light receiving elements 61, 62 depending on the relative positional relationship between the detection unit 47 and the linear scale 46. There are cases where the light from 52 is received and when it is not received. In the state shown in FIG. 3B, the light from the A-phase light emitting element 51 is blocked by the linear scale 46 and is not received by the A-phase light receiving element 61, but the light from the B-phase light emitting element 52 is slit 48. And the light is received by the B-phase light receiving element 62.
このような構成により、検出部47は、キャリッジ12の移動に応じて、互いに位相差(本実施形態では90度)を有する2種類のパルス信号(A相信号,B相信号)を出力する。このうち1つは、A相受光素子61での受光状態に対応したA相信号であり、もう一つは、B相受光素子62での受光状態に対応したB相信号である。 With such a configuration, the detection unit 47 outputs two types of pulse signals (A-phase signal and B-phase signal) having a phase difference (90 degrees in the present embodiment) as the carriage 12 moves. One of them is an A phase signal corresponding to the light receiving state at the A phase light receiving element 61, and the other is a B phase signal corresponding to the light receiving state at the B phase light receiving element 62.
A相信号は、A相受光素子61においてA相発光素子51からの光が受光されている間はローレベル、受光されていない間はハイレベルとなるようなパルス信号である。B相信号も同様に、B相受光素子62においてB相発光素子52からの光が受光されている間はローレベル、受光されていない間はハイレベルとなるようなパルス信号である。但し、各受光素子61,62における受光状態と各相信号のハイ・ローのレベルとの関係は、上記の関係に限定されるものではなく、受光時にハイレベル、遮光時にローレベルとなるようなパルス信号を出力するものであってもよい。 The A phase signal is a pulse signal that is at a low level while the light from the A phase light emitting element 51 is received by the A phase light receiving element 61 and is at a high level when the light is not received. Similarly, the B-phase signal is a pulse signal that is at a low level while the light from the B-phase light emitting element 52 is received by the B-phase light receiving element 62 and is at a high level when the light is not received. However, the relationship between the light receiving state in each of the light receiving elements 61 and 62 and the high / low level of each phase signal is not limited to the above relationship, and is high when receiving light and low when blocking light. It may output a pulse signal.
そして、A,B各相のパルス信号は、キャリッジ12の移動方向が図2における右方向(従動プーリ44側から駆動プーリ43側に向かう方向。以下「順方向」ともいう。)である場合は、A相信号はB相信号に対して位相が90度進むようにされている。逆に図中左方向(駆動プーリ43側から従動プーリ44側に向かう方向。以下「逆方向」ともいう。)である場合は、A相信号がB相信号に対して位相が90度遅れるようにされている。このA,B各相のパルス信号は、ASIC2内のCRリニアエンコーダ処理部34に入力される。 The pulse signals of the phases A and B are when the moving direction of the carriage 12 is the right direction in FIG. 2 (the direction from the driven pulley 44 side to the driving pulley 43 side, hereinafter also referred to as “forward direction”). The phase of the A phase signal is advanced 90 degrees with respect to the phase B signal. Conversely, in the case of the left direction in the figure (the direction from the drive pulley 43 side to the driven pulley 44 side, hereinafter also referred to as “reverse direction”), the phase of the A phase signal is delayed by 90 degrees with respect to the B phase signal. Has been. The A and B phase pulse signals are input to the CR linear encoder processing unit 34 in the ASIC 2.
CRリニアエンコーダ処理部34は、CRリニアエンコーダ14から入力されるA,B各相のパルス信号に基づき、キャリッジ12の位置や速度、移動方向など(以下、まとめて「駆動状態」ともいう)を検出する。そして、その検出結果は、記録制御部31及びCRモータ制御部32へ出力される。 The CR linear encoder processing unit 34 determines the position, speed, moving direction, and the like of the carriage 12 (hereinafter collectively referred to as “driving state”) based on the A and B phase pulse signals input from the CR linear encoder 14. To detect. The detection result is output to the recording control unit 31 and the CR motor control unit 32.
CRリニアエンコーダ処理部34によるキャリッジ12の駆動状態検出のうち、特に、キャリッジ12の位置及び速度の検出は、本実施形態では、A相信号に基づいて行われる。 Among the detection of the driving state of the carriage 12 by the CR linear encoder processing unit 34, in particular, the detection of the position and speed of the carriage 12 is performed based on the A-phase signal in this embodiment.
即ち、CRリニアエンコーダ処理部34は、CRリニアエンコーダ14から入力されるA,B各相のパルス信号のうち、A相信号について、その立ち上がりエッジ及び立ち下がりエッジを検出する。そして、各エッジを検出する度に、図示しない位置カウンタにてその検出数をカウントしていく。 That is, the CR linear encoder processing unit 34 detects the rising edge and the falling edge of the A phase signal among the A and B phase pulse signals input from the CR linear encoder 14. Each time each edge is detected, the detected number is counted by a position counter (not shown).
そのため、CRリニアエンコーダ処理部34は、この位置カウンタのカウント値(エッジ検出のカウント値)に基づいて、キャリッジ12がその移動経路上のどこに位置しているかを検出することができる。なお、以下の説明において、単に「エンコーダ信号」というときはA相信号を意味する。また、そのエンコーダ信号について「カウント」するというときは、A相信号の立ち上がりエッジ及び立ち下がりエッジをカウントすることを意味する。 Therefore, the CR linear encoder processing unit 34 can detect where the carriage 12 is located on the movement path based on the count value (edge detection count value) of the position counter. In the following description, the term “encoder signal” simply means an A-phase signal. Further, “counting” the encoder signal means counting the rising edge and falling edge of the A-phase signal.
また、CRリニアエンコーダ処理部34は、A相信号の各エッジの検出タイミングに同期して、CRリニアエンコーダ14の物理分解能と、前回エッジが検出されてから今回エッジが検出されるまでのエッジ間隔時間とに基づく演算により、キャリッジ12の移動速度(検出速度)を検出する。 In addition, the CR linear encoder processing unit 34 synchronizes with the detection timing of each edge of the A phase signal, and the physical resolution of the CR linear encoder 14 and the edge interval from when the previous edge is detected until the current edge is detected. The movement speed (detection speed) of the carriage 12 is detected by calculation based on time.
更に、CRリニアエンコーダ処理部34は、補償制御情報設定部36を備えている。この補償制御情報設定部36は、キャリッジ12の検出速度に基づいて、CRリニアエンコーダ14を構成するリニアスケール46に汚れ等が付着していないかどうかを判断する。そして、汚れ等が付着していると判断した場合には、その付着している区間(汚れ区間)を特定して、その汚れ区間に関する情報である汚れ区間情報をCRモータ制御部32へ伝達する。なお、この補償制御情報設定部36が行う具体的演算処理等については、後で詳しく説明する。 Further, the CR linear encoder processing unit 34 includes a compensation control information setting unit 36. The compensation control information setting unit 36 determines whether dirt or the like is attached to the linear scale 46 constituting the CR linear encoder 14 based on the detected speed of the carriage 12. If it is determined that dirt or the like is attached, the attached section (dirt section) is specified, and dirt section information that is information related to the dirt section is transmitted to the CR motor control unit 32. . The specific calculation processing performed by the compensation control information setting unit 36 will be described in detail later.
記録制御部31は、CRリニアエンコーダ処理部34により検出されたキャリッジ12の駆動状態に基づいて、記録ヘッド11を駆動させるための駆動指令を生成し、記録ヘッドドライバ15へ出力する。記録ヘッドドライバ15は、記録制御部31から入力された駆動指令に従って記録ヘッド11へ駆動電圧を印加することにより、インク液滴を吐出させる。 The recording control unit 31 generates a drive command for driving the recording head 11 based on the driving state of the carriage 12 detected by the CR linear encoder processing unit 34, and outputs it to the recording head driver 15. The recording head driver 15 ejects ink droplets by applying a driving voltage to the recording head 11 in accordance with a driving command input from the recording control unit 31.
CRモータ制御部32は、CRリニアエンコーダ処理部34により検出されたキャリッジ12の駆動状態に基づき、所定の演算タイミング毎に、CRモータ13を制御するための操作量を生成する。そして、その生成した操作量に対応した駆動指令(PWM信号など)をCRモータドライバ16へ出力する。つまり、CRモータ制御部32は、CRリニアエンコーダ処理部34によって検出されたキャリッジ12の位置や速度、移動方向等に基づいて、キャリッジ12のフィードバック制御を行うものである。 The CR motor control unit 32 generates an operation amount for controlling the CR motor 13 at every predetermined calculation timing based on the driving state of the carriage 12 detected by the CR linear encoder processing unit 34. Then, a drive command (such as a PWM signal) corresponding to the generated operation amount is output to the CR motor driver 16. That is, the CR motor control unit 32 performs feedback control of the carriage 12 based on the position, speed, movement direction, and the like of the carriage 12 detected by the CR linear encoder processing unit 34.
但し、本実施形態では、補償制御情報設定部36によりリニアスケール46に汚れ等が付着していることが検出され、補償制御情報設定部36から汚れ区間情報が伝達されてきた場合は、CRモータ制御部32は、その汚れ区間においては、検出速度に基づく通常の操作量生成(フィードバック制御)を行わず、予め決められた演算方法によって演算される保持操作量を用いた補償制御を行う。この補償制御についても、後で詳しく説明する。 However, in the present embodiment, when the compensation control information setting unit 36 detects that dirt or the like is attached to the linear scale 46 and the dirt control section information is transmitted from the compensation control information setting unit 36, the CR motor In the dirt section, the control unit 32 does not perform normal operation amount generation (feedback control) based on the detection speed, but performs compensation control using the holding operation amount calculated by a predetermined calculation method. This compensation control will also be described in detail later.
CRモータドライバ16は、CRモータ13へ電力を供給してCRモータ13を回転させるための、例えばHブリッジ回路等からなるものであり、CRモータ制御部32から入力された駆動指令に従ってCRモータ13へ電力を供給し、CRモータ13を回転させる。 The CR motor driver 16 is composed of, for example, an H-bridge circuit for supplying power to the CR motor 13 to rotate the CR motor 13, and the CR motor 13 according to a drive command input from the CR motor control unit 32. Electric power is supplied to the CR motor 13 to rotate.
一方、LFロータリエンコーダ22は、円周に沿って所定間隔でスリットが形成され、LFモータ21の回転と共に回転するエンコーダホイール(図示略)を有し、LFモータ21の回転に応じて(即ち用紙Pの搬送に応じて)互いに位相がずれた2つのパルス信号(A相信号、B相信号)を出力するものであり、これら各パルス信号は、ASIC2内のLFロータリエンコーダ処理部35に入力される。 On the other hand, the LF rotary encoder 22 has slits formed at predetermined intervals along the circumference, and has an encoder wheel (not shown) that rotates with the rotation of the LF motor 21, according to the rotation of the LF motor 21 (that is, paper). Outputs two pulse signals (A phase signal and B phase signal) that are out of phase with each other (according to the conveyance of P), and these pulse signals are input to the LF rotary encoder processing unit 35 in the ASIC 2. The
LFロータリエンコーダ処理部35は、LFロータリエンコーダ22から入力されるA,B各相のパルス信号に基づき、用紙Pの位置や速度などを検出する。そして、その検出結果は、LFモータ制御部33へ出力される。 The LF rotary encoder processing unit 35 detects the position and speed of the paper P based on the A and B phase pulse signals input from the LF rotary encoder 22. The detection result is output to the LF motor control unit 33.
LFモータ制御部33は、LFロータリエンコーダ処理部35により検出された用紙Pの位置や速度などに基づいて、LFモータ21を制御するための操作量を生成する。そして、その生成した操作量に対応した駆動指令(PWM信号など)をLFモータドライバ23へ出力する。 The LF motor control unit 33 generates an operation amount for controlling the LF motor 21 based on the position and speed of the paper P detected by the LF rotary encoder processing unit 35. Then, a drive command (such as a PWM signal) corresponding to the generated operation amount is output to the LF motor driver 23.
LFモータドライバ23は、LFモータ21へ電力を供給してLFモータ21を回転させるための、例えばHブリッジ回路等からなるものであり、LFモータ制御部33から入力された駆動指令に従ってLFモータ21へ電力を供給し、LFモータ21を回転させる。 The LF motor driver 23 includes, for example, an H bridge circuit for supplying power to the LF motor 21 to rotate the LF motor 21, and the LF motor 21 is in accordance with a drive command input from the LF motor control unit 33. Electric power is supplied to the LF motor 21, and the LF motor 21 is rotated.
また、インクジェットプリンタ1は、ASIC2を含む、当該インクジェットプリンタ1の各部を統括的に制御するCPU3と、CPU3が実行するプログラム等が記憶されたROM4と、CPU3によるプログラム実行時に作業領域として使用されるRAM5と、各種設定情報等が記憶されるEEPROM6と、図示しないパーソナルコンピュータ(PC)等に接続され、PC等から送信されてくる画像形成指令や画像データ等の各種データを受信したり当該インクジェットプリンタ1の動作状態等の各種データをPC等へ送信したりするためのインタフェース(I/F)7と、各種操作ボタンや表示装置等(図示略)を備えた操作・表示部8と、を備え、これら及びASIC2がバス9を介して互いに接続されている。 In addition, the inkjet printer 1 is used as a work area when the CPU 3 that centrally controls each part of the inkjet printer 1 including the ASIC 2, the ROM 4 that stores programs executed by the CPU 3, and the CPU 3 executes the programs. The RAM 5 is connected to an EEPROM 6 in which various setting information and the like are stored, a personal computer (PC) (not shown), etc., and receives various data such as image formation commands and image data transmitted from the PC or the like, or the ink jet printer. 1 includes an interface (I / F) 7 for transmitting various data such as one operation state to a PC and the like, and an operation / display unit 8 including various operation buttons and a display device (not shown). These and the ASIC 2 are connected to each other via the bus 9.
このように構成されたインクジェットプリンタ1において、記録ヘッド11による用紙Pへの画像形成が行われる際は、まず、待機領域(図2参照)に停止中のキャリッジ12が、調整領域における所定の初期位置まで移動される。 In the ink jet printer 1 configured as described above, when an image is formed on the paper P by the recording head 11, first, the carriage 12 stopped in the standby area (see FIG. 2) has a predetermined initial value in the adjustment area. Moved to position.
その後、画像形成のためのキャリッジ12の駆動が開始されると、キャリッジ12は、初期位置から記録領域に向かって(つまり順方向へ)加速し始め、やがて所定の目標一定速度に到達する。なお、本実施形態では、少なくとも記録領域においては、その目標一定速度で定速移動される。 Thereafter, when driving of the carriage 12 for image formation is started, the carriage 12 starts to accelerate from the initial position toward the recording area (that is, in the forward direction), and eventually reaches a predetermined target constant speed. In this embodiment, at least in the recording area, the target is moved at a constant speed.
そして、記録領域を目標一定速度で定速移動されている間、記録ヘッド11から用紙Pへインク液滴が吐出され、用紙Pへの1ライン分の画像形成が行われる。その後、キャリッジ12は減速し、待機領域内で停止する。待機領域内での停止後、キャリッジ12は、この待機領域から調整領域へ向かう方向(つまり逆方向へ)再び移動し始め、記録領域において次の1ライン分の画像形成が行われる。そして、その後キャリッジ12は減速し、再び調整領域内で停止する。 While the recording area is moved at a constant target speed, ink droplets are ejected from the recording head 11 onto the paper P, and image formation for one line on the paper P is performed. Thereafter, the carriage 12 decelerates and stops in the standby area. After stopping in the standby area, the carriage 12 starts moving again from the standby area toward the adjustment area (that is, in the reverse direction), and image formation for the next one line is performed in the recording area. Thereafter, the carriage 12 decelerates and again stops within the adjustment area.
このように、キャリッジ12が主走査方向へ往復移動され、その度に記録ヘッド11により1ラインずつ画像形成が行われることで、最終的に用紙Pへの1ページ分の画像形成がなされる。 In this way, the carriage 12 is reciprocated in the main scanning direction, and image formation is performed line by line by the recording head 11 each time, whereby image formation for one page on the paper P is finally performed.
(2)リニアスケールの汚れによる検出速度の変動について
上記のように構成されたインクジェットプリンタ1において、リニアスケール46に汚れ等が付着すると、CRリニアエンコーダ処理部34では、その汚れの影響によって、エンコーダ信号(A相信号)が実際よりも少なく(或いは多く)カウントされてしまう。
(2) Variation in detection speed due to contamination of linear scale In the inkjet printer 1 configured as described above, when contamination or the like adheres to the linear scale 46, the CR linear encoder processing unit 34 causes the encoder to be affected by the contamination. The signal (A phase signal) is counted less (or more) than actual.
図4に、リニアスケール46に汚れが付着している例と、その場合にキャリッジ12を一定速度で駆動させたときのエンコーダ信号及びこのエンコーダ信号に基づいて検出される検出速度の例を示す。なお、図4に示す検出速度は、同図に示すリニアスケール46に対してキャリッジ12が図中右方向(順方向)に移動している場合の検出結果である。 FIG. 4 shows an example in which dirt is adhered to the linear scale 46, and an example of an encoder signal when the carriage 12 is driven at a constant speed in that case and a detection speed detected based on the encoder signal. The detection speed shown in FIG. 4 is a detection result when the carriage 12 is moving in the right direction (forward direction) in the figure with respect to the linear scale 46 shown in FIG.
図4の例では、リニアスケール46におけるある一定領域にグリス等の汚れ70が付着している。そのため、その汚れ70が付着している領域内に存在する1つのスリット48は、その汚れ70によって覆われ、A,B各相の発光素子51,52からの光が各受光素子61,62に届かない状態になっている。 In the example of FIG. 4, dirt 70 such as grease is attached to a certain area in the linear scale 46. Therefore, one slit 48 existing in the region where the dirt 70 is attached is covered with the dirt 70, and light from the light emitting elements 51 and 52 of the phases A and B is applied to the light receiving elements 61 and 62. It is out of reach.
そのため、キャリッジ12が、その汚れ70で覆われている領域に対応する区間を移動している間は、エンコーダ信号はハイレベルのままであり、本来検出されるはずの立ち上がりエッジ、立ち下がりエッジが検出されず、カウント値も更新されない。これにより、キャリッジ12は実際には一定速度で移動しているにもかかわらず、エンコーダ信号に基づいてCRリニアエンコーダ処理部34にて検出される検出速度は、図4に示すように、汚れ70の影響を受けて大きく変動(低下)する。そして、その検出速度はCRモータ制御部32にも出力される。 Therefore, while the carriage 12 is moving in the section corresponding to the area covered with the dirt 70, the encoder signal remains at a high level, and the rising edge and the falling edge that should be detected originally are detected. It is not detected and the count value is not updated. Thereby, although the carriage 12 is actually moving at a constant speed, the detection speed detected by the CR linear encoder processing unit 34 based on the encoder signal is the dirt 70 as shown in FIG. Fluctuated (decreased) significantly under the influence of The detected speed is also output to the CR motor control unit 32.
そのため、CRモータ制御部32は、その大きく低下した検出速度を目標速度(一定速度)に戻すためのフィードバック制御を行う。その結果、検出速度は、図4に示すように、減衰振動しながらやがて一定速度へと収束していく。 Therefore, the CR motor control unit 32 performs feedback control for returning the greatly reduced detection speed to the target speed (constant speed). As a result, as shown in FIG. 4, the detection speed eventually converges to a constant speed while being damped.
このように、リニアスケール46に汚れ70が付着すると、キャリッジ12の検出速度として、実際の速度とは異なる速度が検出されてしまい、それによってCRモータ制御部32では不要な制御が行われてしまう。 As described above, when the dirt 70 adheres to the linear scale 46, a speed different from the actual speed is detected as the detection speed of the carriage 12, and thereby unnecessary control is performed in the CR motor control unit 32. .
そこで、本実施形態のインクジェットプリンタ1では、CRリニアエンコーダ処理部34内の補償制御情報設定部36が、キャリッジ12の検出速度に基づく汚れの有無の判断、及び、汚れ付着が検出された場合の汚れ区間の特定を行う。そして、汚れ区間が特定された場合は、以後、その汚れ区間においては、CRモータ制御部32は、補償制御を行う。 Therefore, in the inkjet printer 1 of the present embodiment, the compensation control information setting unit 36 in the CR linear encoder processing unit 34 determines the presence or absence of dirt based on the detection speed of the carriage 12 and the case where dirt adhesion is detected. Specify the dirty section. When the dirt section is specified, thereafter, the CR motor control unit 32 performs compensation control in the dirt section.
(3)汚れ区間の検出と補償制御の説明
次に、CRリニアエンコーダ処理部34内の補償制御情報設定部36により行われる、リニアスケール46における汚れ等が付着している汚れ区間の検出と、その検出結果に基づいてCRモータ制御部32で行われる補償制御について、図5を用いて具体的に説明する。図5は、リニアスケール46において近接する2箇所に汚れ71,72が付着している例を示している。
(3) Explanation of Detection of Dirt Section and Compensation Control Next, detection of a dirt section to which dirt or the like is attached in the linear scale 46, which is performed by the compensation control information setting unit 36 in the CR linear encoder processing unit 34, Compensation control performed by the CR motor control unit 32 based on the detection result will be specifically described with reference to FIG. FIG. 5 shows an example in which dirt 71 and 72 are attached to two adjacent locations on the linear scale 46.
(3−1)異常速度の検知
リニアスケール46にこのように汚れ71,72が付着している状態でキャリッジ12が駆動されると、この汚れ71,72に対応した区間の移動時の検出速度は、この汚れ71,72による影響で、図4に示したように大きく変動し、予め設定された速度正常範囲(速度下限閾値から速度上限閾値までの間)から外れてしまう。
(3-1) Detection of Abnormal Speed When the carriage 12 is driven with the dirt 71 and 72 attached to the linear scale 46 as described above, the detection speed when the section corresponding to the dirt 71 and 72 is moved. Is greatly fluctuated as shown in FIG. 4 due to the influence of the stains 71 and 72, and deviates from a preset normal speed range (between the speed lower limit threshold and the speed upper threshold).
そこで、補償制御情報設定部36は、CRリニアエンコーダ処理部34にて検出されるキャリッジ12の検出速度を監視し、検出速度が速度正常範囲から外れた状態、即ち異常速度であるかどうかを検知する。そして、異常速度が検知された場合は、その異常速度がリニアスケール46の汚れに起因するものなのか、それとも汚れ以外の何らかの要因(例えば負荷変動等の外乱)に起因するものなのかを判断する。 Therefore, the compensation control information setting unit 36 monitors the detection speed of the carriage 12 detected by the CR linear encoder processing unit 34, and detects whether the detection speed is out of the normal speed range, that is, whether it is an abnormal speed. To do. If an abnormal speed is detected, it is determined whether the abnormal speed is caused by dirt on the linear scale 46 or some factor other than dirt (for example, disturbance such as load fluctuation). .
(3−2)異常時全カウント値Mの計測と汚れカウント値nの算出、及び異常速度の原因判断
異常速度が汚れに起因するものであるか否かの判断は、具体的には次のように行う。まず、キャリッジ12を、その移動経路(走査域)の一端から他端までの全領域を駆動させて、その間のエンコーダ信号をカウントすることにより、異常時全カウント値Mを計測する。なお、本実施形態でいう、移動経路の一端とは、図2における左側(調整領域側)の端部を意味し、他端とは、図2における右側(待機領域側)の端部を意味する。
(3-2) Measurement of the total count value M at the time of abnormality, calculation of the dirt count value n, and determination of the cause of the abnormal speed Specifically, the determination of whether or not the abnormal speed is caused by dirt is as follows. Do as follows. First, the carriage 12 is driven in the entire area from one end to the other end of the movement path (scanning area), and the encoder signal is counted between them, thereby measuring the total count value M at the time of abnormality. In this embodiment, one end of the movement path means an end on the left side (adjustment area side) in FIG. 2, and the other end means an end on the right side (standby area side) in FIG. To do.
一方、EEPROM6(又はASIC2内)には、リニアスケール46が汚れ等のない正常な状態である場合にキャリッジ12を移動経路の一端から他端までの全走査域を駆動させたときの、エンコーダ信号のカウント値が、ノミナルカウント値Nとして、予め記憶されている。 On the other hand, in the EEPROM 6 (or in the ASIC 2), an encoder signal when the carriage 12 is driven in the entire scanning area from one end of the moving path to the other end when the linear scale 46 is in a normal state free from dirt and the like. Is stored in advance as a nominal count value N.
そこで、次式(1)の演算を行うことにより、汚れカウント値nを求める。
汚れカウント値n = ノミナルカウント値N − 異常時全カウント値M ・・・(1)
そして、汚れカウント値nが0ではない場合、即ち異常時全カウント値Mがノミナルカウント値Nとは異なる値である場合は、異常速度がリニアスケール46の汚れに起因するものであると判断する。逆に、汚れカウント値が0である場合は、リニアスケール46の汚れとは別の原因で異常速度が検知されたものと判断する。
Therefore, the dirt count value n is obtained by performing the calculation of the following equation (1).
Dirt count value n = Nominal count value N-Abnormal total count value M (1)
When the dirt count value n is not 0, that is, when the abnormal total count value M is different from the nominal count value N, it is determined that the abnormal speed is caused by dirt on the linear scale 46. . On the contrary, when the dirt count value is 0, it is determined that the abnormal speed is detected due to a cause other than the dirt of the linear scale 46.
なお、図5では、一例として、ノミナルカウント値Nが1500、異常時全カウント値Mが1490であって、故に汚れカウント値nが10である場合が示されている。図5の例において、異常時全カウント値Mがノミナルカウント値Nよりも10少ないのは、汚れ71,72によって計5つのスリット48が覆われていることにより、その5つのスリットによって本来カウントされるべきエンコーダ信号のエッジ計10本が検出されないからである。 FIG. 5 shows an example in which the nominal count value N is 1500, the abnormal total count value M is 1490, and therefore the dirt count value n is 10. In the example of FIG. 5, the total count value M at the time of abnormality is 10 less than the nominal count value N because the five slits 48 are covered by the dirts 71 and 72, so that they are originally counted by the five slits. This is because ten edge meters of the encoder signal to be detected are not detected.
また、図5では、複数のスリット48が汚れで覆われているために汚れカウント値nが正の値となったが、別のケースとして、例えばスリット48にその幅よりも細い汚れが付着するなどしてスリット48が分断され、見かけ上スリットの数が増えることも起こりうる。そのような場合は、図5の例とは逆に、異常時全カウント値Mがノミナルカウント値Nよりも大きくなり、よって汚れカウント値nは負の値となる。このように汚れによって見かけ上スリットの数が増え、異常時全カウント値Mがノミナルカウント値Nよりも大きくなるケースでも、両者が異なっているか否か、即ち汚れカウント値nが0かどうかに基づいて、異常速度の原因が汚れであるか否かを判断することができる。 In FIG. 5, the dirt count value n becomes a positive value because the plurality of slits 48 are covered with dirt. However, as another case, dirt thinner than the width adheres to the slit 48, for example. For example, the slits 48 may be divided, and the number of slits may increase apparently. In such a case, contrary to the example of FIG. 5, the total count value M at the time of abnormality becomes larger than the nominal count value N, and therefore the dirt count value n becomes a negative value. Thus, even in the case where the number of slits apparently increases due to dirt and the total count value M at the time of abnormality becomes larger than the nominal count value N, it is based on whether they are different, that is, whether the dirt count value n is 0 or not. Thus, it can be determined whether or not the cause of the abnormal speed is dirt.
(3−3)第1カウント値kaと第2カウント値kbの計測及び汚れ区間幅mの算出
汚れカウント値nを算出した後は、汚れ区間幅mを算出する。具体的には、まず、キャリッジ12を移動経路の一端側から順方向へ(待機領域に向けて)駆動させる。そして、その際の駆動開始後から異常速度が検知されるまでのエンコーダ信号をカウントすることにより、第1カウント値kaを計測する。次に、キャリッジ12を移動経路の他端側から逆方向へ(調整領域に向けて)駆動させる。そして、その際の駆動開始後から異常速度が検知されるまでのエンコーダ信号をカウントすることにより、第2カウント値kbを計測する。
(3-3) Measurement of the first count value ka and the second count value kb and calculation of the dirt section width m After calculating the dirt count value n, the dirt section width m is calculated. Specifically, first, the carriage 12 is driven in the forward direction (toward the standby area) from one end side of the movement path. Then, the first count value ka is measured by counting the encoder signal from the start of driving at that time until the abnormal speed is detected. Next, the carriage 12 is driven in the opposite direction (toward the adjustment region) from the other end side of the movement path. Then, the second count value kb is measured by counting the encoder signal from the start of driving at that time until the abnormal speed is detected.
そして、次式(2)の演算を行うことにより、汚れ区間幅mを求める。
汚れ区間幅m = ノミナルカウント値N −
(第1カウント値ka + 第2カウント値Kb) ・・・(2)
図5では、一例として、第1カウント値kaが486、第2カウント値kbが1000であって、故に汚れ区間幅mが14である場合が示されている。この汚れ区間幅mは、2つの汚れ71,72を含む汚れ区間の幅であり、換言すれば、この汚れ区間内において仮に汚れ71,72がなかったならばカウントされたであろうカウント値を意味するものである。
And the dirt section width m is calculated | required by calculating the following Formula (2).
Dirt section width m = nominal count value N −
(First count value ka + second count value Kb) (2)
FIG. 5 shows an example in which the first count value ka is 486, the second count value kb is 1000, and therefore the dirt section width m is 14. The dirt section width m is the width of the dirt section including the two dirts 71 and 72. In other words, the count value that would have been counted if there were no dirt 71 and 72 in the dirt section. That means.
なお、汚れ区間幅mの演算は、上記式(2)を用いる方法以外にも、次に述べる式(3)により得られる汚れ区間内実カウント値zを用いて演算することもできる。即ち、汚れ区間内実カウント値zに汚れカウント値nを加算することによっても、汚れ区間幅mを算出することができる。 The dirty section width m can be calculated using the actual count value z in the dirty section obtained by the following expression (3), in addition to the method using the expression (2). That is, the dirt section width m can also be calculated by adding the dirt count value n to the dirt section actual count value z.
(3−4)汚れ区間内実カウント値zの算出
汚れ区間幅mの算出後は、汚れ区間内実カウント値zを算出する。具体的には、次式(3)の演算を行うことにより、汚れ区間内実カウント値zを求める。
(3-4) Calculation of the actual count value z in the dirt section After the calculation of the dirty section width m, the actual count value z in the dirt section is calculated. Specifically, the actual count value z in the dirt section is obtained by performing the calculation of the following equation (3).
汚れ区間内実カウント値z = 異常時全カウント値M −
(第1カウント値ka + 第2カウント値Kb) ・・・(3)
図5では、一例として、汚れ区間内実カウント値zが4である場合が示されている。図5では、汚れ区間内において全てのスリット48が汚れで覆われてはおらず、2つの汚れ71,72の間に、汚れの影響を受けていないスリット48が2つあり、この2つのスリットによってエンコーダ信号のエッジが4回検出される。そのため、汚れ区間内実カウント値zは4となる。
Actual count value z in dirt section = all count values M −
(First count value ka + second count value Kb) (3)
In FIG. 5, as an example, the case where the actual count value z in the dirt section is 4 is shown. In FIG. 5, not all the slits 48 are covered with dirt in the dirt section, and there are two slits 48 not affected by dirt between the two dirts 71 and 72. The edge of the encoder signal is detected four times. Therefore, the actual count value z in the dirt section is 4.
補償制御情報設定部36は、上記のようにして汚れ区間の特定を行うと、その特定した情報(汚れ区間情報)をCRモータ制御部32へ伝達する。
なお、上記式(1)で汚れカウント値nを算出したときに汚れカウント値が0であった場合、即ち異常速度の原因が汚れ以外のものである場合は、次の汚れ区間幅mの算出を行うことなく、操作・表示部8が備える図示しない表示装置に所定のエラー表示を行うことで、外部のユーザ等に対するエラー報知を行う。そのため、この場合はCRモータ制御部32による補償制御は行われない。
When the compensation control information setting unit 36 identifies the dirt section as described above, the compensation control information setting unit 36 transmits the identified information (dirty section information) to the CR motor control unit 32.
If the dirt count value is 0 when the dirt count value n is calculated by the above formula (1), that is, if the cause of the abnormal speed is something other than dirt, the next dirt section width m is calculated. Without performing the above, an error notification is given to an external user or the like by performing a predetermined error display on a display device (not shown) provided in the operation / display unit 8. Therefore, in this case, compensation control by the CR motor control unit 32 is not performed.
また、上記式(2)で汚れ区間幅mを算出したときに汚れ区間幅mが予め設定された汚れ幅閾値より大きかった場合も、汚れ区間幅が広すぎるものとして、操作・表示部8が備える図示しない表示装置に所定のエラー表示を行うことで、外部のユーザ等に対するエラー報知を行う。この場合も、CRモータ制御部32による補償制御は行われない。 In addition, when the dirt section width m is larger than a preset dirt width threshold when the dirt section width m is calculated by the above equation (2), the operation / display unit 8 determines that the dirt section width is too wide. An error notification is given to an external user or the like by displaying a predetermined error on a display device (not shown) provided. Also in this case, compensation control by the CR motor control unit 32 is not performed.
(3−5)CRモータ制御部32による補償制御
CRモータ制御部32は、補償制御情報設定部36から汚れ区間情報が伝達されると、得られた汚れ区間を補償区間として、以後、キャリッジ12を駆動させる場合には、その補償区間においては保持操作量を用いた補償制御を行う。
(3-5) Compensation Control by CR Motor Control Unit 32 When the dirt section information is transmitted from the compensation control information setting unit 36, the CR motor control section 32 uses the obtained dirt section as a compensation section, and thereafter the carriage 12 Is driven, compensation control using the holding operation amount is performed in the compensation section.
即ち、キャリッジ12をその移動経路の一端側から駆動させた際、補償区間(=汚れ区間)に入るまでは、通常通り、検出速度等に基づくフィードバック制御を行う。具体的には、所定の演算タイミング毎に、そのときの検出速度等に基づいて、CRモータ13を制御するための操作量を演算し、その操作量に応じた駆動指令をCRモータドライバ16に出力する。 That is, when the carriage 12 is driven from one end of the moving path, feedback control based on the detection speed is performed as usual until the compensation section (= dirt section) is entered. Specifically, an operation amount for controlling the CR motor 13 is calculated at a predetermined calculation timing based on the detected speed at that time, and a drive command corresponding to the operation amount is sent to the CR motor driver 16. Output.
補償区間に入ったかどうかの判断は、一端側から駆動開始後のエンコーダ信号のカウント値に基づいて行い、カウント値が第1カウントkaと一致したときに、補償区間に入ったものと判断し、補償制御を開始する。図5に示す例では、キャリッジ12が一端側から駆動された場合、その駆動開始からのエンコーダ信号のカウント値が486となったときに、補償区間に入ったものと判断できる。 The determination as to whether or not the compensation period has been entered is made based on the count value of the encoder signal after the start of driving from one end side, and when the count value matches the first count ka, it is judged that the compensation period has been entered, Compensation control is started. In the example shown in FIG. 5, when the carriage 12 is driven from one end side, it can be determined that it has entered the compensation section when the count value of the encoder signal from the start of driving becomes 486.
補償区間内における補償制御は、検出速度に基づく操作量の演算は行わず、補償区間に入る前の演算タイミングでCRモータ制御部32が実際に演算した操作量に基づいて保持操作量を生成し、その保持操作量によってCRモータ13を制御することにより行う。 Compensation control within the compensation interval does not calculate the operation amount based on the detected speed, but generates a holding operation amount based on the operation amount actually calculated by the CR motor control unit 32 at the operation timing before entering the compensation interval. The control is performed by controlling the CR motor 13 according to the holding operation amount.
保持操作量は、補償区間開始前に演算された操作量から種々の方法で生成でき、例えば、補償区間開始前の直前の演算タイミングで演算された操作量をそのまま保持操作量としてもよいし、また例えば、補償区間開始前の複数の演算タイミングで演算された各操作量の平均値を保持操作量としてもよい。 The holding operation amount can be generated by various methods from the operation amount calculated before the start of the compensation interval.For example, the operation amount calculated at the calculation timing immediately before the start of the compensation interval may be used as the holding operation amount as it is. Further, for example, an average value of each operation amount calculated at a plurality of operation timings before the start of the compensation section may be used as the holding operation amount.
補償制御を行っている間も、エンコーダ信号のカウントは継続される。そのため、カウント値が第1カウント値kaに達して補償区間に入った後、キャリッジ12が汚れ71と汚れ72の間に存在する2つの正常なスリット48に対応した位置を通過すると、その2つのスリット48によってカウント値は4つ増える。この、補償区間内を通過中にカウントされるこのカウント値は、汚れ区間内実カウント値zに等しい。 While the compensation control is performed, the encoder signal is continuously counted. Therefore, after the count value reaches the first count value ka and enters the compensation section, when the carriage 12 passes the position corresponding to the two normal slits 48 existing between the dirt 71 and the dirt 72, the two The slit 48 increases the count value by four. This count value counted while passing through the compensation section is equal to the actual count value z in the dirt section.
そのため、CRモータ制御部32は、補償制御開始後のカウント値に基づいて、補償区間の終了タイミングを検出する。具体的には、補償区間に入った後のカウント値が、汚れ区間内実カウント値zに到達したかどうかを判断する。そして、汚れ区間内実カウント値zに到達したとき、それは、汚れ区間内における最後のカウントであるため、更に次のカウントが行われるまでは補償制御を継続する。そして、汚れ区間内実カウント値zに到達後、次のカウントが行われたときに、汚れ区間から出た(即ち補償区間から出た)ものと判断し、補償制御を終えて通常のフィードバック制御に復帰する。 Therefore, the CR motor control unit 32 detects the end timing of the compensation section based on the count value after the start of compensation control. Specifically, it is determined whether the count value after entering the compensation section has reached the actual count value z in the dirt section. When the actual count value z in the dirt section is reached, it is the last count in the dirt section, so the compensation control is continued until the next count is performed. Then, after reaching the actual count value z in the dirt section, when the next count is performed, it is determined that the dirt section has exited (that is, the compensation section has exited), the compensation control is terminated, and normal feedback control is performed. Return.
なお、キャリッジ12をその移動経路の他端側から駆動させる際についても、上述した一端側からの駆動時と全く同様に、補償区間においては補償制御を行う。
(3−6)補償区間終了時のカウント値の修正
補償区間(汚れ区間)終了後は通常のフィードバック制御に復帰するわけだが、補償区間終了時のエンコーダ信号のカウント値は、汚れ71,72の影響によって、汚れのない正常時とは異なる値になっている。
Note that when the carriage 12 is driven from the other end side of the movement path, compensation control is performed in the compensation section in the same manner as when driving from the one end side described above.
(3-6) Correction of Count Value at Compensation Section End After the compensation section (dirty section), normal feedback control is resumed. The count value of the encoder signal at the end of the compensation section is that of dirt 71 and 72. Due to the influence, the value is different from the normal value with no dirt.
図5の数値例でいうと、キャリッジ12を一端側から駆動させた際の補償区間終了時のカウント値は、汚れ71,72がない正常な状態であったならば、第1カウント値kaに汚れ区間幅mを加算した値にさらに1を加えた値である501になっているはずである。しかし、汚れ71,72の影響により、補償区間終了時の実際のカウント値は、第1カウント値kaに汚れ区間内実カウント値zを加算した値にさらに1を加えた値である491になっている。なお、この両者の差(501と491の差)は、汚れカウント値nに一致するものである。 In the numerical example of FIG. 5, the count value at the end of the compensation section when the carriage 12 is driven from one end side is set to the first count value ka if it is in a normal state without dirt 71 and 72. The value should be 501 which is a value obtained by adding 1 to the value obtained by adding the dirt section width m. However, due to the influence of the stains 71 and 72, the actual count value at the end of the compensation interval becomes 491 which is a value obtained by adding 1 to the value obtained by adding the actual count value z in the stain interval to the first count value ka. Yes. The difference between the two (difference between 501 and 491) corresponds to the dirt count value n.
そのため、補償区間終了後のカウント値がそのときの実際のカウント値(図5では491)のままでフィードバック制御を再開すると、キャリッジ12の位置が実際の位置とは異なる位置として検出されたままフィードバック制御が行われることとなり、制御性能が悪化してしまうおそれがある。 Therefore, when the feedback control is resumed with the count value after the end of the compensation section being the actual count value at that time (491 in FIG. 5), the feedback is performed while the position of the carriage 12 is detected as a position different from the actual position. Control is performed, and control performance may be deteriorated.
そこで補償制御情報設定部36は、補償区間終了時に、その時点での実際のカウント値を、その時点において本来あるべきカウント値に修正するようにしている。具体的には、補償区間終了時に、その時点での実際のカウント値に汚れカウント値nを加算することにより、カウント値の修正を行う。これにより、補償区間終了後は、キャリッジ12の実際の位置と検出位置(カウント値)とのずれがなくなり、その後のフィードバック制御を安定して行うことができるようになる。 Therefore, the compensation control information setting unit 36 corrects the actual count value at that time to the count value that should be at that time at the end of the compensation period. Specifically, at the end of the compensation period, the count value is corrected by adding the dirt count value n to the actual count value at that time. Thereby, after the compensation section is finished, there is no deviation between the actual position of the carriage 12 and the detected position (count value), and the subsequent feedback control can be performed stably.
なお、キャリッジ12をその移動経路の他端側から駆動させる際についても、上述した一端側からの駆動時と全く同様に、補償区間終了後にカウント値の修正を行う。
(3−7)補償区間開始位置の更新
ところで、補償制御情報設定部36は、第1カウント値ka及び第2カウント値kbに基づいて補償区間の開始位置を設定したが、これら各カウント値ka,kbは、異常速度が検知されたときのカウント値に基づくものである。そのため、異常速度が検知されるタイミングによっては、必ずしも、その検知時のカウント値が汚れ区間の開始位置と一致していない可能性がある。つまり、異常速度の検知はCRリニアエンコーダ処理部34が行うのであるが、その検知タイミングが遅れると、すでに汚れ区間に入ってしかもその汚れ区間内で1カウント又は数カウントのカウントが進んだ段階で異常速度が検知される可能性もある。
Note that when the carriage 12 is driven from the other end side of the movement path, the count value is corrected after the compensation section is completed, just like the above-described driving from the one end side.
(3-7) Update of Compensation Section Start Position By the way, the compensation control information setting unit 36 sets the start position of the compensation section based on the first count value ka and the second count value kb. , Kb is based on the count value when the abnormal speed is detected. Therefore, depending on the timing at which the abnormal speed is detected, there is a possibility that the count value at the time of detection does not necessarily coincide with the start position of the dirt section. That is, the detection of the abnormal speed is performed by the CR linear encoder processing unit 34, but when the detection timing is delayed, it has already entered the dirt section and the count of one count or several counts has advanced in the dirt section. An abnormal speed may be detected.
そのため、そのように異常速度の検知が遅れ、その遅れて検知されたタイミングでのカウント値に基づいて補償区間開始位置が設定されると、実際に汚れが付着している領域内に入ってもすぐには補償制御が開始されず、その間、汚れの影響を受けて検出速度の変動が生じてしまうおそれがある。 Therefore, when the detection of the abnormal speed is delayed in this way, and the compensation section start position is set based on the count value at the timing detected with the delay, even if it enters the area where dirt is actually attached The compensation control is not started immediately, and there is a risk that the detection speed fluctuates due to the influence of dirt.
そこで、補償制御情報設定部36は、上述のように、第1カウント値ka及び第2カウント値kbに基づいて補償区間(汚れ区間)の開始位置を設定した後、CRモータ制御部32によって補償制御が行われたにも関わらず、未だ異常速度が検知された場合は、補償区間の開始位置を、現在設定されている位置(カウント値)よりも前の位置に更新するようにしている。 Therefore, as described above, the compensation control information setting unit 36 sets the start position of the compensation section (dirty section) based on the first count value ka and the second count value kb, and then compensates by the CR motor control unit 32. If an abnormal speed is still detected despite the control being performed, the start position of the compensation section is updated to a position before the currently set position (count value).
例えば、一端側から駆動開始させる場合において、補償区間開始タイミングが第1カウント値kaに設定された場合に、補償区間開始前(即ちカウント値が第1カウント値kaに達する前)に異常速度が検知された場合は、補償区間開始タイミングを1カウント分早めてka−1とする。そして、次に再び一端側から駆動開始させる際には、カウント値がka−1となった位置から補償制御を開始するようにする。 For example, in the case where driving is started from one end side, when the compensation interval start timing is set to the first count value ka, the abnormal speed is increased before the compensation interval starts (that is, before the count value reaches the first count value ka). If it is detected, the compensation section start timing is advanced by one count to ka-1. Then, when driving is started again from one end side, compensation control is started from the position where the count value becomes ka-1.
このようにして補償区間開始位置を更新した後も、まだ、補償区間開始前に異常速度が検知された場合は、更に補償区間開始位置を1カウント分早めてka−2とし、次に再び一端側から駆動開始させる際には、カウント値がka−2となった位置から補償制御を開始するようにする。つまり、補償区間開始前に異常速度が検知されなくなるまで、補償区間開始位置を逐次更新(前倒し)していくのである。 After the compensation section start position is updated in this way, if an abnormal speed is still detected before the compensation section is started, the compensation section start position is further advanced by one count to ka-2, and then once again. When starting driving from the side, compensation control is started from the position where the count value becomes ka-2. That is, the compensation section start position is sequentially updated (advanced) until no abnormal speed is detected before the start of the compensation section.
なお、一回の更新毎にどの程度ずつ更新していくかは適宜決めればよく、上記のように1カウント分ずつ更新するのはあくまでも一例にすぎない。
また、上記のように補償区間開始位置を更新する場合は、併せて、汚れ区間幅mや汚れ区間内実カウント値zも更新するのが好ましい。例えば、補償区間開始位置が1カウント分早められた場合は、汚れ区間幅m及び汚れ区間内実カウント値zも1カウント分増やすのである。このようにするこで、補償区間開始位置が更新されたことによってまだ汚れ区間内にいるにもかかわらず補償制御が終わってしまうのを防ぐことができ、汚れが存在している汚れ区間内において確実に補償制御が行われるようにすることができる。
In addition, what is necessary is just to determine suitably how much it updates for every update, and updating for every 1 count as mentioned above is only an example to the last.
Further, when the compensation section start position is updated as described above, it is also preferable to update the dirt section width m and the dirt section actual count value z. For example, when the compensation section start position is advanced by one count, the dirt section width m and the dirt section actual count value z are also increased by one count. By doing so, it is possible to prevent the compensation control from being ended even though the compensation section start position is updated even though the compensation section start position is updated. Compensation control can be surely performed.
(4)キャリッジ駆動処理の説明
次に、キャリッジ12の駆動を制御するためにASIC2において行われる、キャリッジ駆動処理について、図6を用いて説明する。図6は、ASIC2のうち、CRリニアエンコーダ処理部34(特に補償制御情報設定部36)及びCRモータ制御部32により行われるキャリッジ駆動処理を表すフローチャートである。このキャリッジ駆動処理は、外部のPC等から画像形成指示があったり、或いは操作・表示部8の操作によって画像形成指示がなされるなどして、用紙Pへの画像形成が行われる際に、CPU3からの指令を受けて行われる。
(4) Description of Carriage Driving Process Next, the carriage driving process performed in the ASIC 2 for controlling the driving of the carriage 12 will be described with reference to FIG. FIG. 6 is a flowchart showing a carriage driving process performed by the CR linear encoder processing unit 34 (particularly the compensation control information setting unit 36) and the CR motor control unit 32 in the ASIC 2. This carriage driving process is performed when an image formation instruction is given from an external PC or the like, or when an image formation instruction is given by an operation of the operation / display unit 8 or the like. It is performed in response to a command from
このキャリッジ駆動処理が開始されると、まずS110にて、キャリッジ12の1ライン分の走査(駆動)が開始される。そして、S120にて、過去にキャリッジ12を駆動させたとき、即ち過去の本キャリッジ駆動処理の実行時に異常速度が検知されたか否かが判断される。このとき、過去のキャリッジ駆動処理の実行時に後述するS150の判断処理で異常速度が検知されていた場合は(S120:YES)、S170以降に進んで、補償区間において補償制御が行われるようにするが、過去に異常速度が検知されていない場合は(S120:NO)、S130に進み、通常時駆動制御が行われる。この通常時駆動制御は、エンコーダ信号に基づいて検出された検出速度に基づく通常のフィードバック制御であり、検出速度に基づいて操作量が生成される。なお、1ライン分の走査中は、上記(3−1)で説明した異常速度の検知が一定周期で行われる。 When the carriage driving process is started, first, scanning (driving) of one line of the carriage 12 is started in S110. In S120, it is determined whether or not an abnormal speed has been detected when the carriage 12 has been driven in the past, that is, in the past execution of the carriage driving process. At this time, if an abnormal speed is detected in the determination process of S150 described later at the time of executing the past carriage drive process (S120: YES), the process proceeds to S170 and subsequent steps so that the compensation control is performed in the compensation section. However, when an abnormal speed has not been detected in the past (S120: NO), the process proceeds to S130, and normal-time drive control is performed. The normal driving control is normal feedback control based on the detection speed detected based on the encoder signal, and an operation amount is generated based on the detection speed. During the scanning for one line, the abnormal speed detection described in (3-1) above is performed at a constant cycle.
そして、1ライン分の走査が終了するまでこのS130の通常時駆動制御が行われ、1ライン分の走査が終了すると(S140:YES)、S150にて、その1ライン分の走査中に異常速度が検知されたか否かが判断される。ここで、異常速度が検知された場合は(S150:YES)、S230以降に進んで、一連の汚れ判定処理が行われるが、異常速度が検知されなかった場合は(S150:NO)、S160にて、全ライン走査完了したか否かが判断される。そして、全ライン走査が完了するまでは1ライン走査する毎にS110に戻り、全ライン走査が完了すると(S160:YES)、このキャリッジ駆動処理が終了される。 Then, the normal time drive control in S130 is performed until the scanning for one line is completed, and when the scanning for one line is completed (S140: YES), an abnormal speed is detected during the scanning for one line in S150. Whether or not is detected is determined. Here, when the abnormal speed is detected (S150: YES), the process proceeds to S230 and subsequent steps, and a series of stain determination processes are performed. When the abnormal speed is not detected (S150: NO), the process proceeds to S160. Thus, it is determined whether or not all lines have been scanned. The process returns to S110 every time one line is scanned until all line scanning is completed. When all line scanning is completed (S160: YES), this carriage driving process is terminated.
一方、S150において、1ライン分の走査中に異常速度が検知されたと判断された場合は、S230にて、すでに汚れ判定が実行済みか否かが判断される。ここでいう汚れ判定とは、S240〜S280による、汚れ区間(補償区間)を特定するための一連の処理である。 On the other hand, if it is determined in S150 that an abnormal speed has been detected during scanning for one line, it is determined in S230 whether or not the stain determination has already been performed. The contamination determination here is a series of processing for specifying a contamination interval (compensation interval) in S240 to S280.
S230において、すでに汚れ判定が実行済みである場合は(S230:YES)、S310に進むが、まだ汚れ判定が実行されていない場合は(S230:NO)、S240以降に進み、汚れ判定を実行する。 In S230, if the dirt determination has already been performed (S230: YES), the process proceeds to S310. If the dirt determination has not yet been performed (S230: NO), the process proceeds to S240 and subsequent, and the dirt determination is performed. .
汚れ判定では、まずS240にて汚れカウント値nの算出が行われ、続くS250にて、その算出された汚れカウント値nに基づく、異常速度の原因がリニアスケール46の汚れによるものか否かの判断が行われる。S240における汚れカウント値nの算出、及びS250による異常速度の原因の判断は、具体的には、上記(3−2)で説明したように行われる。 In the dirt determination, first, the dirt count value n is calculated in S240, and in subsequent S250, it is determined whether or not the cause of the abnormal speed is due to the dirt of the linear scale 46 based on the calculated dirt count value n. Judgment is made. The calculation of the dirt count value n in S240 and the determination of the cause of the abnormal speed in S250 are specifically performed as described in (3-2) above.
そして、汚れカウント値nが0だったことにより異常速度の原因が汚れによるものではないと判断された場合は(S250:NO)、S290にて、操作・表示部8が備える図示しない表示装置へのエラー表示が行われ、続くS300にて、キャリッジ12の駆動が停止される。 If it is determined that the cause of the abnormal speed is not due to dirt because the dirt count value n is 0 (S250: NO), in S290, a display device (not shown) provided in the operation / display unit 8 is displayed. In step S300, the carriage 12 is stopped.
汚れカウント値nが0ではなかったことにより異常速度の原因が汚れによるものであると判断された場合は(S250:YES)、S260にて汚れ区間幅mの算出が行われ、続くS270にて、その算出された汚れ区間幅mが所定の汚れ幅閾値より大きいか否かが判断される。S260における汚れ区間幅mの算出は、具体的には、上記(3−3)で説明したように行われる。 If it is determined that the cause of the abnormal speed is due to dirt because the dirt count value n is not 0 (S250: YES), the dirt section width m is calculated in S260, and then in S270. Then, it is determined whether or not the calculated dirt section width m is larger than a predetermined dirt width threshold. The calculation of the dirt section width m in S260 is specifically performed as described in (3-3) above.
そして、汚れ区間幅mが汚れ幅閾値より大きい場合は(S270:YES)、汚れが広範囲にわたって付着しているものとして、S290よるエラー表示が行われ、続くS300にて、キャリッジ12の駆動が停止される。 If the dirt section width m is larger than the dirt width threshold value (S270: YES), it is assumed that dirt has adhered over a wide range, an error display is performed in S290, and the driving of the carriage 12 is stopped in the subsequent S300. Is done.
汚れ区間幅mが汚れ幅閾値以下である場合は(S270:NO)、S280にて汚れ区間内実カウント値zの算出が行われる。この汚れ区間内実カウント値zの算出は、具体的には、上記(3−4)で説明したように行われる。 When the dirt section width m is equal to or less than the dirt width threshold (S270: NO), the actual count value z in the dirt section is calculated in S280. The calculation of the actual count value z in the dirt section is specifically performed as described in (3-4) above.
なお、既述の通り、汚れ区間幅mは、汚れ区間内実カウント値zと汚れカウント値nを加算することによっても得ることができる。そのため、S260の汚れ区間幅mの算出に先立ってまずS280の汚れ区間内実カウント値zの算出を行い、その後に、m=z+nの演算を行うことで汚れ区間幅mを算出するようにしてもよい。 As described above, the dirt section width m can also be obtained by adding the dirt section actual count value z and the dirt count value n. Therefore, prior to the calculation of the dirt section width m in S260, the dirt section actual count value z is first calculated in S280, and then the dirt section width m is calculated by calculating m = z + n. Good.
このようにしてS240〜S280の汚れ判定が行われた後は、再びS110に戻り、次の1ライン分の走査が開始される。そのため、汚れ判定が行われた後のキャリッジ駆動の際は、それ以前のキャリッジ駆動においてすでに異常速度が検知されていることから、S120の判断処理では異常速度検知済みと判断されてS170に進むことになる。 After the stain determination in S240 to S280 is performed in this way, the process returns to S110 again, and scanning for the next one line is started. For this reason, when the carriage is driven after the dirt determination is made, the abnormal speed is already detected in the previous carriage drive. Therefore, in the determination process of S120, it is determined that the abnormal speed has been detected, and the process proceeds to S170. become.
S170では、キャリッジ12の位置が補償区間(汚れ区間)にあるか否かが判断され、まだ補償区間に入るまでの間は(S170:NO)、S180にて、S130と同様に通常時制御処理が行われる。そして、S190にて1ライン分の走査が終了したか否かが判断され、終了していない場合はS170に戻り、終了した場合はS150に進む。 In S170, it is determined whether or not the position of the carriage 12 is in the compensation section (dirt section). Until it enters the compensation section (S170: NO), in S180, the normal time control process is performed as in S130. Is done. Then, in S190, it is determined whether or not scanning for one line has been completed. If it has not been completed, the process returns to S170, and if it has been completed, the process proceeds to S150.
そして、キャリッジ12が補償区間に入ると(S170:YES)、S200に進み、補償制御が開始される。この補償制御は、具体的には、上記(3−5)で説明したように行われるものであり、検出速度に基づく操作量ではなく保持操作量を用いた制御が行われる。 When the carriage 12 enters the compensation section (S170: YES), the process proceeds to S200, and compensation control is started. Specifically, this compensation control is performed as described in (3-5) above, and control using the holding operation amount is performed instead of the operation amount based on the detection speed.
キャリッジ12が補償区間を駆動されている間は(S210:NO)、S200の補償制御が継続されるが、補償区間から出たこと(補償区間終了)が判断されると(S210:YES)、S220にて、補償区間終了時の検出位置(カウント値)の修正が行われた上で、S190に進む。このS220における修正は、具体的には、上記(3−6)で説明したように行われる。 While the carriage 12 is driven in the compensation section (S210: NO), the compensation control in S200 is continued, but when it is determined that the compensation section has been exited (end of the compensation section) (S210: YES). In S220, the detection position (count value) at the end of the compensation section is corrected, and the process proceeds to S190. Specifically, the correction in S220 is performed as described in (3-6) above.
補償区間終了後、1ライン分の走査が終了するまでは、S170において補償区間ではないと判断され、再び、S180の通常時制御処理が実行されることとなる。
そして、補償制御が行われた後、1ライン分の走査が終了すると(S190:NO)、再びS150にて、その1ライン分の走査中に異常速度が検知されたか否かの判断が行われる。ここで、S240〜S280の一連の汚れ判定処理において補償区間の開始位置が実際の汚れの付着開始位置と一致した位置に設定されているならば、補償制御が行われる1ライン分の走査中に異常速度が検知されることはないはずであるが、上記(3−7)で説明したように、一度の汚れ判定のみで補償開始位置が実際の汚れ付着開始位置に一致するとは限らない。
Until the scanning for one line is completed after completion of the compensation period, it is determined in S170 that the current period is not the compensation period, and the normal time control process in S180 is executed again.
When the scanning for one line is completed after the compensation control is performed (S190: NO), it is again determined in S150 whether or not an abnormal speed is detected during the scanning for the one line. . Here, if the start position of the compensation section is set to a position that coincides with the actual dirt start position in the series of stain determination processes of S240 to S280, during the scanning for one line in which compensation control is performed. Although the abnormal speed should not be detected, as described in (3-7) above, the compensation start position does not always coincide with the actual dirt adhesion start position by only one stain determination.
そこで、補償制御が行われた1ライン分の走査中においてもまだ異常速度が検知された場合は(S150:YES)、S230に進む。この場合、少なくとも1回はすでに汚れ判定が行われているはずであるため、S310に進み、補償区間開始位置が更新される。この補償区間開始位置の更新は、具体的には、上記(3−7)で説明したように行われる。 Therefore, if an abnormal speed is still detected even during scanning for one line for which compensation control has been performed (S150: YES), the process proceeds to S230. In this case, since the dirt determination has already been performed at least once, the process proceeds to S310, and the compensation section start position is updated. Specifically, the compensation section start position is updated as described in (3-7) above.
このようにして補償区間開始位置が更新された後は、再びS110に戻り、次の1ライン分の走査が開始されることとなる。
(5)実施形態の効果等
以上説明したように、本実施形態のインクジェットプリンタ1では、キャリッジ12の駆動中に異常速度が検出された場合、リニアスケール46における汚れ等が付着している区間(汚れ区間)が特定される。そして、その異常速度が検出された以後のキャリッジ12の駆動時には、その汚れ区間を補償区間として、補償区間内においては保持操作量を用いた補償制御が行われる。
After the compensation section start position is updated in this way, the process returns to S110 again, and scanning for the next one line is started.
(5) Effects of Embodiments As described above, in the inkjet printer 1 of the present embodiment, when an abnormal speed is detected while the carriage 12 is being driven, a section in which dirt or the like on the linear scale 46 is attached ( A dirty section) is identified. When the carriage 12 is driven after the abnormal speed is detected, the dirt section is used as the compensation section, and compensation control using the holding operation amount is performed in the compensation section.
そのため、汚れ等が付着している区間(補償区間)において、汚れ等に起因して生じる検出速度の変動の影響がCRモータ13の制御に反映されてしまうのを防止でき、キャリッジ12を安定して駆動させることができる。 For this reason, it is possible to prevent the influence of fluctuations in the detection speed caused by the dirt or the like from being reflected in the control of the CR motor 13 in the section (compensation section) where the dirt or the like is adhered, and the carriage 12 is stabilized. Can be driven.
しかも、保持操作量を用いたCRモータ13の制御はあくまでも補償区間内で行われる。即ち、補償区間が終了したら再び、検出速度に基づいて演算された操作量による通常の制御が行われる。また、補償区間の終了タイミングは、補償区間開始後のエンコーダ信号のカウント値と汚れ区間内実カウント値zとに基づいて正確に検出される。 In addition, the control of the CR motor 13 using the holding operation amount is performed only within the compensation section. That is, when the compensation section is completed, normal control is performed again with the operation amount calculated based on the detection speed. Further, the end timing of the compensation section is accurately detected based on the count value of the encoder signal after the start of the compensation section and the actual count value z in the dirt section.
そのため、保持操作量によるCRモータ13の駆動制御を必要十分に行うことができ、全体として制御性能の劣化を大幅に抑え、CRモータ13の制御、ひいてはキャリッジ12の駆動制御を高精度に行うことができる。 Therefore, the drive control of the CR motor 13 by the holding operation amount can be performed sufficiently and sufficiently, and the deterioration of the control performance as a whole is greatly suppressed, and the control of the CR motor 13 and thus the drive control of the carriage 12 are performed with high accuracy. Can do.
更に、補償区間で用いられる保持操作量は、キャリッジ12が補償区間に入る前にCRモータ制御部32が実際に演算した、その補償区間に入る前のキャリッジ12の摺動負荷等が考慮されたより適切な値である。そのため、このような保持操作量を補償区間で用いることによって、補償区間内においてもキャリッジ12に対してより適切な駆動力を与えることができる。 Further, the holding operation amount used in the compensation section is based on the fact that the CR motor controller 32 actually calculates the carriage 12 before entering the compensation section, considering the sliding load of the carriage 12 before entering the compensation section. Appropriate value. Therefore, by using such a holding operation amount in the compensation section, it is possible to give a more appropriate driving force to the carriage 12 even in the compensation section.
また、本実施形態では、補償区間終了時(キャリッジ12が補償区間を出た時)、エンコーダ信号のカウント値を、その時の実際のカウント値に汚れカウント値nを加算することで、その時点において本来あるべきカウント値(本来の位置を示す値)に修正するようにしている。そのため、補償区間を通過した後のキャリッジ12の実際の位置とカウント値とのずれをなくすことができ、補償区間通過後のキャリッジ12の駆動制御を、補償区間の影響(汚れ等の影響)を受けることなく、より高精度に行うことができる。 In the present embodiment, when the compensation section ends (when the carriage 12 exits the compensation section), the count value of the encoder signal is added to the actual count value at that time, and the dirt count value n is added at that time. The count value is corrected to a proper value (value indicating the original position). Therefore, the deviation between the actual position of the carriage 12 after passing through the compensation section and the count value can be eliminated, and the drive control of the carriage 12 after passing through the compensation section can be influenced by the influence of the compensation section (effect of dirt, etc.). It can be performed with higher accuracy without receiving.
また、本実施形態では、汚れカウント値nが0であった場合は、異常速度の原因がリニアスケール46の汚れ以外のものであるとして外部のユーザ等に対するエラー報知を行い、キャリッジ12の駆動を停止させるようにしている。そのため、CRリニアエンコーダ14以外の要因による異常が発生したことをユーザ等に知らしめ、その異常に応じた適切な対応をとるよう促すことができる。 Further, in this embodiment, when the dirt count value n is 0, an error notification is given to an external user and the like because the abnormal speed is caused by something other than the dirt of the linear scale 46, and the carriage 12 is driven. I try to stop it. Therefore, the user or the like can be informed that an abnormality due to factors other than the CR linear encoder 14 has occurred, and can be prompted to take an appropriate action in accordance with the abnormality.
更に、汚れ区間幅mが汚れ幅閾値より大きかった場合も、汚れ区間幅mが広すぎるものとしてユーザ等に対するエラー報知を行い、キャリッジ12を停止させるようにしている。そのため、広い範囲にわたって保持操作量でキャリッジ12を駆動させることにより生じ得る制御性能の劣化を防ぐことができ、ユーザ等に対しても適切な対応をとるように促すことができる。 Further, even when the dirt section width m is larger than the dirt width threshold, the carriage 12 is stopped by notifying the user or the like that the dirt section width m is too wide. Therefore, it is possible to prevent deterioration of control performance that can be caused by driving the carriage 12 with a holding operation amount over a wide range, and it is possible to prompt a user or the like to take an appropriate measure.
また、本実施形態では、異常速度の検知によって汚れ区間(補償区間)が設定された後のキャリッジ12の駆動の際、その設定された補償区間に入る前に再び異常速度が検知された場合は、補償区間の開始位置を、現在設定されている位置(カウント値)よりも前の位置に更新するようにしている。そのため、一旦設定された補償区間の開始位置が、実際に汚れ等が付着し始めている位置からずれていたとしても、そのずれを修正することができる。 In the present embodiment, when the carriage 12 is driven after the dirt section (compensation section) is set by detecting the abnormal speed, the abnormal speed is detected again before entering the set compensation section. The start position of the compensation section is updated to a position before the currently set position (count value). For this reason, even if the start position of the compensation section once set is deviated from the position where dirt or the like actually starts to adhere, the deviation can be corrected.
ここで、本実施形態の構成要素と本発明の構成要素の対応関係を明らかにする。本実施形態において、CRリニアエンコーダ処理部34は本発明の駆動状態検出手段に相当し、CRモータ制御部32は本発明の操作量演算手段及び操作量補償手段に相当し、ノミナルカウント値Nが記憶されているEEPROM6(又はASIC2)は本発明の記憶手段に相当し、操作・表示部8は本発明の第1報知手段及び第2報知手段に相当する。 Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. In the present embodiment, the CR linear encoder processing unit 34 corresponds to the drive state detection unit of the present invention, the CR motor control unit 32 corresponds to the operation amount calculation unit and the operation amount compensation unit of the present invention, and the nominal count value N is The stored EEPROM 6 (or ASIC 2) corresponds to storage means of the present invention, and the operation / display unit 8 corresponds to first notification means and second notification means of the present invention.
また、補償制御情報設定部36は、本発明の異常速度検知手段、補償区間検出手段、異常時全カウント値計測手段、補償区間内実カウント値演算手段、異常時カウント誤差検出手段、修正手段、補償区間幅演算手段、補償区間幅判断手段、及び更新手段に相当する。 Further, the compensation control information setting unit 36 includes an abnormal speed detecting means, a compensation section detecting means, an abnormal total count value measuring means, a compensation actual count value calculating means, an abnormal count error detecting means, a correcting means, and a compensation means. It corresponds to a section width calculating means, a compensation section width determining means, and an updating means.
また、図6のキャリッジ駆動処理において、S130及びS180の通常時駆動制御は本発明の操作量演算手段が実行する処理に相当し、S200の補償制御は本発明の操作量補償手段が実行する処理に相当し、S220の補償終了位置の修正は本発明の修正手段が実行する処理に相当し、S240の汚れカウント値nの算出は本発明の異常時カウント誤差検出手段が実行する処理に相当し、S260の汚れ区間幅mの算出は本発明の補償区間幅演算手段が実行する処理に相当し、S270の判断処理は本発明の補償区間幅判断手段が実行する処理に相当し、S280の汚れ区間内実カウント値zの算出は本発明の補償区間内実カウント値演算手段が実行する処理に相当し、S310の補償区間開始位置の更新は本発明の更新手段が実行する処理に相当する。 In the carriage driving process of FIG. 6, the normal driving control in S130 and S180 corresponds to the process executed by the operation amount calculating means of the present invention, and the compensation control of S200 is the process executed by the operation amount compensating means of the present invention. The correction of the compensation end position in S220 corresponds to the processing executed by the correcting means of the present invention, and the calculation of the dirt count value n in S240 corresponds to the processing executed by the abnormal time count error detecting means of the present invention. , The calculation of the dirt section width m in S260 corresponds to the process executed by the compensation section width calculation means of the present invention, the determination process in S270 corresponds to the process executed by the compensation section width determination means of the present invention, and the dirt in S280. The calculation of the actual count value z within the interval corresponds to the processing executed by the actual count value calculation unit within the compensation interval of the present invention, and the update of the compensation interval start position of S310 is executed by the update means of the present invention. It corresponds to the physical.
[変形例]
以上、本発明の実施の形態について説明したが、本発明の実施の形態は、上記実施形態に何ら限定されるものではなく、本発明の技術的範囲に属する限り種々の形態を採り得ることはいうまでもない。
[Modification]
Although the embodiments of the present invention have been described above, the embodiments of the present invention are not limited to the above-described embodiments, and can take various forms as long as they belong to the technical scope of the present invention. Needless to say.
例えば、上記実施形態では、エンコーダ汚れの具体例として、図5に例示したように、リニアスケール46における近接した2箇所に汚れ71,72が付着してその付着した範囲内のスリット48が汚れによって覆われてしまったケースについて説明したが、汚れの付着箇所が1箇所であっても、或いは3箇所以上であっても、上記実施形態と同様にして汚れ区間(補償区間)を特定し、補償制御を行うようにすることができる。 For example, in the above-described embodiment, as a specific example of encoder contamination, as illustrated in FIG. 5, contamination 71 and 72 adhere to two adjacent locations on the linear scale 46 and the slit 48 within the attached range is contaminated. Although the case where it has been covered has been described, even if the number of places where dirt is attached is one place or more than three places, the dirt section (compensation section) is identified and compensated in the same manner as in the above embodiment. Control can be performed.
また、上記実施形態では、汚れによってスリット48が覆われてしまうケース、即ち本来カウントされるはずのエンコーダ信号のエッジがカウントされないケースを例示したが、これとは逆に、例えばスリット48にその幅よりも細い汚れが付着するなどして、本来カウントされるべきエッジよりも多いエッジが検出されてカウントされてしまうケースも考えられる。そのように、汚れによって本来のカウント数よりも多くカウントされるようなケースにおいても、上記実施形態と同様にして汚れ区間(補償区間)を特定し、補償制御を行うようにすることができる。 Further, in the above embodiment, the case where the slit 48 is covered with dirt, that is, the case where the edge of the encoder signal that should be counted is not counted is illustrated. There may be a case in which more edges than the edges that should be counted are detected and counted because finer dirt adheres. As described above, even in the case where the count is larger than the original count due to contamination, it is possible to specify the contamination interval (compensation interval) and perform compensation control in the same manner as in the above embodiment.
つまり、どの程度の大きさの汚れがいくつ付着するか、またその汚れによってカウント値が本来よりも多くカウントされてしまうのかそれとも少なくカウントされてしまうのか、といったことに関係なく、本発明を適用することができる。 In other words, the present invention is applied regardless of how much dirt is deposited and how many count values are counted more or less due to the dirt. be able to.
また、上記実施形態では、CRリニアエンコーダ14からのA,B各相のパルス信号のうち、A相信号についてその立ち上がりエッジ及び立ち下がりエッジをカウントするようにしたが、これはあくまでも一例であり、例えば、立ち上がりエッジ又は立ち下がりエッジのいずれか一方のみをカウントするようにしてもよいし、A相信号ではなくB相信号をカウント対象とするようにしてもよい。また、A,B各相のパルス信号の立ち上がりエッジ、立ち下がりエッジを共にカウントするようにしてもよい。 In the above embodiment, among the A and B phase pulse signals from the CR linear encoder 14, the rising edge and the falling edge of the A phase signal are counted, but this is only an example. For example, only either the rising edge or the falling edge may be counted, or the B-phase signal may be counted instead of the A-phase signal. Further, both the rising edge and the falling edge of the pulse signals of the A and B phases may be counted.
また、上記実施形態では、インクジェットプリンタ1におけるキャリッジ12を駆動させるCRモータ13の制御に対して本発明を適用した例を示したが、本発明の適用はキャリッジ駆動用のモータ制御、或いはインクジェットプリンタにおけるモータ制御に限定されず、リニアエンコーダを用いて駆動対象の移動量を検出することによりモータを制御するよう構成されたあらゆるモータ制御装置に対して適用できる。 In the above embodiment, the example in which the present invention is applied to the control of the CR motor 13 for driving the carriage 12 in the inkjet printer 1 has been described. However, the present invention is applied to the motor control for driving the carriage or the inkjet printer. The present invention is not limited to the motor control in, and can be applied to any motor control apparatus configured to control the motor by detecting the movement amount of the drive target using a linear encoder.
1…インクジェットプリンタ、2…ASIC、3…CPU、4…ROM、5…RAM、6…EEPROM、7…I/F、8…操作・表示部、9…バス、11…記録ヘッド、12…キャリッジ、13…CRモータ、14…CRリニアエンコーダ、15…記録ヘッドドライバ、16…CRモータドライバ、21…LFモータ、22…LFロータリエンコーダ、23…LFモータドライバ、31…記録制御部、32…CRモータ制御部、33…LFモータ制御部、34…CRリニアエンコーダ処理部、35…LFロータリエンコーダ処理部、36…補償制御情報設定部、41…ガイド軸、42…無端ベルト、43…駆動プーリ、44…従動プーリ、46…リニアスケール、47…検出部、48…スリット、50…発光部、51…A相発光素子、52…B相発光素子、60…受光部、61…A相受光素子、62…B相受光素子、70,71,72…汚れ、P…用紙 DESCRIPTION OF SYMBOLS 1 ... Inkjet printer, 2 ... ASIC, 3 ... CPU, 4 ... ROM, 5 ... RAM, 6 ... EEPROM, 7 ... I / F, 8 ... Operation / display part, 9 ... Bus, 11 ... Recording head, 12 ... Carriage , 13 ... CR motor, 14 ... CR linear encoder, 15 ... recording head driver, 16 ... CR motor driver, 21 ... LF motor, 22 ... LF rotary encoder, 23 ... LF motor driver, 31 ... recording control unit, 32 ... CR Motor control unit, 33 ... LF motor control unit, 34 ... CR linear encoder processing unit, 35 ... LF rotary encoder processing unit, 36 ... compensation control information setting unit, 41 ... guide shaft, 42 ... endless belt, 43 ... drive pulley, 44 ... driven pulley, 46 ... linear scale, 47 ... detecting section, 48 ... slit, 50 ... light emitting section, 51 ... A phase light emitting element, 52 B-phase light-emitting element, 60 ... light-receiving unit, 61 ... A phase light-receiving element, 62 ... B-phase light-receiving element, 70, 71, 72 ... dirt, P ... paper
Claims (11)
前記リニアエンコーダからの前記エンコーダ信号をカウントし、該カウント値に基づいて前記被駆動体の速度及び位置を検出する駆動状態検出手段と、
所定の演算タイミング毎に、前記駆動状態検出手段による検出速度に基づいて前記モータを制御するための操作量を演算して該モータへ出力する操作量演算手段と、
を備えたモータ制御装置であって、
前記駆動状態検出手段による検出速度が予め設定された速度正常範囲から外れた異常速度であるか否かを検知する異常速度検知手段と、
前記異常速度検知手段によって前記異常速度が検知された場合に、前記被駆動体を前記移動経路の一端から駆動させて前記異常速度検知手段により前記異常速度が検知されるまでの前記エンコーダ信号をカウントすることにより第1カウント値kaを計測すると共に、前記被駆動体を前記移動経路の他端から駆動させて前記異常速度検知手段により前記異常速度が検知されるまでの前記エンコーダ信号をカウントすることにより第2カウント値kbを計測して、該各カウント値ka,kbに対応した位置の間を補償区間として検出する補償区間検出手段と、
前記補償区間検出手段により前記補償区間が検出された後の前記被駆動体の駆動の際、前記駆動状態検出手段による検出位置に基づいて前記被駆動体が前記補償区間に入ったかどうかを判断すると共に、該補償区間に入った場合、該補償区間内においては、前記操作量として、該補償区間に入る前に前記操作量演算手段により演算された一又は複数の操作量に基づいて得られる保持操作量を出力する操作量補償手段と、
を備えていることを特徴とするモータ制御装置。 A linear encoder that outputs a pulsed encoder signal according to the amount of movement of a driven body driven by a motor on a preset movement path;
Drive state detection means for counting the encoder signal from the linear encoder and detecting the speed and position of the driven body based on the count value;
An operation amount calculation means for calculating an operation amount for controlling the motor based on a detection speed by the drive state detection means at every predetermined calculation timing and outputting the operation amount to the motor;
A motor control device comprising:
An abnormal speed detecting means for detecting whether or not the detection speed detected by the drive state detecting means is an abnormal speed deviating from a preset normal speed range;
When the abnormal speed is detected by the abnormal speed detecting means, the driven body is driven from one end of the moving path, and the encoder signal is counted until the abnormal speed is detected by the abnormal speed detecting means. And measuring the first count value ka and driving the driven body from the other end of the moving path to count the encoder signal until the abnormal speed is detected by the abnormal speed detecting means. Compensation period detecting means for measuring the second count value kb and detecting between the positions corresponding to the respective count values ka and kb as a compensation period;
When driving the driven body after the compensation section is detected by the compensation section detecting means, it is determined whether the driven body has entered the compensation section based on a detection position by the driving state detecting means. At the same time, when entering the compensation section, within the compensation section, the operation amount is obtained based on one or a plurality of operation amounts calculated by the operation amount calculating means before entering the compensation section. An operation amount compensation means for outputting an operation amount;
A motor control device comprising:
前記異常速度検知手段によって前記異常速度が検知された場合に、前記被駆動体を前記移動経路の一端から他端までの全領域を駆動させ、該駆動中の前記エンコーダ信号をカウントすることにより異常時全カウント値Mを計測する異常時全カウント値計測手段と、
前記第1カウント値kaと前記第2カウント値kbの和を前記異常時全カウント値Mから減算することにより補償区間内実カウント値zを演算する補償区間内実カウント値演算手段を備え、
前記操作量補償手段は、前記被駆動体が前記補償区間に入った場合、該入った後の前記駆動状態検出手段によるカウント値及び前記補償区間内実カウント値zに基づいて該補償区間の終了位置を検出し、該終了位置が検出されるまで前記保持操作量を出力する
ことを特徴とするモータ制御装置。 The motor control device according to claim 1,
When the abnormal speed is detected by the abnormal speed detecting means, the driven body is driven in the entire region from one end to the other end of the moving path, and the abnormal encoder is counted by counting the encoder signal being driven. An abnormal total count value measuring means for measuring the total count value M at the time,
A compensation interval actual count value calculating means for calculating a compensation interval actual count value z by subtracting the sum of the first count value ka and the second count value kb from the abnormal total count value M;
When the driven body enters the compensation section, the manipulated variable compensation means determines the end position of the compensation section based on the count value by the drive state detection means after entering the compensation section and the actual count value z in the compensation section. The motor control device is characterized in that the holding operation amount is output until the end position is detected.
前記リニアエンコーダが正常である場合に前記被駆動体を前記移動経路の一端から他端までの全領域を駆動させたときの、該駆動中の前記エンコーダ信号のカウント値であるノミナルカウント値Nが予め記憶されている記憶手段と、
前記異常速度検知手段によって前記異常速度が検知された場合に、前記異常時全カウント値計測手段により計測された前記異常時全カウント値Mを前記ノミナルカウント値Nから減算することにより、異常時カウント誤差nを検出する異常時カウント誤差検出手段と、
前記補償区間検出手段により前記補償区間が検出された後の前記被駆動体の駆動の際、前記被駆動体が前記補償区間から出たときに、前記駆動状態検出手段によるカウント中のカウント値を、前記補償区間から出たときのカウント値に前記異常時カウント誤差nを加算した値に修正する修正手段と、
を備えていることを特徴とするモータ制御装置。 The motor control device according to claim 2,
When the linear encoder is normal, when the driven body is driven in the entire region from one end to the other end of the moving path, a nominal count value N which is a count value of the encoder signal being driven is Storage means stored in advance;
When the abnormal speed is detected by the abnormal speed detecting means, the abnormal count is subtracted from the nominal count value N by subtracting the abnormal total count value M measured by the abnormal total count value measuring means. An abnormal time count error detecting means for detecting an error n;
When the driven body is driven after the compensation section is detected by the compensation section detecting means, the count value being counted by the driving state detecting means is calculated when the driven body leaves the compensation section. Correcting means for correcting to a value obtained by adding the abnormal count error n to the count value when the compensation section is exited;
A motor control device comprising:
前記操作量補償手段は、前記異常時カウント誤差nが0ではない場合に、前記保持操作量を出力する
ことを特徴とするモータ制御装置。 The motor control device according to claim 3,
The operation amount compensation means outputs the holding operation amount when the abnormal time count error n is not zero.
前記異常時カウント誤差検出手段によって前記異常時カウント誤差nが0と検出された場合に該検出結果に基づく予め決められた報知を行う第1報知手段を備えている
ことを特徴とするモータ制御装置。 The motor control device according to claim 4,
A motor control device comprising: first notification means for performing predetermined notification based on the detection result when the abnormality count error n is detected as 0 by the abnormality count error detection means. .
前記第1カウント値kaと前記第2カウント値kbの和を前記ノミナルカウント値Nから減算することにより、前記補償区間において前記駆動状態検出手段により本来カウントされるべきカウント値である補償区間幅mを演算する補償区間幅演算手段と、
前記補償区間幅演算手段により検出された前記補償区間幅mが、予め設定した補償区間幅閾値より大きいか否かを判断する補償区間幅判断手段と、
を備え、
前記操作量補償手段は、前記補償区間幅判断手段により前記補償区間幅mが前記補償区間幅閾値以下と判断された場合に、前記保持操作量を出力する
ことを特徴とするモータ制御装置。 In the motor control device according to any one of claims 3 to 5,
By subtracting the sum of the first count value ka and the second count value kb from the nominal count value N, a compensation interval width m which is a count value that should be originally counted by the driving state detection means in the compensation interval. Compensation interval width calculating means for calculating
Compensation interval width judging means for judging whether or not the compensation interval width m detected by the compensation interval width calculating means is larger than a preset compensation interval width threshold;
With
The operation amount compensation unit outputs the holding operation amount when the compensation interval width determination unit determines that the compensation interval width m is equal to or less than the compensation interval width threshold value.
前記補償区間幅判断手段により前記補償区間幅mが前記補償区間幅閾値より大きいと判断された場合に該判断結果に基づく予め決められた報知を行う第2報知手段を備えている
ことを特徴とするモータ制御装置。 The motor control device according to claim 6,
When the compensation section width determining means determines that the compensation section width m is larger than the compensation section width threshold, the second section is provided with a second notification means for performing a predetermined notification based on the determination result. Motor control device.
前記補償区間検出手段により前記補償区間が検出された後の前記被駆動体の駆動の際、前記被駆動体が前記補償区間に入る前に前記異常速度検知手段によって前記異常速度が検知された場合に、前記補償区間の開始位置を、現在検出されている位置よりも予め決められた量だけ前の位置へ更新する更新手段を備えている
ことを特徴とするモータ制御装置。 In the motor control device according to any one of claims 1 to 7,
When the abnormal speed is detected by the abnormal speed detection means before the driven body enters the compensation section when the driven body is driven after the compensation section is detected by the compensation section detection means. In addition, the motor control device further includes an update unit that updates the start position of the compensation section to a position that is a predetermined amount before the currently detected position.
前記操作量補償手段は、前記被駆動体が前記補償区間に入る直前の前記演算タイミングで前記操作量演算手段により演算された操作量を、前記保持操作量として出力する
ことを特徴とするモータ制御装置。 In the motor control device according to any one of claims 1 to 8,
The operation amount compensation means outputs the operation amount calculated by the operation amount calculation means at the calculation timing immediately before the driven body enters the compensation section as the holding operation amount. apparatus.
前記操作量補償手段は、前記被駆動体が前記補償区間に入る前における複数の前記演算タイミングで前記操作量演算手段により演算された各操作量の平均値を、前記保持操作量として出力する
ことを特徴とするモータ制御装置。 In the motor control device according to any one of claims 1 to 8,
The manipulated variable compensation means outputs, as the holding manipulated variable, an average value of the manipulated variables calculated by the manipulated variable calculator at a plurality of the calculation timings before the driven body enters the compensation section. A motor control device.
インクを吐出することにより被記録媒体に画像を形成する記録ヘッドと、
前記被駆動体としての、前記記録ヘッドを搭載したキャリッジと、
を備えていることを特徴とする画像形成装置。 The motor control device according to any one of claims 1 to 10,
A recording head that forms an image on a recording medium by ejecting ink; and
A carriage on which the recording head is mounted as the driven body;
An image forming apparatus comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009055567A JP4894872B2 (en) | 2009-03-09 | 2009-03-09 | Motor control apparatus and image forming apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009055567A JP4894872B2 (en) | 2009-03-09 | 2009-03-09 | Motor control apparatus and image forming apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010213424A true JP2010213424A (en) | 2010-09-24 |
| JP4894872B2 JP4894872B2 (en) | 2012-03-14 |
Family
ID=42972998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009055567A Expired - Fee Related JP4894872B2 (en) | 2009-03-09 | 2009-03-09 | Motor control apparatus and image forming apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4894872B2 (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014048931A (en) * | 2012-08-31 | 2014-03-17 | Brother Ind Ltd | Control device and image forming system |
| JP2017065061A (en) * | 2015-09-30 | 2017-04-06 | ブラザー工業株式会社 | Liquid ejection device |
| CN107390163A (en) * | 2016-05-16 | 2017-11-24 | 株式会社理光 | Mobile device and its location equipment and method and region limit system and method |
| JP2018161882A (en) * | 2017-03-27 | 2018-10-18 | ブラザー工業株式会社 | Recording device |
| CN109159549A (en) * | 2018-09-18 | 2019-01-08 | 深圳市邻友通科技发展有限公司 | Print control program, control device, storage medium and printing device |
| JP2021041659A (en) * | 2019-09-13 | 2021-03-18 | ブラザー工業株式会社 | Drive system |
| CN115177281A (en) * | 2022-07-29 | 2022-10-14 | 上海联影医疗科技股份有限公司 | Medical imaging system, method for compensating for rotational error of medical imaging system, and storage medium |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6893819B2 (en) * | 2017-04-06 | 2021-06-23 | 株式会社ミツトヨ | Encoder |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09202014A (en) * | 1996-01-24 | 1997-08-05 | Brother Ind Ltd | Printer |
| JP2002096519A (en) * | 2000-09-22 | 2002-04-02 | Canon Inc | Recording apparatus and motor operation inspection method thereof |
| JP2002225374A (en) * | 2001-02-01 | 2002-08-14 | Canon Inc | Electronic device and recording device |
| JP2005246858A (en) * | 2004-03-05 | 2005-09-15 | Fuji Xerox Co Ltd | Image forming apparatus |
| JP2005246733A (en) * | 2004-03-03 | 2005-09-15 | Fuji Xerox Co Ltd | Image forming apparatus |
| JP2006006083A (en) * | 2004-06-21 | 2006-01-05 | Ricoh Co Ltd | Drive control apparatus, drive control method, image forming apparatus, image reading apparatus, and program |
| JP2006159695A (en) * | 2004-12-08 | 2006-06-22 | Canon Inc | Recording apparatus and recording control method |
| JP2006178374A (en) * | 2004-12-24 | 2006-07-06 | Brother Ind Ltd | Image forming apparatus |
| JP2006213042A (en) * | 2005-01-04 | 2006-08-17 | Ricoh Co Ltd | Image forming apparatus |
| JP2006281499A (en) * | 2005-03-31 | 2006-10-19 | Canon Inc | Recording apparatus and recording apparatus control method |
| JP2008090233A (en) * | 2006-10-05 | 2008-04-17 | Canon Inc | Speed control device and image forming apparatus |
-
2009
- 2009-03-09 JP JP2009055567A patent/JP4894872B2/en not_active Expired - Fee Related
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09202014A (en) * | 1996-01-24 | 1997-08-05 | Brother Ind Ltd | Printer |
| JP2002096519A (en) * | 2000-09-22 | 2002-04-02 | Canon Inc | Recording apparatus and motor operation inspection method thereof |
| JP2002225374A (en) * | 2001-02-01 | 2002-08-14 | Canon Inc | Electronic device and recording device |
| JP2005246733A (en) * | 2004-03-03 | 2005-09-15 | Fuji Xerox Co Ltd | Image forming apparatus |
| JP2005246858A (en) * | 2004-03-05 | 2005-09-15 | Fuji Xerox Co Ltd | Image forming apparatus |
| JP2006006083A (en) * | 2004-06-21 | 2006-01-05 | Ricoh Co Ltd | Drive control apparatus, drive control method, image forming apparatus, image reading apparatus, and program |
| JP2006159695A (en) * | 2004-12-08 | 2006-06-22 | Canon Inc | Recording apparatus and recording control method |
| JP2006178374A (en) * | 2004-12-24 | 2006-07-06 | Brother Ind Ltd | Image forming apparatus |
| JP2006213042A (en) * | 2005-01-04 | 2006-08-17 | Ricoh Co Ltd | Image forming apparatus |
| JP2006281499A (en) * | 2005-03-31 | 2006-10-19 | Canon Inc | Recording apparatus and recording apparatus control method |
| JP2008090233A (en) * | 2006-10-05 | 2008-04-17 | Canon Inc | Speed control device and image forming apparatus |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014048931A (en) * | 2012-08-31 | 2014-03-17 | Brother Ind Ltd | Control device and image forming system |
| JP2017065061A (en) * | 2015-09-30 | 2017-04-06 | ブラザー工業株式会社 | Liquid ejection device |
| CN107390163A (en) * | 2016-05-16 | 2017-11-24 | 株式会社理光 | Mobile device and its location equipment and method and region limit system and method |
| JP2018161882A (en) * | 2017-03-27 | 2018-10-18 | ブラザー工業株式会社 | Recording device |
| CN109159549A (en) * | 2018-09-18 | 2019-01-08 | 深圳市邻友通科技发展有限公司 | Print control program, control device, storage medium and printing device |
| CN109159549B (en) * | 2018-09-18 | 2021-02-23 | 深圳市邻友通科技发展有限公司 | Printing control method, control device, storage medium, and printing apparatus |
| US10946681B2 (en) | 2018-09-18 | 2021-03-16 | Shenzhen Danya Technology Co., Ltd. | Printing control method and printing device |
| JP2021041659A (en) * | 2019-09-13 | 2021-03-18 | ブラザー工業株式会社 | Drive system |
| US11318771B2 (en) | 2019-09-13 | 2022-05-03 | Brother Kogyo Kabushiki Kaisha | Motor driving system |
| JP7327026B2 (en) | 2019-09-13 | 2023-08-16 | ブラザー工業株式会社 | drive system |
| CN115177281A (en) * | 2022-07-29 | 2022-10-14 | 上海联影医疗科技股份有限公司 | Medical imaging system, method for compensating for rotational error of medical imaging system, and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4894872B2 (en) | 2012-03-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4894872B2 (en) | Motor control apparatus and image forming apparatus | |
| JP4788814B2 (en) | Transport device | |
| JP4447891B2 (en) | DC motor control apparatus and recording apparatus | |
| JP7327026B2 (en) | drive system | |
| JP5195687B2 (en) | Motor control apparatus and image forming apparatus | |
| US20180272769A1 (en) | Ink-jet printer | |
| JP4616777B2 (en) | Conveyance control device and image forming apparatus | |
| JP4380491B2 (en) | Rotation drive evaluation apparatus and method, correction operation amount setting apparatus and method, control apparatus and method, and program | |
| JP7604998B2 (en) | Control System | |
| US12326352B2 (en) | Electronic device | |
| US12381495B2 (en) | Pulse generator | |
| JP6736863B2 (en) | Liquid ejector | |
| JP7613209B2 (en) | Control System | |
| JP5131302B2 (en) | Rotation control device | |
| JP2504640B2 (en) | Print timing correction method for serial dot printer | |
| JP4412314B2 (en) | Motor control device, recording device | |
| US11390073B2 (en) | Liquid discharge apparatus | |
| US8890445B2 (en) | Drive control device and drive control method | |
| JP2013241249A (en) | Conveyance device and method | |
| JP4788347B2 (en) | Speed detection device and speed detection method | |
| JP5315030B2 (en) | Recording device | |
| JP5772018B2 (en) | Rotation control device | |
| JP2017132180A (en) | Printer and position control method | |
| JP2010083012A (en) | Control device | |
| JP2005111712A (en) | Printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111116 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20111129 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111212 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4894872 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150106 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |