JP6240955B2 - Motor control device and image forming apparatus having the same - Google Patents

Motor control device and image forming apparatus having the same Download PDF

Info

Publication number
JP6240955B2
JP6240955B2 JP2013225417A JP2013225417A JP6240955B2 JP 6240955 B2 JP6240955 B2 JP 6240955B2 JP 2013225417 A JP2013225417 A JP 2013225417A JP 2013225417 A JP2013225417 A JP 2013225417A JP 6240955 B2 JP6240955 B2 JP 6240955B2
Authority
JP
Japan
Prior art keywords
unit
processing unit
pulse signal
motor
variation processing
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
JP2013225417A
Other languages
Japanese (ja)
Other versions
JP2015089223A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2013225417A priority Critical patent/JP6240955B2/en
Publication of JP2015089223A publication Critical patent/JP2015089223A/en
Application granted granted Critical
Publication of JP6240955B2 publication Critical patent/JP6240955B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Motors That Do Not Use Commutators (AREA)

Description

本発明は、モータに備わるコイルへの通電制御を行うモータ制御装置、および、これを備えた画像形成装置に関する。   The present invention relates to a motor control device that controls energization of a coil provided in a motor, and an image forming apparatus including the motor control device.

この種のモータ制御装置としては、例えば特許文献1に記載の構成(以下、従来のモータ制御装置という)がある。従来のモータ制御装置は、速度検出のために、互いに90°の位相差を持つA相パルス,B相パルスを出力可能な専用のロータリーエンコーダを備えている。速度検出処理では、A,B相パルスのエッジが検出される毎に、該A,B相パルスから4種類のパルス周期(エッジ数)による速度演算が行われる。速度検出処理ではさらに、パルス周期から演算しておいた複数の検出速度のうち、現在速度に適合した検出速度が速度検出値とされる。   As this type of motor control device, for example, there is a configuration described in Patent Document 1 (hereinafter referred to as a conventional motor control device). A conventional motor control device includes a dedicated rotary encoder capable of outputting an A-phase pulse and a B-phase pulse having a phase difference of 90 ° from each other for speed detection. In the speed detection process, every time an edge of the A and B phase pulses is detected, speed calculation is performed from the A and B phase pulses using four types of pulse periods (number of edges). In the speed detection process, a detection speed that matches the current speed among a plurality of detection speeds calculated from the pulse period is set as a speed detection value.

特開2010−145085号公報JP 2010-145085 A

ところで、モータ(典型的には、ブラシレスDCモータ)は、回転子の磁極位置検出のために、P相(Pは、2以上の自然数で、典型的には、3)のホール素子またはホールICを備えていることが多い。したがって、P相のホール素子等による検出信号を合成した合成パルス信号で回転子の速度制御を行うことができれば、従来のモータ制御装置からロータリーエンコーダを廃止すると共に、ホール素子と速度制御の間のインターフェースを一本化することができる。ここで、合成パルス信号とは、P相の検出器の出力信号のいずれかの論理が変化するたびに、自身の論理が反転する信号である。   By the way, a motor (typically, a brushless DC motor) is a P-phase (P is a natural number of 2 or more, typically 3) Hall element or Hall IC for detecting the magnetic pole position of the rotor. It is often equipped with. Therefore, if the speed control of the rotor can be performed with the synthesized pulse signal obtained by synthesizing the detection signal from the P-phase hall element or the like, the rotary encoder is eliminated from the conventional motor control device, and between the hall element and the speed control. A single interface can be integrated. Here, the synthetic pulse signal is a signal whose logic is inverted every time the logic of any of the output signals of the P-phase detector changes.

しかしながら、合成パルス信号には、下記(1)から(3)に記載のばらつきのうち、少なくとも一つに起因して、合成パルス信号の周期にはばらつきが生じ、合成パルス信号の周期が回転子の回転角に正しく相関しない場合がある。
(1)各ホール素子の基板への実装位置のばらつき
(2)基板自体の取り付け位置のばらつき
(3)回転子の着磁幅のばらつき
However, the synthesized pulse signal has a variation in the cycle of the synthesized pulse signal due to at least one of the variations described in (1) to (3) below, and the cycle of the synthesized pulse signal is the rotor. May not correlate correctly with the rotation angle.
(1) Variation in mounting position of each Hall element on the substrate (2) Variation in mounting position of the substrate itself (3) Variation in magnetization width of the rotor

それゆえに、本発明の目的は、合成パルス信号に含まれるばらつきの要素を低減可能なモータ制御装置、およびこれを備えた画像形成装置を提供することである。   SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a motor control device capable of reducing elements of variation included in a composite pulse signal, and an image forming apparatus having the motor control device.

上記目的を達成するために、本発明の一形態は、モータ制御装置であって、可動子および複数のコイルを含むモータと、前記モータに設けられたP相(Pは2以上の自然数)の検出器であって、前記モータの駆動により、それぞれの電気位相角が互いに相違するパルス信号を出力するP相の検出器と、前記P相の検出器の出力パルス信号のいずれかの論理が変化するたびに、自身の論理が反転する信号を、合成パルス信号として生成する信号合成部と、前記信号合成部で生成された合成パルス信号において連続する二個のエッジの間隔を順次的にカウントするカウント部と、前記カウント部でカウントされたエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、ばらつき処理部と、前記ばらつき処理部で求められた周期に基づき、各前記複数のコイルへの通電量を制御する速度制御部と、を備え、前記ばらつき処理部は、最新のエッジ間隔から起算して所定個数のエッジ間隔を加算して周期S0を求め、さらに、j(jは2以上の自然数)回前のエッジ間隔から起算して所定個数のエッジ間隔を加算して周期S-(j-1)を求めた後、N個の周期S0,S-1,…,S-(N-1)を順次求めて加算し、前記速度制御部は、前記ばらつき処理部における加算結果S0+S-1+…+S-(N-1)に基づき、各前記複数のコイルへの通電量を制御する。
In order to achieve the above object, one aspect of the present invention is a motor control device comprising a motor including a mover and a plurality of coils, and a P phase (P is a natural number of 2 or more) provided in the motor. a detector, by driving the motor, and P phase detector each electric phase angle outputs a pulse signal to be different from each other, one of the logic of the output pulse signal of the detector of the P phase change Each time, a signal synthesis unit that generates a signal whose logic is inverted as a synthesized pulse signal, and an interval between two consecutive edges in the synthesized pulse signal generated by the signal synthesis unit are sequentially counted. A variation processing unit for obtaining a period of a pulse signal output from any of the P-phase detectors by adding a predetermined number of edge intervals counted by the counting unit and the counting unit; Based on the period obtained by the serial variation processing unit, a speed control unit for controlling the energization amount of the each of said plurality of coils, wherein the variation unit is a predetermined number counted from the most recent edge interval of the edge The period S0 is obtained by adding the intervals, and the period S- (j-1) is obtained by adding a predetermined number of edge intervals starting from the edge interval before j (j is a natural number of 2 or more) times. Thereafter, N periods S0, S-1,..., S- (N-1) are sequentially obtained and added, and the speed control unit adds the result S0 + S-1 + ... + S- (N-) in the variation processing unit. based on 1), that controls the power supply amount to each of said plurality of coils.

また、上記モータ制御装置の好ましい形態によれば、前記ばらつき処理部は、前記N個の周期S0,S-1,…,S-(N-1)に係数a0,a-1,…,a-(N-1)(ここで、a0>a-1>…>a-(N-1))を順次乗算し、その後、a0×S0,a-1×S-1,…,a-(N-1)×S-(N-1)を加算し、前記速度制御部は、前記ばらつき処理部における加算結果a0×S0+a-1×S-1,…,+a-(N-1)×S-(N-1)に基づき、各前記複数のコイルへの通電量を制御する。 Further, according to a preferred embodiment of the motor control device, the variation processing unit has coefficients a 0 , a −1 ,... In the N periods S 0 , S −1 ,. , A − (N−1) (where a 0 > a −1 >...> A − (N−1) ) are sequentially multiplied, and then a 0 × S 0 , a −1 × S −1 , .., A − (N−1) × S − (N−1) are added, and the speed control unit adds the result a 0 × S 0 + a −1 × S −1 ,. Based on-(N-1) * S- (N-1) , the energization amount to each of the plurality of coils is controlled.

また、上記モータ制御装置の他の形態可動子および複数のコイルを含むモータと、前記モータに設けられたP相(Pは2以上の自然数)の検出器であって、前記モータの駆動により、それぞれの電気位相角が互いに相違するパルス信号を出力するP相の検出器と、前記P相の検出器の出力パルス信号のいずれかの論理が変化するたびに、自身の論理が反転する信号を、合成パルス信号として生成する信号合成部と、前記信号合成部で生成された合成パルス信号において連続する二個のエッジの間隔を順次的にカウントするカウント部と、前記カウント部でカウントされたエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、ばらつき処理部と、前記ばらつき処理部で求められた周期に基づき、各前記複数のコイルへの通電量を制御する速度制御部と、を備え、前記カウント部は、前記信号合成部で生成された合成パルス信号において連続する二個の立ち上がりエッジの間隔と、連続する二個の立ち下がりエッジの間隔と、を順次的にカウントし、前記ばらつき処理部は、前記カウント部でカウントされた立ち上がりエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の第1の周期を求め、さらに、前記カウント部でカウントされた立ち下がりエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の第2の周期を求めた後、前記第1の周期と前記第2の周期を加算し、前記速度制御部は、前記ばらつき処理部における前記第1の周期と前記第2の周期の加算結果に基づき、各前記複数のコイルへの通電量を制御する Another form of the motor control device is a motor including a mover and a plurality of coils, and a P-phase (P is a natural number of 2 or more) detector provided in the motor, and driving the motor Therefore, every time the logic of either the P-phase detector that outputs pulse signals having different electrical phase angles or the output pulse signal of the P-phase detector changes, its own logic is inverted. A signal synthesizing unit that generates a signal as a synthesized pulse signal, a counting unit that sequentially counts an interval between two consecutive edges in the synthesized pulse signal generated by the signal synthesizing unit, and a counter that counts A predetermined number of edge intervals are added to obtain a cycle of a pulse signal output from one of the P-phase detectors. Based on the period, a speed control unit for controlling the energization amount of the each of said plurality of coils, wherein the counting unit, the spacing of two rising edges contiguous in composite pulse signal generated by said signal combining unit And the interval between two consecutive falling edges, and the variation processing unit adds the predetermined number of rising edge intervals counted by the counting unit to detect the P phase. The first period of the pulse signal output from one of the detectors is obtained, and further, a predetermined number of falling edge intervals counted by the counting unit are added to output from one of the P-phase detectors. after determining the second period of the pulse signal, the first period and by adding the second period, the speed control unit, the first cycle in the variation processor Based on the addition result of the second period, controlling the power supply amount to each of said plurality of coils.

前記P相の検出器のそれぞれは、典型的には、ホール素子またはロータリーエンコーダである。   Each of the P-phase detectors is typically a Hall element or a rotary encoder.

本発明の他の形態は、上記好ましい形態のモータ制御装置を備えた画像形成装置であって、シート上に画像を印刷する。ここで、前記Nは前記シートの種別に応じて異なっている。   According to another aspect of the present invention, there is provided an image forming apparatus including the motor control device according to the preferred embodiment, and prints an image on a sheet. Here, N is different depending on the type of the sheet.

上記によれば、合成パルス信号に含まれるばらつきの要素を低減可能なモータ制御装置、およびこれを備えた画像形成装置を提供することができる。   According to the above, it is possible to provide a motor control device that can reduce the variation element included in the composite pulse signal, and an image forming apparatus including the motor control device.

第一実施形態に係るモータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the motor control apparatus which concerns on 1st embodiment. 第一実施形態のばらつき処理の概要を示す図である。It is a figure which shows the outline | summary of the dispersion | variation process of 1st embodiment. 第一実施形態のモータ駆動処理のフロー図である。It is a flowchart of the motor drive process of 1st embodiment. 第一実施形態のばらつき除去処理のフロー図である。It is a flowchart of the dispersion | variation removal process of 1st embodiment. 第二実施形態に係るモータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the motor control apparatus which concerns on 2nd embodiment. 第二実施形態のばらつき除去処理のフロー図である。It is a flowchart of the dispersion | variation removal process of 2nd embodiment. 第三実施形態に係るモータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the motor control apparatus which concerns on 3rd embodiment. 第三実施形態のばらつき処理の概要を示す図である。It is a figure which shows the outline | summary of the dispersion | variation process of 3rd embodiment. 第三実施形態のモータ駆動処理のフロー図である。It is a flowchart of the motor drive process of 3rd embodiment. 第三実施形態のばらつき除去処理のフロー図である。It is a flowchart of the dispersion | variation removal process of 3rd embodiment. 第四実施形態に係るモータ制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the motor control apparatus which concerns on 4th embodiment. 第四実施形態のモータ駆動処理のフロー図である。It is a flowchart of the motor drive process of 4th embodiment. 第四実施形態のばらつき除去処理のフロー図である。It is a flowchart of the dispersion | variation removal process of 4th embodiment. 応用例に係る画像形成装置の全体構成を示す図である。1 is a diagram illustrating an overall configuration of an image forming apparatus according to an application example. 応用例のモータ制御部の処理の第一例を示すフロー図である。It is a flowchart which shows the 1st example of a process of the motor control part of an application example. 応用例のモータ制御部の処理の第二例を示すフロー図である。It is a flowchart which shows the 2nd example of a process of the motor control part of an application example.

《第一実施形態》
以下、図1〜図3Bを参照して、本発明の第一実施形態に係るモータ制御装置について詳説する。
<< first embodiment >>
Hereinafter, the motor control device according to the first embodiment of the present invention will be described in detail with reference to FIGS. 1 to 3B.

図1において、モータ制御装置1は、P相のブラシレスDCモータ2と、モータ駆動部3と、モータ制御部4と、を備えている。ここで、Pは、2以上の自然数であって、本実施形態では、主に、P=3の場合について説明する。   In FIG. 1, the motor control device 1 includes a P-phase brushless DC motor 2, a motor drive unit 3, and a motor control unit 4. Here, P is a natural number of 2 or more, and in the present embodiment, the case where P = 3 will be mainly described.

3相ブラシレスDCモータ2は、可動子(より具体的には、回転子)としての磁石21と、固定子を構成するU相コイル22U、V相コイル22VおよびW相コイル22Wと、3相の検出器h1,h2,h3と、実装基板23と、を備えている。   The three-phase brushless DC motor 2 includes a magnet 21 as a mover (more specifically, a rotor), a U-phase coil 22U, a V-phase coil 22V and a W-phase coil 22W constituting a stator, and a three-phase brushless DC motor 2 Detectors h1, h2, and h3 and a mounting substrate 23 are provided.

磁石21は、例えば、円盤状の形状を有しており、軸受け等を介してブラケット(図示せず)に対し回転可能に支持されている。また、磁石21には、N極とS極とが円周方向に交互に着磁されている。本実施形態では、磁石21は、N極、S極を六対、つまり合計十二極、有する。より詳細には、各極は30°の着磁幅となるよう着磁されるが、実際の着磁幅にはばらつきがある。   The magnet 21 has, for example, a disk shape and is supported so as to be rotatable with respect to a bracket (not shown) via a bearing or the like. The magnet 21 is alternately magnetized with N and S poles in the circumferential direction. In the present embodiment, the magnet 21 has six pairs of N poles and S poles, that is, a total of twelve poles. More specifically, each pole is magnetized to have a magnetization width of 30 °, but the actual magnetization width varies.

コイル22U〜22Wは、磁石21の回転方向に所定の間隔をあけてブラケット(図示せず)に固定的に配置されている。   The coils 22U to 22W are fixedly arranged on a bracket (not shown) at a predetermined interval in the rotation direction of the magnet 21.

検出器h1〜h3は、典型的には、ホールICであって、例えば、実装基板23に実装された状態で磁石21の真下に配置されるように、ブラケット(図示せず)に取り付けられる。かかる検出器h1〜h3はそれぞれ、磁石21の回転に起因する磁界の極性変化をHi,Loで表すパルス信号p1〜p3を出力する。ここで、本実施形態では、極数は十二であるため、磁石21一回転につき、各検出器h1〜h3は、六周期分のパルス信号p1〜p3を出力する。また、図2に示すように、各パルス信号p1〜p3の一周期を電気角360°と定義すると、パルス信号p2,p3は、パルス信号p1に対して120°,240°の電気角だけシフトするよう、モータ制御装置1は設計されている。しかし、実際には、実装基板23への検出器h1〜h3の実装位置および/または実装基板23のブラケットへの取り付け位置にはばらつきがある。さらには、上記の通り、着磁幅にはばらつきがあるため、パルス信号p1,p2の電気角のずれ、パルス信号p2,p3の電気角のずれ、およびパルス信号p3,p1の電気角のずれは、厳密には120°では無い。   The detectors h <b> 1 to h <b> 3 are typically Hall ICs, and are attached to a bracket (not shown) so as to be disposed immediately below the magnet 21 in a state of being mounted on the mounting substrate 23, for example. Each of the detectors h1 to h3 outputs pulse signals p1 to p3 representing the change in polarity of the magnetic field caused by the rotation of the magnet 21 as Hi and Lo. Here, in this embodiment, since the number of poles is twelve, each detector h1 to h3 outputs pulse signals p1 to p3 for six cycles per one rotation of the magnet 21. As shown in FIG. 2, if one cycle of each of the pulse signals p1 to p3 is defined as an electrical angle of 360 °, the pulse signals p2 and p3 are shifted by 120 ° and 240 ° electrical angles with respect to the pulse signal p1. Thus, the motor control device 1 is designed. However, actually, the mounting positions of the detectors h1 to h3 on the mounting board 23 and / or the mounting positions of the mounting board 23 on the brackets vary. Furthermore, as described above, since the magnetization width varies, the deviation of the electrical angles of the pulse signals p1 and p2, the deviation of the electrical angles of the pulse signals p2 and p3, and the deviation of the electrical angles of the pulse signals p3 and p1. Is not strictly 120 °.

モータ駆動部3は、典型的には、信号処理部31と、コイル駆動部32と、信号合成部33と、を含んでいる。   The motor driving unit 3 typically includes a signal processing unit 31, a coil driving unit 32, and a signal synthesis unit 33.

信号処理部31にはパルス信号p1〜p3が入力される。信号処理部31は、予め定められた時間間隔で、入力パルス信号p1〜p3から磁石21の回転角を検出し、検出した回転角をコイル駆動部32に渡す。信号処理部31はさらに、後述のばらつき除去処理のために、入力パルス信号p1〜p3をそのまま信号合成部33に渡す。   Pulse signals p <b> 1 to p <b> 3 are input to the signal processing unit 31. The signal processing unit 31 detects the rotation angle of the magnet 21 from the input pulse signals p <b> 1 to p <b> 3 at a predetermined time interval, and passes the detected rotation angle to the coil driving unit 32. The signal processing unit 31 further passes the input pulse signals p <b> 1 to p <b> 3 as they are to the signal synthesis unit 33 for the variation removal process described later.

コイル駆動部32は、複数のスイッチング素子を内蔵しており、これらスイッチング素子は、外部の電源回路5と、コイル22U〜22Wとの間に介在する。コイル駆動部32は、信号処理部31から得られた回転角に応じて、内蔵のスイッチング素子のオン/オフ状態を切り替え、これによって、コイル22U〜22Wに流れる電流の方向を変化させる。また、コイル駆動部32は、後述の速度制御部43から得られた通電量に従って、電源回路5からコイル22U〜22Wへと供給される通電量を調整する。   The coil drive unit 32 includes a plurality of switching elements, and these switching elements are interposed between the external power supply circuit 5 and the coils 22U to 22W. The coil driving unit 32 switches the on / off state of the built-in switching element according to the rotation angle obtained from the signal processing unit 31, and thereby changes the direction of the current flowing through the coils 22U to 22W. Moreover, the coil drive part 32 adjusts the energization amount supplied to the coils 22U-22W from the power supply circuit 5 according to the energization amount obtained from the speed control part 43 mentioned later.

信号合成部33には、信号処理部31の出力パルス信号p1〜p3が入力される。信号合成部33は、入力パルス信号p1〜p3のいずれかの論理が変化するたびに、自身の論理が反転する信号を生成し、図2に示すような合成パルス信号qとして出力する。本実施形態のように、磁極が六対ある場合には、磁石21一回転につき、十八周期の合成パルス信号qが出力される。上記の通り、パルス信号p1〜p3相互の電気角は正確に120°となっていないため、合成パルス信号qにおける各周期にもばらつきが生じる。   Output pulse signals p <b> 1 to p <b> 3 of the signal processing unit 31 are input to the signal synthesis unit 33. Each time the logic of any of the input pulse signals p1 to p3 changes, the signal synthesizer 33 generates a signal whose logic is inverted and outputs it as a synthesized pulse signal q as shown in FIG. When there are six pairs of magnetic poles as in the present embodiment, a composite pulse signal q having eighteen cycles is output per one rotation of the magnet 21. As described above, since the electrical angle between the pulse signals p1 to p3 is not exactly 120 °, variation occurs in each cycle of the synthesized pulse signal q.

モータ制御部4は、例えば、周期カウント部41と、ばらつき処理部42と、速度制御部43と、を含んでいる。   The motor control unit 4 includes, for example, a cycle counting unit 41, a variation processing unit 42, and a speed control unit 43.

周期カウント部41は、合成パルス信号qよりも十分に高周波数のクロックを用いて、入力合成パルス信号qの各立ち上がりエッジの間隔(つまり周期)Tを順次カウントし、ばらつき処理部42に渡す。以下、最新のエッジ間隔TをT0とし、その直前にカウントしたエッジ間隔TをT-1とし、二回前にカウントしたエッジ間隔TをT-2とする。同様に、i回前にカウントしたエッジ間隔TをT-iとする。ここで、iは非負の整数であって、0,1,…である。 The cycle counting unit 41 sequentially counts intervals (that is, cycles) T between the rising edges of the input combined pulse signal q using a clock having a frequency sufficiently higher than that of the combined pulse signal q, and passes it to the variation processing unit 42. Hereinafter, the latest edge interval T is T 0 , the edge interval T counted immediately before is T −1, and the edge interval T counted twice before is T −2 . Similarly, the edge interval T counted i times before is defined as T -i . Here, i is a non-negative integer and is 0, 1,.

次に、ばらつき処理部42によるばらつき除去の概要を説明する。ばらつき処理部42は、周期カウント部41から得られる最近P個分のエッジ間隔T0,T-1,…T-(P-1)を保持可能に構成される。ばらつき処理部42は、周期カウント部41から最新のエッジ間隔T0が入力されるたびに、最新のエッジ間隔T0から遡って過去P個のエッジ間隔T0,T-1,…T-(P-1)を加算する(下表1を参照)。P=3の場合には、図2に例示するように、連続する三個のエッジ間隔T0,T-1,T-2の加算値を求める。次に、ばらつき処理部42は、求めた加算値をPで除算した平均値を、ばらつき除去済の周期S0として求める。また、エッジ間隔T-1の入力時には、エッジ間隔T-1,T-2,T-3の平均値を、エッジ間隔T-2の入力時には、エッジ間隔T-2,T-3,T-4の平均値を、ばらつき除去済の周期S-1,S-2として求める。このように、本実施形態では、ばらつき処理部42が合成パルス信号qのエッジ間隔T0を受け取るたびに、(T-2+T-1+T0)/Pを、ばらつき除去済の周期S0として求め、求めた周期S0を速度制御部43に渡していく。 Next, an outline of variation removal by the variation processing unit 42 will be described. The variation processing unit 42 is configured to be able to hold the latest P edge intervals T 0 , T −1 ,... T − (P−1) obtained from the cycle counting unit 41. Variation processing unit 42, each time the latest edge interval T 0 from the cycle counting unit 41 is input, the latest edge interval T back from 0 past P number of edge interval T 0, T -1, ... T - ( Add P-1) (see Table 1 below). In the case of P = 3, as illustrated in FIG. 2, an addition value of three consecutive edge intervals T 0 , T −1 , T −2 is obtained. Next, the variation processing unit 42 obtains an average value obtained by dividing the obtained addition value by P as the variation-removed period S 0 . When the edge interval T −1 is input, the average value of the edge intervals T −1 , T −2 , T −3 is used. When the edge interval T −2 is input, the edge intervals T −2 , T −3 , T are input. The average value of 4 is obtained as the cycles S −1 and S −2 from which variation has been removed. As described above, in this embodiment, every time the variation processing unit 42 receives the edge interval T 0 of the composite pulse signal q, (T −2 + T −1 + T 0 ) / P is set as the variation-removed cycle S 0. The obtained cycle S 0 is passed to the speed control unit 43.

また、P=2の場合には、上表1に記載の通り、最新のエッジ間隔T0から遡って過去二個のエッジ間隔T0,T-1の平均がとられ、P=4の場合には、最新のエッジ間隔T0から遡って過去四個のエッジ間隔T0,T-1,T-2,T-3の平均がとられる。 In the case of P = 2, as described in Table 1 above, the average of the most recent past two edges interval T 0 back from the edge interval T 0, T -1 is taken, if the P = 4 The average of the past four edge intervals T 0 , T −1 , T −2 , T −3 is taken backward from the latest edge interval T 0 .

速度制御部43は、ばらつき処理部42から、ばらつき除去済の周期S0を順次受け取る。これに加え、上位の制御部(図示せず)から指定された回転速度(単位は、例えばrps)も入力される。速度制御部43は、最新の周期S0からモータ2の現在の回転速度を求める。そして、現在の回転速度が指定された回転速度となるように、電源回路5からコイル駆動部32への通電量(具体例を挙げるとデューティー比)を制御する。 The speed control unit 43 sequentially receives the variation-removed period S 0 from the variation processing unit 42. In addition to this, a rotational speed (unit: rps, for example) designated by a higher-level control unit (not shown) is also input. Speed control unit 43 obtains the current rotational speed of the motor 2 from the most recent period S 0. Then, the amount of current supplied from the power supply circuit 5 to the coil drive unit 32 (specifically, the duty ratio) is controlled so that the current rotation speed becomes the designated rotation speed.

《第一実施形態の具体的な処理手順》
次に、図3Aおよび図3Bを参照して、モータ制御部4の具体的な処理手順を、P=3の場合を例に採り上げて説明する。
<< Specific Processing Procedure of First Embodiment >>
Next, with reference to FIG. 3A and FIG. 3B, a specific processing procedure of the motor control unit 4 will be described by taking the case of P = 3 as an example.

図3Aにおいて、ばらつき処理部42は、ステップA01〜A05を実行する。A01にて周期演算結果がリセットされ、A02にて内蔵のバッファB[0]〜B[2]の保持値がクリアされ、A03にて内蔵のバッファカウンタCが初期化され、A04にて許可フラグFがオフにされ、A05にて検出すべきエッジが設定されると共に割り込みが許可される。ここで、エッジ設定とは、合成パルス信号qの立ち上がりエッジ間、および、立ち下がりエッジ間のいずれをカウントするかを設定することである。A01〜A05により諸変数の設定が完了すると、速度制御部43がコイル駆動部32を制御して、モータ2(つまり、磁石21)の回転を開始させる(ステップA06)。なお、A01〜A05の順番は、上記に限られず、適宜変更されても構わない。   In FIG. 3A, the variation processing unit 42 executes Steps A01 to A05. The period calculation result is reset at A01, the held values of the built-in buffers B [0] to B [2] are cleared at A02, the built-in buffer counter C is initialized at A03, and the enable flag at A04 F is turned off, an edge to be detected is set at A05, and an interrupt is permitted. Here, the edge setting is to set whether to count between rising edges or falling edges of the composite pulse signal q. When the setting of various variables is completed by A01 to A05, the speed control unit 43 controls the coil driving unit 32 to start the rotation of the motor 2 (that is, the magnet 21) (step A06). In addition, the order of A01-A05 is not restricted above, You may change suitably.

A05の実行後、図3Bの処理が図3Aの処理中に割り込み可能となる。すなわち、モータの回転開始後、周期カウント部41には信号合成部33から合成パルス信号qが入力され始める。周期カウント部41は、その立ち上がりエッジ間および立ち下がりエッジ間のうちA05で設定された方のエッジ間隔T0をカウントし始め、ばらつき処理部42に渡す。ばらつき処理部42は、エッジ間隔T0を受け取るたびに、割り込みを掛けて、図3Bの処理を行う。 After execution of A05, the process of FIG. 3B can be interrupted during the process of FIG. 3A. That is, after the rotation of the motor is started, the synthesized pulse signal q is started to be input from the signal synthesis unit 33 to the period counting unit 41. The cycle counting unit 41 starts counting the edge interval T 0 set between A05 out of the rising edges and the falling edges, and passes it to the variation processing unit. Each time the variation processing unit 42 receives the edge interval T 0 , the variation processing unit 42 generates an interrupt and performs the processing of FIG. 3B.

図3Bにおいて、ばらつき処理部42は、バッファB[C](Cは、バッファカウンタCの現在値)に、周期カウント部41から得られた最新のエッジ間隔T0を格納する(ステップB01)。 In FIG. 3B, the variation processing unit 42 stores the latest edge interval T 0 obtained from the cycle counting unit 41 in the buffer B [C] (C is the current value of the buffer counter C) (step B01).

次に、ばらつき処理部42は、F=0(つまり、許可フラグFがオフ)でC<2であるか否かを判断する(ステップB02)。   Next, the variation processing unit 42 determines whether or not C <2 when F = 0 (that is, the permission flag F is off) (step B02).

Noと判断すると、ばらつき処理部42は、許可フラグFを1(つまり、オン)に設定し(ステップB03)、さらに、(T-2+T-1+T0)/3を計算してばらつき除去済の周期S0を求める(ステップB04)。なお、このステップB04は、モータ2の回転開始後、バッファB[0]〜B[2]にエッジ間隔T0,T-1,T-2の値が格納されるまでは行われない。また、モータ2の回転速度の変化が大きい起動時または変速時(加速時または減速時)等においては、ばらつき除去を行うよりも、モータ2の回転速度の変化に遅れ無く追従するように、たとえ、エッジ間隔T0,T-1,T-2の値がバッファB[0]〜B[2]に保持されていたとしても、モータ2の回転速度が略一定に達するまでは、ばらつき除去を行わないようにすることも実用的な処理である。 If the determination is No, the variation processing unit 42 sets the permission flag F to 1 (that is, ON) (step B03), and further calculates (T −2 + T −1 + T 0 ) / 3 to eliminate variation. Period S 0 is obtained (step B04). This step B04 is not performed until the values of the edge intervals T 0 , T −1 , T −2 are stored in the buffers B [0] to B [2] after the rotation of the motor 2 is started. Further, at the time of start-up or speed change (acceleration or deceleration) where the change in the rotation speed of the motor 2 is large, the variation of the rotation speed of the motor 2 is tracked without delay rather than the variation removal. Even if the values of the edge intervals T 0 , T −1 , and T −2 are held in the buffers B [0] to B [2], the variation is removed until the rotation speed of the motor 2 reaches substantially constant. It is also a practical process to avoid it.

逆に、B02にてYesと判断した場合、ばらつき処理部42は、最新のエッジ間隔T0を、周期S0として用いる(ステップB05)。 Conversely, if it is determined as Yes at B02, the variation processing unit 42, the latest edge interval T 0, it is used as a period S 0 (step B05).

ステップB04,B05の後に、ばらつき処理部42は、バッファカウンタCの値を(C+1)%3に変更して(ステップB06)、図3Bの処理を終了する。なお、図3BのB06の%は剰余の計算を示す演算子である。なお、演算子%の意味は第二実施形態以降も同様である。   After steps B04 and B05, the variation processing unit 42 changes the value of the buffer counter C to (C + 1)% 3 (step B06), and ends the process of FIG. 3B. Note that% B06 in FIG. 3B is an operator for calculating the remainder. The meaning of the operator% is the same in the second and subsequent embodiments.

ここで、再度図3Aを参照する。速度制御部43は、モータ2の回転開始後(つまり、A06の後)に、ばらつき処理部42から周期S0を得ると、所定の係数αを周期S0で除して回転速度Vを求める(ステップA07)。 Here, FIG. 3A is referred again. When the speed control unit 43 obtains the cycle S 0 from the variation processing unit 42 after starting the rotation of the motor 2 (that is, after A06), the speed control unit 43 obtains the rotational speed V by dividing the predetermined coefficient α by the cycle S 0. (Step A07).

次に、速度制御部43は、上位の制御部から指定された回転速度(つまり、目標値)Vmを、算出した回転速度Vと比較する(ステップA08)。   Next, the speed control unit 43 compares the rotation speed (that is, the target value) Vm designated by the host control unit with the calculated rotation speed V (step A08).

比較の結果、Vm=Vであれば、PWM(パルス幅変調)による速度制御等において、速度制御部43は、各コイル22U〜22Wに供給する電流のデューティー比を維持する(ステップA09)。それに対し、Vm<Vであれば、デューティー比を下げ(ステップA10)、Vm>Vであれば、デューティー比を上げる(ステップA11)。   As a result of the comparison, if Vm = V, the speed control unit 43 maintains the duty ratio of the current supplied to each of the coils 22U to 22W in speed control by PWM (pulse width modulation) or the like (step A09). On the other hand, if Vm <V, the duty ratio is decreased (step A10), and if Vm> V, the duty ratio is increased (step A11).

A09〜A11の次に、速度制御部43は、図3Aの処理を終了するか否かを判断し(ステップA12)、Noと判断した場合にはA07に戻る。   Next to A09 to A11, the speed control unit 43 determines whether or not to end the process of FIG. 3A (step A12), and returns to A07 if determined No.

それに対し、Yesと判断した場合には、割り込みを禁止したうえで(ステップA13)、モータ制御部4は、図3Aの処理を終了する。   On the other hand, if the determination is Yes, the interrupt is prohibited (step A13), and the motor control unit 4 ends the process of FIG. 3A.

《第一実施形態の効果》
上記の通り、パルス信号p1〜p3の個々の周期には、(1)対応の検出器h1〜h3の実装基板23への実装位置のばらつきと、(2)実装基板23自体のブラケットへの取り付け位置のばらつきとに起因するばらつきは生じない。しかし、本実施形態では、モータ駆動部3とモータ制御部4との間のインターフェースを一本化するために、合成パルス信号qの周期は、(1),(2)に起因するばらつきが生じてしまう。このばらつきの影響を低減するために、本実施形態では、ばらつき処理部42は、最新のエッジ間隔T0を得るたびに、最近P個分のエッジ間隔T0,…,T-(P-1)を加算される。かかる加算値は、図2の例では、パルス信号p3の周期と一致するため、(1),(2)に起因するばらつきが実質的に生じない。それゆえ、この加算値から得られる周期S0にも、(1),(2)に起因するばらつきが生じない。また、前回の周期S-1は、図2に例示するように、エッジ間隔T-1,T-2,T-3の加算値から、前々回の周期S-2は、エッジ間隔T-2,T-3,T-4の加算値から求められる。これら加算値もパルス信号p2,p1の周期と一致するため、それぞれから求められる周期S-1,S-2にも、(1),(2)に起因するばらつきが生じない。以上の通り、モータ制御装置1によれば、モータ駆動部3とモータ制御部4との間のインターフェースを一本化できると共に、上記ばらつきの要素を実質的に含まない周期S0を求めることができる。速度制御部43は、このような周期S0に基づき、モータ2の回転速度の制御を行うため、モータ2の回転変動を抑制することが可能となる。
<< Effects of First Embodiment >>
As described above, in each cycle of the pulse signals p1 to p3, (1) variation in mounting position of the corresponding detectors h1 to h3 on the mounting board 23 and (2) mounting of the mounting board 23 itself to the bracket Variation due to position variation does not occur. However, in this embodiment, in order to unify the interface between the motor driving unit 3 and the motor control unit 4, the cycle of the composite pulse signal q varies due to (1) and (2). End up. In order to reduce the influence of the variation, in this embodiment, the variation processing unit 42 obtains the latest P edge intervals T 0 ,..., T − (P−1 ) every time the latest edge interval T 0 is obtained. ) Is added. In the example of FIG. 2, such an added value coincides with the cycle of the pulse signal p3, and therefore variations due to (1) and (2) do not substantially occur. Therefore, there is no variation caused by (1) and (2) in the period S 0 obtained from this added value. Further, as illustrated in FIG. 2, the previous cycle S −1 is obtained by adding the edge intervals T −1 , T −2 , and T −3 , and the previous cycle S −2 is the edge interval T −2 , It is obtained from the added value of T- 3 and T- 4 . Since these added values also coincide with the periods of the pulse signals p2 and p1, variations caused by (1) and (2) do not occur in the periods S -1 and S -2 obtained from the respective values. As described above, according to the motor control device 1, the interface between the motor driving unit 3 and the motor control unit 4 can be unified, and the period S 0 that does not substantially include the above-described variation element can be obtained. it can. Since the speed control unit 43 controls the rotation speed of the motor 2 based on such a cycle S 0 , the rotation fluctuation of the motor 2 can be suppressed.

《付記1》
検出器h1〜h3は、ホールICに代えて、ホール素子またはロータリーエンコーダであっても構わない。但し、ホール素子の場合は、アナログ信号を出力することになるため、二値信号に変換する必要がある。
<< Appendix 1 >>
The detectors h1 to h3 may be Hall elements or rotary encoders instead of the Hall ICs. However, in the case of a Hall element, an analog signal is output, so it is necessary to convert it to a binary signal.

《付記2》
磁石21の着磁方向については、円周方向に限らず、他の周知の方向であっても良い。また、極数に関しては、十二極に限らず、他の値でも構わない。
<< Appendix 2 >>
The magnetizing direction of the magnet 21 is not limited to the circumferential direction, and may be another known direction. Further, the number of poles is not limited to twelve poles, and other values may be used.

《付記3》
速度制御部43によるモータ2の速度制御に関しては、PWMによりコイル22U〜22Wの通電量が制御されていた。しかし、これに限らず、PI(比例積分)、PID(比例積分微分)およびこれらを応用により速度制御がなされても構わない。
<< Appendix 3 >>
Regarding the speed control of the motor 2 by the speed control unit 43, the energization amounts of the coils 22U to 22W are controlled by PWM. However, the present invention is not limited to this, and speed control may be performed by applying PI (proportional integration), PID (proportional integration differentiation), and these.

《付記4》
上記実施形態では、回転型のモータ2を例示した。しかし、これに限らず、モータ2はリニア型でも構わない。
<< Appendix 4 >>
In the above embodiment, the rotary motor 2 is exemplified. However, the present invention is not limited to this, and the motor 2 may be a linear type.

なお、付記1〜4に関しては、第二実施形態以降でも同様に当てはまる。   Note that the supplementary notes 1 to 4 are similarly applied to the second and subsequent embodiments.

《第二実施形態》
次に、図4〜図5を参照して、本発明の第二実施形態に係るモータ制御装置について詳説する。
<< Second Embodiment >>
Next, with reference to FIGS. 4-5, the motor control apparatus which concerns on 2nd embodiment of this invention is explained in full detail.

図4において、モータ制御装置1Aは、図1のモータ制御装置1と比較すると、ばらつき処理部42に代えてばらつき処理部42Aを備えている点で相違する。それ以外に、モータ制御装置1A,1の間に相違点は無い。それゆえ、図4において、図1に示す構成に相当するものには同一の参照符号を付け、それぞれの説明を省略する。   In FIG. 4, the motor control device 1 </ b> A is different from the motor control device 1 of FIG. 1 in that a variation processing unit 42 </ b> A is provided instead of the variation processing unit 42. Other than that, there is no difference between the motor control devices 1A and 1. Therefore, in FIG. 4, the same reference numerals are assigned to the components corresponding to the configuration shown in FIG. 1, and the descriptions thereof are omitted.

合成パルス信号qのばらつきの要素としては、第一実施形態で述べた(1),(2)の他にも、(3)磁石21の着磁幅のばらつきがある。本実施形態では、(3)に起因するばらつきの影響を低減することを目的とする。   In addition to (1) and (2) described in the first embodiment, there are (3) variations in the magnetization width of the magnet 21 as factors of variation in the composite pulse signal q. In the present embodiment, an object is to reduce the influence of variations caused by (3).

この課題を解決するために、ばらつき処理部42Aは、バッファB[0],B[1],…B[(P+N−2)]からなるリングバッファを有する。バッファB[0],B[1],…B[(P+N−2)]には、周期カウント部41から得られる最近(P+N−1)個分のエッジ間隔T0,T-1,…T-(P+N-2)が保持される。ここで、Nは、予め定められた自然数であり、後述のステップC04における分母に設定される。ばらつき処理部42Aは、最新のエッジ間隔T0の入力に応答して、最新のエッジ間隔T0から遡って過去P個のエッジ間隔T0,T-1,…T-(P-1)の平均値を、上記(1),(2)のばらつきを除去した周期S0として得る。また、前回のエッジ間隔T-1から遡って過去P個のエッジ間隔T-1,T-2,…T-Pの平均値を、上記(1),(2)のばらつきを除去した周期S-1として得る。同様にして、ばらつき処理部42Aは、j回前のエッジ間隔T-(j-1)から遡って過去P個のエッジ間隔T-(j-1),T-j,…T-(P+j-2)の平均値を、上記(1),(2)のばらつきを除去した周期S-(j-1)を得る(下表2を参照)。ここで、jは、1,2,…Nである。また、周期S-(j-1)は、磁石21のある磁極対による磁界の極性変化をある検出器が検出したものを表すとすると、周期S-jは、その隣の磁極対による磁界の極性変化を隣の検出器が検出したものである。ばらつき処理部42Aはさらに、S0,S-1,…S-(N-1)の平均値を、ばらつき除去済の周期SAVE0として算出する。 In order to solve this problem, the variation processing unit 42A includes a ring buffer including buffers B [0], B [1],... B [(P + N−2)]. In the buffers B [0], B [1],... B [(P + N−2)], the latest (P + N−1) edge intervals T 0 , T −1 ,. -(P + N-2) is retained. Here, N is a predetermined natural number and is set as a denominator in step C04 described later. In response to the input of the latest edge interval T 0 , the variation processing unit 42A traces the past P edge intervals T 0 , T −1 ,... T − (P−1) from the latest edge interval T 0 . The average value is obtained as a period S 0 from which the variations (1) and (2) are removed. Furthermore, past P number of edge interval T -1 back from the previous edge interval T -1, T -2, ... The average value of T -P, (1), the period S removal of the dispersion of (2) Get as -1 . Similarly, the variation processing unit 42A traces back the previous P edge intervals T − (j−1) , T −j ,... T − (P + ) from the edge interval T − (j−1) j times before. The average value of j-2) is obtained as a period S- (j-1) from which the variations of the above (1) and (2) are removed ( see Table 2 below). Here, j is 1, 2,... N. Further, if the period S- (j-1) represents that the change in polarity of the magnetic field caused by the magnetic pole pair with the magnet 21 is detected by a certain detector, the period S -j represents the magnetic field generated by the adjacent magnetic pole pair. The change in polarity is detected by the adjacent detector. Further, the variation processing unit 42A calculates the average value of S 0 , S −1 ,... S − (N−1) as the cycle S AVE0 after variation removal.

例えば、P=3でN=2の場合、図2に示すように、エッジ間隔T0,T-1,T-2およびエッジ間隔T-1,T-2,T-3とから、周期S0および周期S-1を得ることができる。その後、周期S0,S-1の平均値を周期SAVE0(=(S0+S-1)/2)として算出される。ばらつき処理部42は、このように求めた平均値SAVE0を速度制御部43に渡す。 For example, in the case of P = 3 and N = 2, as shown in FIG. 2, from the edge intervals T 0 , T −1 , T −2 and the edge intervals T −1 , T −2 , T −3 , the period S 0 and period S −1 can be obtained. Thereafter, the average value of the periods S 0 and S −1 is calculated as the period S AVE0 (= (S 0 + S −1 ) / 2). The variation processing unit 42 passes the average value S AVE0 obtained in this way to the speed control unit 43.

なお、第二実施形態では、上表2を参照して、P=3,N=2の場合について説明したが、P,Nが他の値の場合については、上表2において対応する欄を参照されたい。   In the second embodiment, the case where P = 3 and N = 2 has been described with reference to the above table 2. However, when P and N are other values, the corresponding columns in the above table 2 are displayed. Please refer.

《第二実施形態の具体的な処理手順》
次に、図5を参照して、モータ制御部4の具体的な処理について、P=3,N=2の場合を例に採り上げて説明する。なお、基本的なモータ駆動処理については、図3Aを参照して上述した通りであるため、ここではその説明を省略する。
<< Specific Processing Procedure of Second Embodiment >>
Next, with reference to FIG. 5, the specific processing of the motor control unit 4 will be described by taking the case of P = 3 and N = 2 as an example. The basic motor driving process is the same as that described above with reference to FIG. 3A, and thus the description thereof is omitted here.

ばらつき処理部42Aは、周期カウント部41からのエッジ間隔T0が入力されるたびに、図3Aの処理に割り込みを掛けて、図5の処理を行う。図5において、ばらつき処理部42Aは、バッファB[C](Cは、バッファカウンタCの現在値)に、周期カウント部41から得られたエッジ間隔T0を格納する(ステップC01)。 Each time the edge interval T 0 is input from the period counting unit 41, the variation processing unit 42A interrupts the process of FIG. 3A and performs the process of FIG. In FIG. 5, the variation processing unit 42A stores the edge interval T 0 obtained from the cycle counting unit 41 in the buffer B [C] (C is the current value of the buffer counter C) (step C01).

次に、ばらつき処理部42は、F=0でC<3であるか否かを判断する(ステップC02)。   Next, the variation processing unit 42 determines whether F = 0 and C <3 (step C02).

Noと判断すると、ばらつき処理部42は、許可フラグFを1に設定し(ステップC03)、さらに、次式(2)の計算を行って平均値SAVE0を求める(ステップC04)。なお、このステップC04は、前述のステップB04と同様に、モータ2の回転開始後、バッファB[0]〜B[3]にエッジ間隔T0,T-1,T-2,T-3の値が格納されるまでは行われない。 If determined No, the variation processing unit 42 sets the permission flag F to 1 (step C03), and further calculates the following formula (2) to obtain the average value S AVE0 (step C04). In step C04, as in step B04 described above, after the rotation of the motor 2 is started, the edge intervals T 0 , T −1 , T −2 , T −3 are set in the buffers B [0] to B [3]. Not done until the value is stored.

逆に、ステップC02にてYesと判断した場合、ばらつき処理部42Aは、最新のエッジ間隔T0をそのまま、モータ駆動処理に用いる(ステップB05)。 Conversely, if it is determined Yes in step C02, the variation processing unit 42A, it is the latest edge interval T 0, used in the motor driving process (step B05).

ステップC04,C05の後に、ばらつき処理部42は、バッファカウンタCの値を(C+1)%4に変更して(ステップC06)、図5の処理を終了する。   After steps C04 and C05, the variation processing unit 42 changes the value of the buffer counter C to (C + 1)% 4 (step C06), and ends the process of FIG.

《第二実施形態の効果》
上記の通り、ばらつき処理部42Aは、合成パルス信号qから、パルス信号p1〜p3の複数の周期(周期S0,S-1等)を抽出して、平均値SAVE0を求める。ここで、抽出された複数の周期は、磁石21において互いに異なる磁極対による磁界の極性変化を表している。よって、これらの平均をとることで、(3)のばらつきが低減される。このような平均値SAVE0により、モータ2の回転速度の制御を行うため、モータ2の回転変動を抑制することが可能となる。
<< Effects of Second Embodiment >>
As described above, the variation processing unit 42A extracts a plurality of periods (periods S 0 , S −1, etc.) of the pulse signals p1 to p3 from the combined pulse signal q to obtain an average value S AVE0 . Here, the plurality of extracted periods represent changes in the polarity of the magnetic field caused by different magnetic pole pairs in the magnet 21. Therefore, by taking these averages, the variation in (3) is reduced. Since the rotation speed of the motor 2 is controlled by such an average value S AVE0 , it is possible to suppress the rotation fluctuation of the motor 2.

また、上記から明らかなように、本実施形態では、ばらつき処理部42Aは、同一パルス信号(例えばパルス信号p3等)から複数の周期を求めていない。むしろ、ばらつき処理部42Aは、複数のパルス信号(例えば、パルス信号S2,S3等)のそれぞれから、時間的に近接している周期(例えば、周期S0,S-1等)を求め、それらの平均値SAVE0を算出している。よって、ばらつき処理部42Aは、単一パルス信号から複数周期を求める場合と比較して、相対的に少ない個数の合成パルス信号qの周期を保持すればよくなる。その結果、必要数のエッジ間隔T0が早期に揃うため、モータ2の回転制御の性能低下を抑えることが可能となる。 Further, as is clear from the above, in the present embodiment, the variation processing unit 42A does not obtain a plurality of cycles from the same pulse signal (for example, the pulse signal p3). Rather, the variation processing unit 42A obtains a period (for example, period S 0 , S -1, etc.) that is close in time from each of a plurality of pulse signals (for example, pulse signals S2, S3, etc.). The average value S AVE0 is calculated. Therefore, the variation processing unit 42A only needs to hold a relatively small number of cycles of the synthesized pulse signal q as compared with the case of obtaining a plurality of cycles from a single pulse signal. As a result, since the necessary number of edge intervals T 0 are aligned at an early stage, it is possible to suppress a decrease in performance of the rotation control of the motor 2.

《第一変形例》
なお、第二実施形態では、平均値SAVE0は単純平均としたが、これに限らず、重みづけ平均としても構わない。より具体的には、ばらつき処理部42Aはさらに、a0×S0,a-1×S-1,…a-(N-1)×S-(N-1)の重みづけ平均値SAVE0を算出する。なお、最新の周期S0に重みを付けるため、係数a0,a-1,…,a-(N-1)は、a0>a-1>…>a-(N-1)となる。例えば、P=3でN=2の場合、係数a0,a-1を設定する必要がある。今、a0=2,a-1=1とすると、重みづけ平均値SAVE0は、次式(3)で表される。
<First modification>
In the second embodiment, the average value S AVE0 is a simple average, but is not limited thereto, and may be a weighted average. More specifically, the variation processing unit 42A further performs a weighted average value S AVE0 of a 0 × S 0 , a −1 × S −1 ,... A − (N−1) × S − (N−1). Is calculated. Since the weight the most recent period S 0, coefficients a 0, a -1, ..., a - (N-1) is, a 0> a -1> ... > a - a (N-1) . For example, when P = 3 and N = 2, it is necessary to set the coefficients a 0 and a −1 . Assuming that a 0 = 2 and a −1 = 1, the weighted average value S AVE0 is expressed by the following equation (3).

《第三実施形態》
次に、図6〜図8Bを参照して、本発明の第三実施形態に係るモータ制御装置について詳説する。
<< Third embodiment >>
Next, with reference to FIGS. 6-8B, the motor control apparatus which concerns on 3rd embodiment of this invention is explained in full detail.

図6において、モータ制御装置1Bは、図1のモータ制御装置1と比較すると、周期カウント部41およびばらつき処理部42に代えて、周期カウント部41Bおよびばらつき処理部42Bを備えている点で相違する。それ以外に、モータ制御装置1B,1の間に相違点は無い。それゆえ、図6において、図1に示す構成に相当するものには同一の参照符号を付け、それぞれの説明を省略する。なお、本実施形態では、説明を簡略化するため、P=3の場合について説明する。   In FIG. 6, the motor control device 1B is different from the motor control device 1 of FIG. 1 in that it includes a cycle count unit 41B and a variation processing unit 42B instead of the cycle count unit 41 and the variation processing unit 42. To do. Other than that, there is no difference between the motor control devices 1B and 1. Therefore, in FIG. 6, the same reference numerals are assigned to the components corresponding to the configuration shown in FIG. In the present embodiment, the case of P = 3 will be described in order to simplify the description.

周期カウント部41Bは、合成パルス信号qよりも十分に高周波数のクロックを用いて、合成パルス信号qのエッジ間隔T’0を順次カウントする。ここで、エッジ間隔T’0は、合成パルス信号qにおいて連続する二つのエッジの間隔であり、より具体的には、立ち上がりエッジから立ち下がりエッジまでの間隔、または、立ち下がりエッジから立ち上がりエッジまでの間隔である。周期カウント部41Bは、得られたエッジ間隔T’0をばらつき処理部42Bに順次渡す。 Period count section 41B, a composite pulse signal with a sufficiently high frequency clock than q, sequentially counts the edge intervals T '0 of the composite pulse signal q. Here, the edge interval T ′ 0 is the interval between two consecutive edges in the composite pulse signal q, and more specifically, the interval from the rising edge to the falling edge, or from the falling edge to the rising edge. Is the interval. The cycle counting unit 41B sequentially transfers the obtained edge interval T ′ 0 to the variation processing unit 42B.

次に、ばらつき処理部42Bのばらつき除去の概要を、図7を参照して説明する。ばらつき処理部42Bは、二系統のバッファ群Ba,Bbを有する。バッファ群Baは、バッファBa[0],Ba[1],Ba[2]から構成され、例えば、合成パルス信号qにおける立ち下がりエッジ間のエッジ間隔Taを最近三個分、つまり、エッジ間隔Ta0,Ta-1,…Ta-2を保持可能に構成される。また、バッファ群Bbは、バッファBb[0],Bb[1],…Bb[2]から構成され、例えば、合成パルス信号qにおける立ち上がりエッジ間のエッジ間隔Tbを最近P個分、つまり、エッジ間隔Tb0,Tb-1,…Tb-2を保持可能に構成される。ばらつき処理部42Bは、周期カウント部41から最新のエッジ間隔T’0を受け取り、それが奇数番目であれば、バッファ群Baの保持値を用いて、パルス信号p1〜p3の立ち下がりエッジ間の周期S0a、つまり、エッジ間隔T0a,T-1a,T-2aの加算値を算出する(図7を参照)。それに対し、受け取ったエッジ間隔T’0が偶数番目であれば、バッファ群Bbの保持値を用いて、パルス信号p1〜p3の立ち上がりエッジ間の周期S0b、つまり、エッジ間隔T0b,T-1b,T-2bの加算値を算出する(図7を参照)。その後、ばらつき処理部42Bは、ばらつき除去済の周期S0として、(S0a+S0b)/6を求める。 Next, an outline of variation removal by the variation processing unit 42B will be described with reference to FIG. The variation processing unit 42B has two buffer groups Ba and Bb. The buffer group Ba is composed of buffers Ba [0], Ba [1], Ba [2]. For example, the last three edge intervals Ta between falling edges in the synthesized pulse signal q, that is, the edge interval Ta. 0 , Ta −1 ,... Ta −2 can be held. The buffer group Bb is composed of buffers Bb [0], Bb [1],... Bb [2]. For example, the edge interval Tb between rising edges in the composite pulse signal q is the nearest P, that is, the edges. The intervals Tb 0 , Tb −1 ,... Tb −2 can be held. Variation processor 42B receives the latest edge interval T '0 from the cycle counting unit 41, if it is at an odd number, by using the values held in the buffer group Ba, between the falling edge of the pulse signal p1~p3 The added value of the period S 0a , that is, the edge intervals T 0a , T −1a , and T −2a is calculated (see FIG. 7). On the other hand, if the received edge interval T ′ 0 is an even number, the period S 0b between the rising edges of the pulse signals p1 to p3, that is, the edge intervals T 0b , T is used using the held value of the buffer group Bb. An added value of 1b and T −2b is calculated (see FIG. 7). After that, the variation processing unit 42B obtains (S 0a + S 0b ) / 6 as the cycle S 0 after variation removal.

《第三実施形態の具体的な処理手順》
次に、図8Aおよび図8Bを参照して、モータ制御部4の具体的な処理手順を説明する。
<< Specific Processing Procedure of Third Embodiment >>
Next, a specific processing procedure of the motor control unit 4 will be described with reference to FIGS. 8A and 8B.

まず、図8Aにおいて、ばらつき処理部42Bは、ステップD01〜D05を実行する。D01にて周期演算結果がリセットされ、D02では両系統のバッファBa[0]〜Ba[2],Bb[0]〜Bb[2]の保持値がクリアされ、D03では、内蔵の振り分けカウンタDが初期化される。D04では、許可フラグFがオフにされる。D05では、使用エッジを両エッジが設定されると共に割り込みが許可される。ステップD01〜D05により諸変数の設定が完了すると、速度制御部43がモータ2の回転を開始させる(ステップD06)。なお、D01〜D05の順番は適宜変更されても構わない。   First, in FIG. 8A, the variation processing unit 42B executes Steps D01 to D05. The period calculation result is reset at D01, the held values of the buffers Ba [0] to Ba [2] and Bb [0] to Bb [2] of both systems are cleared at D02, and the built-in distribution counter D is reset at D03. Is initialized. In D04, the permission flag F is turned off. At D05, both edges are set as used edges and interrupts are permitted. When the setting of various variables is completed in steps D01 to D05, the speed control unit 43 starts the rotation of the motor 2 (step D06). Note that the order of D01 to D05 may be changed as appropriate.

D05の実行後、ばらつき処理部42Bは、周期カウント部41Bからエッジ間隔T’0が入力されるたびに、図8Aの処理に割り込みを掛けて、図8Bの処理を行う。図8Bにおいて、ばらつき処理部42Bは、次式(4),(5)で表されるインデクサCa,Cbを計算する(ステップE01)。
Ca=((D+1)%6)/2 …(4)
Cb=(D%6)/2 …(5)
ここで、Dは、振り分けカウンタDの現在値である。カウンタDの値は、後述のステップE13にて、エッジ間隔T’0がばらつき処理部42Bに到着するたびに1だけインクリメントされる。また、演算子%は剰余の計算を示している。なお、式(4),(5)では除算の演算子/を用いているが、これらは整数演算であり、小数点以下は切り捨て処理されるものとする。
After executing D05, the variation processor 42B, each time from the period counting unit 41B edge interval T '0 is input, interrupt the processing of FIG. 8A, it performs the processing in FIG. 8B. In FIG. 8B, the variation processing unit 42B calculates the indexers Ca and Cb represented by the following expressions (4) and (5) (step E01).
Ca = ((D + 1)% 6) / 2 (4)
Cb = (D% 6) / 2 (5)
Here, D is the current value of the distribution counter D. The value of the counter D is incremented by 1 every time the edge interval T ′ 0 arrives at the variation processing unit 42B in step E13 described later. The operator% indicates the calculation of the remainder. Note that although the division operator / is used in the expressions (4) and (5), these are integer operations, and the part after the decimal point is rounded down.

ここで、下表3は、振り分けカウンタの値Dに対するインデクサCa,Cbの計算結果を表している。   Here, Table 3 below shows the calculation results of the indexers Ca and Cb with respect to the value D of the distribution counter.

上表3からも分かるように、インデクサCa,Cbの値は、合成パルス信号qの一周期(つまり、T’0×2)がカウントされるたびに、1ずつインクリメントされると共に、0→1→2→0→…と循環する点で共通する。しかし、インデクサCaの値は、インデクサCbの値に対し半周期分だけ遅れて1ずつインクリメントされる。 As can be seen from Table 3 above, the values of the indexers Ca and Cb are incremented by 1 each time one period of the composite pulse signal q (that is, T ′ 0 × 2) is counted, and 0 → 1 It is common in that it circulates → 2 → 0 →…. However, the value of the indexer Ca is incremented by 1 with a delay of a half cycle with respect to the value of the indexer Cb.

次に、ばらつき処理部42は、振り分けカウンタDの現在値が偶数か否かを判断する(ステップE02)。   Next, the variation processing unit 42 determines whether or not the current value of the distribution counter D is an even number (step E02).

Yesと判断した場合、ばらつき処理部42は、バッファ群Bbを用いて、ばらつき除去処理の前半を実行する(ステップE03)。より具体的には、次式(6)より、周期S0bを求める。
0b=Bb[0]+Bb[1]+Bb[2] …(6)
When it is determined Yes, the variation processing unit 42 executes the first half of the variation removal processing using the buffer group Bb (step E03). More specifically, the period S 0b is obtained from the following equation (6).
S 0b = Bb [0] + Bb [1] + Bb [2] (6)

次に、ばらつき処理部42Bは、バッファBa[Ca](Caは、インデクサCaの現在値)の保持値に、最新のエッジ間隔T’0の値を加算する。ばらつき処理部42Bはさらに、バッファBb[Cb]に、最新のエッジ間隔T’0の値を上書きする(ステップE04)。 Next, the variation processing unit 42B adds the latest value of the edge interval T ′ 0 to the held value of the buffer Ba [Ca] (Ca is the current value of the indexer Ca). Variation processor 42B further buffer Bb [Cb], overwriting the value of the latest edge interval T '0 (step E04).

次に、ばらつき処理部42Bは、ばらつき除去処理の後半を実行する(ステップE05)。より具体的には、前式(6)で求めたS0bに、バッファBa[0]〜Ba[2]の保持値が加算される(次式(7)を参照)。
0a+S0b=S0b+Ba[0]+Ba[1]+Ba[2] …(7)
Next, the variation processing unit 42B executes the second half of the variation removal processing (step E05). More specifically, the held values of the buffers Ba [0] to Ba [2] are added to S 0b obtained by the previous equation (6) (see the following equation (7)).
S0a + S0b = S0b + Ba [0] + Ba [1] + Ba [2] (7)

ここで、本実施形態では、ばらつき除去処理は前半(ステップE03)と後半(ステップE05)とに分けられており、これらの間のステップE04にて、所定のバッファBa[Ca],Bb[Cb]が更新されている。このように、ばらつき除去処理を前半と後半に分けているのは、もしステップE04がステップE03,E05よりも先に実行されると、バッファBb[Cb]が最新のエッジ間隔T’0で上書きされてしまい、必要な値が消去されるためである。これを防止するために、ステップE03がステップE04よりも先に実行され、バッファBb[Cb]の上書きよりも先に周期S0bが求められ退避されている。それに対し、ステップE05は、最新のエッジ間隔T’0をバッファBa[Ca]に加算する必要があるため、ステップE04よりも後に実行される。以下、D=6の場合における具体的な処理について説明する。 Here, in this embodiment, the variation removal process is divided into the first half (step E03) and the second half (step E05), and at step E04 between these, predetermined buffers Ba [Ca], Bb [Cb ] Has been updated. As described above, the variation removal process is divided into the first half and the second half. If step E04 is executed before steps E03 and E05, the buffer Bb [Cb] is overwritten with the latest edge interval T ′ 0 . This is because a necessary value is deleted. In order to prevent this, step E03 is executed prior to step E04, and the period S 0b is obtained and saved before the buffer Bb [Cb] is overwritten. In contrast, the step E05, it is necessary to add the latest edge interval T '0 to the buffer Ba [Ca], is executed after the step E04. Hereinafter, specific processing in the case of D = 6 will be described.

Dが6の場合、S0a+S0bを求めるには、表3中色つき部分のタイミングで最新のエッジ間隔T’0として入力されたものが加算される必要がある。ここで、例えば、バッファBb[0]には、D=0,1のタイミングで得られた二個のエッジ間隔T’0の加算値が保持されている。他のバッファBb[1]にはDが2,3の時に得られた二個のエッジ間隔T’0の加算値が、他のバッファBb[2]にはDが4,5の時に得られた二個のエッジ間隔T’0の加算値が保持されている。このように、バッファ群Bbには、Dが0〜5の間に得られたエッジ間隔T’0の合計値が保持され、同様に、バッファ群Baには、Dが1〜6の時に得られたエッジ間隔T’0の合計値が保持されている。ステップE03〜E05では、このようなバッファ群Ba,Bbの保持値の合計値が算出される。 When D is 6, to obtain S 0a + S 0b , it is necessary to add what is input as the latest edge interval T ′ 0 at the timing of the colored portion in Table 3. Here, for example, the buffer Bb [0] holds the added value of the two edge intervals T ′ 0 obtained at the timing of D = 0, 1. The other buffer Bb [1] has an addition value of two edge intervals T ′ 0 obtained when D is 2 or 3, and the other buffer Bb [2] has an addition value when D is 4 or 5. The added value of the two edge intervals T ′ 0 is held. In this way, the buffer group Bb holds the total value of the edge intervals T ′ 0 obtained when D is 0 to 5, and similarly, the buffer group Ba is obtained when D is 1 to 6. The total value of the obtained edge intervals T ′ 0 is held. In steps E03 to E05, the total value of the holding values of the buffer groups Ba and Bb is calculated.

ここで、Dが6の場合、最新のエッジ間隔T’0をバッファBb[0]に代入してしまうと、Dが0,1の場合に書き込まれたバッファBb[0]の保持値が消失してしまう。よって、Dが6の場合には、バッファBb[0]にエッジ間隔T’0を代入する前に加算値S0bを算出して、Dが0,1の時点で書き込まれたバッファBb[0]の保持値を退避させておく必要がある。なお、Dが0の場合に退避すべきはバッファBb[0]の保持値であるが、バッファBb[1],Bb[2]の保持値を退避させておけば、Dが8,10の場合において、ばらつき除去処理を前半と後半に分けなくて済む。 Here, when D is 6, if the latest edge interval T ′ 0 is substituted into the buffer Bb [0], the stored value of the buffer Bb [0] written when D is 0 or 1 is lost. Resulting in. Therefore, when D is 6, the added value S 0b is calculated before substituting the edge interval T′0 into the buffer Bb [0], and the buffer Bb [0] written when D is 0 or 1 is calculated. ] Must be saved. When D is 0, what should be saved is the holding value of the buffer Bb [0], but if the holding values of the buffers Bb [1] and Bb [2] are saved, D is 8 or 10 In some cases, the variation removal process need not be divided into the first half and the second half.

それに対し、Ba[0]に関しては、Dが6の時点では、Dが5の場合に上書きされた半周期分の値しか保持していないため、最新のエッジ間隔T’0を加算しなければ、合成パルス信号qの一周期分の値にはならない。よって、ステップE04で最新のエッジ間隔T’0を加算してから、ばらつき除去処理の後半をステップE05で実行する。 On the other hand, with respect to Ba [0], when D is 6, only the value for the half cycle overwritten when D is 5 is held, so the latest edge interval T ′ 0 must be added. Therefore, it does not become a value for one cycle of the synthesized pulse signal q. Therefore, after adding the latest edge interval T ′ 0 in step E04, the second half of the variation removal processing is executed in step E05.

また、ステップE02でNoの場合には、ばらつき処理部42は、バッファ群Baを用いて、ばらつき除去処理の前半、つまり、次式(8)より、周期S0aを求める(ステップE06)。
0a=Ba[0]+Ba[1]+Ba[2] …(8)
In the case of No in step E02, the variation processing unit 42 uses the buffer group Ba to obtain the period S 0a from the first half of the variation removal processing, that is, the following equation (8) (step E06).
S 0a = Ba [0] + Ba [1] + Ba [2] (8)

次に、ばらつき処理部42Bは、バッファBb[Cb](Cbは、インデクサCbの現在値)の保持値に、最新のエッジ間隔T’0の値を加算し、さらに、バッファBa[Ca]に最新のエッジ間隔T’0の値を上書きする(ステップE07)。 Next, the variation processing unit 42B adds the latest value of the edge interval T ′ 0 to the held value of the buffer Bb [Cb] (Cb is the current value of the indexer Cb), and further adds the value to the buffer Ba [Ca]. The value of the latest edge interval T ′ 0 is overwritten (step E07).

次に、ばらつき処理部42Bは、ばらつき除去処理の後半として、前式(8)で求めたS0aに、バッファBb[0]〜Bb[2]の保持値を加算する(ステップE08,次式(9)を参照)。
0a+S0b=S0a+Bb[0]+Bb[1]+Bb[2] …(9)
Next, the variation processor 42B as the second half of the variation removing process, the S 0a obtained in Equation (8), adds the value held in the buffer Bb [0] ~Bb [2] ( step E08, the following equation (See (9)).
S 0a + S 0b = S 0a + Bb [0] + Bb [1] + Bb [2] (9)

次に、ばらつき処理部42Bは、F=0(つまり、許可フラグFがオフ)でD<6であるか否かを判断する(ステップE09)。   Next, the variation processing unit 42B determines whether F = 0 (that is, the permission flag F is off) and D <6 (step E09).

Noと判断すると、ばらつき処理部42Bは、許可フラグFを1(つまり、オン)に設定し(ステップE10)、さらに、ばらつき除去、つまり、(S0a+S0b)/6を行って、ばらつき除去済の周期S0を求める(ステップE11)。 If the determination is No, the variation processing unit 42B sets the permission flag F to 1 (that is, ON) (step E10), and further performs variation removal, that is, performs (S 0a + S 0b ) / 6 to eliminate variation. A completed cycle S 0 is obtained (step E11).

逆に、ステップE09にてYesと判断した場合、ばらつき処理部42Bは、最新のエッジ間隔T’0×2により周期S0を求める(ステップE12)。 On the other hand, when it is determined Yes in step E09, the variation processing unit 42B obtains the cycle S 0 using the latest edge interval T ′ 0 × 2 (step E12).

ステップE11,E12の後に、ばらつき処理部42は、振り分けカウンタDを1だけインクリメントして(ステップE13)、図8Bの処理を終了する。   After steps E11 and E12, the variation processing unit 42 increments the distribution counter D by 1 (step E13), and ends the process of FIG. 8B.

ここで、再度、図8Aを参照する。図8Aにおいて、ステップD7以降の処理は、図3AのステップA07の処理と同様であるため、それらの説明を省略する。   Here, referring to FIG. 8A again. In FIG. 8A, the processing after step D7 is the same as the processing at step A07 in FIG.

《第三実施形態の効果》
上記の通り、本実施形態によれば、図7に例示するように、周期S0aは、パルス信号p2の一周期を表し、周期S0bは、パルス信号p3の一周期を表しているため、これら周期S0a,S0bからは、第一実施形態で説明した通り、上記(1),(2)のばらつきは除去されている。また、周期S0は、パルス信号p1〜p3の複数の周期(周期S0,S-1等)から算出される。ここで、抽出された複数の周期は、磁石21において互いに異なる磁極対による磁界の極性変化を表している。よって、これらの平均をとることで、(3)のばらつきが低減される。
<< Effects of Third Embodiment >>
As described above, according to the present embodiment, as illustrated in FIG. 7, the period S 0a represents one period of the pulse signal p2, and the period S 0b represents one period of the pulse signal p3. From the periods S 0a and S 0b , the variations of the above (1) and (2) are removed as described in the first embodiment. The period S 0 is calculated from a plurality of periods (periods S 0 , S −1, etc.) of the pulse signals p1 to p3. Here, the plurality of extracted periods represent changes in the polarity of the magnetic field caused by different magnetic pole pairs in the magnet 21. Therefore, by taking these averages, the variation in (3) is reduced.

また、本実施形態では、周期S0は、図7に示すように、七回分のエッジ間隔T’0が得られれば算出可能となるため、第二実施形態と比較すると、モータ2の応答性またはサーボ特性を改善することが可能となる。なお、第二実施形態では、合成パルス信号qのエッジ間隔T0〜エッジ間隔T-3、つまり、八回分のエッジ間隔T’0が必要となる。 In the present embodiment, as shown in FIG. 7, the period S 0 can be calculated if seven edge intervals T ′ 0 are obtained. Therefore, the response of the motor 2 is compared with the second embodiment. Alternatively, servo characteristics can be improved. In the second embodiment, the edge interval T 0 to the edge interval T −3 of the composite pulse signal q, that is, the edge interval T ′ 0 for eight times is required.

《第四実施形態》
次に、図9〜図10Bを参照して、本発明の第四実施形態に係るモータ制御装置について詳説する。
<< 4th embodiment >>
Next, with reference to FIGS. 9-10B, the motor control apparatus which concerns on 4th embodiment of this invention is explained in full detail.

図9において、モータ制御装置1Cは、図1のモータ制御装置1と比較すると、周期カウント部41およびばらつき処理部42に代えて、周期カウント部41Cおよびばらつき処理部42Cを備えている点で相違する。それ以外に、モータ制御装置1C,1の間に相違点は無い。それゆえ、図9において、図1に示す構成に相当するものには同一の参照符号を付け、それぞれの説明を省略する。なお、本実施形態でも、P=3の場合について説明する。   9, the motor control device 1C is different from the motor control device 1 of FIG. 1 in that it includes a cycle count unit 41C and a variation processing unit 42C instead of the cycle count unit 41 and the variation processing unit 42. To do. Other than that, there is no difference between the motor control devices 1C, 1. Therefore, in FIG. 9, the same reference numerals are assigned to the components corresponding to the configuration shown in FIG. 1, and the description thereof is omitted. In the present embodiment, the case where P = 3 will be described.

周期カウント部41Cは、周期カウント部41Bと同様に、合成パルス信号qのエッジ間隔T’0を順次カウントし、ばらつき処理部42Cに渡す。 Period count unit 41C, like the cycle counting unit 41B, the edge interval T '0 of a composite pulse signal q sequentially counts, and passes to the variation processor 42C.

次に、ばらつき処理部42Cによるばらつき除去処理の概要について説明する。ばらつき処理部42Cは、周期カウント部41から得られる最近七個分のエッジ間隔T’0,T’-1,…T’-6を保持可能に構成される。ばらつき処理部42Cは、周期カウント部41Cから最新のエッジ間隔T’0が入力されるたびに、最新のエッジ間隔T’0から遡って過去七個分のエッジ間隔T’0,T’-1,…T’-6を、次式(10)に代入して、ばらつき除去済の周期S0を求める。 Next, an outline of variation removal processing by the variation processing unit 42C will be described. The variation processing unit 42 </ b> C is configured to be able to hold the latest seven edge intervals T ′ 0 , T ′ −1 ,... T ′ −6 obtained from the cycle counting unit 41. Each time the latest edge interval T ′ 0 is input from the period counting unit 41C, the variation processing unit 42C traces back from the latest edge interval T ′ 0 to the last seven edge intervals T ′ 0 , T ′ −1. ,..., T ′ −6 are substituted into the following equation (10) to obtain the variation-removed cycle S 0 .

0={T0+2×(T-2+T-3+T-4+T-5+T-6)+T-1}/6 …(10) S 0 = {T 0 + 2 × (T −2 + T −3 + T −4 + T −5 + T −6 ) + T −1 } / 6 (10)

《第四実施形態の具体的な処理手順》
次に、図10Aおよび図10Bを参照して、ばらつき処理部42Cの具体的な処理手順を説明する。
<< Specific Processing Procedure of Fourth Embodiment >>
Next, a specific processing procedure of the variation processing unit 42C will be described with reference to FIGS. 10A and 10B.

まず、図10Aにおいて、ばらつき処理部42Cは、ステップF01〜F05を実行する。F01にて周期演算結果がリセットされ、F02では、バッファB[0]〜B[6]の保持値がクリアされ、F03では、バッファカウンタCが初期化される。F04では、許可フラグFがオフにされる。F05では、使用エッジを両エッジが設定されると共に割り込みが許可される。ステップF01〜F05により諸変数の設定が完了すると、速度制御部43がモータ2の回転を開始させる(ステップF06)。なお、F01〜F05の順番は適宜変更されても構わない。   First, in FIG. 10A, the variation processing unit 42C executes Steps F01 to F05. In F01, the cycle calculation result is reset, in F02, the held values of the buffers B [0] to B [6] are cleared, and in F03, the buffer counter C is initialized. In F04, the permission flag F is turned off. In F05, both edges are set as used edges and interrupts are permitted. When the setting of various variables is completed in steps F01 to F05, the speed control unit 43 starts the rotation of the motor 2 (step F06). Note that the order of F01 to F05 may be changed as appropriate.

F05の実行後、ばらつき処理部42Cは、周期カウント部41Cからエッジ間隔T’0が入力されるたびに、図10Aの処理に割り込みを掛けて、図10Bの処理を行う。図10Bにおいて、ばらつき処理部42Cは、バッファB[C](Cは、バッファカウンタCの現在値)に、周期カウント部41Cから得られた最新のエッジ間隔T’0を格納する(ステップG01)。 After execution of the F05, the variation processor 42C, each time from the period counting unit 41C edge interval T '0 is input, interrupt the processing of FIG. 10A, it performs the process of FIG 10B. In FIG. 10B, the variation processor 42C, the buffer B [C] (C is the current value of the buffer counter C) stores the latest edge interval T '0 obtained from the cycle counting unit 41C (Step G01) .

次に、ばらつき処理部42Cは、F=0(つまり、許可フラグFがオフ)でC<6であるか否かを判断する(ステップG02)。   Next, the variation processing unit 42C determines whether F = 0 (that is, the permission flag F is off) and C <6 (step G02).

Noと判断すると、ばらつき処理部42は、許可フラグFを1(つまり、オン)に設定し(ステップG03)、さらに、上式(10)と同結果が得られる次式(11)を計算して、ばらつき除去済の周期S0を求める(ステップG04)。 If the determination is No, the variation processing unit 42 sets the permission flag F to 1 (that is, ON) (step G03), and further calculates the following equation (11) that provides the same result as the above equation (10). Te, obtains the period S 0 of already variations removal (step G04).

逆に、ステップG02にてYesと判断した場合、ばらつき処理部42Cは、最新のエッジ間隔T’0×2を計算して周期S0を求める(ステップG05)。 Conversely, when it is determined Yes in step G02, the variation processing unit 42C calculates the latest edge interval T ′ 0 × 2 and obtains the period S 0 (step G05).

ステップG04,G05の後に、ばらつき処理部42Cは、バッファカウンタCの値を(C+1)%7に変更して(ステップG06)、図10Bの処理を終了する。   After steps G04 and G05, the variation processing unit 42C changes the value of the buffer counter C to (C + 1)% 7 (step G06), and ends the process of FIG. 10B.

《第四実施形態の効果》
上記の通り、本実施形態によれば、より簡単な処理により、第三実施形態と同様の効果が得られる。
<< Effects of Fourth Embodiment >>
As described above, according to the present embodiment, the same effects as those of the third embodiment can be obtained by simpler processing.

《応用例》
次に、図11および図12を参照して、モータ制御装置1Aを応用した画像形成装置6について詳説する。
《Application example》
Next, the image forming apparatus 6 to which the motor control device 1A is applied will be described in detail with reference to FIGS.

まず、図中または以下の説明において、参照符号の後に記載されたアルファベット小文字のa、b、c、dは、イエロー(Y)、マゼンタ(M)、シアン(C)、ブラック(Bk)を意味する添え字とする。例えば、感光体ドラム138aは、イエロー用の感光体ドラム138を意味する。   First, in the figure or in the following description, the lowercase letters a, b, c, and d described after the reference numerals mean yellow (Y), magenta (M), cyan (C), and black (Bk). This is a subscript. For example, the photosensitive drum 138a means a yellow photosensitive drum 138.

《画像形成装置の構成・動作》
図11において、画像形成装置6は、例えば、複写機、プリンタまたはファクシミリ、もしくは、これらの機能を備えた複合機であって、例えば電子写真方式およびタンデム方式により、フルカラー画像をシートSh(例えば、用紙またはOHP用フィルム)に印刷する。このような画像形成装置6には、モータ制御装置1Aに加え、大略的に、供給部7と、レジストローラ部8と、画像形成部9と、定着器10と、排出ローラ部11と、排出トレイ12と、が備わっている。
<< Configuration and operation of image forming apparatus >>
In FIG. 11, an image forming apparatus 6 is, for example, a copying machine, a printer, a facsimile machine, or a multifunction machine having these functions. For example, a full-color image is converted into a sheet Sh (for example, an electrophotographic system and a tandem system). Paper or OHP film). In such an image forming apparatus 6, in addition to the motor control device 1 </ b> A, roughly, a supply unit 7, a registration roller unit 8, an image forming unit 9, a fixing device 10, a discharge roller unit 11, and a discharge unit. And a tray 12.

供給部7は、大略的に、供給トレイと、供給ローラとを含む。供給トレイは、未印刷のシートShが積載可能に構成される。供給ローラは、モータ制御装置1Aによる制御下で回転し、これによって、供給トレイからシートShを一枚ずつピックアップして、図1中破線で示される搬送経路FPに送り出す。このシートShは、搬送経路FP上を、レジストローラ部8に向かって搬送される。ここで、モータ制御装置1Aの詳細な構成については、図4に示す通りである。それゆえ、以下の説明では、図4を参照する場合がある。   The supply unit 7 generally includes a supply tray and a supply roller. The supply tray is configured so that unprinted sheets Sh can be stacked. The supply roller rotates under the control of the motor control device 1A, thereby picking up sheets Sh from the supply tray one by one and sending them out to the conveyance path FP indicated by the broken line in FIG. This sheet Sh is conveyed toward the registration roller unit 8 on the conveyance path FP. Here, the detailed configuration of the motor control device 1A is as shown in FIG. Therefore, in the following description, FIG. 4 may be referred to.

レジストローラ部8は、例えば二個一対のローラを含む。このローラ対は互いに当接してレジストニップを形成しており、回転可能に構成されている。このローラ対が停止中に、供給部7からのシートShはレジストニップに突き当たり一旦停止する。その後、ローラ対は、二次転写のために回転を開始して、シートShを二次転写領域(詳細は後述)に送り出す。   The registration roller unit 8 includes, for example, a pair of two rollers. The roller pairs are in contact with each other to form a registration nip, and are configured to be rotatable. While the roller pair is stopped, the sheet Sh from the supply unit 7 hits the registration nip and stops temporarily. Thereafter, the roller pair starts to rotate for secondary transfer, and sends the sheet Sh to the secondary transfer area (details will be described later).

画像形成部9は、大略的に、作像ユニット131a〜131dと、露光装置(プリントヘッドユニットという場合もある)132と、中間転写ベルト133と、駆動ローラ134と、従動ローラ135と、一次転写ローラ136a〜136dと、二次転写ローラ137と、を含む。   The image forming unit 9 generally includes image forming units 131a to 131d, an exposure device (sometimes referred to as a print head unit) 132, an intermediate transfer belt 133, a driving roller 134, a driven roller 135, and a primary transfer. Rollers 136a to 136d and a secondary transfer roller 137 are included.

作像ユニット131a〜131dは、画像形成装置6のフレーム(図示せず)に左から右へと直線的に並ぶように配置される。作像ユニット131aは、対応色の感光体ドラム138aを備える。感光体ドラム138aの周囲には、その回転方向(つまり、副走査方向)の上流側から下流側に向かって、少なくとも、帯電器139aと、現像器140aと、がこの順番で設けられている。同様に、作像ユニット131b〜131dも、少なくとも、感光体ドラム138b〜138dと、帯電器139b〜139dと、現像器140b〜140dと、を備えている。   The image forming units 131a to 131d are arranged on a frame (not shown) of the image forming apparatus 6 so as to be linearly arranged from left to right. The image forming unit 131a includes a photosensitive drum 138a of a corresponding color. Around the photosensitive drum 138a, at least a charger 139a and a developing device 140a are provided in this order from the upstream side to the downstream side in the rotation direction (that is, the sub-scanning direction). Similarly, the image forming units 131b to 131d also include at least photosensitive drums 138b to 138d, chargers 139b to 139d, and developing devices 140b to 140d.

画像形成部9において、帯電器139a〜139dは、典型的には、コロナ放電を利用した帯電器(コロトロンまたはスコロトロン)、もしくは近接放電を利用した帯電器(帯電ローラまたは帯電ブラシ)である。これら帯電器139a〜139dは、回転する感光体ドラム138a〜138dの周面を一様に帯電させる(帯電プロセス)。また、露光装置132は、典型的には、所謂レーザ走査方式またはLEDアレイ方式を用いることが可能である。露光装置132は、後述の制御回路8から、各色の画像データを受信すると、色毎の画像データで変調された光ビームBa〜Bdを生成する。そして、露光装置132は、帯電器139a〜139dにより帯電させられた感光体ドラム138a〜138dの周面に、対応色の光ビームを主走査方向に一ライン毎に順次走査する(露光プロセス)。以上の帯電・露光プロセスによって、感光体ドラム138a〜138dの周面には、対応色の静電潜像が形成される。   In the image forming unit 9, the chargers 139a to 139d are typically chargers using corona discharge (corotron or scorotron), or chargers using proximity discharge (charging roller or charging brush). These chargers 139a to 139d uniformly charge the peripheral surfaces of the rotating photosensitive drums 138a to 138d (charging process). The exposure device 132 can typically use a so-called laser scanning method or an LED array method. When the exposure device 132 receives image data of each color from the control circuit 8 described later, the exposure device 132 generates light beams Ba to Bd modulated with the image data for each color. The exposure device 132 sequentially scans the peripheral surfaces of the photosensitive drums 138a to 138d charged by the chargers 139a to 139d for each line in the main scanning direction for each line (exposure process). By the above charging / exposure process, electrostatic latent images of corresponding colors are formed on the peripheral surfaces of the photosensitive drums 138a to 138d.

画像形成部9ではさらに、感光体ドラム138a〜138dに形成された静電潜像に対し、現像器140a〜140dが対応色のトナーを供給する(現像プロセス)。この現像プロセスにより、Y,M,C,Bk色のトナー像が感光体ドラム138a〜138dの周面上に形成される。ここで、以下の説明では、帯電プロセスから現像プロセスに至るまでを、画像形成プロセスという場合がある   In the image forming unit 9, the developing devices 140a to 140d supply toners of corresponding colors to the electrostatic latent images formed on the photosensitive drums 138a to 138d (development process). By this development process, Y, M, C, and Bk toner images are formed on the peripheral surfaces of the photosensitive drums 138a to 138d. Here, in the following description, the process from the charging process to the development process may be referred to as an image forming process.

中間転写ベルト133は、自身の外周面が感光体ドラム138a〜138dの上端部分と接するように、駆動ローラ134と従動ローラ135との間に張り渡された無端状ベルトであって、矢印A1で示す方向に回転するよう構成されている。   The intermediate transfer belt 133 is an endless belt stretched between the driving roller 134 and the driven roller 135 so that the outer peripheral surface of the intermediate transfer belt 133 is in contact with the upper end portions of the photosensitive drums 138a to 138d. It is configured to rotate in the direction shown.

一次転写ローラ136a〜136dは、中間転写ベルト133の外周面を押圧して、中間転写ベルト133の内周面を感光体ドラム138a〜138dに一定量押し込むように配置される。以下、中間転写ベルト133と感光体ドラム138a〜138dとが接触する部分を、一次転写領域と称する。また、各一次転写ローラ136a〜136dには、トナーとは逆極性の一次転写電圧が印加される。これによって、感光体ドラム138a〜138d上のトナー像が中間転写ベルト133上に転写される。このプロセスを以下一次転写プロセスという。ここで、中間転写ベルト133や感光体ドラム138a〜138dの回転速度および配置等を適切に調整することで、各色のトナー像は中間転写ベルト133の外周面上の同一領域に順次転写され、これによって、フルカラーの合成トナー像が中間転写ベルト133上に形成される。このような合成トナー像は、中間転写ベルト133の回転により、中間転写ベルト133に担持されたまま、後述の二次転写領域まで搬送される。   The primary transfer rollers 136a to 136d are arranged so as to press the outer peripheral surface of the intermediate transfer belt 133 and push the inner peripheral surface of the intermediate transfer belt 133 into the photosensitive drums 138a to 138d by a certain amount. Hereinafter, a portion where the intermediate transfer belt 133 and the photosensitive drums 138a to 138d are in contact is referred to as a primary transfer region. A primary transfer voltage having a polarity opposite to that of the toner is applied to each of the primary transfer rollers 136a to 136d. As a result, the toner images on the photosensitive drums 138a to 138d are transferred onto the intermediate transfer belt 133. This process is hereinafter referred to as a primary transfer process. Here, by appropriately adjusting the rotational speed and arrangement of the intermediate transfer belt 133 and the photosensitive drums 138a to 138d, the toner images of the respective colors are sequentially transferred to the same area on the outer peripheral surface of the intermediate transfer belt 133. As a result, a full-color composite toner image is formed on the intermediate transfer belt 133. Such a composite toner image is conveyed to a secondary transfer region described later while being held on the intermediate transfer belt 133 by the rotation of the intermediate transfer belt 133.

二次転写ローラ137は、駆動ローラ134等により張架支持される中間転写ベルト133を挟んで横方向から駆動ローラ134と対向するよう配置されると共に、搬送経路FP上で中間転写ベルト133に押し込まれるように配置される。これによって、中間転写ベルト133と二次転写ローラ137とは二次転写ニップ(換言すると、二次転写領域)を形成する。この二次転写領域には、レジストローラ部8からシートShが送り込まれる。また、この二次転写ローラ137には、二次転写電圧が印加される。これによって、中間転写ベルト133上の合成トナー像は、二次転写領域に送り込まれたシートSh上に転写される。このプロセスを、以下、二次転写プロセスという。シートShは、二次転写ニップから定着器10に向けて送り出される。   The secondary transfer roller 137 is disposed so as to face the drive roller 134 from the lateral direction with the intermediate transfer belt 133 stretched and supported by the drive roller 134 and the like, and is pushed into the intermediate transfer belt 133 on the transport path FP. Arranged to be. As a result, the intermediate transfer belt 133 and the secondary transfer roller 137 form a secondary transfer nip (in other words, a secondary transfer region). The sheet Sh is fed into the secondary transfer area from the registration roller unit 8. A secondary transfer voltage is applied to the secondary transfer roller 137. As a result, the composite toner image on the intermediate transfer belt 133 is transferred onto the sheet Sh sent to the secondary transfer area. This process is hereinafter referred to as a secondary transfer process. The sheet Sh is sent out from the secondary transfer nip toward the fixing device 10.

定着器10は、典型的には、互いに当接して定着ニップを形成する二個の回転体を含んでおり、定着ニップに送り込まれたシートShを、一方の回転体で加熱すると共に他方の回転体で加圧する。かかる定着プロセスにより、シートSh上の合成トナー像が定着させられる。定着器10は、このシートShは、印刷物Shとして、定着器10に対して搬送経路FPの下流側に設けられた排出ローラ部11に向けて送り出される。   The fixing device 10 typically includes two rotating bodies that are in contact with each other to form a fixing nip. The sheet Sh fed to the fixing nip is heated by one rotating body and rotated by the other. Pressurize with your body. By this fixing process, the synthetic toner image on the sheet Sh is fixed. The fixing device 10 sends the sheet Sh as a printed matter Sh toward the discharge roller unit 11 provided on the downstream side of the transport path FP with respect to the fixing device 10.

排出ローラ部11は、モータ制御装置1Aの制御下で回転する。排出ローラ部11には、定着器10により送り出された印刷物Shが導入される。排出ローラ部11は、導入された印刷物Shを排出トレイ12に送り出す。   The discharge roller unit 11 rotates under the control of the motor control device 1A. Printed matter Sh sent out by the fixing device 10 is introduced into the discharge roller portion 11. The discharge roller unit 11 sends the introduced printed material Sh to the discharge tray 12.

《画像形成装置の詳細な動作》
次に、図12を参照して、図11に示す画像形成装置6の具体的な処理のフローについて説明する。モータ制御部4は、印刷ジョブを受信すると、到着した印刷ジョブに含まれるシートShの種別を取得する(ステップH01)。本実施形態では、種別として、薄紙、普通紙および厚紙の三種類が定義されているとする。
<< Detailed Operation of Image Forming Apparatus >>
Next, a specific processing flow of the image forming apparatus 6 shown in FIG. 11 will be described with reference to FIG. When receiving the print job, the motor control unit 4 acquires the type of the sheet Sh included in the arrived print job (step H01). In the present embodiment, it is assumed that three types of thin paper, plain paper, and thick paper are defined as types.

次に、モータ制御部4は、取得した種別が薄紙か否かを判断し(ステップH02)、Yesであれば、図5のステップC04におけるNを最も大きな値Nmax(例えば、4)に設定する(ステップH03)。その後、モータ制御部4は、図3Aの処理を実行する。図3Aの実行中、モータ制御部4は、エッジ間隔T0が入力されるたびに、図5の割り込み処理を実行する(ステップH04)。 Next, the motor control unit 4 determines whether or not the acquired type is thin paper (step H02). If Yes, N in step C04 in FIG. 5 is set to the largest value N max (for example, 4). (Step H03). Thereafter, the motor control unit 4 executes the process of FIG. 3A. During execution of FIG. 3A, the motor control unit 4 executes the interrupt process of FIG. 5 every time the edge interval T 0 is input (step H04).

それに対し、ステップH02でNoと判断すると、モータ制御部4は、取得した種別が普通紙か否かを判断し(ステップH05)、Yesであれば、図5のステップC04におけるNを中間の値Nmid(例えば、3)に設定する(ステップH06)。その後、モータ制御部4は、図3Aの処理を実行し、エッジ間隔T0の入力に応答して、図5の割り込み処理を実行する(ステップH04)。 On the other hand, if it is determined No in step H02, the motor control unit 4 determines whether the acquired type is plain paper (step H05). If Yes, N in step C04 in FIG. 5 is an intermediate value. N mid (for example, 3) is set (step H06). Thereafter, the motor control unit 4 executes the process of FIG. 3A, and executes the interrupt process of FIG. 5 in response to the input of the edge interval T 0 (step H04).

それに対し、ステップH05でNoと判断すると、モータ制御部4は、取得した種別が厚紙とみなして、図5のステップC04におけるNを最小の値Nmin(例えば、2)に設定する(ステップH07)。その後、モータ制御部4は、図3Aの処理を実行し、エッジ間隔T0の入力に応答して、図5の割り込み処理を実行する(ステップH04)。 On the other hand, if NO is determined in step H05, the motor control unit 4 regards the acquired type as cardboard, and sets N in step C04 in FIG. 5 to a minimum value N min (for example, 2) (step H07). ). Thereafter, the motor control unit 4 executes the process of FIG. 3A, and executes the interrupt process of FIG. 5 in response to the input of the edge interval T 0 (step H04).

《応用例の効果》
上記の通り、本応用例によれば、シートShが薄い程、Nが大きく設定される。これにより、モータ2の回転変動による影響を受けやすい薄いシートShに関しては、Nを大きくして、モータ2の回転変動を少なくなるように制御している。
<Effects of application examples>
As described above, according to this application example, N is set to be larger as the sheet Sh is thinner. As a result, with respect to the thin sheet Sh that is easily affected by the rotational fluctuation of the motor 2, N is increased to control the rotational fluctuation of the motor 2 to be small.

《付記1》
なお、上記応用例では、薄紙、普通紙、厚紙ごとでNを異なる値に設定するようにした。しかし、これに限らず、図13に示すように、薄紙および普通紙の場合には、Nを相対的に大きな値に設定し、厚紙の場合には、Nを相対的に小さな値に設定しても構わない。
<< Appendix 1 >>
In the application example described above, N is set to a different value for each of thin paper, plain paper, and thick paper. However, the present invention is not limited to this, and as shown in FIG. 13, N is set to a relatively large value for thin paper and plain paper, and N is set to a relatively small value for thick paper. It doesn't matter.

《付記2》
また、上記応用例では、図3Aおよび図5の処理を実装する場合について説明した。しかし、これに限らず、第三実施形態および第四実施形態に記載のモータ駆動制御およびばらつき除去処理を実装しても構わない。
<< Appendix 2 >>
In the application example, the case where the processes of FIGS. 3A and 5 are implemented has been described. However, the present invention is not limited to this, and the motor drive control and variation removal processing described in the third embodiment and the fourth embodiment may be implemented.

本発明に係るモータ制御装置およびこれを備えた画像形成装置は、合成パルス信号に含まれるばらつきの要素を低減可能であり、複写機、プリンタ、ファクシミリおよびこれら機能を備えた複合機に好適である。   The motor control device according to the present invention and the image forming apparatus provided with the motor control device can reduce the variation element included in the composite pulse signal, and are suitable for a copying machine, a printer, a facsimile, and a multifunction machine having these functions. .

1,1A,1B,1C モータ制御装置
2 モータ
21 磁石
22U,22V,22W コイル
23 実装基板
h1,h2,h3 検出器
3 モータ駆動部
31 信号処理部
32 コイル駆動部
33 信号合成部
4 モータ制御部
41,41B,41C 周期カウント部
42,42A,42B,42C ばらつき処理部
43 速度制御部
6 画像形成装置
1, 1A, 1B, 1C Motor control device 2 Motor 21 Magnet 22U, 22V, 22W Coil 23 Mounting board h1, h2, h3 Detector 3 Motor drive unit 31 Signal processing unit 32 Coil drive unit 33 Signal synthesis unit 4 Motor control unit 41, 41B, 41C Period counting unit 42, 42A, 42B, 42C Variation processing unit 43 Speed control unit 6 Image forming apparatus

Claims (7)

可動子および複数のコイルを含むモータと、
前記モータに設けられたP相(Pは2以上の自然数)の検出器であって、前記モータの駆動により、それぞれの電気位相角が互いに相違するパルス信号を出力するP相の検出器と、
前記P相の検出器の出力パルス信号のいずれかの論理が変化するたびに、自身の論理が反転する信号を、合成パルス信号として生成する信号合成部と、
前記信号合成部で生成された合成パルス信号において連続する二個のエッジの間隔を順次的にカウントするカウント部と、
前記カウント部でカウントされたエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、ばらつき処理部と、
前記ばらつき処理部で求められた周期に基づき、各前記複数のコイルへの通電量を制御する速度制御部と、を備え、
前記ばらつき処理部は、最新のエッジ間隔から起算して所定個数のエッジ間隔を加算して周期S0を求め、さらに、j(jは2以上の自然数)回前のエッジ間隔から起算して所定個数のエッジ間隔を加算して周期S-(j-1)を求めた後、N個の周期S0,S-1,…,S-(N-1)を順次求めて加算し、
前記速度制御部は、前記ばらつき処理部における加算結果S0+S-1+…+S-(N-1)に基づき、各前記複数のコイルへの通電量を制御する、モータ制御装置。
A motor including a mover and a plurality of coils;
A P-phase detector (P is a natural number of 2 or more) provided in the motor, and a P-phase detector that outputs pulse signals having different electrical phase angles from each other by driving the motor;
A signal synthesizer that generates a signal whose logic is inverted every time the logic of any of the output pulse signals of the P-phase detector changes, as a synthesized pulse signal;
A counting unit that sequentially counts the interval between two consecutive edges in the combined pulse signal generated by the signal combining unit;
A variation processing unit for obtaining a cycle of a pulse signal output from any of the P-phase detectors by adding a predetermined number of edge intervals counted by the counting unit;
A speed control unit that controls the energization amount to each of the plurality of coils based on the period obtained by the variation processing unit;
The variation processing unit calculates a period S0 by adding a predetermined number of edge intervals starting from the latest edge interval, and further calculating a predetermined number starting from j (j is a natural number of 2 or more) previous edge intervals. Are obtained by sequentially adding N periods S0, S-1,..., S- (N-1).
The speed control unit is a motor control device that controls the energization amount to each of the plurality of coils based on the addition result S0 + S-1 +... + S− (N−1) in the variation processing unit.
可動子および複数のコイルを含むモータと、
前記モータに設けられたP相(Pは2以上の自然数)の検出器であって、前記モータの駆動により、それぞれの電気位相角が互いに相違するパルス信号を出力するP相の検出器と、
前記P相の検出器の出力パルス信号のいずれかの論理が変化するたびに、自身の論理が反転する信号を、合成パルス信号として生成する信号合成部と、
前記信号合成部で生成された合成パルス信号において連続する二個のエッジの間隔を順次的にカウントするカウント部と、
前記カウント部でカウントされたエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、ばらつき処理部と、
前記ばらつき処理部で求められた周期に基づき、各前記複数のコイルへの通電量を制御する速度制御部と、を備え、
前記カウント部は、前記信号合成部で生成された合成パルス信号において連続する二個の立ち上がりエッジの間隔と、連続する二個の立ち下がりエッジの間隔と、を順次的にカウントし、
前記ばらつき処理部は、
前記カウント部でカウントされた立ち上がりエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の第1の周期を求め、さらに、
前記カウント部でカウントされた立ち下がりエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の第2の周期を求めた後、前記第1の周期と前記第2の周期を加算し、
前記速度制御部は、前記ばらつき処理部における前記第1の周期と前記第2の周期の加算結果に基づき、各前記複数のコイルへの通電量を制御する、モータ制御装置。
A motor including a mover and a plurality of coils;
A P-phase detector (P is a natural number of 2 or more) provided in the motor, and a P-phase detector that outputs pulse signals having different electrical phase angles from each other by driving the motor;
A signal synthesizer that generates a signal whose logic is inverted every time the logic of any of the output pulse signals of the P-phase detector changes, as a synthesized pulse signal;
A counting unit that sequentially counts the interval between two consecutive edges in the combined pulse signal generated by the signal combining unit;
A variation processing unit for obtaining a cycle of a pulse signal output from any of the P-phase detectors by adding a predetermined number of edge intervals counted by the counting unit;
A speed control unit that controls the energization amount to each of the plurality of coils based on the period obtained by the variation processing unit;
The counting unit sequentially counts the interval between two consecutive rising edges and the interval between two consecutive falling edges in the combined pulse signal generated by the signal combining unit,
The variation processing unit
By adding a predetermined number of rising edge intervals counted by the counting unit, a first period of a pulse signal output from any of the P-phase detectors is obtained, and
The second period of the pulse signal output from one of the P-phase detectors is obtained by adding a predetermined number of falling edge intervals counted by the counting unit, and then the first period and Adding the second period;
The speed control unit is a motor control device that controls an energization amount to each of the plurality of coils based on an addition result of the first cycle and the second cycle in the variation processing unit.
可動子および複数のコイルを含むモータと、
前記モータに設けられたP相(Pは2以上の自然数)の検出器であって、前記モータの駆動により、それぞれの電気位相角が互いに相違し、かつ前記モータの1回転で複数周期を含むパルス信号を出力するP相の検出器と、
前記P相の検出器の出力パルス信号のいずれかの論理が変化するたびに、自身の論理が反転する信号を、合成パルス信号として生成する信号合成部と、
前記信号合成部で生成された合成パルス信号において連続する二個のエッジの間隔を順次的にカウントするカウント部と、
前記カウント部でカウントされたエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、ばらつき処理部と、
前記ばらつき処理部で求められた周期に基づき、各前記複数のコイルへの通電量を制御する速度制御部と、を備え、
前記ばらつき処理部は、最新のエッジ間隔から起算して所定個数のエッジ間隔を加算して周期S0を求め、さらに、j(jは2以上の自然数)回前のエッジ間隔から起算して所定個数のエッジ間隔を加算して周期S-(j-1)を求めた後、N個の周期S0,S-1,…,S-(N-1)を順次求めて加算し、
前記速度制御部は、前記ばらつき処理部における加算結果S0+S-1+…+S-(N-1)に基づき、各前記複数のコイルへの通電量を制御する、モータ制御装置。
A motor including a mover and a plurality of coils;
A P-phase detector (P is a natural number of 2 or more) provided in the motor, wherein the electric phase angles differ from each other by driving the motor, and a plurality of cycles are included in one rotation of the motor. A P-phase detector that outputs a pulse signal;
A signal synthesizer that generates a signal whose logic is inverted every time the logic of any of the output pulse signals of the P-phase detector changes, as a synthesized pulse signal;
A counting unit that sequentially counts the interval between two consecutive edges in the combined pulse signal generated by the signal combining unit;
A variation processing unit for obtaining a cycle of a pulse signal output from any of the P-phase detectors by adding a predetermined number of edge intervals counted by the counting unit;
A speed control unit that controls the energization amount to each of the plurality of coils based on the period obtained by the variation processing unit;
The variation processing unit calculates a period S0 by adding a predetermined number of edge intervals starting from the latest edge interval, and further calculating a predetermined number starting from j (j is a natural number of 2 or more) previous edge intervals. Are obtained by sequentially adding N periods S0, S-1,..., S- (N-1).
It said speed control unit, based on the addition result S0 + S-1 + ... + S- (N-1) in the variation processor, that controls the power supply amount to each of said plurality of coils, motors control device.
前記ばらつき処理部は、前記N個の周期S0,S-1,…,S-(N-1)に係数a0,a-1,…,a-(N-1)(ここで、a0>a-1>…>a-(N-1))を順次乗算し、その後、a0×S0,a-1×S-1,…,a-(N-1)×S-(N-1)を加算し、
前記速度制御部は、前記ばらつき処理部における加算結果a0×S0+a-1×S-1,…,+a-(N-1)×S-(N-1)に基づき、各前記複数のコイルへの通電量を制御する、請求項またはに記載のモータ制御装置。
The variation processing unit applies coefficients a0, a-1,..., A- (N-1) (where a0> a) to the N periods S0, S-1,. -1>...> A- (N-1)) and then a0.times.S0, a-1.times.S-1, ..., a- (N-1) .times.S- (N-1). Add,
The speed control unit applies to each of the plurality of coils based on the addition result a0 × S0 + a−1 × S−1,..., + A− (N−1) × S− (N−1) in the variation processing unit. The motor control device according to claim 1 or 3 , which controls an energization amount.
可動子および複数のコイルを含むモータと、
前記モータに設けられたP相(Pは2以上の自然数)の検出器であって、前記モータの駆動により、それぞれの電気位相角が互いに相違し、かつ前記モータの1回転で複数周期を含むパルス信号を出力するP相の検出器と、
前記P相の検出器の出力パルス信号のいずれかの論理が変化するたびに、自身の論理が反転する信号を、合成パルス信号として生成する信号合成部と、
前記信号合成部で生成された合成パルス信号において連続する二個のエッジの間隔を順次的にカウントするカウント部と、
前記カウント部でカウントされたエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、ばらつき処理部と、
前記ばらつき処理部で求められた周期に基づき、各前記複数のコイルへの通電量を制御する速度制御部と、を備え、
前記カウント部は、前記信号合成部で生成された合成パルス信号において連続する二個の立ち上がりエッジの間隔と、連続する二個の立ち下がりエッジの間隔と、を順次的にカウントし、
前記ばらつき処理部は、
前記カウント部でカウントされた立ち上がりエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求め、さらに、
前記カウント部でカウントされた立ち下がりエッジ間隔を所定個数加算することで、前記P相の検出器のいずれかから出力されるパルス信号の周期を求める、モータ制御装置。
A motor including a mover and a plurality of coils;
A P-phase detector (P is a natural number of 2 or more) provided in the motor, wherein the electric phase angles differ from each other by driving the motor, and a plurality of cycles are included in one rotation of the motor. A P-phase detector that outputs a pulse signal;
A signal synthesizer that generates a signal whose logic is inverted every time the logic of any of the output pulse signals of the P-phase detector changes, as a synthesized pulse signal;
A counting unit that sequentially counts the interval between two consecutive edges in the combined pulse signal generated by the signal combining unit;
A variation processing unit for obtaining a cycle of a pulse signal output from any of the P-phase detectors by adding a predetermined number of edge intervals counted by the counting unit;
A speed control unit that controls the energization amount to each of the plurality of coils based on the period obtained by the variation processing unit;
The counting unit sequentially counts the interval between two consecutive rising edges and the interval between two consecutive falling edges in the combined pulse signal generated by the signal combining unit,
The variation processing unit
By adding a predetermined number of rising edge intervals counted by the counting unit, the period of the pulse signal output from any of the P-phase detectors is obtained,
Said counted falling edge interval was by a predetermined number added by the counting unit, Ru seek period of the pulse signal outputted from one of the detectors of the P phase, motors control device.
前記P相の検出器のそれぞれは、ホール素子またはロータリーエンコーダである、請求項1〜のいずれかに記載のモータ制御装置。 Each of the detectors of the P phase, a Hall element or a rotary encoder, motor control device according to any one of claims 1-5. 請求項1、3及び4のいずれかに記載のモータ制御装置を備えており、シート上に画像を印刷する画像形成装置であって、前記Nは前記シートの種別に応じて異なっている、画像形成装置。 An image forming apparatus that includes the motor control device according to claim 1 and that prints an image on a sheet, wherein N is different depending on a type of the sheet. Forming equipment.
JP2013225417A 2013-10-30 2013-10-30 Motor control device and image forming apparatus having the same Expired - Fee Related JP6240955B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013225417A JP6240955B2 (en) 2013-10-30 2013-10-30 Motor control device and image forming apparatus having the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013225417A JP6240955B2 (en) 2013-10-30 2013-10-30 Motor control device and image forming apparatus having the same

Publications (2)

Publication Number Publication Date
JP2015089223A JP2015089223A (en) 2015-05-07
JP6240955B2 true JP6240955B2 (en) 2017-12-06

Family

ID=53051484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013225417A Expired - Fee Related JP6240955B2 (en) 2013-10-30 2013-10-30 Motor control device and image forming apparatus having the same

Country Status (1)

Country Link
JP (1) JP6240955B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230132842A (en) * 2021-02-22 2023-09-18 니덱 인스트루먼츠 가부시키가이샤 Position detection device, position detection method, unmanned guided vehicle and sewing device
KR102635436B1 (en) * 2021-12-08 2024-02-07 현대오토에버 주식회사 Method and apparatus for controlling brushless direct current motor using duty controlling
KR102635448B1 (en) * 2021-12-29 2024-02-07 현대오토에버 주식회사 Method and apparatus for generating micro angle ticks for controlling limp-home mode's motor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60167694A (en) * 1984-02-10 1985-08-31 Yaskawa Electric Mfg Co Ltd Speed control system of polyphase dc brushless motor
US5563481A (en) * 1992-04-13 1996-10-08 Smith & Nephew Endoscopy, Inc. Brushless motor
US5270622A (en) * 1992-04-13 1993-12-14 Smith & Nephew Dyonics, Inc. Brushless motor control system
JP2011078171A (en) * 2009-09-29 2011-04-14 Advics Co Ltd Control device of brushless motor
JP5549430B2 (en) * 2010-07-02 2014-07-16 コニカミノルタ株式会社 Sheet conveying apparatus and image forming apparatus

Also Published As

Publication number Publication date
JP2015089223A (en) 2015-05-07

Similar Documents

Publication Publication Date Title
JP4866671B2 (en) Image forming apparatus
JP5636663B2 (en) Motor drive control device and image forming apparatus
JP6240955B2 (en) Motor control device and image forming apparatus having the same
JP2009223083A (en) Image forming device
JP2018050404A (en) Motor control device, sheet conveying device, and image forming apparatus
US7038404B2 (en) Image forming apparatus
JP6668862B2 (en) Control device, motor drive device, sheet transport device, and image forming device
JP5641819B2 (en) Image forming apparatus
JP3700325B2 (en) Drive source control method
US20130058683A1 (en) Image bearing member drive unit that drives image bearing member, method of controlling image bearing member drive unit, storage medium, and image forming apparatus
JP2013041093A (en) Image forming apparatus
JP2005037628A (en) Image forming apparatus
JP2015149800A (en) Control device for permanent magnet motor and image forming apparatus
JP2010216832A (en) Signal processing apparatus, image formation apparatus, and signal processing method
JP6432129B2 (en) Angle detection device and angle detection method
JP2013142760A (en) Pwm generation device, image forming device and image forming system
JP2011172350A (en) Motor drive, motor drive system, and microcomputer
JP2013238682A (en) Image forming apparatus
JP4078246B2 (en) Motor control apparatus and image forming apparatus
JP7188214B2 (en) Twin drive and motor control method
JP5486835B2 (en) Image forming apparatus and photosensitive member rotation synchronization method
JP6752871B2 (en) Motor control device, sheet transfer device, document feeding device, document reading device and image forming device
JP7006005B2 (en) Motor control device, image forming device and computer program
JPH0538175A (en) Motor controller
JP5935351B2 (en) Drive control apparatus, image forming apparatus, drive control method, and image forming system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20160427

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20160602

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160720

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20161129

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170502

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170627

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170725

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170921

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171016

R150 Certificate of patent or registration of utility model

Ref document number: 6240955

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees