[go: up one dir, main page]

JP4952631B2 - Speed detection device - Google Patents

Speed detection device Download PDF

Info

Publication number
JP4952631B2
JP4952631B2 JP2008086682A JP2008086682A JP4952631B2 JP 4952631 B2 JP4952631 B2 JP 4952631B2 JP 2008086682 A JP2008086682 A JP 2008086682A JP 2008086682 A JP2008086682 A JP 2008086682A JP 4952631 B2 JP4952631 B2 JP 4952631B2
Authority
JP
Japan
Prior art keywords
speed
edge
rotating body
value
speed calculation
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.)
Active
Application number
JP2008086682A
Other languages
Japanese (ja)
Other versions
JP2009236872A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2008086682A priority Critical patent/JP4952631B2/en
Publication of JP2009236872A publication Critical patent/JP2009236872A/en
Application granted granted Critical
Publication of JP4952631B2 publication Critical patent/JP4952631B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Electric Motors In General (AREA)

Description

本発明は、例えば電動機を可変速駆動する電動機駆動装置において、電動機に取り付けたエンコーダの出力パルスを用いて電動機速度を検出する速度検出装置に関するものである。   The present invention relates to a speed detection device that detects a motor speed using an output pulse of an encoder attached to the motor, for example, in a motor drive device that drives the motor at a variable speed.

電動機を可変速駆動する装置として、インバータが知られている。インバータの機能の中で、電動機の速度を高精度に制御するために、電動機に取り付けたエンコーダの出力パルス信号に基づいて電動機速度を検出し、速度指令値との偏差をゼロにする速度調節機能を用いて制御を行うものがある。   An inverter is known as a device for driving an electric motor at a variable speed. Speed control function that detects the motor speed based on the output pulse signal of the encoder attached to the motor and makes the deviation from the speed command value zero in order to control the motor speed with high accuracy. There is something that controls using.

しかし、エンコーダの出力パルスは通常、1回転あたりのパルス数が決められており、パルスは回転速度によって粗密が発生する。パルスが粗となる低速領域では、検出精度が悪化して速度検出値に誤差が生じるため、速度制御性能を悪化させる原因となる。速度制御性能が悪化すると、例えばクレーンなどでは、速度制御誤差がトルクのリプルとなり、積荷に振動が伝わって問題になる。あるいは速度制御誤差により、自動運転中に積荷の停止位置に誤差が生じ、他の機器に影響を及ぼす等の問題が生じる。
また、エンコーダの取り付け方により、出力パルスの位相誤差が発生し、この出力パルスに基づく検出方法では、速度検出値に位相誤差の影響が現れ、上述したようなトルクリプル等の問題を引き起こす。
However, the number of pulses per rotation is usually determined for the output pulses of the encoder, and the density of the pulses varies depending on the rotation speed. In the low speed region where the pulse is rough, the detection accuracy is deteriorated and an error occurs in the speed detection value, which causes the speed control performance to deteriorate. When the speed control performance deteriorates, for example, in a crane or the like, the speed control error becomes a torque ripple, and vibration is transmitted to the load, which becomes a problem. Alternatively, the speed control error causes an error in the load stop position during automatic operation, which causes problems such as affecting other devices.
Further, the phase error of the output pulse is generated depending on how the encoder is attached, and in the detection method based on this output pulse, the influence of the phase error appears on the speed detection value, causing problems such as torque ripple as described above.

そこで、上述の問題を解決するため、後述する特許文献1には、エンコーダの出力パルスの立ち上がりエッジ、立ち下がりエッジを利用して速度を検出する方法が開示されている。
図6は、特許文献1に記載された従来技術の構成図であり、ラッチ信号作成部21は、エンコーダから出力されるA相、B相という位相の異なった2種類のパルスからそれぞれの立ち上がりエッジ、立ち下がりエッジを検出し、合計4種類のラッチ信号ED0〜ED3を作成する。角度計測カウンタ22は、ラッチ信号(4F)と電動機の回転方向を示すUP/DOWN信号とを用いてカウンタのUP,DOWNを行う。
Therefore, in order to solve the above-described problem, Patent Document 1 described later discloses a method of detecting the speed by using the rising edge and the falling edge of the output pulse of the encoder.
FIG. 6 is a configuration diagram of the prior art described in Patent Document 1, in which the latch signal creation unit 21 generates rising edges from two types of pulses, A phase and B phase, which are output from the encoder, with different phases. The falling edge is detected, and a total of four types of latch signals ED0 to ED3 are generated. The angle measurement counter 22 performs UP / DOWN of the counter using the latch signal (4F) and the UP / DOWN signal indicating the rotation direction of the electric motor.

時間計測カウンタ23は、速度演算周期に同期してゼロになるダウンカウンタである。また、4種類のラッチ信号ED0〜ED3のそれぞれに対応させて、角度計測カウンタ22の値をラッチして保存する第1データラッチ24−1〜24−4と、時間計測カウンタ23の値をラッチして保存する第2データラッチ25−1〜25−4とを設け、更に、速度演算周期毎に入力データをラッチする角度データラッチ27−1〜27−4,時間データラッチ28−1〜28−4を設ける。
なお、CPU30では、速度演算周期毎に角度計測値(データラッチ27−1〜27−4の値)と時間計測値(データラッチ28−1〜28−4の値)とを読み込み、検出フローチャートに従って電動機の速度を検出する。
The time measurement counter 23 is a down counter that becomes zero in synchronization with the speed calculation cycle. Further, the first data latches 24-1 to 24-4 for latching and storing the value of the angle measurement counter 22 and the value of the time measurement counter 23 are latched corresponding to each of the four types of latch signals ED0 to ED3. Second data latches 25-1 to 25-4 for storing data, and angle data latches 27-1 to 27-4 and time data latches 28-1 to 28-28 for latching input data every speed calculation cycle. -4.
The CPU 30 reads the angle measurement values (values of the data latches 27-1 to 27-4) and the time measurement values (values of the data latches 28-1 to 28-4) for each speed calculation cycle, and follows the detection flowchart. Detect the speed of the motor.

また、26は、ラッチ信号ED0〜ED3からA相パルス、B相パルスのエッジ変化を検出して保持するエッジ保持部、29は、エッジ保持部26の出力信号FIL0〜FIL3から、エッジの変化が1回でもあれば「1」を、変化が1回もなければ「0」を設定して保持することによりエッジの変化情報を保持するエッジ変化情報保持部、31はコントローラを示す。   Reference numeral 26 denotes an edge holding unit that detects and holds edge changes of the A-phase pulse and B-phase pulse from the latch signals ED0 to ED3, and 29 denotes an edge change from the output signals FIL0 to FIL3 of the edge holding unit 26. An edge change information holding unit 31 holds the change information of the edge by setting and holding “1” if there is even one change, and “0” if there is no change, and 31 denotes a controller.

図7は、上記従来技術による速度検出動作を示すフローチャートである。
速度演算周期毎にエッジの変化の有無を図6のエッジ保持部26により検出し、速度演算周期毎にラッチしたエッジ変化情報保持部29の出力値F0〜F3をCPU30が読み込む。速度演算周期において一度でもエッジを検出していたら、カウント値の大小から最新のエッジを検索し、最新エッジに対応するデータラッチ27−1〜27−4の角度計測値とデータラッチ28−1〜28−4の時間計測値とを用いて、数式1に基づき速度ωを演算する。
FIG. 7 is a flowchart showing the speed detection operation according to the conventional technique.
The edge holding unit 26 in FIG. 6 detects the presence or absence of an edge change for each speed calculation cycle, and the CPU 30 reads the output values F0 to F3 of the edge change information holding unit 29 latched for each speed calculation cycle. If the edge is detected even once in the speed calculation cycle, the latest edge is searched from the magnitude of the count value, and the angle measurement values of the data latches 27-1 to 27-4 corresponding to the latest edge and the data latches 28-1 to 28-1 are searched. The speed ω is calculated based on Equation 1 using the time measurement value 28-4.

Figure 0004952631
Figure 0004952631

ただし、θNewは今回のサンプルタイミングで読み込んだ角度計測値、θOLDは前回のサンプルタイミングで読み込んだ角度計測値、Tはサンプリング周期、TNewは今回のサンプルタイミングで読み込んだ時間計測値、TOLDは前回のサンプルタイミングで読み込んだ時間計測値である。
また、回転速度が低く、速度演算周期内にパルスが一度も存在しなかった場合は、TOLDにサンプリング周期Tを加えて速度ωを推定する。
However, θ New angle measurement value read in the current sample timing, θ OLD angle measurement value read in the previous sample timing, T S is the sampling period, T New time measurement value read in the current sample timing, T OLD is a time measurement value read at the previous sample timing.
If the rotation speed is low and no pulse exists within the speed calculation period, the sampling period T S is added to T OLD to estimate the speed ω S.

上記の従来技術では、低速域において速度演算周期内にエンコーダからパルスが発生せず、エッジが存在しない場合には、サンプルタイミングを基準として最新のエッジに対応する時間にサンプリング周期Tを加算することで時間計測値を補正し、速度ωを推定しているが、速度の真値に対して誤差が発生し、電動機のトルクリプル等の問題を生じることがある。
このような点に鑑み、出願人は、従来技術よりも更に速度検出誤差を低減させるために、特願2007−259720号に係る速度検出装置を出願している。
以下、この先願発明について説明する。この先願発明の特徴は、速度演算周期内にパルスが発生しないような低速域においては次に発生するエッジを予測し、この予測エッジに応じた時間補正値を用いて速度演算用の時間計測値を補正することにある。
In the above prior art, a pulse from the encoder is not generated in the speed calculation cycle in the low speed range, if the edge is not present, adds the sampling period T S in time corresponding to the latest edge sample timing as a reference Thus, the time measurement value is corrected and the speed ω S is estimated, but an error occurs with respect to the true value of the speed, which may cause problems such as torque ripple of the motor.
In view of such a point, the applicant has applied for a speed detection device according to Japanese Patent Application No. 2007-259720 in order to further reduce the speed detection error as compared with the prior art.
The prior invention will be described below. The feature of the invention of the prior application is that a next edge is predicted in a low speed region where no pulse is generated within the speed calculation period, and a time measurement value for speed calculation is calculated using a time correction value corresponding to the predicted edge. Is to correct.

図8は先願発明に係る速度検出装置の構成図であり、図6と同一の構成要素には同一の参照符号を付してある。
図8において、21はエッジ検出手段としてのラッチ信号作成部であり、エンコーダ(図示せず)から出力される位相の異なったA相パルス、B相パルスの立ち上がりエッジと立ち下がりエッジとを検出し、ラッチ信号ED0,ED1,ED2,ED3を作成する。上記エンコーダは、例えば速度を検出するべき回転体である電動機回転軸に連結されて、その回転速度に比例した数のA相パルス、B相パルスを出力する。なお、以下では、2相エンコーダから出力されるA相パルス、B相パルスの立ち上がりエッジ及び立ち下がりエッジの4種類のエッジを用いて速度を検出する場合について説明する。
FIG. 8 is a block diagram of the speed detection device according to the prior invention, and the same reference numerals are assigned to the same components as those in FIG.
In FIG. 8, reference numeral 21 denotes a latch signal generation unit as an edge detection means, which detects A-phase pulses and B-phase pulse rising edges and falling edges output from encoders (not shown). The latch signals ED0, ED1, ED2, and ED3 are generated. The encoder is connected to, for example, a motor rotation shaft that is a rotating body whose speed is to be detected, and outputs A-phase pulses and B-phase pulses in a number proportional to the rotation speed. In the following, a case will be described in which the speed is detected using four types of edges, the rising edge and the falling edge of the A-phase pulse and B-phase pulse output from the two-phase encoder.

上記A相パルス、B相パルスは、回転方向検出部32にも入力されている。この回転方向検出部32は、後述するように、A相パルス、B相パルス及びラッチ信号ED0,ED1,ED2,ED3から、電動機の回転方向(CW:正転,CCW:逆転)を検出する。回転方向検出部32から出力される信号CW/CCWは、回転方向保持部33に入力され、速度演算周期信号(サンプリング信号)SMPLによりラッチされて回転方向検出信号CWDETとして出力される。
回転方向検出部32からは、回転方向が変化したことを示す回転方向変化検出信号CHNGも出力されており、この信号CHNGは、回転方向変化エッジ記憶部34に入力されている。回転方向変化エッジ記憶部34は、回転方向が変化した際のエッジ情報を保持し、回転方向変化エッジ信号CHNGEDとしてCPU30Aに出力する。
The A-phase pulse and B-phase pulse are also input to the rotation direction detector 32. As will be described later, the rotation direction detector 32 detects the rotation direction (CW: forward rotation, CCW: reverse rotation) of the motor from the A phase pulse, the B phase pulse, and the latch signals ED0, ED1, ED2, and ED3. The signal CW / CCW output from the rotation direction detection unit 32 is input to the rotation direction holding unit 33, is latched by a speed calculation period signal (sampling signal) SMPL, and is output as a rotation direction detection signal CWDET.
A rotation direction change detection signal CHNG indicating that the rotation direction has changed is also output from the rotation direction detection unit 32, and this signal CHNG is input to the rotation direction change edge storage unit 34. The rotation direction change edge storage unit 34 holds edge information when the rotation direction changes, and outputs it to the CPU 30A as a rotation direction change edge signal CHNGED.

前記ラッチ信号ED0,ED1,ED2,ED3は、時間記憶手段としてのデータラッチ25−1〜25−4に入力されていると共に、エッジ保持部26にも入力されている。
データラッチ25−1〜25−4には、図6と同様に時間計測カウンタ23から出力された時間計測値(時間カウント値)TDE0EN〜TDE3ENが入力されており、ラッチ信号ED0,ED1,ED2,ED3によってこれらの時間計測値TDE0EN〜TDE3ENを記憶し、次段のデータラッチ28−1〜28−4に送るように構成されている。上記時間計測カウンタ23は、速度演算周期に同期してゼロになるダウンカウンタである。
データラッチ28−1〜28−4では、速度演算周期信号SMPLによりラッチした時間計測値TDE0EN〜TDE3ENを、時間計測値T0EN〜T3ENとしてCPU30Aに送出する。
The latch signals ED0, ED1, ED2, and ED3 are input to the data latches 25-1 to 25-4 as time storage means and also input to the edge holding unit 26.
The data latches 25-1 to 25-4 receive time measurement values (time count values) T DE0EN to T DE3EN output from the time measurement counter 23 as in FIG. 6, and latch signals ED0, ED1, These time measurement values TDE0EN to TDE3EN are stored by ED2 and ED3 and sent to the data latches 28-1 to 28-4 in the next stage. The time measurement counter 23 is a down counter that becomes zero in synchronization with the speed calculation cycle.
The data latches 28-1 to 28-4 send the time measurement values T DE0EN to T DE3EN latched by the speed calculation cycle signal SMPL to the CPU 30A as the time measurement values T 0EN to T 3EN .

ラッチ信号ED0,ED1,ED2,ED3は、J−Kフリップフロップ等からなるエッジ保持部26に入力され、速度演算周期における各エッジの変化の有無が検出される。エッジ保持部26では、各ラッチ信号ED0,ED1,ED2,ED3について、エッジの変化が1回でもあれば「1」を設定して保持し、変化が1回もなければ「0」を設定して保持する。これらの保持データは、エッジ変化情報保持部29に送られ、速度演算周期信号SMPLによりラッチされてエッジ変化検出信号EDF0〜EDF3としてCPU30Aに送出される。   The latch signals ED0, ED1, ED2, and ED3 are input to the edge holding unit 26 including a J-K flip-flop, and the presence / absence of a change in each edge in the speed calculation cycle is detected. The edge holding unit 26 sets and holds “1” for each latch signal ED0, ED1, ED2, and ED3 if the edge changes even once, and sets “0” if there is no change. Hold. These held data are sent to the edge change information holding unit 29, latched by the speed calculation cycle signal SMPL, and sent to the CPU 30A as edge change detection signals EDF0 to EDF3.

図9は、前記回転方向検出部32の動作を示すタイミングチャートである。
回転方向検出部32は、ラッチ信号ED0,ED1,ED2,ED3が発生した際の、A相パルス,B相パルスの状態から回転方向を検出する。
すなわち、図9において、例えば時点(3)でA相パルスの立ち上がりエッジを信号ED0により検出したときに(ED0が「1」)、B相パルスが検出されない場合(B相パルスが「0」)は、正回転と判断して信号CW(=「1」)を出力する。一方、時点(4)においてB相パルスの立ち下がりエッジを信号ED3により検出したときに(ED3が「1」)、A相パルスが検出された場合(A相パルスが「1」)には、逆回転と判断して信号CCW(=「0」)を出力する。
こうして得られた回転方向検出信号は、回転方向保持部33において速度演算周期信号SMPLによりラッチされ、回転方向検出信号CWDETとしてCPU30Aに送られる。
なお、図9において、TCHNGは回転方向が変化した時点を示している。
FIG. 9 is a timing chart showing the operation of the rotation direction detector 32.
The rotation direction detector 32 detects the rotation direction from the state of the A-phase pulse and the B-phase pulse when the latch signals ED0, ED1, ED2, and ED3 are generated.
That is, in FIG. 9, for example, when the rising edge of the A-phase pulse is detected by the signal ED0 at time (3) (ED0 is “1”), the B-phase pulse is not detected (B-phase pulse is “0”). Determines that the rotation is normal, and outputs a signal CW (= “1”). On the other hand, when the falling edge of the B phase pulse is detected by the signal ED3 at the time point (4) (ED3 is “1”), when the A phase pulse is detected (the A phase pulse is “1”), It is determined that the rotation is reverse, and a signal CCW (= “0”) is output.
The rotation direction detection signal thus obtained is latched by the speed calculation period signal SMPL in the rotation direction holding unit 33 and sent to the CPU 30A as the rotation direction detection signal CWDET.
In FIG. 9, T CHNG indicates the time when the rotation direction has changed.

CPU30Aでは、速度演算周期毎に、データラッチ28−1〜28−4からの時間計測値T0EN〜T3ENと、回転方向保持部33からの回転方向検出信号CWDETと、エッジ変化情報保持部29からのエッジ変化検出信号EDF0〜EDF3とを用いて、電動機の速度を検出する。 In the CPU 30A, the time measurement values T 0EN to T 3EN from the data latches 28-1 to 28-4 , the rotation direction detection signal CWDET from the rotation direction holding unit 33, and the edge change information holding unit 29 are provided for each speed calculation cycle. The speed of the motor is detected using the edge change detection signals EDF0 to EDF3.

図10は、正回転時における速度検出動作を示すタイミングチャートである。ここでは、一例として、図10における時点(1)のサンプルタイミング(速度演算周期信号SMPLのタイミング)で速度を検出するものとして説明する。
図10の時点(1)において、図示するサンプルタイミングによれば、最新のエッジは信号ED0によるA相パルスの立ち上がりエッジである。これは、エッジ変化検出信号EDF0〜EDF3から、EDF0が「1」であり、その他のEDF1〜EDF3が「0」であることから判断する。なお、図10ではEDF0の値のみを図示し、EDF1〜EDF3を省略してある。
FIG. 10 is a timing chart showing the speed detection operation during forward rotation. Here, as an example, it is assumed that the speed is detected at the sample timing (timing of the speed calculation cycle signal SMPL) at the time point (1) in FIG.
At the time (1) in FIG. 10, according to the illustrated sample timing, the latest edge is the rising edge of the A-phase pulse by the signal ED0. This is determined from the edge change detection signals EDF0 to EDF3 because EDF0 is “1” and the other EDF1 to EDF3 are “0”. In FIG. 10, only the value of EDF0 is shown, and EDF1 to EDF3 are omitted.

このため、信号ED0によりラッチした時間計測値TDE0EN=T0EN1が最新の時間計測値(今回値)であり、前回の信号ED0が発生した時の時間計測値TDE0EN=T0EN0を前回値として使用する。このT0EN0の値は、時点(1)でデータラッチ28−1から読み込むことはできないが、前回のエッジ変化検出信号EDF0が「1」であった時点(1)’でCPU30A内のメモリに保存しておくことにより使用可能である。
また、速度演算周期に対応する時間計測カウンタ23の最大値をTmaxとし、前回値T0EN0から今回値T0EN1までの間にEDF0がゼロであったサンプリング回数をNとして、これらをCPU30Aのメモリに記憶しておき、数式2に基づいて速度nを演算する。
Therefore, the time measurement value T DE0EN = T 0EN1 latched by the signal ED0 is the latest time measurement value (current value), and the time measurement value T DE0EN = T 0EN0 when the previous signal ED0 is generated is the previous value. use. The value of T 0EN0 cannot be read from the data latch 28-1 at the time (1), but is stored in the memory in the CPU 30A at the time (1) ′ when the previous edge change detection signal EDF0 is “1”. It is possible to use it by keeping it.
Further, the maximum value of the time measurement counter 23 corresponding to the speed calculation cycle is set to T max, and the number of samplings in which EDF 0 was zero between the previous value T 0EN0 and the current value T 0EN 1 is set to N 0 , and these are set in the CPU 30A. The speed n is calculated on the basis of Formula 2 after being stored in the memory.

Figure 0004952631
Figure 0004952631

なお、数式2において、CWsignは回転方向を示し、正回転(CW)を「1」、逆回転(CCW)を「−1」とする。また、Kはエンコーダの1回転あたりの出力パルス数に関係する定数である。 In Equation 2, CW sign indicates a rotation direction, and forward rotation (CW) is “1” and reverse rotation (CCW) is “−1”. K is a constant related to the number of output pulses per rotation of the encoder.

図10に示すように、回転方向が変化していない場合には、A相パルス、B相パルスは順序通り発生する。例えば、図10において、A相パルスの立ち上がり→B相パルスの立ち上がり→A相パルスの立ち下がり→B相パルスの立ち下がりという順序は不変である。このため、図10の時点(1)のサンプルタイミングで速度検出を行う場合、回転方向が変化していなければ、前回のA相パルスの立ち上がりから今回のA相パルスの立ち上がりまでに計4回のエッジが発生したことがわかる。   As shown in FIG. 10, when the rotation direction is not changed, the A-phase pulse and the B-phase pulse are generated in order. For example, in FIG. 10, the order of rising of the A phase pulse → rising of the B phase pulse → falling of the A phase pulse → falling of the B phase pulse is unchanged. For this reason, when speed detection is performed at the sample timing at the time point (1) in FIG. 10, if the rotation direction has not changed, a total of four times from the rise of the previous A phase pulse to the rise of the current A phase pulse. It can be seen that an edge has occurred.

よって、数式2の分子を、A相パルス1周期内に存在するA相,B相パルスのエッジ数とおいて速度nを検出することができる。なお、数式2における分子の4は、本実施形態のように、A相パルス,B相パルスを出力する2相エンコーダの場合に、A相パルス(またはB相パルス)の1周期内に存在する全相(つまりA相,B相)パルスのエッジ数であり、エンコーダの相数によって異なるのは明らかである。また、数式2における定数Kは、前述した如く、使用するエンコーダの1回転あたりの出力パルス数によって変化する。
従って、エンコーダの相数や出力パルス数に応じて上記エッジ数(数式2における分子の数値)や定数KをCPU30Aが変更すれば、数式2により、エンコーダの相数や出力パルス数に関係なく速度を検出することができる。
Therefore, the velocity n can be detected by using the numerator of Equation 2 as the number of edges of the A-phase and B-phase pulses existing within one period of the A-phase pulse. In the case of a two-phase encoder that outputs an A-phase pulse and a B-phase pulse as in this embodiment, the numerator 4 in Equation 2 exists within one cycle of the A-phase pulse (or B-phase pulse). This is the number of edges of all-phase (ie, A-phase, B-phase) pulses. In addition, the constant K in Equation 2 varies depending on the number of output pulses per rotation of the encoder used as described above.
Therefore, if the CPU 30A changes the number of edges (numerical value in Equation 2) and the constant K according to the number of encoder phases and the number of output pulses, the equation 2 shows the speed regardless of the number of encoder phases and the number of output pulses. Can be detected.

次いで、低速時における速度検出動作を、図8,図11,図12を参照しつつ説明する。
図8に示したCPU30Aは、速度演算周期毎にデータラッチ28−1〜28−4内の時間計測値T0EN,T1EN,T2EN,T3ENを内部の記憶部35−1〜35−4に読み込み、時間計測値T0MEM1,T1MEM1,T2MEM1,T3MEM1を更新する。
Next, the speed detection operation at low speed will be described with reference to FIGS.
CPU30A shown in FIG. 8, the time measurement T 0EN in the data latches 28-1 to 28-4 for each speed calculation cycle, T 1EN, T 2EN, interior T 3EN storage unit 35-1 to 35-4 And time measurement values T0MEM1 , T1MEM1 , T2MEM1 , and T3MEM1 are updated.

すなわち、CPU内部の時間計測値は、内部の記憶部36に記憶されたエッジ変化情報EDF0MEM,EDF1MEM,EDF2MEM,EDF3MEMに基づいて速度演算周期内にエッジの変化が検出されたとき、前回の時間計測値T0MEM0,T1MEM0,T2MEM0,T3MEM0を今回値T0MEM1,T1MEM1,T2MEM1,T3MEM1に更新する。なお、別の記憶部37内の回転方向情報は、速度演算周期毎に今回値CWMEM1、前回値CWMEM0としてそれぞれ更新される。 In other words, the time measurement value inside the CPU is measured when the change in the edge is detected within the speed calculation cycle based on the edge change information EDF0MEM, EDF1MEM, EDF2MEM, EDF3MEM stored in the internal storage unit 36. The values T0MEM0 , T1MEM0 , T2MEM0 , T3MEM0 are updated to the current values T0MEM1 , T1MEM1 , T2MEM1 , T3MEM1 . The rotation direction information in the other storage unit 37 is updated as the current value CWMEM1 and the previous value CWMEM0 for each speed calculation cycle.

最新エッジ検出部38は、記憶部36のエッジ変化情報から、一つだけエッジが検出された場合はそれを最新エッジとみなし、そのエッジに対応する記憶部35−1〜35−4内の時間計測値を最新エッジの時間計測値とみなす。仮に、速度演算周期内に複数のエッジが検出された場合は、時間計測値が小さいエッジの方がサンプルタイミングに近いものとして、そのエッジを最新エッジとみなす。
最新エッジ検出部38により得た最新エッジ判別信号(EDF0〜EDF3に対応させて、「0」〜「3」の値をとる)と、最新エッジに対応する時間計測値とは、記憶部37からの回転方向判別信号及び記憶部36からのエッジ有無判別信号と共にエッジ予測・速度演算部39に送られる。
When only one edge is detected from the edge change information in the storage unit 36, the latest edge detection unit 38 regards it as the latest edge, and the time in the storage units 35-1 to 35-4 corresponding to the edge. The measurement value is regarded as the time measurement value of the latest edge. If a plurality of edges are detected within the speed calculation cycle, the edge with the smaller time measurement value is considered to be closer to the sample timing, and the edge is regarded as the latest edge.
The latest edge discrimination signal obtained by the latest edge detection unit 38 (takes values of “0” to “3” corresponding to EDF0 to EDF3) and the time measurement value corresponding to the latest edge are stored in the storage unit 37. The rotation direction determination signal and the edge presence / absence determination signal from the storage unit 36 are sent to the edge prediction / speed calculation unit 39.

図11は、最新エッジ検出部38、エッジ予測・速度演算部39等の動作を示すタイミングチャートである。
最新エッジ判別信号及び最新エッジ時間計測値は、前述のように最新エッジ検出部38にて作成され、図11の時点(1)のように、エンコーダパルスのエッジが発生した直後のサンプルタイミングで更新される。いま、時点(1)’に着目すると、時点(1)から(1)’までの速度演算周期内にエンコーダパルスのエッジは検出されず、CPU30Aの内部のエッジ変化情報EDF0MEM,EDF1MEM,EDF2MEM,EDF3MEMは、全てゼロである。ここで、時点(1)以後は、最新エッジ検出部38から出力される最新エッジ判別信号が、A相パルスの立ち上がりエッジを示す「0」となっている。
FIG. 11 is a timing chart showing operations of the latest edge detection unit 38, the edge prediction / speed calculation unit 39, and the like.
The latest edge determination signal and the latest edge time measurement value are created by the latest edge detection unit 38 as described above, and updated at the sample timing immediately after the edge of the encoder pulse is generated as shown in FIG. 11 (1). Is done. Now, focusing on the time point (1) ′, the edge of the encoder pulse is not detected within the speed calculation period from the time point (1) to (1) ′, and the edge change information EDF0MEM, EDF1MEM, EDF2MEM, EDF3MEM inside the CPU 30A. Are all zero. Here, after the time point (1), the latest edge determination signal output from the latest edge detector 38 is “0” indicating the rising edge of the A-phase pulse.

このとき、時点(1)ではA相パルスの立ち上がりエッジを検出しているので、時点(1)’では、回転方向が正であれば、次に発生するのはB相パルスの立ち上がりエッジであると予測できる。従って、時点(1)以後にエッジ予測・速度演算部39から出力される次のエッジ予測値(最新エッジ判別信号と同様に、EDF0〜EDF3に対応させて「0」〜「3」の値をとる)は、B相パルスの立ち上がりエッジを示す「1」となる。
なお、回転方向が逆のときは、次に発生するのはB相パルスの立ち下がりエッジであるから、次のエッジ予測値が「3」となる。
以下、回転方向が正回転であるものとして説明を続ける。
At this time, since the rising edge of the A-phase pulse is detected at the time point (1), if the rotation direction is positive at the time point (1) ′, it is the rising edge of the B-phase pulse that occurs next. Can be predicted. Therefore, the next edge prediction value output from the edge prediction / speed calculation unit 39 after time (1) (similar to the latest edge determination signal, values “0” to “3” corresponding to EDF0 to EDF3 are set. Is taken as “1” indicating the rising edge of the B-phase pulse.
When the rotation direction is reversed, the next edge prediction value is “3” because the next occurrence is the falling edge of the B-phase pulse.
Hereinafter, the description will be continued assuming that the rotation direction is forward rotation.

エッジ予測・速度演算部39は、時点(1)’におけるエッジ予測値から、エッジ時間補正値T1cmpを数式3により演算する。 The edge prediction / velocity calculation unit 39 calculates an edge time correction value T 1 cmp from Formula 3 using the edge prediction value at time (1) ′.

Figure 0004952631
Figure 0004952631

ただし、Nは、前回、B相立ち上がりエッジを検出してから時点(1)’までのサンプリング回数を表し、Tmaxは、サンプリング周期に同期した時間計測カウンタ23の最大値である。
数式3における定数(1/2)は、次のエッジが、サンプリング周期の中央で発生すると予測したためである。図11のa点に着目すると、予測誤差は次に発生するエンコーダパルスがサンプリング周期内のどの点であっても、サンプリング周期の1/2以内となり、検出誤差を最小にすることができる。なお、上記の定数は1/2に限定されるものではなく、状況に応じて変更してもよい。
エッジ予測・速度演算部39は、前回のB相パルスの立ち上がりエッジに対応する時間計測値、数式4のエッジ時間補正値、及び回転方向から、数式4により速度nを計算する。
However, N 1 represents the number of times of sampling from the previous detection of the B-phase rising edge to the time point (1) ′, and T max is the maximum value of the time measurement counter 23 synchronized with the sampling period.
The constant (1/2) in Equation 3 is because the next edge is predicted to occur at the center of the sampling period. Focusing on point a in FIG. 11, the prediction error is within ½ of the sampling period at any point in the sampling period where the next encoder pulse is generated, and the detection error can be minimized. In addition, said constant is not limited to 1/2, You may change according to a condition.
The edge prediction / speed calculation unit 39 calculates the speed n using Equation 4 from the time measurement value corresponding to the rising edge of the previous B-phase pulse, the edge time correction value of Equation 4, and the rotation direction.

Figure 0004952631
Figure 0004952631

ただし、T1MEM1は、前回のB相パルスの立ち上がりエッジを検出した際の時間計測値であり、今回のサンプルタイミングではエッジを検出していないので、更新されない。
以上のように先願発明では、速度演算周期内にパルスが発生しないような低速域では次に発生するエッジをもとに時間計測を行っており、予測エッジの位置をサンプリング周期の中央とするためErrTは発生せず、時間計測値の誤差は真値Tの1/4未満となり、特許文献1に係る従来技術と比べて検出誤差を大幅に低減可能としている。
However, T1MEM1 is a time measurement value when the rising edge of the previous B-phase pulse is detected, and is not updated because the edge is not detected at the current sample timing.
As described above, in the invention of the prior application, time measurement is performed based on the next generated edge in a low speed region where no pulse is generated within the speed calculation period, and the position of the predicted edge is set to the center of the sampling period. Therefore, E rrT does not occur, and the error of the time measurement value is less than ¼ of the true value T 0 , and the detection error can be greatly reduced as compared with the prior art according to Patent Document 1.

特開平6−118090号公報(段落[0024]〜[0043]、図2,図14)JP-A-6-1118090 (paragraphs [0024] to [0043], FIGS. 2 and 14)

先願発明においては、低速域で速度演算周期内にパルスが発生しないような場合に、次のエッジが到達する時間を予測して速度を検出している。これにより、図12に示すように、特許文献1に係る従来技術に対して低速時における速度検出誤差を大幅に改善することが可能であるが、速度演算周期内に2,3回と連続してパルスが発生しないような極低速域においては、速度の真値に対する誤差を完全になくすことができず、電動機等の速度制御誤差によりトルクリプルが発生する等の問題を生じていた。
そこで、本発明の解決課題は、従来技術や先願発明に対して極低速域における速度検出誤差を一層低減し、高精度な速度検出を可能にした速度検出装置を提供することにある。
In the prior invention, when no pulse is generated within the speed calculation period in the low speed range, the speed at which the next edge arrives is predicted to detect the speed. As a result, as shown in FIG. 12, it is possible to significantly improve the speed detection error at the time of low speed compared to the prior art according to Patent Document 1, but it continues two or three times within the speed calculation cycle. In an extremely low speed region where no pulse is generated, the error with respect to the true value of the speed cannot be completely eliminated, and there is a problem that torque ripple is generated due to a speed control error of an electric motor or the like.
SUMMARY OF THE INVENTION Accordingly, the problem to be solved by the present invention is to provide a speed detection device that can further reduce speed detection errors in the extremely low speed region and enables highly accurate speed detection compared to the prior art and the prior application invention.

上記課題を解決するため、請求項1に係る発明は、速度検出対象としての回転体に取り付けられたエンコーダの出力パルスから、回転体の回転速度を検出する速度検出装置において、
前記出力パルスのエッジを検出するエッジ検出手段と、
検出されたエッジに基づいて回転体の回転方向を検出する回転方向検出手段と、
速度演算周期に同期した時間を計測する時間計測手段と、
前記エッジ検出手段の出力により前記時間計測手段の時間計測値を保持する時間記憶手段と、
速度演算周期内の前記エッジの変化状態を検出しエッジ変化情報として保持するエッジ変化情報保持手段と、
前記回転方向及びエッジ変化情報から、速度演算周期内に前記エッジの変化がない場合に次に発生するエッジの位置を予測し、予測したエッジに対応する前記時間計測値及び前記回転方向を少なくとも用いて回転体の回転速度を演算する演算手段と、を有し、
この演算手段は、
前回の速度演算周期における回転体への速度指令値と今回の速度演算周期における回転体への速度指令値とを比較して、回転体が一定速度で回転しているか否かを判別する一定速度判別手段を備え、
前記演算手段は、前記一定速度判別手段により回転体が一定速度で回転していることを判別したときは、速度演算周期内にエッジが存在した時の最新の速度演算値を出力するものである。
In order to solve the above-mentioned problem, the invention according to claim 1 is a speed detection device for detecting a rotation speed of a rotating body from an output pulse of an encoder attached to the rotating body as a speed detection target.
Edge detection means for detecting an edge of the output pulse;
Rotation direction detection means for detecting the rotation direction of the rotating body based on the detected edge;
A time measuring means for measuring time synchronized with the speed calculation cycle;
Time storage means for holding the time measurement value of the time measurement means by the output of the edge detection means;
Edge change information holding means for detecting a change state of the edge within a speed calculation cycle and holding it as edge change information;
From the rotation direction and edge change information, the position of the next edge to be generated is predicted when there is no change in the edge within the speed calculation period, and at least the time measurement value and the rotation direction corresponding to the predicted edge are used. And calculating means for calculating the rotation speed of the rotating body,
This computing means is
Constant speed to determine whether the rotating body is rotating at a constant speed by comparing the speed command value to the rotating body in the previous speed calculation cycle with the speed command value to the rotating body in the current speed calculation cycle Provided with a discrimination means,
The calculation means outputs the latest speed calculation value when an edge exists in the speed calculation cycle when the constant speed determination means determines that the rotating body is rotating at a constant speed. .

請求項2に係る発明は、前記一定速度判別手段が、前回の速度演算周期における回転体へのトルク指令値と今回の速度演算周期における回転体へのトルク指令値との変化量を規定値と比較して、回転体が一定速度で回転しているか否かを判別するものである。   According to a second aspect of the invention, the constant speed discriminating means is configured such that the amount of change between the torque command value to the rotating body in the previous speed calculation cycle and the torque command value to the rotating body in the current speed calculation cycle is a specified value. In comparison, it is determined whether or not the rotating body is rotating at a constant speed.

本発明によれば、速度演算周期内にエンコーダからパルスが発生せず、エッジが存在しないような極低速域において、電動機等の回転体の回転速度が一定であるか否かに応じて速度演算方法を切り替えることにより、速度検出誤差を0にして高精度な速度検出を行うことができる。   According to the present invention, speed calculation is performed according to whether or not the rotational speed of a rotating body such as an electric motor is constant in an extremely low speed range where no pulse is generated from the encoder within the speed calculation cycle and no edge exists. By switching the method, the speed detection error can be reduced to 0, and highly accurate speed detection can be performed.

以下、図に沿って本発明の実施形態を説明する。まず、本発明の特徴は、速度演算周期内に連続してパルスが発生しないような極低速域において、回転体の回転速度が一定であるか否かに応じて速度演算方法を切り替え、極低速域での速度検出精度を向上させるようにしたことにある。
図1は、この実施形態の構成図である。図1において、CPU30Bの内部構成以外は図8と同様であるため、同一の構成要素には同一の参照符号を付して説明を省略し、以下では図8との相違点を中心に説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. First, the feature of the present invention is that the speed calculation method is switched according to whether or not the rotation speed of the rotating body is constant in an extremely low speed range where pulses are not continuously generated within the speed calculation cycle. The speed detection accuracy in the area is improved.
FIG. 1 is a configuration diagram of this embodiment. 1 is the same as that in FIG. 8 except for the internal configuration of the CPU 30B. Therefore, the same components are denoted by the same reference numerals, and the description thereof is omitted. Hereinafter, differences from FIG. 8 will be mainly described. .

図1において、CPU30Bに設けられた一定速度判別部40では、CPU30B内部の制御信号を利用して回転体が一定速度で回転しているか否かを判別し、一定速度信号を生成する。そして、エッジ予測・速度演算部39では、エッジ有無判別信号、回転方向判別信号、最新エッジ判別信号、最新エッジ時間計測値に基づいて速度検出値を演算する。速度検出値を演算するための基本的な演算式は先願発明と同様であるが、本実施形態では、前記一定速度信号に応じて速度演算方法を切り替えることを特徴としている。   In FIG. 1, a constant speed determination unit 40 provided in the CPU 30B determines whether or not the rotating body is rotating at a constant speed using a control signal inside the CPU 30B, and generates a constant speed signal. Then, the edge prediction / speed calculation unit 39 calculates the speed detection value based on the edge presence / absence determination signal, the rotation direction determination signal, the latest edge determination signal, and the latest edge time measurement value. The basic calculation formula for calculating the speed detection value is the same as that of the prior invention, but this embodiment is characterized in that the speed calculation method is switched in accordance with the constant speed signal.

図2は、図1における一定速度判別部40の第1実施例を示す構成図であり、請求項1に記載した発明に相当する。この第1実施例では、回転体が一定速度で回転しているか否かを判別するために速度指令値を用いている。すなわち、一定速度判別部40は、前回の速度演算周期における速度指令値を記憶する前回値記憶レジスタ41と、このレジスタ41に記憶されている速度指令値の前回値を今回値(今回の速度演算周期における速度指令値)と比較する比較手段42とを備えている。そして、比較手段42による比較の結果、上記前回値と今回値とが一致していれば、回転体が一定速度で回転していると判断し、一定速度信号をエッジ予測・速度演算部39へ出力する。   FIG. 2 is a block diagram showing a first embodiment of the constant speed discriminating unit 40 in FIG. 1 and corresponds to the invention described in claim 1. In the first embodiment, a speed command value is used to determine whether or not the rotating body is rotating at a constant speed. That is, the constant speed discriminating unit 40 stores the previous value storage register 41 for storing the speed command value in the previous speed calculation cycle, and the previous value of the speed command value stored in the register 41 as the current value (current speed calculation). Comparing means 42 for comparing with a speed command value in a cycle) is provided. If the previous value and the current value coincide with each other as a result of comparison by the comparison means 42, it is determined that the rotating body is rotating at a constant speed, and the constant speed signal is sent to the edge prediction / speed calculation unit 39. Output.

ここで、速度指令値の前回値と今回値とを比較することにより、回転体が一定速度で回転しているか否かを判別できる理由を説明する。
一般に、インバータへの速度指令値はタッチパネル等から入力されるが、タッチパネルから入力される速度指令値は図3に示すようにステップ状に変化する。しかし、通常、インバータには速度指令値に対する傾き制限機能があり、制御に用いるインバータ内部での速度指令値は、図3に示す如くインバータ内部に設定された加減速時間から決まる一定の傾きで変化する。その結果、回転体の実際の回転速度は、この一定の傾きを持った速度指令値に追従して変化する。よって、加減速中は速度指令値が一定の傾きで常に変化していることになり、速度指令値の前回値と今回値とを比較することにより、回転体が一定速度で回転しているか否かを判別することができる。
Here, the reason why it is possible to determine whether or not the rotating body is rotating at a constant speed by comparing the previous value and the current value of the speed command value will be described.
Generally, the speed command value to the inverter is input from a touch panel or the like, but the speed command value input from the touch panel changes in a step shape as shown in FIG. However, the inverter normally has a function of limiting the inclination with respect to the speed command value, and the speed command value inside the inverter used for control changes with a constant inclination determined from the acceleration / deceleration time set inside the inverter as shown in FIG. To do. As a result, the actual rotational speed of the rotating body changes following the speed command value having this constant inclination. Therefore, during acceleration / deceleration, the speed command value always changes with a constant slope. By comparing the previous value and the current value of the speed command value, whether the rotating body is rotating at a constant speed or not. Can be determined.

図4は、図1におけるエッジ予測・速度演算部39の構成を示している。演算ブロック391では、回転方向判別信号、最新エッジ判別信号、最新エッジ時間計測値から速度検出値を演算する。ここで、エッジ有無判別信号によりエッジがあると判断した場合は前述した数式2、エッジがないと判断した場合は予測エッジを用いた数式4により速度を演算する。これらの演算原理は先願発明と同様であり、本実施形態では、演算ブロック391の後段に速度演算値記憶部392を有する点が特徴となっている。   FIG. 4 shows the configuration of the edge prediction / speed calculation unit 39 in FIG. The calculation block 391 calculates a speed detection value from the rotation direction determination signal, the latest edge determination signal, and the latest edge time measurement value. Here, when it is determined that there is an edge based on the edge presence / absence determination signal, the speed is calculated according to Equation 2 described above, and when it is determined that there is no edge, Equation 4 using the predicted edge is calculated. These calculation principles are the same as those of the invention of the prior application, and this embodiment is characterized in that a speed calculation value storage unit 392 is provided after the calculation block 391.

速度演算値記憶部392では、エッジ有無判別信号を受け取り、速度演算周期内にパルスのエッジが存在する場合にのみ速度演算値を記憶する。よって、エッジが存在しない場合は速度演算値を新たに記憶せず、既に記憶されていた速度演算値を保持する。その結果、速度演算値記憶部392の内部レジスタには、最新のエッジを用いて演算した速度演算値のみが記憶されることになる。
なお、速度演算値に代えて時間計測値を記憶させても良い。
The speed calculation value storage unit 392 receives the edge presence / absence determination signal and stores the speed calculation value only when a pulse edge exists within the speed calculation cycle. Therefore, when there is no edge, the speed calculation value is not newly stored, and the already stored speed calculation value is held. As a result, only the speed calculation value calculated using the latest edge is stored in the internal register of the speed calculation value storage unit 392.
A time measurement value may be stored instead of the speed calculation value.

更に、速度検出値選択部393では、前記一定速度判別部40から入力される一定速度信号の有無により、回転体の速度制御に用いる速度演算値(速度検出値)を選択する。すなわち、一定速度信号が存在する場合は、速度演算値記憶部392に記憶されている速度演算値を選択し、これを速度検出値として出力する。すなわち、回転体が一定速度で回転していると判別し、かつ速度演算周期内でエッジを検出しなかった場合は、前回の速度演算周期における速度演算値を出力するのと等価な動作になる。速度演算値記憶部392に記憶されている速度演算値は、制御タイミングによっては直前の速度演算周期における情報を用いた値ではないが、回転体の回転速度が一定である場合には、時間的な遅れがあっても速度検出誤差が0となるのは明らかである。   Further, the speed detection value selection unit 393 selects a speed calculation value (speed detection value) used for speed control of the rotating body depending on the presence or absence of a constant speed signal input from the constant speed determination unit 40. That is, when there is a constant speed signal, the speed calculation value stored in the speed calculation value storage unit 392 is selected and output as a speed detection value. That is, if it is determined that the rotating body is rotating at a constant speed and no edge is detected within the speed calculation cycle, the operation is equivalent to outputting the speed calculation value in the previous speed calculation cycle. . The speed calculation value stored in the speed calculation value storage unit 392 is not a value using information in the immediately preceding speed calculation cycle depending on the control timing, but when the rotation speed of the rotating body is constant, the time calculation value It is clear that the speed detection error becomes zero even with a slight delay.

よって、本実施形態によれば、回転体の回転速度が一定の場合は、速度演算周期内にパルスのエッジが存在しない極低速時においても速度検出誤差を0とすることが可能となる。 しかし、回転速度が変化しているような場合には、速度演算値記憶部392に記憶されている速度演算値を用いてしまうと、かえって速度検出誤差が増加してしまうのは明らかであるから、このような場合には、直前の速度演算周期における情報を用いて速度検出値を得る必要がある。   Therefore, according to this embodiment, when the rotational speed of the rotating body is constant, the speed detection error can be set to 0 even at an extremely low speed where no pulse edge exists within the speed calculation cycle. However, when the rotational speed is changing, it is clear that the speed detection error increases if the speed calculation value stored in the speed calculation value storage unit 392 is used. In such a case, it is necessary to obtain a speed detection value using information in the immediately preceding speed calculation cycle.

そこで、速度検出値選択部393に一定速度信号が入力されていない場合は、演算ブロック391が数式2または数式4により演算した速度演算値を選択し、これを速度検出値として出力する。つまり、先願発明と全く同様の方法で速度検出値を求めることになる。
速度演算周期内でエッジを検出しなかった場合には、予測エッジを用いた数式4による速度演算を行うため、回転速度の変化にも対応可能であり、検出誤差を真値の1/4以下に抑えることが可能となる。更に、速度演算周期内でエッジを検出した場合については、速度検出誤差は0となる。
本実施形態は、先願発明に対してCPUのプログラムを修正するだけで実現可能であり、安価かつ容易に実現することができる。
Therefore, when a constant speed signal is not input to the speed detection value selection unit 393, the speed calculation value calculated by the calculation block 391 according to Formula 2 or 4 is selected and output as a speed detection value. That is, the speed detection value is obtained by the same method as in the prior invention.
When an edge is not detected within the speed calculation cycle, the speed calculation is performed using Formula 4 using the predicted edge, so that it is possible to cope with changes in the rotation speed, and the detection error is ¼ or less of the true value. It becomes possible to suppress to. Further, when an edge is detected within the speed calculation cycle, the speed detection error is zero.
The present embodiment can be realized only by modifying the CPU program with respect to the prior invention, and can be realized inexpensively and easily.

図2に示した一定速度判別部40の第1実施例では、速度指令値を用いて回転体が一定速度で回転しているか否かを判別したが、その判別はトルク指令値を用いても行うことができる。
図5は、一定速度判別部40の第2実施例を示す構成図であり、請求項2に記載した発明に相当する。この第2実施例は、トルク指令値を用いて回転体が一定速度で回転しているか否かを判別するためのものである。なお、速度検出装置を構成する他の部分は図1と同一である。
In the first embodiment of the constant speed discriminating unit 40 shown in FIG. 2, it is determined whether or not the rotating body is rotating at a constant speed using the speed command value. It can be carried out.
FIG. 5 is a block diagram showing a second embodiment of the constant speed discriminating unit 40 and corresponds to the invention described in claim 2. The second embodiment is for determining whether or not the rotating body is rotating at a constant speed using the torque command value. In addition, the other part which comprises a speed detection apparatus is the same as FIG.

図5において、前回値記憶レジスタ43には、前回の速度演算周期におけるトルク指令値が常に記憶されている。トルク指令値の今回値と前回値とは変化量演算手段44に入力され、一速度演算周期の間にトルク指令値がどれだけ変化したかという変化量が演算される。一定速度信号生成判別手段45では、トルク指令値の変化量と予め設定された規定値とを比較し、その大小関係に応じて一定速度信号を出力する。
すなわち、変化量<規定値の場合には一定速度信号を出力し、変化量>規定値の場合には一定速度信号を停止する。
ここで、トルク指令値の変化量から、回転体が一定速度で回転しているか否かをどのようにして判別するかについて説明する。
トルク指令値Tと回転速度ωとの関係は、数式5によって与えられる。
In FIG. 5, the previous value storage register 43 always stores the torque command value in the previous speed calculation cycle. The current value and the previous value of the torque command value are input to the change amount calculation means 44, and a change amount indicating how much the torque command value has changed during one speed calculation period is calculated. The constant speed signal generation discriminating means 45 compares the change amount of the torque command value with a preset specified value, and outputs a constant speed signal according to the magnitude relationship.
That is, a constant speed signal is output when the change amount <the specified value, and the constant speed signal is stopped when the change amount> the specified value.
Here, how to determine whether or not the rotating body is rotating at a constant speed from the amount of change in the torque command value will be described.
The relationship between the torque command value T * and the rotational speed ω is given by Equation 5.

Figure 0004952631
Figure 0004952631

ただし、数式5において、Tは負荷トルクである。回転体が一定速度で回転している定常状態では、数式5は0である。回転速度が変化するということは、数式5の左辺であるdω/dtが変化することになるが、この時、負荷トルクTは常に一定と考えると、トルク指令値Tも変化するのは明らかである。このことは、回転速度の変動時にトルク指令値が変化することを表しており、トルク指令値の変化量を検出すれば回転体が一定速度で回転しているか否かを判別することが可能である。 However, in Formula 5, TL is a load torque. In a steady state where the rotating body is rotating at a constant speed, Equation 5 is zero. When the rotational speed changes, dω / dt, which is the left side of Equation 5, changes. At this time, if the load torque TL is always considered constant, the torque command value T * also changes. it is obvious. This indicates that the torque command value changes when the rotational speed varies, and it is possible to determine whether or not the rotating body is rotating at a constant speed by detecting the amount of change in the torque command value. is there.

以上のことを考慮して、この第2実施例では、トルク指令値の変化量を演算し、この変化量が規定値よりも大きい場合は回転体が加速または減速を行っていると判別して一定速度信号を停止させる。逆に、トルク指令値の変化量が規定値よりも小さい場合は、回転体がほぼ一定速度で回転していると見なせるので、一定速度信号を出力する。
なお、一定速度信号が入力されるエッジ予測・速度演算部39の動作については、図4を用いて説明したとおりである。
In consideration of the above, in the second embodiment, the amount of change in the torque command value is calculated, and if the amount of change is larger than the specified value, it is determined that the rotating body is accelerating or decelerating. Stop the constant speed signal. On the contrary, when the change amount of the torque command value is smaller than the specified value, it can be considered that the rotating body is rotating at a substantially constant speed, and thus a constant speed signal is output.
The operation of the edge prediction / speed calculation unit 39 to which the constant speed signal is input is as described with reference to FIG.

本発明の実施形態を示す構成図である。It is a block diagram which shows embodiment of this invention. 図1における一定速度判別部の第1実施例を示す構成図である。It is a block diagram which shows 1st Example of the constant speed discrimination | determination part in FIG. 速度指令値の説明図である。It is explanatory drawing of a speed command value. 図1におけるエッジ予測・速度演算部の構成図である。FIG. 2 is a configuration diagram of an edge prediction / speed calculation unit in FIG. 1. 図1における一定速度判別部の第2実施例を示す構成図である。It is a block diagram which shows 2nd Example of the constant speed discrimination | determination part in FIG. 従来技術を示す構成図である。It is a block diagram which shows a prior art. 従来技術による速度検出動作を示すフローチャートである。It is a flowchart which shows the speed detection operation | movement by a prior art. 先願発明の構成図である。It is a block diagram of prior invention. 先願発明における回転方向検出部の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the rotation direction detection part in prior invention. 先願発明における速度検出動作を示すタイミングチャートである。It is a timing chart which shows speed detection operation in a prior invention. 先願発明における最新エッジ検出部、エッジ予測・速度演算部等の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the newest edge detection part in the prior application invention, an edge prediction and speed calculating part, etc. 従来技術及び先願発明により速度を検出した場合のシミュレーション結果を示す図である。It is a figure which shows the simulation result at the time of detecting speed by a prior art and prior application invention.

符号の説明Explanation of symbols

21:ラッチ信号作成部
23:時間計測カウンタ
25−1〜25−4:データラッチ
26:エッジ保持部
28−1〜28−4:データラッチ
29:エッジ変化情報保持部
30B:CPU
31:コントローラ
32:回転方向検出部
33:回転方向保持部
34:回転方向変化エッジ記憶部
35−1〜35−4,36,37:記憶部
38:最新エッジ検出部
39:エッジ予測・速度演算部
391:演算ブロック
392:速度演算値記憶部
393:速度検出値選択部
40:一定速度判別部
41,43:前回値記憶レジスタ
42:比較手段
44:変化量演算手段
45:一定速度信号生成判別手段
21: Latch signal creation unit 23: Time measurement counter 25-1 to 25-4: Data latch 26: Edge holding unit 28-1 to 28-4: Data latch 29: Edge change information holding unit 30B: CPU
31: Controller 32: Rotation direction detection unit 33: Rotation direction holding unit 34: Rotation direction change edge storage unit 35-1 to 35-4, 36, 37: Storage unit 38: Latest edge detection unit 39: Edge prediction / speed calculation Unit 391: Calculation block 392: Speed calculation value storage unit 393: Speed detection value selection unit 40: Constant speed determination unit 41, 43: Previous value storage register 42: Comparison unit 44: Change amount calculation unit 45: Determination of constant speed signal generation means

Claims (2)

速度検出対象としての回転体に取り付けられたエンコーダの出力パルスから、回転体の回転速度を検出する速度検出装置において、
前記出力パルスのエッジを検出するエッジ検出手段と、
検出されたエッジに基づいて回転体の回転方向を検出する回転方向検出手段と、
速度演算周期に同期した時間を計測する時間計測手段と、
前記エッジ検出手段の出力により前記時間計測手段の時間計測値を保持する時間記憶手段と、
速度演算周期内の前記エッジの変化状態を検出しエッジ変化情報として保持するエッジ変化情報保持手段と、
前記回転方向及びエッジ変化情報から、速度演算周期内に前記エッジの変化がない場合に次に発生するエッジの位置を予測し、予測したエッジに対応する前記時間計測値及び前記回転方向を少なくとも用いて回転体の回転速度を演算する演算手段と、を有し、
この演算手段は、
前回の速度演算周期における回転体への速度指令値と今回の速度演算周期における回転体への速度指令値とを比較して、回転体が一定速度で回転しているか否かを判別する一定速度判別手段を備え、
前記演算手段は、前記一定速度判別手段により回転体が一定速度で回転していることを判別したときは、速度演算周期内にエッジが存在した時の最新の速度演算値を出力することを特徴とする速度検出装置。
In the speed detection device that detects the rotational speed of the rotating body from the output pulse of the encoder attached to the rotating body as a speed detection target,
Edge detection means for detecting an edge of the output pulse;
Rotation direction detection means for detecting the rotation direction of the rotating body based on the detected edge;
A time measuring means for measuring time synchronized with the speed calculation cycle;
Time storage means for holding the time measurement value of the time measurement means by the output of the edge detection means;
Edge change information holding means for detecting a change state of the edge within a speed calculation cycle and holding it as edge change information;
From the rotation direction and edge change information, the position of the next edge to be generated is predicted when there is no change in the edge within the speed calculation period, and at least the time measurement value and the rotation direction corresponding to the predicted edge are used. And calculating means for calculating the rotation speed of the rotating body,
This computing means is
Constant speed to determine whether the rotating body is rotating at a constant speed by comparing the speed command value to the rotating body in the previous speed calculation cycle with the speed command value to the rotating body in the current speed calculation cycle Provided with a discrimination means,
The calculation means outputs the latest speed calculation value when an edge exists in the speed calculation cycle when the constant speed determination means determines that the rotating body is rotating at a constant speed. A speed detector.
速度検出対象としての回転体に取り付けられたエンコーダの出力パルスから、回転体の回転速度を検出する速度検出装置において、
前記出力パルスのエッジを検出するエッジ検出手段と、
検出されたエッジに基づいて回転体の回転方向を検出する回転方向検出手段と、
速度演算周期に同期した時間を計測する時間計測手段と、
前記エッジ検出手段の出力により前記時間計測手段の時間計測値を保持する時間記憶手段と、
速度演算周期内の前記エッジの変化状態を検出しエッジ変化情報として保持するエッジ変化情報保持手段と、
前記回転方向及びエッジ変化情報から、速度演算周期内に前記エッジの変化がない場合に次に発生するエッジの位置を予測するエッジ予測手段と、
このエッジ予測手段により予測したエッジに対応する前記時間計測値及び前記回転方向を少なくとも用いて回転体の回転速度を演算する演算手段と、を有し、
この演算手段は、
前回の速度演算周期における回転体へのトルク指令値と今回の速度演算周期における回転体へのトルク指令値との変化量を規定値と比較して、回転体が一定速度で回転しているか否かを判別する一定速度判別手段を備え、
前記演算手段は、前記一定速度判別手段により回転体が一定速度で回転していることを判別したときは、速度演算周期内にエッジが存在した時の最新の速度演算値を出力することを特徴とする速度検出装置。
In the speed detection device that detects the rotational speed of the rotating body from the output pulse of the encoder attached to the rotating body as a speed detection target,
Edge detection means for detecting an edge of the output pulse;
Rotation direction detection means for detecting the rotation direction of the rotating body based on the detected edge;
A time measuring means for measuring time synchronized with the speed calculation cycle;
Time storage means for holding the time measurement value of the time measurement means by the output of the edge detection means;
Edge change information holding means for detecting a change state of the edge within a speed calculation cycle and holding it as edge change information;
Edge prediction means for predicting the position of the edge that occurs next when there is no change in the edge within the speed calculation cycle from the rotation direction and edge change information;
Calculating means for calculating the rotational speed of the rotating body using at least the time measurement value and the rotation direction corresponding to the edge predicted by the edge prediction means;
This computing means is
Whether the rotating body is rotating at a constant speed by comparing the amount of change between the torque command value for the rotating body in the previous speed calculation cycle and the torque command value for the rotating body in the current speed calculation cycle with the specified value Equipped with a constant speed discriminating means for discriminating
The calculation means outputs the latest speed calculation value when an edge exists in the speed calculation cycle when the constant speed determination means determines that the rotating body is rotating at a constant speed. A speed detector.
JP2008086682A 2008-03-28 2008-03-28 Speed detection device Active JP4952631B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008086682A JP4952631B2 (en) 2008-03-28 2008-03-28 Speed detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008086682A JP4952631B2 (en) 2008-03-28 2008-03-28 Speed detection device

Publications (2)

Publication Number Publication Date
JP2009236872A JP2009236872A (en) 2009-10-15
JP4952631B2 true JP4952631B2 (en) 2012-06-13

Family

ID=41250980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008086682A Active JP4952631B2 (en) 2008-03-28 2008-03-28 Speed detection device

Country Status (1)

Country Link
JP (1) JP4952631B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6757287B2 (en) * 2017-04-11 2020-09-16 東洋電機製造株式会社 Speed detector

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62272889A (en) * 1986-05-19 1987-11-27 Mitsubishi Electric Corp Vector control arithmetic unit for electric motor
JP3173174B2 (en) * 1992-10-06 2001-06-04 株式会社明電舎 Speed detector
JP4998789B2 (en) * 2007-10-03 2012-08-15 富士電機株式会社 Speed detection device

Also Published As

Publication number Publication date
JP2009236872A (en) 2009-10-15

Similar Documents

Publication Publication Date Title
JP6107557B2 (en) Angle detection device and angle detection method
JP5341714B2 (en) Phase difference type resolver
JPH08261794A (en) Encoder apparatus and servo motor control apparatus
JP2008079441A (en) Motor controller and controller comprising the same
CN108458642B (en) Method for controlling shape measuring apparatus
JP4253372B2 (en) Elevator speed control apparatus and recording medium recording elevator speed detection program
JP4952631B2 (en) Speed detection device
JP4998789B2 (en) Speed detection device
JP4998788B2 (en) Speed detection device
JP2010008235A (en) Speed detection device
JP2009095154A (en) Motor controller and its speed detection method
US10498278B2 (en) Motor controller
JP6407490B1 (en) Motor control device
JP5664895B2 (en) Electric motor control device
JP2010117150A (en) Velocity detector
JP2003319682A (en) Control device for permanent magnet synchronous motor
JP2016080547A (en) Position controller
JP6000652B2 (en) Pulse motor control device and pulse signal generation method
JP2010133857A (en) Method and apparatus of detecting motor rotation speed of cargo handling vehicle
JP6101117B2 (en) Pulse motor control device
JP2691052B2 (en) Encoder resolution conversion method and device and image detection device
JP2024000028A (en) Speed detection device and speed detection method
JP4650118B2 (en) Apparatus and method for estimating initial magnetic pole of AC synchronous motor
JP5756267B2 (en) Encoder signal processing circuit
KR20080090866A (en) Control method and control device for determining fail of position detection sensor for motor and performing fail safe

Legal Events

Date Code Title Description
A625 Written request for application examination (by other person)

Free format text: JAPANESE INTERMEDIATE CODE: A625

Effective date: 20110214

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110422

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120209

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120227

R150 Certificate of patent or registration of utility model

Ref document number: 4952631

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150323

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D02

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250