JP5407297B2 - Motor control device, motor control method, and image forming apparatus - Google Patents

Motor control device, motor control method, and image forming apparatus Download PDF

Info

Publication number
JP5407297B2
JP5407297B2 JP2008298822A JP2008298822A JP5407297B2 JP 5407297 B2 JP5407297 B2 JP 5407297B2 JP 2008298822 A JP2008298822 A JP 2008298822A JP 2008298822 A JP2008298822 A JP 2008298822A JP 5407297 B2 JP5407297 B2 JP 5407297B2
Authority
JP
Japan
Prior art keywords
motor
time
speed
signal
instruction value
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.)
Expired - Fee Related
Application number
JP2008298822A
Other languages
Japanese (ja)
Other versions
JP2009153369A (en
Inventor
達也 綿引
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2008298822A priority Critical patent/JP5407297B2/en
Priority to US12/292,893 priority patent/US8269435B2/en
Publication of JP2009153369A publication Critical patent/JP2009153369A/en
Application granted granted Critical
Publication of JP5407297B2 publication Critical patent/JP5407297B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、モータドライバに駆動されるモータの回転により出力される回転出力信号に基づいて、モータドライバの制御を行うモータ制御装置、及びモータ制御方法、並びに画像形成装置に関する。   The present invention relates to a motor control device, a motor control method, and an image forming apparatus that control a motor driver based on a rotation output signal output by rotation of a motor driven by the motor driver.

従来、画像形成装置として、コピー機能、ファクシミリ(FAX)機能、プリント機能、スキャナ機能、および入力画像(スキャナ機能による読み取り原稿画像やプリンタあるいはFAX機能により入力された画像)を配信する機能等を備えたMFP(Multi Function Peripheral:多機能周辺装置)では、高精度なモータの制御が必要とされている。例えば、中間転写ベルトを駆動する中間転写モータの回転速度が変化すると、色ずれや画像の歪みが生じるなどの問題がある。このため、中間転写ベルトにおいては、モータの回転により出力された回転出力信号と目標速度信号との差分に基づいて、目標速度を保つようにモータの制御を行っている。   2. Description of the Related Art Conventionally, as an image forming apparatus, a copy function, a facsimile (FAX) function, a print function, a scanner function, and a function of distributing an input image (an original image read by a scanner function or an image input by a printer or a FAX function) are provided. In addition, in an MFP (Multi Function Peripheral), high-precision motor control is required. For example, when the rotational speed of the intermediate transfer motor that drives the intermediate transfer belt changes, there are problems such as color misregistration and image distortion. For this reason, in the intermediate transfer belt, the motor is controlled so as to maintain the target speed based on the difference between the rotation output signal output by the rotation of the motor and the target speed signal.

ところが、モータの回転出力信号と目標速度信号との差分に基づくモータ制御では、モータの回転出力信号の分解能で制御を行うため、モータの回転出力信号の周期が大きすぎ、高精度な制御が出来ないという問題があった。   However, in motor control based on the difference between the motor rotation output signal and the target speed signal, control is performed with the resolution of the motor rotation output signal, so the cycle of the motor rotation output signal is too large, and high-precision control is possible. There was no problem.

そこで、特許文献1では、回転出力信号SG1001(エンコーダパルス)の周波数より高い周波数のタイマ1107を備えることにより、制御の精度を向上させている。ここで、従来技術について図13、図14を用いて説明する。図13は、特許文献1のモータ制御装置を示す機能ブロック図である。   Therefore, in Patent Document 1, the accuracy of control is improved by providing a timer 1107 having a frequency higher than the frequency of the rotation output signal SG1001 (encoder pulse). Here, the prior art will be described with reference to FIGS. FIG. 13 is a functional block diagram showing the motor control device of Patent Document 1. As shown in FIG.

図13中、モータ1021の回転によって回転出力信号SG1001が出力されると、インプットキャプチャ1101(HSIユニット:High―Speed Interconnect:高速入力)は、当該回転出力信号SG1001の立ち上がりがフリーランタイマ1107(タイマ)で何カウント目であったのかをメモリ(FIFO:First―In, First―Out)1111へ保存する。ここでフリーランタイマ1107は、回転出力信号SG1001より十分に周波数が高い。   In FIG. 13, when the rotation output signal SG1001 is output by the rotation of the motor 1021, the input capture 1101 (HSI unit: High-Speed Interconnect: high-speed input) indicates that the rotation output signal SG1001 rises to the free-run timer 1107 (timer ) Is stored in a memory (FIFO: First-In, First-Out) 1111. Here, the free-run timer 1107 has a sufficiently higher frequency than the rotation output signal SG1001.

CPU(Central Processing Unit)1110は所定のサンプリング期間の終了時にソフトウェアタイマによって割込まれる。CPU1110は割込を受けると、メモリ1111に保存された値と、直前の回転出力信号SG1001の立ち上がりから割込までのタイマ値とを用いて、サンプリング周期中の回転出力信号SG1001(エンコーダパルス)の平均周波数を演算する。また、CPU1110は当該平均周波数を用いてPWM(Pulse Width Modulation:パルス幅変調)タイマ1104(パルス幅変調ユニット)へ出力するモータ1021の速度制御指示値D1004(エンコーダフィードバック指示値)を演算する。この速度制御指示値D1004に基づいてモータ1021を駆動することで、従来のものより高精度な制御を実現している。
特開平04―255867号公報
A CPU (Central Processing Unit) 1110 is interrupted by a software timer at the end of a predetermined sampling period. When the CPU 1110 receives the interrupt, the CPU 1110 uses the value stored in the memory 1111 and the timer value interrupted from the leading edge of the previous rotation output signal SG1001 to calculate the rotation output signal SG1001 (encoder pulse) during the sampling period. Calculate the average frequency. Further, the CPU 1110 calculates a speed control instruction value D1004 (encoder feedback instruction value) of the motor 1021 output to a PWM (Pulse Width Modulation) timer 1104 (pulse width modulation unit) using the average frequency. By driving the motor 1021 based on the speed control instruction value D1004, higher-precision control than the conventional one is realized.
Japanese Unexamined Patent Publication No. 04-255867

しかしながら、特許文献1の発明では制御周期信号タイミング(割込タイミング)までは考慮されるが、速度制御指示値D1004がモータドライバ1105への出力PWM信号SG1006へ反映されるまでの時間は考慮されない。この問題を図14を用いて説明する。   However, in the invention of Patent Document 1, the control period signal timing (interrupt timing) is considered, but the time until the speed control instruction value D1004 is reflected in the output PWM signal SG1006 to the motor driver 1105 is not considered. This problem will be described with reference to FIG.

図14は、PWM信号SG1006への速度制御指示値D1004の反映にかかる時間と速度変化との関係を模式的に表したグラフである。図14のように、徐々にモータの回転速度が速くなっている場合には、指示値演算に用いられる速度と実際の速度の間に差が生じてしまうので、精密な制御が行えないという問題がある。さらに、CPU1110の負荷などの関係で速度制御指示値D1004の演算に時間がかかり、PWMタイマ1104が速度制御指示値D1004をPWM信号SG1006へ反映させるまでに時間がかかってしまった場合、速度制御指示値D1004の演算に用いられた平均速度と実際の速度との間に大きな差が生じるため、ますます制御の精度が悪くなるという問題がある。   FIG. 14 is a graph schematically showing the relationship between the time required for reflecting the speed control instruction value D1004 to the PWM signal SG1006 and the speed change. As shown in FIG. 14, when the rotational speed of the motor is gradually increased, there is a difference between the speed used for the instruction value calculation and the actual speed, so that the precise control cannot be performed. There is. Furthermore, if it takes time to calculate the speed control instruction value D1004 due to the load of the CPU 1110 and the like, and it takes time for the PWM timer 1104 to reflect the speed control instruction value D1004 in the PWM signal SG1006, the speed control instruction There is a problem in that the accuracy of control becomes worse because a large difference occurs between the average speed used in the calculation of the value D1004 and the actual speed.

本発明は、上記のような課題に鑑み、モータの回転速度が変化している場合であっても、またPWMタイマ1104による速度制御指示値D1004のPWM信号SG1006への反映に時間がかかってしまった場合であっても、より高精度な制御を行うことを目的とする。   In view of the above problems, the present invention takes time to reflect the speed control instruction value D1004 on the PWM signal SG1006 by the PWM timer 1104 even when the rotational speed of the motor is changing. Even if it is a case, it aims at performing more highly accurate control.

上述した課題を解決し、目的を達成するために、本発明のモータ制御装置は、モータの回転により出力される回転出力信号に基づいて前記モータの回転速度制御を行うモータ制御装置であって、モータ駆動手段が速度制御指示値を読み込んで該速度制御指示値を前記モータを駆動するモータドライバへの出力信号に反映させる迄の時間を示す時間情報を記憶した記憶手段と、前記回転出力信号の受信に基づいて回転速度情報を生成する回転速度情報生成手段と、所定の周期のタイミングで、前記時間情報と、該タイミング以前に出力された前記回転出力信号に基づいて前記回転速度情報生成段が生成した前記回転速度情報とに基づいて前記速度制御指示値を生成する速度制御指示値生成手段と、前記生成された速度制御指示値を前記時間情報に基づいたタイミングで読み込み、読み込んだ該速度制御指示値を前記モータドライバへの出力信号に反映させる前記モータ駆動手段と、を備えたことを特徴とするものである。 In order to solve the above-described problems and achieve the object, the motor control device of the present invention is a motor control device that performs rotational speed control of the motor based on a rotation output signal output by rotation of the motor , storage means for motor drive means storing time information indicating the time until is reflected in the output signal to the motor driver for driving the previous SL motor the speed control instruction value by reading the speed control instruction value, the rotation output signal A rotation speed information generating means for generating rotation speed information based on reception of the rotation speed information generating stage based on the time information at a predetermined cycle timing and the rotation output signal output before the timing. the time information and the speed control instruction value generating means but which generates the speed control instruction value based on the generated the rotation speed information, the generated speed control instruction value Read in based timing, is characterized in that it comprises said motor drive means for reflecting the read the speed control command value to the output signal to the motor driver, the.

このモータ制御装置は、前記時間情報に基づいた周期で制御周期信号を生成する制御周期信号生成装置をさらに備え、前記速度制御指示値生成手段は前記制御周期信号の受信に基づいて前記速度制御指示値を生成し、前記モータ駆動手段は前記制御周期信号の受信に基づいて前記生成された速度制御指示値を読み込むと良い。もしくは、所定の周期で制御周期信号を生成する制御周期信号生成手段と、前記時間情報に基づいて、前記制御周期信号をロードタイミング信号に変換して出力するロードタイミング信号生成手段と、をさらに備え、前記速度制御指示値生成手段は前記制御周期信号の受信に基づいて前記速度制御指示値を生成し、前記駆動手段は前記ロードタイミング信号の受信に基づいて前記速度制御指示値を読み込むと良い。   The motor control device further includes a control cycle signal generation device that generates a control cycle signal at a cycle based on the time information, and the speed control command value generation unit is configured to receive the speed control command based on reception of the control cycle signal. A value is generated, and the motor driving means preferably reads the generated speed control instruction value based on reception of the control cycle signal. Alternatively, a control cycle signal generation unit that generates a control cycle signal at a predetermined cycle, and a load timing signal generation unit that converts the control cycle signal into a load timing signal based on the time information and outputs the load timing signal. The speed control instruction value generating means may generate the speed control instruction value based on reception of the control cycle signal, and the driving means may read the speed control instruction value based on reception of the load timing signal.

さらに、本発明のモータ制御装置を備えた画像形成装置を提供する場合は、該画像形成装置内にかかる負荷の異なる複数のモードを指定する指定手段と、前記指定手段に指定されるモードに基づいて、前記時間情報を設定する時間情報設定手段と、を備えると良い。また、前記複数のモードは、モノクロモード及びカラーモードを含むと良い。   Furthermore, when providing an image forming apparatus provided with the motor control device of the present invention, a designation unit that designates a plurality of modes with different loads applied to the image forming apparatus, and a mode designated by the designation unit. And time information setting means for setting the time information. The plurality of modes may include a monochrome mode and a color mode.

本発明によれば、モータ駆動手段が記憶手段に記憶された、モータ駆動手段が速度制御指示値を読み込んで該速度指示値を実際に前記モータの回転速度に反映させる迄の時間を示す時間情報に基づいて速度制御指示値を読み込むことにより、速度制御指示値生成手段は、速度制御指示値生成手段の演算開始からモータ駆動手段が速度制御指示値をモータの回転速度へ反映させるまでの時間に基づいて、モータ駆動手段が速度制御指示値をモータの回転速度へ反映させる時点でのモータの回転速度を予測して演算し、当該演算された予測速度を用いて速度制御指示値を演算することが出来るため、高精度にモータの回転速度を制御することが出来る、という効果を奏する。   According to the present invention, the time information indicating the time until the motor drive means reads the speed control instruction value and actually reflects the speed instruction value on the rotation speed of the motor, which is stored in the storage means by the motor drive means. By reading the speed control instruction value based on the Based on this, the motor drive means predicts and calculates the rotation speed of the motor when the speed control instruction value is reflected in the rotation speed of the motor, and calculates the speed control instruction value using the calculated predicted speed. Therefore, it is possible to control the rotation speed of the motor with high accuracy.

以下に添付図面を参照して、本発明の最良な実施の形態に係るモータ制御装置、画像形成装置について詳細に説明する。   Exemplary embodiments of a motor control device and an image forming apparatus according to the present invention will be explained below in detail with reference to the accompanying drawings.

[第1の実施の形態]
本発明の第1の実施の形態を図1乃至図5に基づいて説明する。本実施の形態としての、コピー装置、ファクシミリ装置、プリンタ装置、スキャナ装置、又はこれらの少なくとも2つの機能を複合したMFP(Multi Function Peripheral)と称されるデジタル複合機等の画像形成装置について説明する。
[First Embodiment]
A first embodiment of the present invention will be described with reference to FIGS. An image forming apparatus such as a copying machine, a facsimile machine, a printer machine, a scanner machine, or a digital multifunction machine called MFP (Multi Function Peripheral) that combines at least two of these functions will be described as an embodiment. .

図1は、本発明の第1の実施の形態にかかる画像形成装置の一例を示すハードウェア構成図である。図1に示す画像形成装置500は、自動原稿送り装置(ADF)1、スキャナ部2、画像書き込みユニット3、現像ユニット4、感光体ユニット5、給紙部6、一次転写ユニット7、二次転写ローラ8、搬送ベルト9、および定着ユニット10などの各ユニットで構成されている。   FIG. 1 is a hardware configuration diagram illustrating an example of an image forming apparatus according to the first embodiment of the present invention. An image forming apparatus 500 shown in FIG. 1 includes an automatic document feeder (ADF) 1, a scanner unit 2, an image writing unit 3, a developing unit 4, a photosensitive unit 5, a paper feeding unit 6, a primary transfer unit 7, and a secondary transfer. Each unit includes a roller 8, a conveyance belt 9, and a fixing unit 10.

自動原稿送り装置(ADF)1は、原稿を順次スキャナ部2へ送る装置である。スキャナ部2は原稿に光を照射しながら、原稿からの反射光を読み取ることで原稿の画像を読み取る装置である。スキャナ部2で読み取られた画像のデータは画像処理された後、画像データとして画像書き込みユニット3へ送られる。画像書き込みユニットは、画像データに応じてLD(Laser Diode:レーザーダイオード)を駆動し感光体ユニット中の感光体ドラム上に潜像を形成するユニットである。感光体ユニットは、フルカラーの場合Y(Yellow:黄)、M(Magenta:マゼンタ)、C(Cyan:シアン)、Bk(Black:黒)の4つの感光体ドラムを備える。現像ユニットは、感光体ドラム上に形成された潜像にトナーを付着させて顕像化させるユニットである。   An automatic document feeder (ADF) 1 is a device that sequentially sends documents to the scanner unit 2. The scanner unit 2 is an apparatus that reads an image of a document by reading reflected light from the document while irradiating the document with light. The image data read by the scanner unit 2 is subjected to image processing and then sent to the image writing unit 3 as image data. The image writing unit is a unit that drives an LD (Laser Diode: laser diode) according to image data to form a latent image on the photosensitive drum in the photosensitive unit. The photoconductor unit includes four photoconductor drums of Y (Yellow: yellow), M (Magenta), C (Cyan: cyan), and Bk (Black: black) in the case of full color. The developing unit is a unit that visualizes the latent image formed on the photosensitive drum by attaching toner to the latent image.

感光体ドラム上で顕像化されたトナー画像は、一次転写ユニット7の中間転写ベルト上に転写される。フルカラーの場合、4色のトナー画像が順次重ねられる。4色分の作像、転写工程が終了した時点で一次転写ベルトとタイミングを合わせて、給紙部6より転写紙が給紙され、一次転写ユニット7と二次転写ローラ8との間で、4色同時に転写ベルトから転写紙にトナー画像が転写される。搬送ベルト9はトナー画像が転写された転写紙を搬送するベルトであり、定着ユニット10は、搬送部ベルト9によって送られた転写紙上のトナー画像を熱定着するユニットである。   The toner image visualized on the photosensitive drum is transferred onto the intermediate transfer belt of the primary transfer unit 7. In the case of full color, four color toner images are sequentially superimposed. When the image formation and transfer processes for four colors are completed, the transfer paper is fed from the paper feed unit 6 in time with the primary transfer belt, and between the primary transfer unit 7 and the secondary transfer roller 8, The toner images are transferred from the transfer belt to the transfer paper simultaneously for the four colors. The conveyance belt 9 is a belt that conveys the transfer paper on which the toner image is transferred, and the fixing unit 10 is a unit that thermally fixes the toner image on the transfer paper sent by the conveyance unit belt 9.

図2は図1の一次転写ユニット7とそれを駆動するための周辺の構成を示したハードウェア構成図である。モータ21は、モータ制御装置22によって制御され、一次転写ユニット7の駆動力を発生するモータである。モータ21の回転はギア23を介して一次転写駆動ローラ24に伝達される。中間転写ベルト25は、一次転写駆動ローラ24が回転することにより回転し、二次転写ローラ26(すなわち上記二次転写ローラ8)との間で転写紙へトナー画像を転写する。エンコーダ27はモータ21の回転速度に応じたパルス状の波形を生成し、このパルス状の波形を回転出力信号SG1として出力する装置である。モータ21の回転速度制御は、当該回転出力信号SG1をフィードバックすることにより行なわれる。   FIG. 2 is a hardware configuration diagram showing the configuration of the primary transfer unit 7 of FIG. 1 and the peripheral configuration for driving it. The motor 21 is a motor that is controlled by the motor control device 22 and generates the driving force of the primary transfer unit 7. The rotation of the motor 21 is transmitted to the primary transfer driving roller 24 via the gear 23. The intermediate transfer belt 25 rotates as the primary transfer driving roller 24 rotates, and transfers the toner image to the transfer paper with the secondary transfer roller 26 (that is, the secondary transfer roller 8). The encoder 27 is a device that generates a pulse waveform corresponding to the rotation speed of the motor 21 and outputs the pulse waveform as a rotation output signal SG1. The rotation speed control of the motor 21 is performed by feeding back the rotation output signal SG1.

図3は、図2のモータ21の回転速度制御を行うモータ制御装置22の構成を示すブロック図である。図1に示すモータ21の速度を制御するモータ制御装置22は、インプットキャプチャ101、制御部102、レジスタ103、PWMタイマ104、モータドライバ105、フリーランタイマ107、制御周期タイマ108、およびフラッシュメモリ109を備えていて、モータ21の回転速度のフィードバック制御を行うことが可能な構成になっている。なお、このモータ21は例えば直流ブラシレスモータである。   FIG. 3 is a block diagram showing the configuration of the motor control device 22 that controls the rotational speed of the motor 21 of FIG. A motor control device 22 that controls the speed of the motor 21 shown in FIG. 1 includes an input capture 101, a control unit 102, a register 103, a PWM timer 104, a motor driver 105, a free-run timer 107, a control cycle timer 108, and a flash memory 109. Is provided so that feedback control of the rotational speed of the motor 21 can be performed. The motor 21 is, for example, a direct current brushless motor.

フリーランタイマ107は、回転出力信号SG1よりも十分に高い周波数のクロック信号SG3でタイマ値D1を更新するタイマである。インプットキャプチャ101は、回転出力信号SG1の立ち上がりエッジを受信したタイミングで、フリーランタイマ107のタイマ値D1をキャプチャ値D2として保持する。またタイマ値D1を保持する毎に、制御部102へインプットキャプチャ割込信号SG2を出力する機能を有する。   The free-run timer 107 is a timer that updates the timer value D1 with a clock signal SG3 having a frequency sufficiently higher than the rotation output signal SG1. The input capture 101 holds the timer value D1 of the free-run timer 107 as the capture value D2 at the timing when the rising edge of the rotation output signal SG1 is received. Each time the timer value D1 is held, the input capture interrupt signal SG2 is output to the control unit 102.

制御周期タイマ108は、制御部102に制御周期信号SG5を出力するタイマである。フラッシュメモリ109は、制御周期信号SG5の周期を表す時間情報D3を保持している記憶手段である。   The control cycle timer 108 is a timer that outputs a control cycle signal SG5 to the control unit 102. The flash memory 109 is a storage unit that holds time information D3 representing the cycle of the control cycle signal SG5.

制御部102は、演算装置であるCPU110、ならびに各種情報を保存するRAM112及びROM113等のメモリ111を備えている。制御部102は、上記インプットキャプチャ割込信号SG2を受信すると、インプットキャプチャ101に保持されているキャプチャ値D2を読み込み、上記読み込んだキャプチャ値D2と、RAM112に保存されている、1回前の回転出力信号SG1の立ち上がりエッジの受信により保持されたキャプチャ値D2′とに基づき、今回のインプットキャプチャ割込信号SG2の受信までのモータ21の平均回転速度V1を演算しRAM112に保存する機能を有する。RAM112は、少なくとも上記平均回転速度V1と、前記インプットキャプチャ割り込み信号SG2の1回前のインプットキャプチャ割り込み信号SG2の受信時に同様にして制御部102にて演算されたモータ21の平均回転速度V1′との、計2回分の平均回転速度の値を保持している。またRAM112は、少なくとも前記キャプチャ値D2を、インプットキャプチャ割り込み信号SG2の1回分、保持している。インプットキャプチャ割込信号SG2は、インプットキャプチャ101が回転出力信号SG1の立ち上がりエッジを受信する毎に出力するので、制御部102によるモータ21の平均回転速度の演算は、当該回転出力信号SG1の立ち上がりエッジのタイミング毎に行われる。   The control unit 102 includes a CPU 110 that is an arithmetic device, and a memory 111 such as a RAM 112 and a ROM 113 that store various types of information. When the control unit 102 receives the input capture interrupt signal SG 2, it reads the capture value D 2 held in the input capture 101, and the read capture value D 2 and the previous rotation stored in the RAM 112. Based on the capture value D2 ′ held by the reception of the rising edge of the output signal SG1, the average rotational speed V1 of the motor 21 until the current input capture interrupt signal SG2 is received is stored and stored in the RAM 112. The RAM 112 stores at least the average rotation speed V1 and the average rotation speed V1 ′ of the motor 21 calculated by the control unit 102 in the same manner when receiving the input capture interrupt signal SG2 one time before the input capture interrupt signal SG2. The average rotation speed value for two times is held. The RAM 112 holds at least the capture value D2 for one input capture interrupt signal SG2. Since the input capture interrupt signal SG2 is output every time the input capture 101 receives the rising edge of the rotation output signal SG1, the calculation of the average rotation speed of the motor 21 by the control unit 102 is performed on the rising edge of the rotation output signal SG1. It is performed at every timing.

また、制御部102は前記制御周期信号SG5を受信すると、モータドライバ105への速度制御指示値D4の演算を開始する機能も有する。この制御部102は、制御周期信号SG5を受信すると、その時点でのフリーランタイマ107のタイマ値D1を読み込み、上記読み込んだタイマ値D1、RAMに保存されている上記インプットキャプチャ割り込み信号SG2の2回分のモータ21の平均回転速度V1及びV1′、及びフラッシュメモリ109に保存されている前記時間情報D3に基づいてモータ21の予測速度V3を算出し、算出した予測速度V3と目標速度との間の速度差を用いて、周知のフィードバック制御により、モータドライバ105の速度制御指示値D4、すなわちモータ21の回転速度の指示値を演算する。   The control unit 102 also has a function of starting the calculation of the speed control instruction value D4 to the motor driver 105 when receiving the control cycle signal SG5. When the control unit 102 receives the control cycle signal SG5, the control unit 102 reads the timer value D1 of the free-run timer 107 at that time, and reads the read timer value D1 and 2 of the input capture interrupt signal SG2 stored in the RAM. A predicted speed V3 of the motor 21 is calculated based on the average rotational speeds V1 and V1 ′ of the motor 21 and the time information D3 stored in the flash memory 109, and between the calculated predicted speed V3 and the target speed. Is used to calculate a speed control instruction value D4 of the motor driver 105, that is, an instruction value of the rotation speed of the motor 21, by known feedback control.

レジスタ103は、制御部102が出力した前記速度制御指示値D4を一時保管する。なお、本実施の形態ではレジスタ103は制御部102の外に示すが、制御部102の内部にあっても良い。PWMタイマ104は、内部にレジスタ106を有し、レジスタ106に記憶された前記速度制御指示値D4に基づいてPWM信号SG6をモータドライバ105へ出力するタイマである。PWMタイマ104は、前記制御周期信号SG5を受信するとレジスタ103から前記速度制御指示値D4を読み出して内部のレジスタ106に記憶する機能も有する。なお、レジスタ103から読み出された速度制御指示値D4は、無視できるほど短時間でPWM信号SG6の生成及びモータドライバ105への出力へと反映されモータ21の実際の回転速度に反映される。したがってPWMタイマ104がレジスタ103から速度制御指示値D4を読み出してモータドライバ105への出力信号であるPWM信号SG6へ反映させる時点は、当該速度制御指示値D4が実際にモータ21の回転速度に反映される時点に一致すると考えることができる。したがって前記時間情報は、PWMタイマ104がレジスタ103から速度制御指示値D4を読み込んで当該速度制御指示値D4を実際にモータ21の回転速度に反映させる迄の時間を示す情報と考えることができる。   The register 103 temporarily stores the speed control instruction value D4 output from the control unit 102. In this embodiment, the register 103 is shown outside the control unit 102, but may be inside the control unit 102. The PWM timer 104 has a register 106 therein and outputs a PWM signal SG6 to the motor driver 105 based on the speed control instruction value D4 stored in the register 106. The PWM timer 104 also has a function of reading the speed control instruction value D4 from the register 103 and storing it in the internal register 106 when receiving the control cycle signal SG5. Note that the speed control instruction value D4 read from the register 103 is reflected in the generation of the PWM signal SG6 and the output to the motor driver 105 in a negligibly short time and reflected in the actual rotational speed of the motor 21. Therefore, when the PWM timer 104 reads the speed control instruction value D4 from the register 103 and reflects it in the PWM signal SG6 that is an output signal to the motor driver 105, the speed control instruction value D4 is actually reflected in the rotational speed of the motor 21. Can be considered to coincide with Therefore, the time information can be considered as information indicating the time until the PWM timer 104 reads the speed control instruction value D4 from the register 103 and actually reflects the speed control instruction value D4 on the rotation speed of the motor 21.

モータドライバ105は、モータ21の各相に対して図示せぬ上下二つのトランジスタを有しており、PWMタイマ104によって生成された前記PWM信号SG6に合わせてこれらのトランジスタがオンとオフとを繰り返し、モータ21に駆動電圧を供給する装置である。この駆動電圧によって、モータ21は駆動され回転される。   The motor driver 105 has two upper and lower transistors (not shown) for each phase of the motor 21, and these transistors are repeatedly turned on and off in accordance with the PWM signal SG6 generated by the PWM timer 104. This is a device for supplying a drive voltage to the motor 21. The motor 21 is driven and rotated by this drive voltage.

次に、各信号の出力タイミングについて説明する。ここで、図4は、各信号の出力の一例を示すタイミングチャートである。   Next, the output timing of each signal will be described. Here, FIG. 4 is a timing chart showing an example of the output of each signal.

前記クロック信号SG3は前記回転出力信号SG1より十分に高い周波数を持ち、フリーランタイマ107をカウントアップするクロック信号である。インプットキャプチャ101はモータ21の回転によって発生される回転出力信号SG1の立ち上がりエッジが検出されたタイミング(例えば図4中、時刻t3)でフリーランタイマ107のタイマ値D1を保持するとともに、インプットキャプチャ割込信号SG2を制御部102へ送信する。制御部102は当該インプットキャプチャ割込信号SG2を受信したタイミングで、キャプチャ値D2をインプットキャプチャ101から読み込む。制御部102は、上記今回のインプットキャプチャ割り込み信号SG2のタイミング(例えば時刻t3)でインプットキャプチャ101から読み込んだキャプチャ値D2と、1回前の回転出力信号SG1の立ち上がりエッジのタイミング(例えば時刻t1)で読み出されRAM112に保持されたキャプチャ値D2′とを比較することにより、回転出力信号SG1の周期T1(図4中、例えば時刻t1,t3間の時間T1′)を算出する。さらに制御部102は、算出された周期T1を、回転出力信号SG1を出力する原理の物理的距離(例えばエンコーダ27としてロータリエンコーダを使用する場合、モータ21の回転軸に設けられたスリット板のスリット間の距離等)で除算することにより、前記算出された回転出力信号SG1の周期T1に対応する、回転出力信号SG1の立ち上がりエッジ直前の1周期におけるモータ21の平均回転速度V1を算出する。制御部102は、算出された平均回転速度V1と、例えば時刻t3でインプットキャプチャ101から読み込んだキャプチャ値D2とをRAM112に保存する。   The clock signal SG3 is a clock signal having a sufficiently higher frequency than the rotation output signal SG1 and counting up the free-run timer 107. The input capture 101 holds the timer value D1 of the free-run timer 107 at the timing (for example, time t3 in FIG. 4) when the rising edge of the rotation output signal SG1 generated by the rotation of the motor 21 is detected. The embedded signal SG2 is transmitted to the control unit 102. The control unit 102 reads the capture value D2 from the input capture 101 at the timing when the input capture interrupt signal SG2 is received. The control unit 102 captures the capture value D2 read from the input capture 101 at the timing of the current input capture interrupt signal SG2 (for example, time t3) and the timing of the rising edge of the previous rotation output signal SG1 (for example, time t1). The period T1 of the rotation output signal SG1 (for example, the time T1 ′ between times t1 and t3 in FIG. 4) is calculated by comparing with the capture value D2 ′ read out and held in the RAM 112. Further, the control unit 102 uses the calculated period T1 as the physical distance of the principle of outputting the rotation output signal SG1 (for example, when a rotary encoder is used as the encoder 27, the slit of the slit plate provided on the rotation shaft of the motor 21). The average rotation speed V1 of the motor 21 in one cycle immediately before the rising edge of the rotation output signal SG1 corresponding to the calculated cycle T1 of the rotation output signal SG1 is calculated. The control unit 102 stores the calculated average rotation speed V1 and the capture value D2 read from the input capture 101 at time t3, for example, in the RAM 112.

また制御部102は制御周期信号SG5の受信のタイミング(例えば図4中、時刻t5)で、速度制御指示値D4の演算を行い、演算で得られた速度制御指示値D4をレジスタ103に出力する。具体的には、制御部102は制御周期信号SG5を受信するとその時点(例えば時刻t5)でフリーランタイマ107のタイマ値D1を読み出す。上記読み出したタイマ値D1と一回前の回転出力信号SG1の受信タイミング(例えば時刻t4)でRAM112に保持されたキャプチャ値D2との比較を行うことにより、直前の回転出力信号SG1の受信タイミング(例えば時刻t4)から制御周期信号SG5の受信タイミング(例えば時刻t5)までの時間T2(以下「補間時間T2」と称する)を演算する。また制御部102は、RAM112に保存されている、上記回転出力信号SG1の直前の1周期(例えば時刻t3乃至t4のT1)におけるモータ21の平均速度V1及び直前より一回前の1周期(例えば時刻t1乃至t3のT1′)におけるモータ21の平均回転速度V1′を読み出す。制御部102は前記回転出力信号SG1の隣接する2周期のそれぞれにおけるモータ21の平均回転速度V1′とV1とを比較することにより、時間軸におけるモータ21の平均回転速度の変化量を演算する。次に制御部102は、演算されたモータ21の平均回転速度の変化量と、上記平均回転速度V1′、V1と、補間時間T2と、フラッシュメモリ109に保存されている時間情報D3(すなわち補間時間T3)とを用いて、PWMタイマ104がレジスタ103から速度制御指示値D4を読み出してモータドライバ105への出力信号であるPWM信号SG6へ反映させる時点(例えば時刻t8)での予測モータ速度V3を演算する。具体的には、例えば図5に基づき、周知の補間演算により予測モータ速度V3を求める。制御部102は演算された予測モータ速度V3と、ROM113に保存されている目標速度に基づき、周知のフィードバック制御により速度制御指示値D4、すなわちモータ21の回転速度の指示値を演算し、演算で得られた速度制御指示値D4をレジスタ103へ出力する。制御部102が制御周期信号SG5を受信(例えば時刻t5)してから、速度制御指示値D4を演算してレジスタ103へ出力するまでにかかる時間は、制御部102が行っている他の処理の状況によって異なるが、制御周期信号SG5の周期以内である。   Further, the control unit 102 calculates the speed control instruction value D4 at the timing of receiving the control cycle signal SG5 (for example, time t5 in FIG. 4), and outputs the speed control instruction value D4 obtained by the calculation to the register 103. . Specifically, when receiving the control cycle signal SG5, the control unit 102 reads the timer value D1 of the free-run timer 107 at that time (for example, time t5). By comparing the read timer value D1 with the capture value D2 held in the RAM 112 at the reception timing (for example, time t4) of the previous rotation output signal SG1, the reception timing of the immediately previous rotation output signal SG1 ( For example, a time T2 (hereinafter referred to as “interpolation time T2”) from the time t4) to the reception timing of the control cycle signal SG5 (for example, time t5) is calculated. Further, the control unit 102 stores the average speed V1 of the motor 21 in one cycle immediately before the rotation output signal SG1 (for example, T1 from time t3 to t4) and one cycle immediately before the previous time (for example, stored in the RAM 112). The average rotational speed V1 ′ of the motor 21 at time t1 to t3 (T1 ′) is read out. The control unit 102 calculates the amount of change in the average rotational speed of the motor 21 on the time axis by comparing the average rotational speed V1 ′ and V1 of the motor 21 in each of the two adjacent cycles of the rotational output signal SG1. Next, the control unit 102 calculates the calculated change amount of the average rotation speed of the motor 21, the average rotation speeds V 1 ′ and V 1, the interpolation time T 2, and the time information D 3 (that is, interpolation) stored in the flash memory 109. Using the time T3), the PWM timer 104 reads the speed control instruction value D4 from the register 103 and reflects it in the PWM signal SG6 that is an output signal to the motor driver 105 (for example, time t8). Is calculated. Specifically, for example, based on FIG. 5, the predicted motor speed V3 is obtained by a known interpolation calculation. Based on the calculated predicted motor speed V3 and the target speed stored in the ROM 113, the control unit 102 calculates a speed control instruction value D4, that is, an instruction value for the rotational speed of the motor 21 by known feedback control. The obtained speed control instruction value D4 is output to the register 103. The time taken from when the control unit 102 receives the control cycle signal SG5 (for example, time t5) until the speed control instruction value D4 is calculated and output to the register 103 is determined by other processes performed by the control unit 102. Although depending on the situation, it is within the cycle of the control cycle signal SG5.

PWMタイマ104は、制御周期信号SG5の受信タイミング(例えば時刻t8)で、レジスタ103から速度制御指示値D4を読み出して、レジスタ106へ速度制御指示値D4を記憶する。この時(例えば時刻t8)読み出される速度制御指示値D4は、制御周期タイマ108が一回前に出力した制御周期信号SG5の受信タイミング(例えば時刻t5)で制御部102が演算した速度制御指示値D4である。PWMタイマ104は、レジスタ106の記憶する速度制御指示値D4に基づいてPWM信号SG6を生成しモータドライバ105へ出力する。例えば時刻t8でレジスタ103から速度制御指示値D4が読み出されてPWMタイマ104のレジスタ106へ記憶された後は、当該記憶された速度制御指示値D4に基づいてPWM信号SG6が生成される。PWMタイマ104がPWM信号SG6を生成しモータドライバ105へ出力することにより、モータドライバ105が駆動され、モータ21の回転速度が、前記速度制御指示値D4に応じた回転速度になるように制御される。   The PWM timer 104 reads the speed control instruction value D4 from the register 103 at the reception timing (for example, time t8) of the control cycle signal SG5 and stores the speed control instruction value D4 in the register 106. The speed control instruction value D4 read at this time (for example, time t8) is the speed control instruction value calculated by the control unit 102 at the reception timing (for example, time t5) of the control period signal SG5 output by the control period timer 108 one time before. D4. The PWM timer 104 generates a PWM signal SG6 based on the speed control instruction value D4 stored in the register 106 and outputs it to the motor driver 105. For example, after the speed control instruction value D4 is read from the register 103 and stored in the register 106 of the PWM timer 104 at time t8, the PWM signal SG6 is generated based on the stored speed control instruction value D4. When the PWM timer 104 generates the PWM signal SG6 and outputs it to the motor driver 105, the motor driver 105 is driven, and the rotational speed of the motor 21 is controlled to be the rotational speed corresponding to the speed control instruction value D4. The

すなわち図4中、Aで示される時刻t5以降のPWM信号SG6は、aで示される時刻t1直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。同様にBで示される時刻t8以降のPWM信号SG6は、bで示される時刻t4直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。   That is, the PWM signal SG6 after time t5 indicated by A in FIG. 4 is obtained before and after the capture value D2 read from the input capture 101 by the control unit 102 by the input capture interrupt signal SG2 immediately after time t1 indicated by a. This is generated by calculating the speed control instruction value D4 using the captured value. Similarly, the PWM signal SG6 after time t8 indicated by B is the capture value D2 read from the input capture 101 by the control unit 102 by the input capture interrupt signal SG2 immediately after time t4 indicated by b and the capture value obtained before that. Is generated by calculating the speed control instruction value D4 using.

図5は、上記回転出力信号SG1の周期T1′,T1、モータ21の平均回転速度V1′,V1及び補間時間T2,T3の関係を模式的に表すものであって、PWM信号SG6に速度制御指示値D4が反映されるまでに要される時間とモータ21の回転速度の変化との関係を模式的に表したグラフである。本実施の形態では、PWMタイマ104は、(上記例の場合、時刻t8のタイミングで)制御周期信号SG5を受信すると、レジスタ103から速度制御指示値D4を読み出す。このため、図5の補間時間T3は、制御周期信号SG5の周期と同じになる。補間時間T2は、制御部102が制御周期信号SG5を受信した際に演算された、回転出力信号SG1の受信から制御周期信号SG5の受信までの時間である。つまり、補間時間T2+補間時間T3は、(上記例の場合、時刻t5のタイミングで)モータ制御装置22が回転出力信号SG1を受信してから、(上記例の場合、時刻t8のタイミングで)PWM信号SG6へ速度制御指示値D4が反映されるまでの時間である。   FIG. 5 schematically shows the relationship between the cycles T1 ′ and T1 of the rotation output signal SG1, the average rotation speeds V1 ′ and V1 of the motor 21 and the interpolation times T2 and T3. The PWM signal SG6 is used for speed control. 4 is a graph schematically showing a relationship between a time required until an instruction value D4 is reflected and a change in the rotation speed of the motor 21. In the present embodiment, when the PWM timer 104 receives the control cycle signal SG5 (at the timing of time t8 in the above example), the PWM timer 104 reads the speed control instruction value D4 from the register 103. For this reason, the interpolation time T3 in FIG. 5 is the same as the cycle of the control cycle signal SG5. The interpolation time T2 is a time from reception of the rotation output signal SG1 to reception of the control cycle signal SG5, which is calculated when the control unit 102 receives the control cycle signal SG5. That is, the interpolation time T2 + interpolation time T3 is PWM (at the timing of time t5 in the above example) after the motor control device 22 receives the rotation output signal SG1 (at the timing of time t8 in the above example). This is the time until the speed control instruction value D4 is reflected in the signal SG6.

制御部102は、RAM112に保存している周期T1(例えば時刻t3乃至t4)の平均回転速度V1と前記周期T1の1つ前の回転出力信号SG1の周期T1′(例えば時刻t1乃至t3)の平均回転速度V1′、及び補間時間T2(例えば時刻t4乃至t5)と補間時間T3(例えば時刻t5乃至t8)に基づいて、例えば時刻t5にて、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させる時点(例えば時刻t8)におけるモータ21の回転速度V3を予測する。なお、当該予測回転速度V3の演算は、3つ以上の平均回転速度に基づいて行っても良い。また、平均回転速度の累積誤差等に基づいてより高精度に予測回転速度V3の演算を行うことも可能である。   The control unit 102 stores the average rotation speed V1 in the cycle T1 (for example, times t3 to t4) stored in the RAM 112 and the cycle T1 ′ (for example, times t1 to t3) of the rotation output signal SG1 immediately before the cycle T1. Based on the average rotation speed V1 ′, the interpolation time T2 (for example, time t4 to t5) and the interpolation time T3 (for example, time t5 to t8), for example, at time t5, the PWM timer 104 outputs the speed control instruction value D4 to the PWM signal. The rotational speed V3 of the motor 21 at the time of reflection in SG6 (for example, time t8) is predicted. The calculation of the predicted rotation speed V3 may be performed based on three or more average rotation speeds. It is also possible to calculate the predicted rotational speed V3 with higher accuracy based on the accumulated error of the average rotational speed.

このように、本実施の形態によれば、フラッシュメモリ109が制御周期信号SG5の周期T3を時間情報D3として保持し、PWMタイマ104が制御周期信号SG5を受信すると、速度制御指示値D4をレジスタ103から読み込んでPWM信号SG6へ反映させる。このため、制御部102は、フラッシュメモリ109から時間情報D3を読み出すことによって、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるタイミングを把握することが出来る。つまり制御部102は、速度制御指示値D4がPWM信号SG6へ反映される時点での予測回転速度V3を用いて速度制御指示値D4を演算し、モータ21の回転速度を制御することが出来る。したがって高精度にモータ21の回転速度を制御することが出来る。   Thus, according to the present embodiment, when the flash memory 109 holds the cycle T3 of the control cycle signal SG5 as the time information D3 and the PWM timer 104 receives the control cycle signal SG5, the speed control instruction value D4 is registered. 103 is read and reflected in the PWM signal SG6. Therefore, the control unit 102 can grasp the timing at which the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 by reading the time information D3 from the flash memory 109. That is, the control unit 102 can calculate the speed control instruction value D4 using the predicted rotation speed V3 at the time when the speed control instruction value D4 is reflected in the PWM signal SG6, and can control the rotation speed of the motor 21. Therefore, the rotational speed of the motor 21 can be controlled with high accuracy.

[第2の実施の形態]
次に、本発明の第2の実施の形態を図6乃至図8に基づいて説明する。なお、前述した第1の実施の形態と同様の構成を有する部分は同じ符合で示し説明も省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to FIGS. In addition, the part which has the structure similar to 1st Embodiment mentioned above is shown with the same code | symbol, and abbreviate | omits description.

第1の実施の形態では、フラッシュメモリ109が制御周期信号SG5の周期T3を時間情報D3として保持する。したがって当該時間情報D3をフラッシュメモリ109から読み出すことにより制御部102は、PWMタイマ104が速度制御指示値D4を読み込むタイミング得ることが可能となる。これにより、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させる時点でのモータ21の回転速度V3の予測を行うことが出来る。しかし、第1の実施の形態では、制御部102が制御周期信号SG5を受信してからPWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間T3が長い場合、その間に実際のモータ速度に変動があった場合には、予測回転速度V3と実際の回転速度との間に誤差が生じてしまう可能性があった。本実施の形態では、当該誤差の要因を減らし、より高精度な制御を行うために、制御部102が制御周期信号SG5を受信してから、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間を、制御部102が速度制御指示値D4の演算を行う場合にかかると予測される最長時間(以後、予測最長演算時間と表記する)によって設定するようにした。この点において、第1の実施の形態と本実施の形態とでは構成が相違する。   In the first embodiment, the flash memory 109 holds the cycle T3 of the control cycle signal SG5 as time information D3. Therefore, by reading the time information D3 from the flash memory 109, the control unit 102 can obtain the timing at which the PWM timer 104 reads the speed control instruction value D4. Thereby, it is possible to predict the rotation speed V3 of the motor 21 when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6. However, in the first embodiment, when the time T3 from when the control unit 102 receives the control cycle signal SG5 to when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 is long, it is actually When the motor speed fluctuates, there is a possibility that an error occurs between the predicted rotation speed V3 and the actual rotation speed. In the present embodiment, in order to reduce the cause of the error and perform more accurate control, after the control unit 102 receives the control cycle signal SG5, the PWM timer 104 changes the speed control instruction value D4 to the PWM signal SG6. The time until reflection is set by the longest time predicted when the control unit 102 calculates the speed control instruction value D4 (hereinafter referred to as the predicted longest calculation time). In this respect, the configuration of the first embodiment is different from that of the present embodiment.

図6は、本発明の第2の実施の形態にかかるモータ21の速度制御を行うモータ制御装置22の構成を示すブロック図である。図6に示すように、本実施の形態にかかるモータ制御装置22はロードタイミング信号生成タイマ201を備えている。ロードタイミング信号生成タイマ201は、制御周期信号SG5を受信すると所定の時間遅延してロードタイミング信号SG201を出力するタイマである。この所定の時間は、時間情報D203としてフラッシュメモリ109に記憶されており、電源投入時、または時間情報D203の変更時等にロードタイミング信号生成タイマ201内のレジスタ202に保存される。また、時間情報D203は、制御部102の前記予測最長演算時間に、所定の余裕時間を足した時間を表している。又前記予測最長演算時間は経験的に得られた時間である。   FIG. 6 is a block diagram showing a configuration of a motor control device 22 that controls the speed of the motor 21 according to the second embodiment of the present invention. As shown in FIG. 6, the motor control device 22 according to the present embodiment includes a load timing signal generation timer 201. The load timing signal generation timer 201 is a timer that outputs the load timing signal SG201 with a predetermined time delay when receiving the control cycle signal SG5. This predetermined time is stored in the flash memory 109 as time information D203, and is stored in the register 202 in the load timing signal generation timer 201 when the power is turned on or when the time information D203 is changed. The time information D203 represents a time obtained by adding a predetermined margin time to the predicted longest calculation time of the control unit 102. The predicted maximum calculation time is an empirically obtained time.

図7は、本実施の形態に係る各信号の出力タイミングの一例を示すタイミングチャートである。制御部102がインプットキャプチャ割込信号SG2を受信することで行われる平均速度V1の演算と、制御部102が制御周期信号SG5を受信することで行われる補間時間T2の演算は、第1の実施の形態と同じであるため説明を省略する。   FIG. 7 is a timing chart showing an example of the output timing of each signal according to the present embodiment. The calculation of the average speed V1 performed when the control unit 102 receives the input capture interrupt signal SG2 and the calculation of the interpolation time T2 performed when the control unit 102 receives the control cycle signal SG5 are the first implementation. Since it is the same as the embodiment, the description is omitted.

制御部102は例えば図7中、例えば時刻t6で制御周期信号SG5を受信すると、速度制御指示値D4の演算を行いレジスタ103に出力する。具体的には、制御部102は補間時間T2(例えば時刻t5乃至t6)を演算した後、RAM112に保存されている回転出力信号SG1の連続する2周期T1′(例えば時刻t1乃至t3)及びT1(例えば時刻t3乃至t5)におけるモータ21の平均回転速度V1′及びV1を読み出し、同平均回転速度V1′,V1に基づいて、時間軸におけるモータ21の回転速度の変化量を演算する。次に制御部102は、演算されたモータ21の回転速度の変化量と、上記平均回転速度V1′,V1と、補間時間T2と、フラッシュメモリ109に保存されている上記時間情報D203(すなわち補間時間T203)とを用いて、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させる時点(例えば時刻t7)での予測モータ速度V203を演算する。具体的には第1の実施の形態同様、例えば図8に基づき、周知の補間演算により予測モータ速度V203を求める。ここで上記時間情報D203は、上記したように制御部102の予測最長演算時間に所定の余裕時間を足した時間であり、かつロードタイミング信号生成タイマ201が例えば時刻t6で制御周期信号SG5を受信してから、例えば時刻t7でロードタイミング信号SG201を生成するまでの時間T203を示す。制御部102は、予測モータ速度V203とROM113に保存されている目標速度とに基づいて周知のフィードバック制御により速度制御指示値D4を演算すると、同速度制御指示値D4をレジスタ103へ出力する。   For example, when the control unit 102 receives the control cycle signal SG5 at time t6 in FIG. 7, for example, the control unit 102 calculates the speed control instruction value D4 and outputs it to the register 103. Specifically, after calculating the interpolation time T2 (for example, time t5 to t6), the control unit 102 performs two consecutive cycles T1 ′ (for example, time t1 to t3) and T1 of the rotation output signal SG1 stored in the RAM 112. The average rotational speeds V1 ′ and V1 of the motor 21 at (for example, times t3 to t5) are read, and the amount of change in the rotational speed of the motor 21 on the time axis is calculated based on the average rotational speeds V1 ′ and V1. Next, the control unit 102 calculates the amount of change in the rotational speed of the motor 21, the average rotational speeds V 1 ′ and V 1, the interpolation time T 2, and the time information D 203 (that is, the interpolation) stored in the flash memory 109. Using the time T203), the PWM timer 104 calculates the predicted motor speed V203 at the time (for example, time t7) when the speed control instruction value D4 is reflected in the PWM signal SG6. Specifically, as in the first embodiment, the predicted motor speed V203 is obtained by a well-known interpolation calculation, for example, based on FIG. Here, the time information D203 is a time obtained by adding a predetermined margin time to the predicted longest calculation time of the control unit 102 as described above, and the load timing signal generation timer 201 receives the control cycle signal SG5 at time t6, for example. Then, for example, a time T203 from when the load timing signal SG201 is generated at time t7 is shown. When the control unit 102 calculates the speed control instruction value D4 by a known feedback control based on the predicted motor speed V203 and the target speed stored in the ROM 113, the control unit 102 outputs the speed control instruction value D4 to the register 103.

ロードタイミング信号生成タイマ201は制御周期信号SG5を受信すると、所定の時間T203遅延してロードタイミング信号SG201を出力する。具体的には制御周期信号SG5を受信すると、クロック信号SG4のクロックにおいて、レジスタ202に保存されている時間情報に相当するクロック数が経過した後、ロードタイミング信号を出力する。   When receiving the control cycle signal SG5, the load timing signal generation timer 201 outputs a load timing signal SG201 with a delay of a predetermined time T203. Specifically, when the control cycle signal SG5 is received, the load timing signal is output after the number of clocks corresponding to the time information stored in the register 202 has elapsed in the clock of the clock signal SG4.

PWMタイマ104は、例えば時刻t7でロードタイミング信号SG201を受信すると、レジスタ103から速度制御指示値D4を読み出して、PWMタイマ104内のレジスタ106へ記憶する。PWMタイマ104は、レジスタ106に記憶された速度制御指示値D4に基づいてPWM信号SG6を生成しモータドライバ105へ出力する。PWMタイマ104がPWM信号SG6を生成しモータドライバ105へ出力することにより、モータドライバ105が駆動され、モータ21の回転速度を、速度制御指示値D4にしたがった回転速度に制御することが出来る。   For example, when receiving the load timing signal SG201 at time t7, the PWM timer 104 reads the speed control instruction value D4 from the register 103 and stores it in the register 106 in the PWM timer 104. The PWM timer 104 generates a PWM signal SG6 based on the speed control instruction value D4 stored in the register 106 and outputs the PWM signal SG6 to the motor driver 105. When the PWM timer 104 generates the PWM signal SG6 and outputs it to the motor driver 105, the motor driver 105 is driven, and the rotational speed of the motor 21 can be controlled to the rotational speed according to the speed control instruction value D4.

すなわち図7中、Aで示される時刻t4以降のPWM信号SG6は、aで示される時刻t1直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。同様にBで示される時刻t7以降のPWM信号SG6は、bで示される時刻t5直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。同様にCで示される時刻t10以降のPWM信号SG6は、cで示される時刻t8直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。   That is, the PWM signal SG6 after time t4 indicated by A in FIG. 7 is obtained before and after the capture value D2 read from the input capture 101 by the control unit 102 by the input capture interrupt signal SG2 immediately after time t1 indicated by a. This is generated by calculating the speed control instruction value D4 using the captured value. Similarly, the PWM signal SG6 after time t7 indicated by B is the capture value D2 read from the input capture 101 by the control unit 102 by the input capture interrupt signal SG2 immediately after time t5 indicated by b and the capture value obtained before that. Is generated by calculating the speed control instruction value D4 using. Similarly, the PWM signal SG6 after time t10 indicated by C is the capture value D2 read from the input capture 101 by the control unit 102 by the input capture interrupt signal SG2 immediately after time t8 indicated by c and the capture value obtained before that. Is generated by calculating the speed control instruction value D4 using.

図8は、回転出力信号SG1の周期T1′,T1,モータ21の平均回転速度V1′,V1及び補間時間T2,T203の関係を模式的に示すものであって、PWM信号SG6に速度制御指示値D4が反映されるまでに要される時間とモータ21の回転速度変化との関係を模式的に表したグラフである。本実施の形態では、PWMタイマ104は、例えば時刻t7でロードタイミング信号SG201を受信すると、レジスタ103から速度制御指示値D4を読み出す。このため、図8の補間時間T203は、ロードタイミング信号生成タイマ201が制御周期信号SG5を受信してからロードタイミング信号SG201を出力するまでの時間T203と同じになる。また補間時間T2は、制御部102が制御周期信号SG5を受信した際に演算された、回転出力信号SG1の立ち上がりエッジの受信(例えば時刻t5)から制御周期信号SG5の受信(例えば時刻t6)までの時間である。つまり、補間時間T2+補間時間T203はモータ制御装置22が回転出力信号SG1の立ち上がりエッジを受信(例えば時刻t5)してからPWM信号SG6へ速度制御指示値D4が反映される(例えば時刻t7)までの時間となる。   FIG. 8 schematically shows the relationship between the cycles T1 ′ and T1 of the rotation output signal SG1 and the average rotation speeds V1 ′ and V1 of the motor 21 and the interpolation times T2 and T203. A speed control instruction is given to the PWM signal SG6. 4 is a graph schematically showing a relationship between a time required until a value D4 is reflected and a change in rotational speed of the motor 21. In the present embodiment, for example, when the PWM timer 104 receives the load timing signal SG201 at time t7, the PWM timer 104 reads the speed control instruction value D4 from the register 103. Therefore, the interpolation time T203 in FIG. 8 is the same as the time T203 from when the load timing signal generation timer 201 receives the control cycle signal SG5 to when the load timing signal SG201 is output. Further, the interpolation time T2 is calculated when the control unit 102 receives the control cycle signal SG5, from the reception of the rising edge of the rotation output signal SG1 (for example, time t5) to the reception of the control cycle signal SG5 (for example, time t6). Is the time. That is, for the interpolation time T2 + interpolation time T203, until the motor control device 22 receives the rising edge of the rotation output signal SG1 (for example, time t5), the speed control instruction value D4 is reflected in the PWM signal SG6 (for example, time t7). It will be time.

制御部102は、RAM112に保存している周期T1(例えば時刻t3乃至t5)の平均速度をV1と、前記周期T1の一回前の回転出力信号SG1の周期T1′(例えば時刻t1乃至t3)の速度V1′、及び補間時間T2(例えば時刻t5乃至t6)と補間時間T203(例えば時刻t6乃至t7)に基づいて、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させる時点(例えば時刻t7)でのモータ21の回転速度V203を予測する。   The control unit 102 sets the average speed of the cycle T1 (for example, times t3 to t5) stored in the RAM 112 to V1, and the cycle T1 ′ of the rotation output signal SG1 immediately before the cycle T1 (for example, times t1 to t3). Based on the speed V1 ′, the interpolation time T2 (for example, time t5 to t6) and the interpolation time T203 (for example, time t6 to t7), The rotational speed V203 of the motor 21 at time t7) is predicted.

このように、本実施の形態によれば、制御部102が制御周期信号SG5を受信してからPWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間T203を、時間情報D203としてフラッシュメモリ109が記憶する。制御部102はフラッシュメモリ109が記憶している時間情報D203を読み込むことにより、速度制御指示値D4がPWM信号SG6へ反映される時点(例えばt7)でのモータ21の回転速度を予測し、当該予測したモータ21の回転速度に基づいて速度制御指示値D4を演算することが出来る。時間情報D203は、制御部102の予測最長演算時間に応じて制御周期信号SG5の周期(第1の実施の形態における補間時間T3)より短い時間として決められる。これにより、制御部102が演算を開始(例えば時刻t6)してから、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させる(例えば時刻t7)までのモータ21の回転速度の変化量の変動による予測速度V203の誤差を抑制することができる。これにより、高精度にモータ21の速度を制御することが出来る。   As described above, according to the present embodiment, the time T203 from when the control unit 102 receives the control cycle signal SG5 to when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 is represented by the time information D203. Is stored in the flash memory 109. The control unit 102 reads the time information D203 stored in the flash memory 109, thereby predicting the rotational speed of the motor 21 at the time (for example, t7) when the speed control instruction value D4 is reflected in the PWM signal SG6. Based on the predicted rotation speed of the motor 21, the speed control instruction value D4 can be calculated. The time information D203 is determined as a time shorter than the cycle of the control cycle signal SG5 (interpolation time T3 in the first embodiment) according to the predicted longest calculation time of the control unit 102. As a result, the amount of change in the rotational speed of the motor 21 from when the control unit 102 starts computation (for example, time t6) until the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 (for example, time t7). It is possible to suppress an error in the predicted speed V203 due to fluctuations in. Thereby, the speed of the motor 21 can be controlled with high accuracy.

[第3の実施の形態]
次に、本発明の第3の実施の形態を図9乃至図12に基づいて説明する。なお、前述した第1の実施の形態と同様な構成を有する部分は同じ符合で示し説明も省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described with reference to FIGS. In addition, the part which has the structure similar to 1st Embodiment mentioned above is shown with the same code | symbol, and abbreviate | omits description.

第2の実施の形態では、制御部102が制御周期信号SG5を受信してからPWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間T203を予測最長演算時間に基づいて設定することで、予測速度V203の誤差要因を低減する。しかし、制御部102が実際に速度制御指示値D4の演算を行う場合に要される時間はCPU110の負荷によって変動する。このため、CPU110の負荷が大きい状態に合わせて予測最長演算時間を設定すると、結果的に制御部102が制御周期信号SG5を受信してからPWMタイマ104が速度制御指示値をPWM信号SG6へ反映させるまでの時間が比較的長くなる。その結果、CPU110の負荷が軽い場合にもCPU110の負荷が重い場合と同様の誤差要因を持ってしまう可能性があった。   In the second embodiment, a time T203 from when the control unit 102 receives the control cycle signal SG5 to when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 is set based on the predicted longest calculation time. By doing so, the error factor of the predicted speed V203 is reduced. However, the time required for the control unit 102 to actually calculate the speed control instruction value D4 varies depending on the load on the CPU 110. For this reason, when the predicted longest calculation time is set in accordance with a heavy load on the CPU 110, the PWM timer 104 reflects the speed control instruction value in the PWM signal SG6 after the control unit 102 receives the control cycle signal SG5 as a result. It takes a relatively long time to make it happen. As a result, even when the load on the CPU 110 is light, there is a possibility of having the same error factor as when the load on the CPU 110 is heavy.

本実施の形態では、CPU110の負荷の状態に合わせて、制御部102が制御周期信号SG5を受信してからPWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間を変更可能にする。CPU110の負荷は、画像形成装置の動作条件により変動する。画像形成装置が持つ複写モード、ファクシミリモード等のモードのうち、複写モード内でのモノクロモードの場合とカラーモードの場合とでCPU110の負荷が変動する。本実施の形態では、一例として、複写モード内でのモノクロモードの場合とカラーモードの場合とでのCPU110の負荷の変動に応じて、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間を変更可能にする。なお、この時間の変更は、他の要因によるCPU110の負荷の変動に応じて行われるようにしても良い。例えば、複写モードの場合とファクシミリモードの場合とでの、CPU110の負荷の変動に応じて行われるようにしても良い。   In the present embodiment, the time from when the control unit 102 receives the control cycle signal SG5 until the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 can be changed according to the load state of the CPU 110. To. The load on the CPU 110 varies depending on the operating conditions of the image forming apparatus. Among the modes such as a copy mode and a facsimile mode that the image forming apparatus has, the load on the CPU 110 varies depending on the monochrome mode and the color mode in the copy mode. In the present embodiment, as an example, the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 in accordance with the load variation of the CPU 110 between the monochrome mode and the color mode in the copy mode. It is possible to change the time until Note that this change in time may be performed in accordance with a change in the load on the CPU 110 due to other factors. For example, the processing may be performed in accordance with a change in the load on the CPU 110 between the copy mode and the facsimile mode.

図9は、モータ21の速度制御を行うモータ制御装置22の構成を示すブロック図である。本実施の本実施の形態にかかるフラッシュメモリ109は、予測最長演算時間に基づいて設定された時間情報D203と共に、所定の時間情報D304を記憶している。制御部102は、フラッシュメモリ109から読み出した時間情報D203を、CPU110の負荷に基づいて変更し、時間情報D303として出力する機能を有している。   FIG. 9 is a block diagram showing the configuration of the motor control device 22 that controls the speed of the motor 21. The flash memory 109 according to the present embodiment stores predetermined time information D304 together with time information D203 set based on the predicted longest calculation time. The control unit 102 has a function of changing the time information D203 read from the flash memory 109 based on the load of the CPU 110 and outputting the time information D303.

図9に示す如く、第3の実施の形態の場合、当該モータ制御装置22を有する画像形成装置500が有する、指示手段としてのシステム制御部50から、モータ制御装置22内に設けられた、外部との通信機能を有する通信部120を介し、現在の画像形成モードがカラーモードかモノクロモードかを示す情報が制御部102のCPU110に与えられる。CPU110は同情報をRAM112に保持する。ここで上記システム制御部50は現在の画像形成モードがカラーモードかモノクロモードかを判別するモード判別部51を有する。なおシステム制御部50は例えばコンピュータよりなり、モード判別部51は当該コンピュータが実行するプログラムの形態で実現することが可能である。システム制御部50は画像形成装置500全体の動作を制御する機能を有し、画像形成装置500の操作部60およびスキャナ70(すなわち図1中、スキャナユニット2)と接続されている。モード判別部51は、画像形成装置500の操作部60上でユーザがカラーモードかモノクロモードを指定する操作を行った場合、同操作に応じ、現在の画像形成モードがカラーモードかモノクロモードかを判別する。また画像形成装置500が有するスキャナ70から原稿画像が読み取られた場合、読み取られた画像データのRGB値からモード判別部51が当該画像データがカラー画像のものかあるいはモノクロ画像のものかを判別する。具体的にはモード判別部51は、当該画像データが黒と白との間の濃淡のみを表すデータである場合同画像データをモノクロ画像のものと判別し、それ以外の場合カラー画像のものと判別する。そしてモード判別部51は同判別結果に応じ、現在の画像形成モードがカラーモードかモノクロモードかを自動的に判別する。   As shown in FIG. 9, in the case of the third embodiment, an external device provided in the motor control device 22 from the system control unit 50 as an instruction means included in the image forming apparatus 500 having the motor control device 22. Information indicating whether the current image forming mode is the color mode or the monochrome mode is provided to the CPU 110 of the control unit 102 via the communication unit 120 having a communication function with the control unit 102. The CPU 110 holds the same information in the RAM 112. The system control unit 50 includes a mode determination unit 51 that determines whether the current image forming mode is a color mode or a monochrome mode. The system control unit 50 is constituted by a computer, for example, and the mode determination unit 51 can be realized in the form of a program executed by the computer. The system control unit 50 has a function of controlling the operation of the entire image forming apparatus 500, and is connected to the operation unit 60 and the scanner 70 (that is, the scanner unit 2 in FIG. 1) of the image forming apparatus 500. When the user performs an operation for designating the color mode or the monochrome mode on the operation unit 60 of the image forming apparatus 500, the mode determination unit 51 determines whether the current image formation mode is the color mode or the monochrome mode according to the operation. Determine. When a document image is read from the scanner 70 included in the image forming apparatus 500, the mode determination unit 51 determines whether the image data is a color image or a monochrome image from the RGB values of the read image data. . Specifically, the mode discriminating unit 51 discriminates that the image data is a monochrome image if the image data is data representing only the density between black and white, and otherwise determines that it is a color image. Determine. The mode discriminating unit 51 automatically discriminates whether the current image forming mode is the color mode or the monochrome mode according to the discrimination result.

図10は、制御部102が時間情報D203をCPU110の負荷に基づいて時間情報D303に変更し、出力する処理を表したフローチャートである。この処理は、画像形成装置の電源投入時、若しくはモノクロとカラーのモード変更時等に行われる。まず、制御部102は、フラッシュメモリ109から時間情報D203を読み出す(ST1)。次に、現在のモードがカラーか否かを判断する(ST2)。制御部102は上記の如く、現在の画像形成モードがカラーであるかモノクロであるかという情報をRAM112に保持している。ST2でカラーモードと判断した場合は、フラッシュメモリ109から読み出した時間情報D203をそのまま時間情報D303として、ロードタイミング信号生成タイマ201内のレジスタ202に出力する(ST3)。   FIG. 10 is a flowchart showing a process in which the control unit 102 changes the time information D203 to the time information D303 based on the load of the CPU 110 and outputs it. This processing is performed when the image forming apparatus is turned on, or when the monochrome and color modes are changed. First, the control unit 102 reads time information D203 from the flash memory 109 (ST1). Next, it is determined whether or not the current mode is color (ST2). As described above, the control unit 102 holds information about whether the current image forming mode is color or monochrome in the RAM 112. When the color mode is determined in ST2, the time information D203 read from the flash memory 109 is output as it is to the register 202 in the load timing signal generation timer 201 as the time information D303 (ST3).

ST2でカラーモードでないと判断した場合は、CPU110の負荷の軽いモノクロモードであるため、所定の値だけ時間情報D303の示す時間を短くする。この所定の値は時間情報D304としてフラッシュメモリ109に記憶されている。制御部102は、時間情報D304をフラッシュメモリ109から読み出す(ST4)。次のステップでは、時間情報D203から時間情報D304を減算する(ST5)。その減算結果をD303としてロードタイミング信号生成タイマ201内のレジスタ202に出力する(ST6)。そして、制御部102は、速度制御指示値D4の演算に使用するために時間情報D303の値をRAM112に保存する(ST7)。   If it is determined in ST2 that the color mode is not selected, the time indicated by the time information D303 is shortened by a predetermined value because the CPU 110 is in a monochrome mode with a light load. This predetermined value is stored in the flash memory 109 as time information D304. The control unit 102 reads the time information D304 from the flash memory 109 (ST4). In the next step, time information D304 is subtracted from time information D203 (ST5). The subtraction result is output as D303 to the register 202 in the load timing signal generation timer 201 (ST6). Then, control unit 102 stores the value of time information D303 in RAM 112 for use in calculation of speed control instruction value D4 (ST7).

なお、本実施の形態では時間情報D203を予測最長演算時間とし、CPU110の負荷の軽いモノクロモードの場合には時間情報D203から時間情報D304を減算することで、時間情報D303を所定の時間短くしたが、D203を予測最短演算時間とし、CPU110の負荷の重いカラーモードの場合に時間情報D304を加算して時間情報D303を所定の時間長くする構成としても良い。また、時間情報D203を予測最長演算時間、時間情報D304を予測最短演算時間とし、モノクロモードかカラーモードかによって時間情報D303として読み出す時間情報を切り替える構成にしても良い。   In the present embodiment, the time information D203 is set to the predicted longest calculation time, and in the monochrome mode with a light load on the CPU 110, the time information D303 is subtracted from the time information D203 to shorten the time information D303 by a predetermined time. However, D203 may be set as the predicted shortest calculation time, and in the color mode with a heavy load on the CPU 110, the time information D304 may be added to make the time information D303 longer by a predetermined time. Further, the time information D203 may be set as the predicted longest calculation time, the time information D304 may be set as the minimum predicted calculation time, and the time information to be read as the time information D303 may be switched depending on the monochrome mode or the color mode.

図11は、本実施の形態に係る各信号の出力タイミングの一例を示すタイミングチャートである。制御部102がインプットキャプチャ割込信号SG2を受信することで行われるモータ21の平均回転速度V1の演算と、制御部102が制御周期信号SG5を受信することで行われる補間時間T2の演算は、第1の実施の形態と同じであるため説明を省略する。   FIG. 11 is a timing chart showing an example of the output timing of each signal according to the present embodiment. The calculation of the average rotational speed V1 of the motor 21 performed by the control unit 102 receiving the input capture interrupt signal SG2 and the calculation of the interpolation time T2 performed by the control unit 102 receiving the control cycle signal SG5 are as follows: Since it is the same as that of the first embodiment, the description is omitted.

制御部102は例えば図11中、例えば時刻t6で制御周期信号SG5を受信すると、速度制御指示値D4の演算を行いレジスタ103に出力する。具体的には、制御部102は補間時間T2(例えば時刻t5乃至t6)を演算した後、RAM112に保存されている回転出力信号SG1の連続する2周期T1′(例えば時刻t1乃至t3),T1(例えば時刻t3乃至t5)のそれぞれにおけるモータ21の平均回転速度V1′及びV1を読み出し、時間軸におけるモータ21の回転速度の変化量を演算する。次に制御部102は、演算されたモータ21の回転速度の変化量と、平均回転速度V1′,V1と、補間時間T2と、RAM112に保存されている上記時間情報D303(すなわち補間時間T304あるいはT303)とを用いて、PWMタイマ104が速度制御指示値D4を読み出してPWM信号SG6へ反映させる時点(例えば時刻t7)での予測モータ速度V304あるいはV303を演算する。具体的には、例えば図12に基づき、周知の補間演算により予測モータ速度V304あるいはV303を求める。上記の如く時間情報D303の値がモノクロモードの場合とカラーモードとの場合とで異なるため、予測モータ速度はモノクロモードの場合とカラーモードの場合とで異なる。   For example, when the control unit 102 receives the control cycle signal SG5 at time t6 in FIG. 11, for example, the control unit 102 calculates the speed control instruction value D4 and outputs it to the register 103. Specifically, after calculating the interpolation time T2 (for example, time t5 to t6), the control unit 102 performs two consecutive cycles T1 ′ (for example, time t1 to t3), T1 of the rotation output signal SG1 stored in the RAM 112. The average rotational speeds V1 ′ and V1 of the motor 21 at each time (for example, times t3 to t5) are read, and the amount of change in the rotational speed of the motor 21 on the time axis is calculated. Next, the control unit 102 calculates the amount of change in the rotational speed of the motor 21, the average rotational speed V1 ′, V1, the interpolation time T2, and the time information D303 stored in the RAM 112 (that is, the interpolation time T304 or T303) is used to calculate the predicted motor speed V304 or V303 at the time (for example, time t7) when the PWM timer 104 reads the speed control instruction value D4 and reflects it on the PWM signal SG6. Specifically, for example, based on FIG. 12, the predicted motor speed V304 or V303 is obtained by a known interpolation calculation. As described above, since the value of the time information D303 is different between the monochrome mode and the color mode, the predicted motor speed is different between the monochrome mode and the color mode.

ロードタイミング信号生成タイマ201は、制御周期信号SG5を受信すると、レジスタ202に記憶した時間情報D303に基づいてロードタイミング信号SG201を出力する。PWMタイマ104は、ロードタイミング信号SG201を受信すると、レジスタ103から速度制御指示値D4を読み込み、PWM信号S6をモータドライバへ出力する。モノクロモードとカラーモードで時間情報D303の値が異なるため、モノクロモードとカラーモードで、制御部102が制御周期信号SG5を受信してから、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間(例えば時刻t6乃至t7)が変動する。図11において、T303はモノクロモードの場合にD303が示す時間であり、T304はカラーモードの合にD303が示す時間である。   When receiving the control cycle signal SG5, the load timing signal generation timer 201 outputs the load timing signal SG201 based on the time information D303 stored in the register 202. When receiving the load timing signal SG201, the PWM timer 104 reads the speed control instruction value D4 from the register 103 and outputs the PWM signal S6 to the motor driver. Since the value of the time information D303 is different between the monochrome mode and the color mode, the PWM timer 104 sends the speed control instruction value D4 to the PWM signal SG6 after the control unit 102 receives the control cycle signal SG5 in the monochrome mode and the color mode. The time until reflection (for example, times t6 to t7) varies. In FIG. 11, T303 is the time indicated by D303 in the monochrome mode, and T304 is the time indicated by D303 in the color mode.

すなわち図11中、Aで示される時刻t4以降のPWM信号SG6は、aで示される時刻t1直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。同様にBで示される時刻t7以降のPWM信号SG6は、bで示される時刻t5直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。同様にCで示される時刻t11以降のPWM信号SG6は、cで示される時刻t9直後のインプットキャプチャ割り込み信号SG2で制御部102がインプットキャプチャ101から読み出すキャプチャ値D2及びそれ以前に得られたキャプチャ値を用いて速度制御指示値D4を演算することにより生成されたものである。   That is, the PWM signal SG6 after time t4 indicated by A in FIG. 11 is obtained before and after the capture value D2 read from the input capture 101 by the control unit 102 with the input capture interrupt signal SG2 immediately after time t1 indicated by a. This is generated by calculating the speed control instruction value D4 using the captured value. Similarly, the PWM signal SG6 after time t7 indicated by B is the capture value D2 read from the input capture 101 by the control unit 102 by the input capture interrupt signal SG2 immediately after time t5 indicated by b and the capture value obtained before that. Is generated by calculating the speed control instruction value D4 using. Similarly, the PWM signal SG6 after time t11 indicated by C is the capture value D2 read from the input capture 101 by the control unit 102 with the input capture interrupt signal SG2 immediately after time t9 indicated by c, and the capture value obtained before that. Is generated by calculating the speed control instruction value D4 using.

また図11中、カラーからモノクロへのモード変換(図中、例えば時刻t4とt5との間)の際、PWM信号SG6の周期が変動する。しかしながら、一般的にはこのようなモード変換の直後に画像形成を行うことはなく、したがって当該PWM信号SG6の周期の変動により、形成される画像に影響が及ぶことはない。   Further, in FIG. 11, the period of the PWM signal SG6 varies during the mode conversion from color to monochrome (in the figure, for example, between times t4 and t5). However, generally, image formation is not performed immediately after such mode conversion, and therefore, the formed image is not affected by fluctuations in the period of the PWM signal SG6.

図12は、上記回転出力信号SG1の周期T1′,T1、モータ21の平均回転速度V1′,V1、補間時間T2及び補間時間T304あるいはT303の関係を模式的に表すものであって、PWM信号SG6に速度制御指示値D4が反映されるまでに要される時間とモータ21の回転速度の変化との関係を模式的に表したグラフである。本実施の形態では、PWMタイマ104は、ロードタイミング信号SG201を受信すると、レジスタ103から速度制御指示値D4を読み出しPWMタイマ104内のレジスタ106に記憶し、レジスタ106内に記憶された速度制御指示値D4を用いてPWM信号SG6を生成する。ロードタイミング信号生成タイマ201は、制御周期信号SG5を受信すると、レジスタ202に記憶された時間情報D303に基づいてロードタイミング信号SG201を出力する。つまり、制御部102が制御周期信号SG5を受信してから、PWMタイマ104が速度制御指示値D4をPWM信号SG6に反映させるまでの時間T303あるいはT304は、RAM112に記憶された時間情報D303の表す時間と同じである。時間情報D303は、CPU110の負荷に基づいて、制御部102で変更される値である。   FIG. 12 schematically shows the relationship between the cycles T1 ′ and T1 of the rotation output signal SG1, the average rotation speed V1 ′ and V1 of the motor 21, the interpolation time T2, and the interpolation time T304 or T303. 7 is a graph schematically showing the relationship between the time required until the speed control instruction value D4 is reflected in SG6 and the change in the rotational speed of the motor 21. In the present embodiment, when receiving the load timing signal SG201, the PWM timer 104 reads the speed control instruction value D4 from the register 103, stores it in the register 106 in the PWM timer 104, and stores the speed control instruction stored in the register 106. The PWM signal SG6 is generated using the value D4. When receiving the control cycle signal SG5, the load timing signal generation timer 201 outputs the load timing signal SG201 based on the time information D303 stored in the register 202. That is, the time T303 or T304 from when the control unit 102 receives the control cycle signal SG5 until the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 is represented by the time information D303 stored in the RAM 112. Same as time. The time information D303 is a value changed by the control unit 102 based on the load on the CPU 110.

画像形成モードがカラーの場合にはCPU110の負荷が大きいため、時間情報D303の示す値はT304になる。また、画像形成モードがモノクロの場合にはCPU110の負荷が小さいため、時間情報D303の示す値はより短いT303になる。補間時間T2は、制御部102が制御周期信号SG5を受信した際に演算された、回転出力信号SG1の受信から制御周期信号SG5の受信までの時間(例えば図11中、例えば時刻t5乃至t6)である。補完時間T2+補完時間T303若しくはT304は、モータ制御装置22が回転出力信号SG1を受信してからPWM信号SG6へ速度制御指示値D4が反映されるまでの時間(例えば時刻t5乃至t7)となる。   When the image forming mode is color, the load on the CPU 110 is large, so the value indicated by the time information D303 is T304. Further, when the image forming mode is monochrome, the load on the CPU 110 is small, so the value indicated by the time information D303 is T303, which is shorter. The interpolation time T2 is a time from the reception of the rotation output signal SG1 to the reception of the control cycle signal SG5 calculated when the control unit 102 receives the control cycle signal SG5 (for example, time t5 to t6 in FIG. 11, for example). It is. Complement time T2 + complement time T303 or T304 is a time from when the motor control device 22 receives the rotation output signal SG1 until the speed control instruction value D4 is reflected in the PWM signal SG6 (for example, time t5 to t7).

制御部102は、RAM112に保存している周期T1(例えば時刻t3乃至t5)におけるモータの平均回転速度をV1と、T1の一回前の回転出力信号SG1の周期T1′(例えば時刻t1乃至t3)におけるモータの平均回転速度V1′、及び補間時間T2と補間時間T303若しくはT304(例えば時刻t5乃至t7)に基づいて、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させる時点(例えば時刻t7)での速度V303若しくはV304を予測する。   The control unit 102 sets the average rotation speed of the motor in the cycle T1 (for example, times t3 to t5) stored in the RAM 112 to V1, and the cycle T1 ′ of the rotation output signal SG1 immediately before T1 (for example, times t1 to t3). ) And the time when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 (for example, based on the interpolation time T2 and the interpolation time T303 or T304 (for example, time t5 to t7)) The speed V303 or V304 at time t7) is predicted.

このように、本実施の形態によれば、制御部102が制御周期信号SG5を受信してから、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間情報D303がレジスタ202とRAM112に記憶されている。時間情報D303は、フラッシュメモリ109に記憶された予測最長演算時間D203と、時間情報D203の変動時間情報D304によって算出され、CPU110の負荷が大きい場合には予測最長演算時間であるD203をそのまま時間情報D303として出力し、また負荷が小さい場合にはD203から変動時間情報D304を差分した値を時間情報D303として出力する。これにより、制御部102が制御周期信号SG5を受信してから、PWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間を、CPU110の負荷によって変化させることが出来る。つまり、CPU110の演算時間が短い際には、制御部102が制御周期信号SG5を受信してからPWMタイマ104が速度制御指示値D4をPWM信号SG6へ反映させるまでの時間を短くすることが出来るため、その間の速度変化量の変動による予測速度の誤差を抑制することができる。これにより、高精度にモータ21の速度を制御することが出来る。   Thus, according to the present embodiment, the time information D303 from when the control unit 102 receives the control cycle signal SG5 to when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 is stored in the register 202. And stored in the RAM 112. The time information D303 is calculated from the predicted longest calculation time D203 stored in the flash memory 109 and the variation time information D304 of the time information D203, and when the load on the CPU 110 is heavy, the predicted longest calculation time D203 is directly used as the time information. When the load is small, a value obtained by subtracting the variation time information D304 from D203 is output as time information D303. Thereby, the time from when the control unit 102 receives the control cycle signal SG5 to when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 can be changed by the load of the CPU 110. That is, when the calculation time of the CPU 110 is short, the time from when the control unit 102 receives the control cycle signal SG5 to when the PWM timer 104 reflects the speed control instruction value D4 in the PWM signal SG6 can be shortened. Therefore, it is possible to suppress an error in the predicted speed due to the change in the speed change amount during that time. Thereby, the speed of the motor 21 can be controlled with high accuracy.

なお、上記各実施の形態においては、中間媒体(中間転写ベルト)上に一旦感光体ユニットからトナー画像を転写し、中間媒体上で重ね合わせることによってカラー画像を形成し、このカラー画像を二次転写ユニットで転写紙に一度に転写を行う「間接転写方式」のカラー画像形成装置への適用例について説明したが、これに限るものではなく、各像担持体上にそれぞれ形成される単色トナー画像を、中間媒体(搬送ベルト)により搬送される転写体である転写紙上に順次転写する「直接転写方式」のカラー画像形成装置についても同様に適用することが可能である。   In each of the above embodiments, a toner image is once transferred from the photosensitive unit onto an intermediate medium (intermediate transfer belt) and superimposed on the intermediate medium to form a color image. Although the application example to the color image forming apparatus of the “indirect transfer method” in which the transfer unit performs transfer to the transfer paper at a time has been described, the present invention is not limited to this, and a single color toner image formed on each image carrier The present invention can be similarly applied to a “direct transfer type” color image forming apparatus that sequentially transfers the image onto a transfer sheet, which is a transfer body conveyed by an intermediate medium (conveyance belt).

なお、上記各実施の形態では、モータ制御装置を画像形成装置に用いた例を説明したが、これに限るものではなく、モータの回転により出力される回転出力信号に基づいて、モータの回転速度制御を行う装置であれば、画像形成装置以外の装置に用いても良い。本発明の他の適用例として、例えば、自動車の電動パワーステアリング等への適用が挙げられる。   In each of the above embodiments, the example in which the motor control device is used in the image forming apparatus has been described. However, the present invention is not limited to this, and the rotation speed of the motor is based on the rotation output signal output by the rotation of the motor. Any device other than the image forming apparatus may be used as long as it performs control. Other application examples of the present invention include, for example, application to an electric power steering of an automobile.

また上記各実施の形態では、PWMタイマ104が速度制御指示値D4をPWM信号SG6に変換してモータドライバ105へ送信しモータ21の速度を制御するようにしていたが、この構成に限定される必要はない。例えばPWMタイマ104の代わりにD/Aコンバータを設け、D/Aコンバータによりデジタル信号としての速度制御指示値D4を、対応するDC(すなわち直流)レベルを有するアナログ信号に変換させ、当該アナログ信号によりモータ21の速度を制御するようにしてもよい。   In each of the above embodiments, the PWM timer 104 converts the speed control instruction value D4 into the PWM signal SG6 and transmits it to the motor driver 105 to control the speed of the motor 21. However, the present invention is limited to this configuration. There is no need. For example, a D / A converter is provided in place of the PWM timer 104, and the speed control instruction value D4 as a digital signal is converted by the D / A converter into an analog signal having a corresponding DC (that is, direct current) level. The speed of the motor 21 may be controlled.

本発明の第1の実施の形態にかかる画像形成装置の一例を示すハードウェア構成図である。1 is a hardware configuration diagram illustrating an example of an image forming apparatus according to a first embodiment of the present invention. 一次転写ユニットとそれを駆動するための周辺の構成を示したハードウェア構成図である。FIG. 3 is a hardware configuration diagram illustrating a primary transfer unit and a peripheral configuration for driving the primary transfer unit. モータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of a motor control apparatus. 各信号の出力タイミングの一例を示すタイミングチャートである。It is a timing chart which shows an example of the output timing of each signal. PWM信号への速度制御指示値の反映にかかる時間と速度変化の関係を模式的に表したグラフである。6 is a graph schematically showing a relationship between a time required for reflecting a speed control instruction value to a PWM signal and a speed change. 本発明の第2の実施の形態にかかるモータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the motor control apparatus concerning the 2nd Embodiment of this invention. 各信号の出力タイミングの一例を示すタイミングチャートである。It is a timing chart which shows an example of the output timing of each signal. PWM信号への速度制御指示値の反映にかかる時間と速度変化の関係を模式的に表したグラフである。6 is a graph schematically showing a relationship between a time required for reflecting a speed control instruction value to a PWM signal and a speed change. 本発明の第3の実施の形態にかかるモータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the motor control apparatus concerning the 3rd Embodiment of this invention. 制御部がCPUの負荷に基づいて時間情報を変更し、出力する処理を表したフローチャートである。It is a flowchart showing the process which a control part changes and outputs time information based on the load of CPU. 各信号の出力タイミングの一例を示すタイミングチャートである。It is a timing chart which shows an example of the output timing of each signal. PWM信号への速度制御指示値の反映にかかる時間と速度変化の関係を模式的に表したグラフである。6 is a graph schematically showing a relationship between a time required for reflecting a speed control instruction value to a PWM signal and a speed change. 従来のモータ制御装置の構成を表すブロック図である。It is a block diagram showing the structure of the conventional motor control apparatus. 従来の速度変化の一例を示すグラフである。It is a graph which shows an example of the conventional speed change.

符号の説明Explanation of symbols

1 自動原稿送り装置(ADF)
2 スキャナユニット
3 画像書き込みユニット
4 現像ユニット
5 感光体ユニット
6 給紙部
7 一次転写ユニット
8 二次転写ローラ
9 搬送ベルト
10 定着ユニット
21 モータ
22 モータ制御装置
23 ギア
24 一次転写駆動ローラ
25 中間転写ベルト
26 二次転写ローラ
27 エンコーダ
28 スケールセンサ
101 インプットキャプチャ(回転速度情報生成手段の一例)
102 制御部(速度制御指示値生成手段の一例)
103 レジスタ
104 PWMタイマ(PWM信号生成手段の一例)
105 モータドライバ(モータ駆動手段の一例)
106 レジスタ(PWMタイマ内)
107 フリーランタイマ
108 制御周期タイマ(制御周期信号生成手段の一例)
109 フラッシュメモリ(記憶手段の一例)
110 CPU
111 メモリ
112 RAM
113 ROM
201 ロードタイミング信号生成タイマ(ロードタイミング生成手段の一例)
202 レジスタ(ロードタイミング信号生成タイマ内)
500 画像形成装置
SG1 回転出力信号
SG2 インプットキャプチャ割込信号
SG3 クロック信号
SG4 クロック信号
SG5 制御周期信号
SG6 PWM信号
SG201 ロードタイミング信号
D1 タイマ値
D2 キャプチャ値(回転速度情報の一例)
D3 時間情報(SG5の周期情報)
D4 速度制御指示値
D203 時間情報(予測最長演算時間+所定の余裕時間)
D303 時間情報(ロードタイミング信号生成タイマの遅延時間:制御部処理後)
T1 周期(回転出力信号の周期)
T2 補間時間
T3 補間時間(SG5の周期)
T203 補間時間(ロードタイミング信号生成タイマの遅延時間)
T303 補間時間(ロードタイミング信号生成タイマの遅延時間:モノクロモード)
T304 補間時間(ロードタイミング信号生成タイマの遅延時間:カラーモード)
V1 平均速度
V3 予測速度
V203 予測速度
V303 予測速度(モノクロモード)
V304 予測速度(カラーモード)
1021 モータ
1105 モータドライバ
1026 エンコーダ
1101 インプットキャプチャ(HSIユニット)
1104 PWMタイマ(パルス幅変調ユニット)
1107 フリーランタイマ(タイマ)
1110 CPU
1111 メモリ(FIFO)
SG1001 回転出力信号(エンコーダパルス)
SG1002 インプットキャプチャ割込み信号(割り込み)
SG1003 クロック信号(マイクロコントローラのクロック)
SG1006 PWM信号(制御信号)
D1001 タイマ値(発生時刻)
D1002 キャプチャ値(時刻)
D1004 速度制御指示値(エンコーダのフィードバック情報)
1 Automatic document feeder (ADF)
DESCRIPTION OF SYMBOLS 2 Scanner unit 3 Image writing unit 4 Developing unit 5 Photoconductor unit 6 Paper feeding part 7 Primary transfer unit 8 Secondary transfer roller 9 Conveying belt 10 Fixing unit 21 Motor 22 Motor control device 23 Gear 24 Primary transfer drive roller 25 Intermediate transfer belt 26 Secondary transfer roller 27 Encoder 28 Scale sensor 101 Input capture (an example of rotational speed information generating means)
102 Control unit (an example of speed control instruction value generation means)
103 register 104 PWM timer (an example of PWM signal generation means)
105 Motor driver (an example of motor driving means)
106 registers (within PWM timer)
107 free run timer 108 control cycle timer (an example of control cycle signal generation means)
109 Flash memory (an example of storage means)
110 CPU
111 memory 112 RAM
113 ROM
201 Load timing signal generation timer (an example of load timing generation means)
202 register (in load timing signal generation timer)
500 Image forming device SG1 Rotation output signal SG2 Input capture interrupt signal SG3 Clock signal SG4 Clock signal SG5 Control cycle signal SG6 PWM signal SG201 Load timing signal D1 Timer value D2 Capture value (an example of rotation speed information)
D3 Time information (SG5 cycle information)
D4 Speed control command value D203 Time information (estimated longest calculation time + predetermined margin time)
D303 Time information (delay time of load timing signal generation timer: after control unit processing)
T1 period (period of rotation output signal)
T2 interpolation time T3 interpolation time (cycle of SG5)
T203 Interpolation time (delay time of load timing signal generation timer)
T303 Interpolation time (delay time of load timing signal generation timer: monochrome mode)
T304 Interpolation time (delay time of load timing signal generation timer: color mode)
V1 average speed V3 predicted speed V203 predicted speed V303 predicted speed (monochrome mode)
V304 Prediction speed (color mode)
1021 Motor 1105 Motor driver 1026 Encoder 1101 Input capture (HSI unit)
1104 PWM timer (pulse width modulation unit)
1107 Free-run timer (timer)
1110 CPU
1111 Memory (FIFO)
SG1001 Rotation output signal (encoder pulse)
SG1002 Input capture interrupt signal (interrupt)
SG1003 Clock signal (microcontroller clock)
SG1006 PWM signal (control signal)
D1001 Timer value (occurrence time)
D1002 Capture value (time)
D1004 Speed control instruction value (encoder feedback information)

Claims (7)

モータの回転により出力される回転出力信号に基づいて前記モータの回転速度制御を行うモータ制御装置であって、
モータ駆動手段が速度制御指示値を読み込んで該速度制御指示値を前記モータを駆動するモータドライバへの出力信号に反映させる迄の時間を示す時間情報を記憶した記憶手段と、
前記回転出力信号の受信に基づいて回転速度情報を生成する回転速度情報生成手段と、
所定の周期のタイミングで、前記時間情報と、該タイミング以前に出力された前記回転出力信号に基づいて前記回転速度情報生成手段が生成した前記回転速度情報とに基づいて前記速度制御指示値を生成する速度制御指示値生成手段と、
前記生成された速度制御指示値を前記時間情報に基づいたタイミングで読み込み、読み込んだ該速度制御指示値を前記モータドライバへの出力信号に反映させる前記モータ駆動手段と、
を備えたことを特徴とするモータ制御装置。
A motor control device that controls the rotation speed of the motor based on a rotation output signal output by rotation of the motor,
Storage means for motor drive means storing time information indicating the time until is reflected in the output signal to the motor driver for driving the previous SL motor the speed control instruction value by reading the speed control instruction value,
Rotation speed information generating means for generating rotation speed information based on reception of the rotation output signal;
The speed control instruction value is generated based on the time information and the rotation speed information generated by the rotation speed information generation unit based on the rotation output signal output before the timing at a predetermined cycle timing. Speed control instruction value generating means for performing,
The motor driving means for reading the generated speed control instruction value at a timing based on the time information, and reflecting the read speed control instruction value in an output signal to the motor driver ;
A motor control device comprising:
前記時間情報は、前記速度制御指示値生成手段が、前記速度制御指示値の生成を開始する契機となる制御周期信号の周期を示し、
前記モータ駆動手段は、前記制御周期信号の受信に基づいて、前記生成された速度制御指示値を読み込むことを特徴とする請求項1に記載のモータ制御装置。
The time information indicates a cycle of a control cycle signal that triggers the speed control command value generation unit to start generating the speed control command value,
The motor control device according to claim 1, wherein the motor driving unit reads the generated speed control instruction value based on reception of the control cycle signal.
前記所定の周期で制御周期信号を生成する制御周期信号生成手段と、
前記時間情報に基づいて、前記制御周期信号をロードタイミング信号に変換して出力するロードタイミング信号生成手段と、
をさらに備え、
前記速度制御指示値生成手段は前記制御周期信号の受信に基づいて前記速度制御指示値を生成し、
前記モータ駆動手段は前記ロードタイミング信号の受信に基づいて前記速度制御指示値を読み込むことを特徴とする請求項1に記載のモータ制御装置。
A control period signal generating means for generating a control period signal at a predetermined cycle,
Load timing signal generating means for converting the control cycle signal into a load timing signal based on the time information and outputting the load timing signal;
Further comprising
The speed control instruction value generating means generates the speed control instruction value based on reception of the control cycle signal,
The motor control device according to claim 1, wherein the motor driving unit reads the speed control instruction value based on reception of the load timing signal.
画像形成の際に転写紙またはトナー画像を搬送する搬送手段を備えた画像形成装置であって、
請求項1乃至3のうちの何れか一項に記載のモータ制御装置によって、前記搬送手段を駆動するモータを制御することを特徴とする画像形成装置。
An image forming apparatus comprising a transfer means for transferring transfer paper or a toner image during image formation,
An image forming apparatus comprising: a motor control device according to claim 1 that controls a motor that drives the conveying unit.
画像形成の際に転写紙またはトナー画像を搬送する搬送手段を備え、
請求項1又は3に記載のモータ制御装置によって、前記搬送手段を駆動するモータを制御し、
前記モータ制御装置にかかる負荷がそれぞれ異なる複数のモードを備え、指定されたモードで画像形成処理を行う画像形成装置であって、
前記モードの指示を行う指示手段と、
前記指示手段に指示されたモードに基づいて、前記時間情報を設定する時間情報設定手段と、
を備えたことを特徴とする画像形成装置。
Conveying means for conveying transfer paper or toner image during image formation,
The motor control device according to claim 1 or 3 controls a motor that drives the conveying means,
The image forming apparatus includes a plurality of modes with different loads on the motor control device, and performs image forming processing in a designated mode,
Instruction means for instructing the mode;
Time information setting means for setting the time information based on a mode instructed by the instruction means;
An image forming apparatus comprising:
前記複数のモードは、モノクロモード及びカラーモードを含み、
前記モノクロモードの場合には、前記カラーモードの場合よりも前記時間情報の示す時間を短くすることを特徴とする請求項5に記載の画像形成装置。
The plurality of modes include a monochrome mode and a color mode,
6. The image forming apparatus according to claim 5, wherein the time indicated by the time information is shorter in the monochrome mode than in the color mode.
モータの回転により出力される回転出力信号に基づいて、前記モータの回転速度制御を行うモータ制御方法であって、
モータの回転により出力される前記回転出力信号に基づいて、回転速度情報を生成するステップと、
所定の周期のタイミングで、該タイミング以前に出力された前記回転出力信号に基づいて前記回転速度情報を生成するステップで生成した前記回転速度情報と所定の記憶手段に記憶されている、モータを駆動ステップにおいて速度制御指示値読み込該速度制御指示値前記モータを駆動するモータドライバへの出力信号に反映さる迄の時間を示す時間情報とに基づいて前記速度制御指示値を生成するステップと、
前記生成された速度制御指示値を前記時間情報に基づいたタイミングで読み込み、読み込んだ該速度制御指示値を前記モータドライバへの出力信号に反映させるステップと、
を備えたことを特徴とするモータ制御方法。
A motor control method for controlling the rotation speed of the motor based on a rotation output signal output by rotation of the motor,
Generating rotation speed information based on the rotation output signal output by rotation of the motor;
The rotation speed information generated in the step of generating the rotation speed information based on the rotation output signal output before the timing at a predetermined cycle timing, and a motor stored in a predetermined storage means It said velocity control instruction value based on the write-the speed control instruction value read speed control instruction value to the time information indicating the time until it is reflected in the output signal to the motor driver for driving the motor in the drive step Generating step;
Read at a timing based on the generated speed control instruction value before Symbol time between information, a step of reflecting the read the speed control command value to the output signal to the motor driver,
A motor control method comprising:
JP2008298822A 2007-11-30 2008-11-21 Motor control device, motor control method, and image forming apparatus Expired - Fee Related JP5407297B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2008298822A JP5407297B2 (en) 2007-11-30 2008-11-21 Motor control device, motor control method, and image forming apparatus
US12/292,893 US8269435B2 (en) 2007-11-30 2008-11-28 Motor control unit, motor control method and image forming apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2007311527 2007-11-30
JP2007311527 2007-11-30
JP2008298822A JP5407297B2 (en) 2007-11-30 2008-11-21 Motor control device, motor control method, and image forming apparatus

Publications (2)

Publication Number Publication Date
JP2009153369A JP2009153369A (en) 2009-07-09
JP5407297B2 true JP5407297B2 (en) 2014-02-05

Family

ID=40921796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008298822A Expired - Fee Related JP5407297B2 (en) 2007-11-30 2008-11-21 Motor control device, motor control method, and image forming apparatus

Country Status (1)

Country Link
JP (1) JP5407297B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6081734B2 (en) * 2012-08-13 2017-02-15 ラピスセミコンダクタ株式会社 Semiconductor device, electronic device, and control signal generation method
JP6409663B2 (en) * 2015-04-06 2018-10-24 株式会社デンソー Semiconductor device for motor control
JP2017070208A (en) * 2017-01-19 2017-04-06 ラピスセミコンダクタ株式会社 Semiconductor device, electronic equipment, and control signal generation method
CN110142965B (en) * 2019-05-17 2021-07-27 珠海赛纳三维科技有限公司 Servo motor drive circuit and 3D printing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05260777A (en) * 1992-03-12 1993-10-08 Meidensha Corp Speed detection method for electric motor
JP4429895B2 (en) * 2004-11-15 2010-03-10 株式会社リコー Endless moving member drive control device, image forming apparatus, and moving speed control method of endless moving member

Also Published As

Publication number Publication date
JP2009153369A (en) 2009-07-09

Similar Documents

Publication Publication Date Title
US8269435B2 (en) Motor control unit, motor control method and image forming apparatus
JP4947772B2 (en) Image forming apparatus
JP5747831B2 (en) MOTOR CONTROL DEVICE, CONVEYING DEVICE, IMAGE FORMING DEVICE, MOTOR CONTROL METHOD, AND PROGRAM
JP4687355B2 (en) Image forming apparatus
US8659629B2 (en) Image forming apparatus, image forming method, and computer program product
JP5407297B2 (en) Motor control device, motor control method, and image forming apparatus
JP2004237623A (en) Synchronizing signal generator and image forming apparatus
US8730522B2 (en) Image forming apparatus having plural deflection units and to perform positional shift correction
JP6492569B2 (en) Sheet conveying apparatus, image processing apparatus, sheet conveying method, and control program
JP2009297917A (en) Exposure control unit and its processing method, image forming apparatus, and program
JP2017070014A (en) Motor control device, drive device, transport device, image formation device, motor control method, and program
JP5446341B2 (en) Image forming apparatus, image forming method, and control program
JP4958205B2 (en) Rotating device, photosensitive drum rotating device, and image forming apparatus
JP2001194975A (en) Belt drive control circuit for printer
US10656584B2 (en) Image forming apparatus and control method
JP4873720B2 (en) Stepping motor drive control device and image forming apparatus using the same
JP4838575B2 (en) Image forming apparatus, image forming method, and image forming program
JP2009098172A (en) Image forming apparatus
US20120008986A1 (en) Image forming apparatus
JP4633573B2 (en) Image forming apparatus
JP3808826B2 (en) Motor control device
US8971788B2 (en) Image forming apparatus
JP2002283616A (en) Imaging apparatus and its laser diode controlling method
JP2001285576A (en) Image-forming device, and control method for the image- forming device and storage medium
JP2005094698A (en) Color-image forming system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110913

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130321

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130402

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: 20131008

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131021

R151 Written notification of patent or utility model registration

Ref document number: 5407297

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees