TWI424163B - Estimation method for rotational speed and computer readable medium using the same - Google Patents

Estimation method for rotational speed and computer readable medium using the same Download PDF

Info

Publication number
TWI424163B
TWI424163B TW99133709A TW99133709A TWI424163B TW I424163 B TWI424163 B TW I424163B TW 99133709 A TW99133709 A TW 99133709A TW 99133709 A TW99133709 A TW 99133709A TW I424163 B TWI424163 B TW I424163B
Authority
TW
Taiwan
Prior art keywords
rotational speed
signal
phase
count value
sampling
Prior art date
Application number
TW99133709A
Other languages
Chinese (zh)
Other versions
TW201215889A (en
Inventor
Hsien Lai Yu
Che Ming Chang
Original Assignee
Teco Elec & Machinery 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 Teco Elec & Machinery Co Ltd filed Critical Teco Elec & Machinery Co Ltd
Priority to TW99133709A priority Critical patent/TWI424163B/en
Publication of TW201215889A publication Critical patent/TW201215889A/en
Application granted granted Critical
Publication of TWI424163B publication Critical patent/TWI424163B/en

Links

Landscapes

  • Control Of Electric Motors In General (AREA)

Description

轉速估算方法及應用其之電腦可讀取媒體Speed estimation method and computer readable medium using the same

本發明是有關於一種轉速估算方法及其電腦可讀取媒體,且特別是有關於一種應用於馬達轉速控制之轉速估算方法及其電腦可讀取媒體。The present invention relates to a method for estimating a rotational speed and a computer readable medium thereof, and more particularly to a method for estimating a rotational speed applied to motor rotational speed control and a computer readable medium thereof.

在現有技術中,馬達轉速估算方法係已存在,並廣泛地應用在各種場合中。一般來說,馬達上具有光電編碼器,用以產生彼此具有90度相位差之相位編碼訊號A及相位編碼訊號B。舉例來說,馬達每旋轉一圈,產生之相位編碼訊號A及B對應地觸發M個脈波訊號,M為大於1之自然數。在現有技術中,測頻法(或稱M法)及測週期法(或稱T法)為目前常用的兩種演算方法,用以根據此些脈波訊號對應地估算馬達的旋轉速度。產生之轉速估算值更可被用來對馬達進行轉速回授控制。In the prior art, motor speed estimation methods have existed and are widely used in various applications. Generally, the motor has a photoelectric encoder for generating a phase-encoded signal A and a phase-encoded signal B having a phase difference of 90 degrees from each other. For example, each time the motor rotates, the generated phase-encoded signals A and B trigger M pulse signals correspondingly, and M is a natural number greater than 1. In the prior art, the frequency measurement method (or M method) and the measurement period method (or the T method) are two commonly used calculation methods for estimating the rotation speed of the motor according to the pulse signals. The resulting speed estimate can be used to control the speed of the motor.

然而,如何設計出具有轉速估算範圍較廣且轉速估算結果較為精準之轉速估算方法,為業界不斷致力方向之一。However, how to design a speed estimation method with a wide range of speed estimation and accurate speed estimation results is one of the continuous efforts of the industry.

本發明係有關於一種轉速估算方法及應用其之電腦可讀取媒體,相較於傳統轉速估算方法,本發明相關之轉速估算方法及其電腦可讀取媒體具有轉速估算範圍較廣且轉速估算結果較為精準的優點。The invention relates to a method for estimating the rotation speed and a computer readable medium using the same, compared with the traditional speed estimation method, the speed estimation method and the computer readable medium of the invention have a wide range of speed estimation and speed estimation. The result is more precise.

根據本發明之第一方面,提出一種轉速估算方法與記載其之電腦可讀取媒體,用以對馬達裝置進行轉速估算。轉速估算方法包括下列之步驟。首先提供第一及第二取樣訊號,第一及第二取樣訊號分別具有第一及第二取樣頻率,第一取樣頻率實質上大於第二取樣頻率。接著根據馬達裝置之最高轉速資訊及第一取樣訊號決定第一運算參數,並根據最高轉速資訊及第二取樣訊號決定第二運算參數。當馬達裝置之轉速資訊對應至第一轉速條件時,選擇第一取樣訊號及第一運算參數分別做為取樣訊號及運算參數。當轉速資訊達到第二轉速條件時,選擇第二取樣訊號及第二運算參數分別做為取樣訊號及運算參數。然後以取樣訊號對馬達裝置之待取樣相位編碼訊號進行取樣,以得到取樣數值。之後根據取樣數值及運算參數產生轉速估算值。第一及該第二轉速條件對應至不同之轉速範圍,第一轉速條件之轉速範圍高於第二轉速條件之轉速範圍。According to a first aspect of the present invention, a method for estimating a rotational speed and a computer readable medium having the same are provided for estimating a rotational speed of a motor device. The speed estimation method includes the following steps. First, first and second sampling signals are provided. The first and second sampling signals respectively have first and second sampling frequencies, and the first sampling frequency is substantially greater than the second sampling frequency. Then, the first operation parameter is determined according to the maximum rotation speed information of the motor device and the first sampling signal, and the second operation parameter is determined according to the maximum rotation speed information and the second sampling signal. When the rotational speed information of the motor device corresponds to the first rotational speed condition, the first sampling signal and the first operational parameter are selected as sampling signals and operational parameters, respectively. When the speed information reaches the second speed condition, the second sampling signal and the second operation parameter are selected as sampling signals and operation parameters, respectively. The sampled phase encoded signal of the motor device is then sampled by a sample signal to obtain a sampled value. The speed estimate is then generated based on the sampled value and the operational parameters. The first and the second rotational speed conditions correspond to different rotational speed ranges, and the rotational speed range of the first rotational speed condition is higher than the rotational speed range of the second rotational speed condition.

根據本發明之第二方面,提出一種轉速估算方法與記載其之電腦可讀取媒體,用以對馬達裝置進行轉速估算。轉速估算方法包括下列之步驟。首先根據馬達裝置之最高轉速資訊及第一相位編碼訊號決定第一運算參數,並根據馬達裝置之最高轉速資訊及第二相位編碼訊號,決定第二運算參數,第一及第二相位編碼訊號分別具有不同之產生頻率,第一相位編碼訊號之頻率實質上小於第二相位編碼訊號之頻率。當馬達裝置之轉速資訊達到第一轉速條件時,選擇第一相位編碼訊號及第一運算參數分別做為待取樣相位編碼訊號及運算參數。當轉速資訊達到第二轉速條件時,選擇第二相位編碼訊號及第二運算參數分別做為待取樣相位編碼訊號及運算參數。然後以取樣訊號對待取樣相位編碼訊號進行取樣以得到取樣數值。之後根據取樣數值及運算參數產生轉速估算值。第一及第二轉速條件對應不同轉速範圍,第一轉速條件之轉速範圍係高於第二轉速條件之轉速範圍。According to a second aspect of the present invention, a method for estimating a rotational speed and a computer readable medium recording the same are provided for estimating a rotational speed of a motor device. The speed estimation method includes the following steps. Firstly, the first operation parameter is determined according to the maximum rotation speed information of the motor device and the first phase encoding signal, and the second operation parameter is determined according to the maximum rotation speed information of the motor device and the second phase encoding signal, and the first and second phase encoding signals are respectively Having different generation frequencies, the frequency of the first phase encoded signal is substantially less than the frequency of the second phase encoded signal. When the rotational speed information of the motor device reaches the first rotational speed condition, the first phase encoded signal and the first operational parameter are selected as the phase encoded signal to be sampled and the operational parameter respectively. When the speed information reaches the second speed condition, the second phase coded signal and the second operation parameter are selected as the phase coded signal and the operation parameter to be sampled, respectively. The sampled phase-encoded signal is then sampled with a sampled signal to obtain a sampled value. The speed estimate is then generated based on the sampled value and the operational parameters. The first and second rotational speed conditions correspond to different rotational speed ranges, and the rotational speed range of the first rotational speed condition is higher than the rotational speed range of the second rotational speed condition.

根據本發明之第三方面,提出一種轉速估算方法與記載其之電腦可讀取媒體,用以對馬達裝置進行轉速估算。轉速估算方法包括步驟a至c。首先如步驟a,根據馬達裝置之最高轉速資訊及待取樣相位編碼訊號決定運算參數。接著如步驟b,以取樣訊號對待取樣相位編碼訊號進行取樣以得到取樣數值,其中步驟b中更包括子步驟b1至b5。首先如步驟b1提供第一及第二計數器,分別記錄第一及第二計數值,在起始狀態下,第一及第二計數值對應至終止計數值。接著如步驟b2,當接收到待取樣相位編碼訊號時驅動第二計數器,使第二計數值等於第一計數值,並驅動第一計數器重置第一計數值為起始計數值。然後如步驟b3,當接收到取樣訊號時驅動第一計數器將第一計數值遞增1。如步驟b4,當第一計數值等於最高計數值時驅動第一計數器終止步驟b3之操作,使第一計數值維持在最高計數值。如步驟b5,讀取第二計數值做為取樣數值。之後如步驟c,根據取樣數值及運算參數產生轉速估算值。According to a third aspect of the present invention, a method for estimating a rotational speed and a computer readable medium recording the same are provided for estimating a rotational speed of a motor device. The speed estimation method includes steps a to c. First, as step a, the operation parameters are determined according to the maximum speed information of the motor device and the phase coded signal to be sampled. Then, in step b, the sampled phase-encoded signal is sampled by the sampled signal to obtain a sampled value, wherein step b further includes sub-steps b1 to b5. First, the first and second counters are provided as in step b1, and the first and second count values are respectively recorded. In the initial state, the first and second count values correspond to the end count value. Then, as step b2, when the phase coded signal to be sampled is received, the second counter is driven to make the second count value equal to the first count value, and the first counter is driven to reset the first count value as the start count value. Then, as in step b3, the first counter is driven to increment the first count value by one when the sampling signal is received. In step b4, the first counter is driven to terminate the operation of step b3 when the first count value is equal to the highest count value, so that the first count value is maintained at the highest count value. In step b5, the second count value is read as the sampled value. Then, as step c, the speed estimation value is generated based on the sampled value and the operation parameter.

為了對本發明之上述及其他方面有更佳的瞭解,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下:In order to better understand the above and other aspects of the present invention, the preferred embodiments are described below, and in conjunction with the drawings, the detailed description is as follows:

請參照第1圖,其繪示應用本發明實施例之轉速估算方法之馬達系統的方塊圖。舉例來說,馬達系統1中包括速度控制迴路110、電流控制迴路112、電壓向量轉換器114、電流向量轉換器116、等效驅動系統118、信號迴授介面電路120、速度計算電路122及馬達裝置124。馬達裝置124包括光學編碼器,用以產生相位編碼訊號。舉例來說,馬達裝置124藉由光學編碼器產生相位編碼訊號A及相位編碼訊號B,其中相位編碼訊號A與B之間具有90度相位差。當馬達裝置124旋轉一圈,相位編碼訊號A及B係對應地觸發N個脈波週期訊號,其中N為大於1之自然數。Referring to FIG. 1, a block diagram of a motor system to which the rotational speed estimating method of the embodiment of the present invention is applied is shown. For example, the motor system 1 includes a speed control loop 110, a current control loop 112, a voltage vector converter 114, a current vector converter 116, an equivalent drive system 118, a signal feedback interface circuit 120, a speed calculation circuit 122, and a motor. Device 124. Motor unit 124 includes an optical encoder for generating a phase encoded signal. For example, the motor device 124 generates a phase-encoded signal A and a phase-encoded signal B by an optical encoder, wherein the phase-coded signals A and B have a phase difference of 90 degrees. When the motor unit 124 rotates once, the phase-encoded signals A and B respectively trigger N pulse period signals, where N is a natural number greater than one.

速度計算電路122中包括處理器及電腦可讀取媒體,此電腦可讀取媒體用以記錄對應至本發明實施例之轉速估算方法的程式碼,而此處理器係存取此電腦可讀取媒體,以執行本發明實施例之轉速估算方法,來對馬達裝置124之轉速進行估算。The speed calculation circuit 122 includes a processor and a computer readable medium. The computer readable medium is used to record a code corresponding to the speed estimation method of the embodiment of the present invention, and the processor is readable by the computer. The medium estimates the rotational speed of the motor unit 124 by performing the rotational speed estimation method of the embodiment of the present invention.

進一步言,應用本發明之速度計算電路122執行之轉速估算方法雖主要係針對傳統之測週期法(或稱T法)進行改良,使其可獲得精準之轉速估算值,然其亦可整合現有之測頻法(或稱M法),以根據測頻法得到馬達裝置124之運轉方向資訊。更進一步的說,在得到馬達裝置124之運轉方向資訊的操作來說,速度計算電路122係根據馬達裝置124中之相位編碼訊號A及B之相位關係,藉此得到馬達裝置124之旋轉方向資訊。Further, although the speed estimation method performed by the speed calculation circuit 122 of the present invention is mainly modified for the conventional measurement period method (or the T method), it is possible to obtain accurate speed estimation values, but it can also integrate existing The frequency measuring method (or M method) is used to obtain the running direction information of the motor device 124 according to the frequency measuring method. Furthermore, in the operation of obtaining the direction information of the motor device 124, the speed calculation circuit 122 obtains the rotation direction information of the motor device 124 based on the phase relationship of the phase-encoded signals A and B in the motor device 124. .

以得到馬達裝置124之轉速估算值的操作來說,其係以取樣訊號對相位編碼訊號A或B進行取樣的方式,來得到對應之轉速估算值。接下來係舉若干實施例,以對本速度計算電路122所執行之測週期法的相關操作做進一步的說明。In order to obtain the estimated value of the rotational speed of the motor device 124, the phase-coded signal A or B is sampled by the sampling signal to obtain a corresponding rotational speed estimate. Next, several embodiments will be described to further explain the related operations of the measurement period method performed by the speed calculation circuit 122.

第一實施例First embodiment

本實施例之轉速估算方法根據馬達裝置之轉速資訊,來選擇多個取樣訊號其中之一,並據以對相位編碼訊號進行取樣。請參照第2圖,其繪示依照本發明第一實施例之轉速估算方法的流程圖。首先如步驟(a),速度計算電路122提供取樣訊號Ss1及Ss2,並據以對馬達裝置124中之光學編碼器產生之相位編碼訊號A或B進行取樣,以得到取樣數值X。根據此取樣數值及取樣訊號之週期時間,速度計算電路124可得到馬達裝置124旋轉一圈之時間所需之時間,即是馬達裝置124之轉速估算數值。取樣訊號Ss1及Ss2分別具有第一及第二取樣頻率,此第一取樣頻率實質上大於此第二取樣頻率。舉例來說,速度計算電路122中包括複雜可編程邏輯裝置(Complex Programmable Logic Device,CPLD),用以提供取樣訊號Ss1及Ss2並據以進行取樣計時之操作。The rotation speed estimating method of the embodiment selects one of the plurality of sampling signals according to the rotation speed information of the motor device, and samples the phase-encoding signal accordingly. Referring to FIG. 2, a flow chart of a method for estimating the rotational speed according to the first embodiment of the present invention is shown. First, as in step (a), the speed calculation circuit 122 provides the sampling signals Ss1 and Ss2, and accordingly samples the phase-encoded signal A or B generated by the optical encoder in the motor unit 124 to obtain the sampled value X. Based on the sampled value and the cycle time of the sampled signal, the speed calculation circuit 124 can obtain the time required for the motor unit 124 to rotate one revolution, that is, the estimated speed of the motor unit 124. The sampling signals Ss1 and Ss2 have first and second sampling frequencies, respectively, and the first sampling frequency is substantially greater than the second sampling frequency. For example, the speed calculation circuit 122 includes a Complex Programmable Logic Device (CPLD) for providing the sampling signals Ss1 and Ss2 and performing sampling timing operations.

接著如步驟(b),速度計算電路122根據馬達裝置124之最高轉速資訊及取樣訊號Ss1決定運算參數P1,並根據此最高轉速資訊及取樣訊號Ss2決定運算參數P2。舉例來說,速度計算電路122根據下列方程式計算運算參數P1及P2:Next, in step (b), the speed calculation circuit 122 determines the operation parameter P1 according to the maximum rotation speed information of the motor device 124 and the sampling signal Ss1, and determines the operation parameter P2 based on the maximum rotation speed information and the sampling signal Ss2. For example, the speed calculation circuit 122 calculates the operational parameters P1 and P2 according to the following equation:

其中Rs為馬達裝置124之最高轉速;T1及T2分別為取樣訊號Ss1及Ss2之週期時間;N為馬達裝置124每旋轉一圈,其之相位編碼訊號A或B對應觸發之脈波週期數目;K為速度計算電路122中所欲得出之速度解析範圍位元數。Wherein Rs is the maximum rotational speed of the motor device 124; T1 and T2 are the cycle times of the sampling signals Ss1 and Ss2, respectively; N is the number of pulse wave cycles corresponding to the phase-encoded signal A or B for each rotation of the motor device 124; K is the number of speed resolution range bits to be obtained in the speed calculation circuit 122.

在一個操作實例中,馬達裝置124之最高轉速為每秒4.167轉(Revolution per Second,rps);取樣訊號Ss1及Ss2分別對應至頻率10百萬赫茲(Megahertz,MHz)及19.53千赫茲(Kilohertz,KHz),換言之,其分別具有100奈秒(Nanosecond,ns)之週期時間T1及51.2微秒(Microsecond,μs)之週期時間T2;每旋轉一圈,此光學編碼器產生之相位編碼訊號對應觸發之脈波週期數目N為2048;速度計算電路122中所欲得出之速度解析範圍位元數K例如為15位元。據此,速度計算電路122可根據前述方程式,得到運算參數P1及P2分別對應至數值3.84×107 及7.5×104In one example of operation, the maximum speed of the motor unit 124 is 4.167 revolutions per second (Revolution per Second, rps); the sampling signals Ss1 and Ss2 correspond to frequencies of 10 megahertz (Megahertz, MHz) and 19.53 kHz (Kilohertz, respectively). KHz), in other words, it has a cycle time T1 of 100 nanoseconds (ns) and a cycle time T2 of 51.2 microseconds (microsecond, μs); for each rotation, the phase-encoded signal generated by the optical encoder corresponds to the trigger The number N of pulse wave periods is 2048; the number K of speed resolution ranges to be obtained in the speed calculation circuit 122 is, for example, 15 bits. Accordingly, the speed calculation circuit 122 can obtain the operation parameters P1 and P2 corresponding to the values of 3.84×10 7 and 7.5×10 4 , respectively, according to the foregoing equation.

於步驟(b)之後,速度計算電路122得到馬達裝置124之轉速資訊。舉例來說,此轉速資訊例如為速度計算單元122在前一次轉速估算操作中得到之馬達裝置124之轉速數值。After step (b), the speed calculation circuit 122 obtains the rotational speed information of the motor unit 124. For example, the rotational speed information is, for example, the rotational speed value of the motor device 124 obtained by the speed calculating unit 122 in the previous rotational speed estimating operation.

當此轉速資訊對應至第一轉速條件時,本實施例之轉速估算方法進入步驟(c),速度計算電路122選擇取樣訊號Ss1做為取樣訊號,並選擇運算參數P1做為運算參數P。其中,此第一轉速條件對應至馬達裝置124之第一轉速範圍。舉例來說,此第一轉速範圍對應至4.167rps至每分鐘4.46轉(Revolution Per Minute,rpm)。於步驟(c)之後係執行步驟(e)及(f),速度計算電路122依序地根據此取樣訊號(即是取樣訊號Ss1)對馬達裝置124之相位編碼訊號進行取樣以得到取樣數值X,及根據取樣數值X及運算參數P產生轉速估算值Y。舉例來說,速度計算電路122係根據下列方程式,來根據取樣數值X及此運算參數產生轉速估算值Y:When the rotational speed information corresponds to the first rotational speed condition, the rotational speed estimating method of the present embodiment proceeds to step (c), and the speed calculating circuit 122 selects the sampling signal Ss1 as the sampling signal, and selects the operational parameter P1 as the operational parameter P. The first rotational speed condition corresponds to the first rotational speed range of the motor device 124. For example, this first speed range corresponds to 4.167 rps to 4.46 revolutions per minute (Revolution Per Minute, rpm). After step (c), steps (e) and (f) are performed, and the speed calculation circuit 122 sequentially samples the phase-coded signal of the motor device 124 according to the sample signal (ie, the sample signal Ss1) to obtain the sample value X. And generating a speed estimation value Y based on the sampled value X and the operation parameter P. For example, the speed calculation circuit 122 generates a speed estimation value Y based on the sampled value X and the operation parameter according to the following equation:

當此轉速資訊對應至第二轉速條件時,本實施例之轉速估算方法進入步驟(d),速度計算電路122選擇取樣訊號Ss2做為此取樣訊號,並選擇運算參數P2做為運算參數P。其中,此第二轉速條件對應至馬達裝置124之第二轉速範圍,此第二轉速範圍係低於前述第一轉速範圍。舉例來說,此第二轉速範圍對應至4.46rpm至0.0087rpm。於步驟(d)之後係執行步驟(e)及(f),速度計算電路122依序地根據此取樣訊號(即是取樣訊號Ss2)對馬達裝置124之相位編碼訊號進行取樣以得到取樣數值X,及根據取樣數值X及運算參數P產生轉速估算值Y。舉例來說,速度計算電路122係根據下列方程式,來根據取樣數值X及此運算參數產生轉速估算值Y:When the rotation speed information corresponds to the second rotation speed condition, the rotation speed estimation method of the embodiment proceeds to step (d), the speed calculation circuit 122 selects the sampling signal Ss2 as the sampling signal, and selects the operation parameter P2 as the operation parameter P. The second rotational speed condition corresponds to a second rotational speed range of the motor device 124, and the second rotational speed range is lower than the first rotational speed range. For example, this second rotational speed range corresponds to 4.46 rpm to 0.0087 rpm. After step (d), steps (e) and (f) are performed, and the speed calculation circuit 122 sequentially samples the phase-coded signal of the motor device 124 according to the sample signal (ie, the sample signal Ss2) to obtain the sample value X. And generating a speed estimation value Y based on the sampled value X and the operation parameter P. For example, the speed calculation circuit 122 generates a speed estimation value Y based on the sampled value X and the operation parameter according to the following equation:

如此,本實施例之速度計算電路122可根據馬達裝置124對應至不同數值範圍之轉速,以不同頻率之取樣訊號Ss1及Ss2來進行相位編碼訊號之取樣操作。如此,相較於應用傳統轉速估算方法之速度計算電路,本實施例之速度計算電路122可有效地在暫存器之長度及相位編碼訊號之頻率固定的情況下,提供更寬廣的轉速估算範圍。As such, the speed calculation circuit 122 of the present embodiment can perform the sampling operation of the phase-encoded signal by the sampling signals Ss1 and Ss2 of different frequencies according to the rotational speed of the motor device 124 corresponding to different numerical ranges. Thus, the speed calculation circuit 122 of the present embodiment can effectively provide a wider range of speed estimation range when the length of the register and the frequency of the phase-encoded signal are fixed, compared to the speed calculation circuit applying the conventional speed estimation method. .

請參照第3圖,其繪示本發明第一實施例之轉速估算方法的部份流程圖。舉例來說,本實施例之轉速估算方法之步驟(e)中包括步驟(e1)至(e5)。首先如步驟(e1),速度計算電路122中係具有X位元之第一計數器及第二計數器,其分別記錄計數值CV1及CV2。舉例來說,X等於16。在起始狀態下,計數值CV1及CV2等於終止計數值,其例如對應至此第一及此第二計數器之一最高計數數值(FFFF)16 ,如第4圖所示。Referring to FIG. 3, a partial flow chart of the method for estimating the rotational speed of the first embodiment of the present invention is shown. For example, the step (e1) to (e5) are included in the step (e) of the rotational speed estimating method of the present embodiment. First, as in step (e1), the speed calculation circuit 122 has a first counter and a second counter of X bits, which respectively record the count values CV1 and CV2. For example, X is equal to 16. In the initial state, the count values CV1 and CV2 are equal to the end count value, which corresponds, for example, to one of the first and second counters, the highest count value (FFFF) 16 , as shown in FIG.

步驟(e1)之後更包括步驟(e2),當接收到相位編碼訊號時,速度計算電路122驅動此第二計數器,使計數值CV2等於計數值CV1,並驅動此第一計數器,重置計數值CV1為起始計數值(0000)16 。於此實施例中,該相位編碼器訊號之接收係接收其前緣(Front Edge),例如是上升緣(Rising Edge))ED1,然並不以此為限。Step (e1) further includes a step (e2). When the phase encode signal is received, the speed calculation circuit 122 drives the second counter to make the count value CV2 equal to the count value CV1, and drives the first counter to reset the count value. CV1 is the starting count value (0000) 16 . In this embodiment, the receiving of the phase encoder signal receives its leading edge (for example, Rising Edge) ED1, but is not limited thereto.

步驟(e1)之後更包括步驟(e3),當接收到此取樣訊號(即是取樣訊號Ss1及Ss2其中之一)時,速度計算電路122驅動此第一計數器將計數值CV1遞增1。於此實施例中,該相位編碼器訊號之接收係接收其前緣(Front Edge),例如是上升緣(Rising Edge))ED1,然並不以此為限。其中,步驟(e2)及(e3)間之次序關係及操作次數係因馬達裝置124之運轉狀況而不同。舉例來說,當馬達裝置124正常運轉時,於步驟(e1)之後係執行步驟(e2),並於步驟(e2)之後執行多次步驟(e3);而在多次步驟(e3)之執行操作後,本實施例之轉速估算方法再一次地執行步驟(e2),藉此記錄兩個相位編碼訊號之間取樣訊號之觸發次數,此取樣訊號之觸發次數,即對應至多少個取樣訊號之週期時間,亦代表在運轉中之馬達裝置124旋轉N分之一圈所需之時間。Step (e1) further includes a step (e3). When receiving the sampling signal (that is, one of the sampling signals Ss1 and Ss2), the speed calculation circuit 122 drives the first counter to increment the count value CV1 by one. In this embodiment, the receiving of the phase encoder signal receives its leading edge (for example, Rising Edge) ED1, but is not limited thereto. However, the order relationship between the steps (e2) and (e3) and the number of operations differ depending on the operation state of the motor unit 124. For example, when the motor device 124 is operating normally, the step (e2) is performed after the step (e1), and the step (e3) is performed after the step (e2); and the step (e3) is performed at the plurality of steps (e3). After the operation, the speed estimation method of the embodiment performs step (e2) again, thereby recording the number of triggers of the sampled signals between the two phase-coded signals, and the number of triggers of the sampled signals, that is, how many sample signals are corresponding. The cycle time also represents the time required for the motor unit 124 in operation to rotate N minutes.

在步驟(e3)之後,當計數值CV1等於最高計數值時執行步驟(e4),速度計算電路122驅動此第一計數器終止步驟(e3)之操作,使計數值CV1維持在最高計數值(FFFF)16After the step (e3), when the count value CV1 is equal to the highest count value, the step (e4) is executed, and the speed calculation circuit 122 drives the operation of the first counter termination step (e3) to maintain the count value CV1 at the highest count value (FFFF). ) 16 .

速度計算電路122更執行步驟(e5),以讀取第二計數值CV2做為取樣數值X。The speed calculation circuit 122 further performs the step (e5) to read the second count value CV2 as the sample value X.

在本實施例中雖僅以步驟(e3)之後執行步驟(e4)之情形為例做說明,然,本實施例之轉速估算方法並不侷限於此。在其他例子中,馬達裝置124之轉速較高,而計數值CV1在遞增至其之最高計數值前便因步驟(e2)之觸發而重置。換言之,步驟(e3)之後亦可重複步驟(e2)或直接執行步驟(e5),而不執行步驟(e4)之操作。In the present embodiment, the case where the step (e4) is performed after the step (e3) is taken as an example. However, the method of estimating the rotational speed of the present embodiment is not limited thereto. In other examples, the rotational speed of the motor unit 124 is higher, and the count value CV1 is reset by the trigger of step (e2) before incrementing to its highest count value. In other words, step (e2) may be repeated after step (e3) or step (e5) may be directly performed without performing the operation of step (e4).

在本實施例中,雖僅以步驟(e4)之後執行步驟(e5)之情形為例做說明,然,本實施例之轉速估算方法並不侷限於此。在其他例子中,步驟(e5)轉速估算方法亦可在步驟(e3)之後或(e4)之後執行。In the present embodiment, the case where the step (e5) is performed after the step (e4) is taken as an example. However, the method of estimating the number of revolutions of the present embodiment is not limited thereto. In other examples, the step (e5) speed estimation method may also be performed after step (e3) or after (e4).

經由前述速度計算電路122對此第一及此第二計數器之控制,速度計算電路122更可根據參考計數值CV1及CV2的數值,來判斷此時馬達裝置124之轉速變化情形。舉例來說,當計數值CV1及VC2等於數值(FFFF)16 時,表示馬達裝置124之起始轉速及目前轉速均為0,換言之,馬達裝置124尚未開始進行轉動;當計數值CV1等於數值(FFFF)16 且計數值CV2等於數值(FFFF)16 以外之數值時,表示馬達裝置124曾經具有不等於0之轉動速度,而後其之轉動速度又趨近數值0。Through the control of the first and second counters by the speed calculation circuit 122, the speed calculation circuit 122 can further determine the change of the rotation speed of the motor device 124 according to the values of the reference count values CV1 and CV2. For example, when the count values CV1 and VC2 are equal to the value (FFFF) 16 , it means that the initial rotational speed of the motor device 124 and the current rotational speed are both 0, in other words, the motor device 124 has not started to rotate; when the count value CV1 is equal to the value ( FFFF) 16 and the count value CV2 is equal to a value other than the value (FFFF) 16 , indicating that the motor unit 124 once had a rotational speed that is not equal to zero, and then its rotational speed approaches the value zero again.

在本實施例中,雖僅以速度計算電路122根據馬達裝置124之此轉速資訊對應至此第一或此第二轉速條件之判斷條件,選擇性地提供不同操作頻率之取樣訊號Ss1及Ss2來進行相位編碼訊號之取樣操作的情形為例做說明,然,本實施例之速度計算電路122並不侷限於此。舉例來說,在步驟(a)及(b)中,速度計算電路122更可提供具有第三取樣頻率(取樣訊號Ss2之第二取樣頻率實質上大於此第三取樣頻率)之取樣訊號Ss3及根據馬達裝置124之最高轉速資訊及取樣訊號Ss3決定運算參數P3;而本實施例之速度計算電路122所執行之轉速估算方法更可執行步驟(g),以針對馬達裝置124之此轉速資訊設定三個或三個以上之轉速條件,並選擇性地提供三個或三個以上具有不同操作頻率之取樣訊號,來進行相位編碼訊號之取樣操作,如第5圖所示。這樣一來,經由設定數量更多之轉速條件,本實施例之速度計算電路122可實現出更為寬廣的轉速估算範圍。In the present embodiment, the speed calculation circuit 122 selectively supplies the sampling signals Ss1 and Ss2 of different operating frequencies according to the determination condition that the rotational speed information of the motor device 124 corresponds to the first or second rotational speed condition. The case of the sampling operation of the phase-encoded signal is taken as an example. However, the speed calculation circuit 122 of the present embodiment is not limited thereto. For example, in steps (a) and (b), the speed calculation circuit 122 further provides a sampling signal Ss3 having a third sampling frequency (the second sampling frequency of the sampling signal Ss2 is substantially greater than the third sampling frequency) and The operation parameter P3 is determined according to the maximum rotation speed information of the motor device 124 and the sampling signal Ss3; and the rotation speed estimation method executed by the speed calculation circuit 122 of the embodiment can further perform the step (g) to set the rotation speed information of the motor device 124. Three or more speed conditions, and optionally provide three or more sampling signals with different operating frequencies for phase encoding signal sampling operations, as shown in Figure 5. In this way, the speed calculation circuit 122 of the present embodiment can realize a wider range of the speed estimation range by setting a larger number of rotation conditions.

在本實施例中,雖僅以速度計算電路122使用多個不同操作頻率之取樣訊號來對單一個相位編碼訊號進行取樣操作的情形為例做說明,然,本發明實施例之速度計算電路122並不侷限於此,而更可同時應用多個不同操作頻率之取樣訊號來對多個不同操作頻率之相位編碼訊號進行取樣操作。In the embodiment, the speed calculation circuit 122 uses the sampling signals of a plurality of different operating frequencies to sample the single phase-encoded signal. For example, the speed calculation circuit 122 of the embodiment of the present invention is described. It is not limited to this, and a plurality of sampling signals of different operating frequencies can be simultaneously applied to sample the phase-encoded signals of a plurality of different operating frequencies.

舉例來說,本實施例之馬達裝置124更用以提供相位編碼訊號PHC1,而速度計算電路122根據相位編碼訊號PHC1產生對應至不同操作頻率之相位編碼訊號PHC2,其中相位編碼訊號PHC1之操作頻率實質上小於相位編碼訊號PHC2之操作頻率。在一個操作實例中,相位編碼訊號PHC1為馬達裝置124產生之相位編碼訊號A及相位編碼訊號B(兩相位編碼訊號之間具有90度相位差)其中之一,而相位編碼訊號PHC2為速度計算電路122根據相位編碼訊號A及B產生之四倍頻相位編碼訊號,且相位編碼訊號PHC1及PHC2之零度相位係觸發於相同之時點。For example, the motor device 124 of the embodiment is further configured to provide a phase encode signal PHC1, and the speed calculation circuit 122 generates a phase encode signal PHC2 corresponding to a different operating frequency according to the phase encode signal PHC1, wherein the operating frequency of the phase encode signal PHC1 It is substantially smaller than the operating frequency of the phase coded signal PHC2. In one example of operation, the phase-encoded signal PHC1 is one of the phase-encoded signal A and the phase-encoded signal B (the phase difference between the two phase-coded signals) generated by the motor device 124, and the phase-coded signal PHC2 is the speed calculation. The circuit 122 generates a four-frequency phase-encoded signal based on the phase-encoded signals A and B, and the zero-phase phases of the phase-encoded signals PHC1 and PHC2 are triggered at the same time.

請參照第6圖,其繪示依照本發明第一實施例之轉速估算方法的再一流程圖。不同於第2圖所示之流程圖,在步驟(b’)中,速度計算電路122根據馬達裝置124之最高轉速資訊、取樣訊號Ss1及相位編碼訊號PHC1,來決定運算參數P1,並根據此最高轉速資訊、取樣訊號Ss2及相位編碼訊號PHC2決定運算參數P2。舉例來說,速度計算電路122根據下列方程式計算運算參數P1及P2:Please refer to FIG. 6, which illustrates still another flowchart of the method for estimating the rotational speed according to the first embodiment of the present invention. Different from the flowchart shown in FIG. 2, in step (b'), the speed calculation circuit 122 determines the operation parameter P1 according to the maximum rotation speed information of the motor device 124, the sampling signal Ss1, and the phase encode signal PHC1, and according to this, The maximum speed information, the sampled signal Ss2, and the phase coded signal PHC2 determine the operational parameter P2. For example, the speed calculation circuit 122 calculates the operational parameters P1 and P2 according to the following equation:

其中Rs為馬達裝置124之最高轉速;T1及T2分別為取樣訊號Ss1及Ss2之週期時間;N1及N2分別為馬達裝置124每旋轉一圈,其之相位編碼訊號PHC1及PHC2對應觸發之脈波週期數目,舉例來說,N2例如等於4N1;K為速度計算電路122中所欲得出之速度解析範圍位元數。Wherein Rs is the maximum speed of the motor device 124; T1 and T2 are the cycle times of the sampling signals Ss1 and Ss2, respectively; N1 and N2 are the pulse signals corresponding to the phase-encoded signals PHC1 and PHC2 for each rotation of the motor device 124. The number of cycles, for example, N2 is equal to, for example, 4N1; K is the number of speed resolution range bits to be obtained in the speed calculation circuit 122.

當此轉速資訊對應至第一轉速條件時,轉速估算方法進入步驟(c’),速度計算電路122選擇取樣訊號Ss1做為取樣訊號、選擇相位編碼訊號PHC1做為待取樣相位編碼訊號、並選擇運算參數P1做為運算參數P。當此轉速資訊對應至第二轉速條件時,轉速估算方法進入步驟(d’),速度計算電路122選擇取樣訊號Ss2做為此取樣訊號、選擇相位編碼訊號PHC2做為待取樣相位編碼訊號、並選擇運算參數P2做為運算參數P。When the rotational speed information corresponds to the first rotational speed condition, the rotational speed estimating method proceeds to step (c'), and the speed calculating circuit 122 selects the sampling signal Ss1 as the sampling signal, selects the phase encoded signal PHC1 as the phase-coded signal to be sampled, and selects The operation parameter P1 is taken as the operation parameter P. When the rotational speed information corresponds to the second rotational speed condition, the rotational speed estimating method proceeds to step (d'), and the speed calculating circuit 122 selects the sampling signal Ss2 as the sampling signal, selects the phase encoded signal PHC2 as the phase-coded signal to be sampled, and The operation parameter P2 is selected as the operation parameter P.

這樣一來,經由多個不同操作頻率之取樣訊號及多個不同操作頻率之相位編碼訊號間之多種排列組合,可對應出多個不同的轉速估算範圍。據此,本實施例之速度計算電路122可實現出更為寬廣的轉速估算範圍。In this way, a plurality of different speed estimation ranges can be correspondingly processed through a plurality of arrangement combinations of a plurality of different operating frequency sampling signals and a plurality of phase encoding signals of different operating frequencies. Accordingly, the speed calculation circuit 122 of the present embodiment can achieve a wider range of speed estimation.

舉例來說,本實施例之轉速估算方法可以程式碼的型態建於電腦可讀取媒體內,如此,對應之處理器可經由讀取並載入前述程式碼,來實現本發明前述轉速估算方法。For example, the method for estimating the speed of the embodiment may be configured in a computer readable medium, so that the corresponding processor can read and load the foregoing code to implement the foregoing speed estimation of the present invention. method.

第二實施例Second embodiment

本實施例之轉速估算方法根據馬達裝置之轉速資訊來選擇多個相位編碼訊號其中之一,並根據單一個取樣訊號來對此多個相位編碼訊號其中之一進行取樣,據此,本實施例之轉速估算方法亦可經由前述多個相位編碼訊號之選擇操作,實現出較為寬廣的轉速估算範圍。The method for estimating the rotational speed of the present embodiment selects one of the plurality of phase-encoded signals according to the rotational speed information of the motor device, and samples one of the plurality of phase-encoded signals according to the single sampled signal, and accordingly, the embodiment The method for estimating the rotational speed can also achieve a relatively wide range of rotational speed estimation through the selection operation of the plurality of phase-encoded signals.

舉例來說,本實施例之馬達裝置124更用以提供相位編碼訊號PHC1,而速度計算電路122根據相位編碼訊號PHC1產生對應至不同操作頻率之相位編碼訊號PHC2,其中相位編碼訊號PHC1之操作頻率實質上小於相位編碼訊號PHC2之操作頻率。For example, the motor device 124 of the embodiment is further configured to provide a phase encode signal PHC1, and the speed calculation circuit 122 generates a phase encode signal PHC2 corresponding to a different operating frequency according to the phase encode signal PHC1, wherein the operating frequency of the phase encode signal PHC1 It is substantially smaller than the operating frequency of the phase coded signal PHC2.

在一個操作實例中,相位編碼訊號PHC1為馬達裝置124產生之相位編碼訊號A及相位編碼訊號B(兩相位編碼訊號之間具有90度相位差)其中之一,而相位編碼訊號PHC2為速度計算電路122根據相位編碼訊號A及B產生之四倍頻相位編碼訊號,且相位編碼訊號PHC1及PHC2之零度相位係觸發於相同之時點。In one example of operation, the phase-encoded signal PHC1 is one of the phase-encoded signal A and the phase-encoded signal B (the phase difference between the two phase-coded signals) generated by the motor device 124, and the phase-coded signal PHC2 is the speed calculation. The circuit 122 generates a four-frequency phase-encoded signal based on the phase-encoded signals A and B, and the zero-phase phases of the phase-encoded signals PHC1 and PHC2 are triggered at the same time.

請參照第7圖,其繪示依照本發明第二實施例之轉速估算方法的流程圖。首先如步驟(b),速度計算電路122根據馬達裝置124之此最高轉速資訊及相位編碼訊號PHC1決定運算參數P1’,並根據此最高轉速資訊及相位編碼訊號PHC2決定運算參數P2’。舉例來說,於步驟(b)中,速度計算電路122係根據下列方程式來計算運算參數P1’及P2’:Referring to FIG. 7, a flow chart of a method for estimating a rotational speed according to a second embodiment of the present invention is shown. First, in step (b), the speed calculation circuit 122 determines the operation parameter P1' based on the highest speed information of the motor unit 124 and the phase encode signal PHC1, and determines the operation parameter P2' based on the highest speed information and the phase coded signal PHC2. For example, in step (b), the speed calculation circuit 122 calculates the operational parameters P1' and P2' according to the following equation:

其中Rs為馬達裝置124之最高轉速;T1為取樣訊號Ss1之週期時間;N1及N2為馬達裝置124每旋轉一圈,相位編碼訊號PHC1及PHC2對應觸發之脈波週期數目;K為速度計算電路122中用來記錄此取樣數值之暫存器位元數。在馬達裝置124之最高轉速為4.167 rps;取樣訊號Ss1對應至100ns之週期時間T1;每旋轉一圈,相位編碼訊號PCH1及PCH2對應觸發之脈波週期數目N1及N2分別為2048及2048×4,即是相位編碼訊號PCH2為相位編碼訊號PCH1之四倍頻訊號;數值K等於15的例子中,運算參數P1’及P2’分別對應至數值3.84×107 及0.96×107Wherein Rs is the maximum speed of the motor device 124; T1 is the cycle time of the sampling signal Ss1; N1 and N2 are the number of pulse cycles of the phase-encoded signals PHC1 and PHC2 for each rotation of the motor device 124; K is the speed calculation circuit The number of scratchpad bits used to record this sampled value in 122. The maximum speed of the motor device 124 is 4.167 rps; the sampling signal Ss1 corresponds to a cycle time T1 of 100 ns; for each revolution, the number of pulse cycles N1 and N2 corresponding to the phase-encoded signals PCH1 and PCH2 are 2048 and 2048×4, respectively. That is, the phase coded signal PCH2 is the quadruple frequency signal of the phase coded signal PCH1; in the example where the value K is equal to 15, the operation parameters P1' and P2' correspond to the values of 3.84×10 7 and 0.96×10 7 , respectively .

當此轉速資訊對應至第一轉速條件時,本實施例之轉速估算方法進入步驟(c),速度計算電路122選擇相位編碼訊號PHC1做為待取樣之相位編碼訊號,並以運算參數P1’做為運算參數。其中,此第一轉速條件對應至馬達裝置124之第一轉速範圍。於步驟(c)之後係執行步驟(e)及(f),速度計算電路122依序地根據此取樣訊號對馬達裝置124之相位編碼訊號PHC1進行取樣以得到取樣數值X,及根據取樣數值X及運算參數P產生轉速估算值Y。其中步驟(e)及(f)中之操作實質上分別與第2圖中之步驟(e)及(f)相同,於此,並不再對其進行贅述。When the speed information corresponds to the first speed condition, the speed estimation method of the embodiment proceeds to step (c), and the speed calculation circuit 122 selects the phase coded signal PHC1 as the phase coded signal to be sampled, and performs the operation parameter P1'. For the operation parameters. The first rotational speed condition corresponds to the first rotational speed range of the motor device 124. After step (c), steps (e) and (f) are performed, and the speed calculation circuit 122 sequentially samples the phase coded signal PHC1 of the motor device 124 according to the sample signal to obtain a sample value X, and according to the sample value X. And the operation parameter P generates a speed estimation value Y. The operations in steps (e) and (f) are substantially the same as steps (e) and (f) in FIG. 2, respectively, and are not described herein again.

當此轉速資訊對應至第二轉速條件時,本實施例之轉速估算方法進入步驟(d),速度計算電路122選擇相位編碼訊號PHC2做為待取樣之相位編碼訊號,並以運算參數P2’做為運算參數。其中,此第二轉速條件對應至馬達裝置124之第二轉速範圍。於步驟(d)之後係執行步驟(e)及(f),速度計算電路122依序地根據此取樣訊號對馬達裝置124之相位編碼訊號PHC2進行取樣以得到取樣數值X,及根據取樣數值X及運算參數P產生轉速估算值Y。其中步驟(e)及(f)中之操作實質上分別與第2圖中之步驟(e)及(f)相同,於此,並不再對其進行贅述。When the speed information corresponds to the second speed condition, the speed estimation method of the embodiment proceeds to step (d), and the speed calculation circuit 122 selects the phase coded signal PHC2 as the phase coded signal to be sampled, and performs the operation parameter P2'. For the operation parameters. The second rotational speed condition corresponds to the second rotational speed range of the motor device 124. After step (d), steps (e) and (f) are performed, and the speed calculation circuit 122 sequentially samples the phase coded signal PHC2 of the motor device 124 according to the sample signal to obtain a sample value X, and according to the sample value X. And the operation parameter P generates a speed estimation value Y. The operations in steps (e) and (f) are substantially the same as steps (e) and (f) in FIG. 2, respectively, and are not described herein again.

如此,本實施例之速度計算電路122可根據馬達裝置124對應至不同數值範圍之轉速,以不同頻率之相位編碼訊號PHC1及PHC2做為待取樣之相位編碼訊號。如此,相較於應用傳統轉速估算方法之速度計算電路,本實施例之速度計算電路122可有效地在暫存器之長度及相位編碼訊號之頻率固定的情況下,提供更寬廣的轉速估算範圍。As such, the speed calculation circuit 122 of the present embodiment can use the phase-encoding signals PHC1 and PHC2 of different frequencies as the phase-encoding signals to be sampled according to the rotational speeds of the motor devices 124 corresponding to different numerical ranges. Thus, the speed calculation circuit 122 of the present embodiment can effectively provide a wider range of speed estimation range when the length of the register and the frequency of the phase-encoded signal are fixed, compared to the speed calculation circuit applying the conventional speed estimation method. .

請參照第8圖,其繪示依照本發明第二實施例之轉速估算方法的流程圖。相似於前述第5圖所示之轉速估算方法,速度計算電路122亦可根據相位編碼訊號PHC1產生兩個或兩個以上之倍頻相位編碼訊號,而本實施例之速度計算電路122所執行之轉速估算方法更可執行步驟(g),以針對馬達裝置124之此轉速資訊設定三個或三個以上之轉速條件,並選擇性地應用此三個或三個以上具有不同操作頻率之相位編碼訊號做為待取樣之相位編碼訊號。這樣一來,經由設定數量更多之轉速條件,本實施例之速度計算電路122可實現出更為寬廣的轉速估算範圍。Please refer to FIG. 8 , which is a flow chart showing a method for estimating the rotational speed according to the second embodiment of the present invention. Similar to the speed estimation method shown in FIG. 5, the speed calculation circuit 122 can also generate two or more frequency doubling phase coded signals according to the phase coded signal PHC1, which is executed by the speed calculation circuit 122 of the present embodiment. The speed estimation method may further perform step (g) to set three or more speed conditions for the speed information of the motor unit 124, and selectively apply the three or more phase codes having different operating frequencies. The signal is used as the phase coded signal to be sampled. In this way, the speed calculation circuit 122 of the present embodiment can realize a wider range of the speed estimation range by setting a larger number of rotation conditions.

相似於第1實施例中與第3圖相關之敘述,本實施例之轉速估算方法中之步驟(e)亦可包括子步驟(e1)-(e5)。Similar to the description in the first embodiment relating to the third embodiment, the step (e) in the rotational speed estimating method of the present embodiment may also include sub-steps (e1)-(e5).

經由前述速度計算電路122對此第一及此第二計數器之控制,速度計算電路122更可根據參考計數值CV1及CV2的數值,來判斷此時馬達裝置124之轉速變化情形。舉例來說,當計數值CV1及VC2等於數值(FFFF)16 時,表示馬達裝置124之起始轉速及目前轉速均為0,換言之,馬達裝置124尚未開始進行轉動;當數位值CV1等於數值(FFFF)16且 數位值CV2等於數值(FFFF)16 以外之數值時,表示馬達裝置124曾經具有不等於0之轉動速度,而後其之轉動速度又趨近數值0。Through the control of the first and second counters by the speed calculation circuit 122, the speed calculation circuit 122 can further determine the change of the rotation speed of the motor device 124 according to the values of the reference count values CV1 and CV2. For example, when the count values CV1 and VC2 are equal to the value (FFFF) 16 , it means that the initial rotational speed of the motor device 124 and the current rotational speed are both 0, in other words, the motor device 124 has not started to rotate; when the digital value CV1 is equal to the value ( FFFF) 16 and the digit value CV2 is equal to a value other than the value (FFFF) 16 , indicating that the motor unit 124 once had a rotational speed that is not equal to zero, and then its rotational speed approaches the value zero.

在本實施例中,雖僅以速度計算電路122使用單一個操作頻率之取樣訊號來對多個相位編碼訊號其中一進行取樣操作的情形為例做說明,然,本發明實施例之速度計算電路122並不侷限於此,而更可同時應用多個不同操作頻率之取樣訊號來對多個不同操作頻率之相位編碼訊號進行取樣操作,如第一實施例中相關於第6圖所示之流程步驟。In this embodiment, the speed calculation circuit 122 uses only a sampling signal of a single operating frequency to perform sampling operation on one of the plurality of phase-encoded signals. However, the speed calculation circuit of the embodiment of the present invention is described. 122 is not limited to this, and a plurality of sampling signals of different operating frequencies may be simultaneously applied to perform sampling operations on a plurality of phase-coded signals of different operating frequencies, as in the flow shown in FIG. 6 in the first embodiment. step.

舉例來說,本發明前述轉速估算方法可以程式碼的型態建於電腦可讀取媒體內,如此,對應之處理器可經由讀取並載入前述程式碼,來實現本發明前述轉速估算方法。For example, the foregoing method for estimating the rotational speed of the present invention can be built in a computer readable medium, so that the corresponding processor can read and load the aforementioned code to implement the foregoing method for estimating the rotational speed of the present invention. .

第三實施例Third embodiment

本實施例之轉速估算方法應用兩個計數器,來對馬達裝置進行轉速估算操作。請參照第9圖,其繪示依照本發明第三實施例之轉速估算方法的流程圖。首先如步驟(a),速度計算電路122根據馬達裝置124之最高轉速資訊及取樣訊號Ss決定運算參數P。The speed estimation method of this embodiment applies two counters to perform a speed estimation operation on the motor unit. Referring to FIG. 9, a flow chart of a method for estimating a rotational speed according to a third embodiment of the present invention is shown. First, as in step (a), the speed calculation circuit 122 determines the operation parameter P based on the maximum rotational speed information of the motor device 124 and the sampling signal Ss.

接著如步驟(b),速度計算電路122依序地根據此取樣訊號Ss對馬達裝置124之相位編碼訊號進行取樣,以得到取樣數值X。之後如步驟(c),速度計算電路122根據取樣數值X及運算參數P產生轉速估算值。Then, in step (b), the speed calculation circuit 122 sequentially samples the phase-encoded signal of the motor device 124 according to the sample signal Ss to obtain the sample value X. Thereafter, as in step (c), the speed calculation circuit 122 generates a rotational speed estimate based on the sampled value X and the operational parameter P.

舉例來說,步驟(b)更包括步驟(b1)-(b5)。首先如步驟(b1),提供具有z個位元之第一計數器及第二計數器,分別記錄計數值CV1及計數值CV2。舉例來說,z等於16。在起始狀態下,計數值CV1及CV2等於終止計數值,其例如對應至此第一及此第二計數器之一最高計數數值(FFFF)16 ,如第4圖所示。For example, step (b) further includes steps (b1)-(b5). First, as step (b1), a first counter having z bits and a second counter are provided, and the count value CV1 and the count value CV2 are respectively recorded. For example, z is equal to 16. In the initial state, the count values CV1 and CV2 are equal to the end count value, which corresponds, for example, to one of the first and second counters, the highest count value (FFFF) 16 , as shown in FIG.

步驟(b1)之後更包括步驟(b2),當接收到相位編碼訊號時,速度計算電路122驅動此第二計數器,使計數值CV2等於計數值CV1,並驅動此第一計數器,重置計數值CV1為起始計數值(0000)16 。於此實施例中,該相位編碼器訊號之接收係接收其前緣,例如是上升緣ED1,然並不以此為限。Step (b1) further includes step (b2). When the phase encode signal is received, the speed calculation circuit 122 drives the second counter to make the count value CV2 equal to the count value CV1, and drives the first counter to reset the count value. CV1 is the starting count value (0000) 16 . In this embodiment, the receiving end of the phase encoder signal receives its leading edge, for example, the rising edge ED1, but is not limited thereto.

步驟(b1)之後更包括步驟(b3),當接收到此取樣訊號時,速度計算電路122驅動此第一計數器將計數值CV1遞增1。於此實施例中,該相位編碼器訊號之接收係接收其前緣,例如是上升緣ED1,然並不以此為限。其中,步驟(b2)及(b3)間之次序關係及操作次數係因馬達裝置124之運轉狀況而不同。舉例來說,當馬達裝置124正常運轉時,於步驟(b1)之後係執行步驟(b2),並於步驟(b2)之後執行多次步驟(b3);而在多次步驟(b3)之執行操作後,本實施例之轉速估算方法再一次地執行步驟(b2),藉此記錄兩個相位編碼訊號之間取樣訊號之觸發次數,此取樣訊號之觸發次數,即對應至多少個取樣訊號之週期時間,亦代表在運轉中之馬達裝置124旋轉N分之一圈所需之時間。Step (b1) further includes step (b3). When receiving the sampling signal, the speed calculation circuit 122 drives the first counter to increment the count value CV1 by one. In this embodiment, the receiving end of the phase encoder signal receives its leading edge, for example, the rising edge ED1, but is not limited thereto. However, the order relationship between the steps (b2) and (b3) and the number of operations differ depending on the operation state of the motor unit 124. For example, when the motor unit 124 is operating normally, the step (b2) is performed after the step (b1), and the step (b3) is performed after the step (b2); and the step (b3) is performed in the plurality of steps (b3). After the operation, the speed estimation method of the embodiment performs step (b2) again, thereby recording the number of triggers of the sampled signals between the two phase-coded signals, and the number of triggers of the sampled signals, that is, how many sample signals are corresponding. The cycle time also represents the time required for the motor unit 124 in operation to rotate N minutes.

在步驟(b3)之後,當計數值CV1等於最高計數值時執行步驟(b4),速度計算電路122驅動此第一計數器終止步驟(b3)之操作,使計數值CV1維持在最高計數值(FFFF)16After the step (b3), when the count value CV1 is equal to the highest count value, the step (b4) is executed, and the speed calculation circuit 122 drives the operation of the first counter termination step (b3) to maintain the count value CV1 at the highest count value (FFFF). ) 16 .

速度計算電路122更執行步驟(b5),以讀取計數值CV2做為取樣數值X。The speed calculation circuit 122 further performs the step (b5) to read the count value CV2 as the sample value X.

在本實施例中雖僅以步驟(b3)之後執行步驟(b4)之情形為例做說明,然,本實施例之轉速估算方法並不侷限於此。在其他例子中,馬達裝置124之轉速較高,而計數值CV1在遞增至其之最高計數值前便因步驟(b2)之觸發而重置。換言之,步驟(b3)之後亦可重複步驟(b2)或直接執行步驟(b5),而不執行步驟(b4)之操作。In the present embodiment, the case where the step (b4) is performed after the step (b3) is taken as an example. However, the method of estimating the rotational speed of the present embodiment is not limited thereto. In other examples, the rotational speed of the motor unit 124 is higher, and the count value CV1 is reset by the trigger of step (b2) before incrementing to the highest count value thereof. In other words, step (b2) may be repeated after step (b3) or step (b5) may be directly performed without performing the operation of step (b4).

在本實施例中,雖僅以步驟(b4)之後執行步驟(b5)之情形為例做說明,然,本實施例之轉速估算方法並不侷限於此。在其他例子中,步驟(b5)轉速估算方法亦可在步驟(b3)之後或(b4)之後執行。In the present embodiment, the case where the step (b5) is performed after the step (b4) is taken as an example. However, the method of estimating the rotational speed of the present embodiment is not limited thereto. In other examples, the step (b5) speed estimation method may also be performed after step (b3) or after (b4).

在本實施例中,於步驟(a)之前更包括步驟(d)、(e)、(f)、(g),而其分別與第2圖中之步驟(a)、(b)、(c)、(d)具有實質上相對應之操作,於此並不再對其進行贅述(圖未示)。在本實施例中,於步驟(a)之前亦可包括步驟(d’)、(e’)、(f’),其分別與第7圖中之步驟(b)、(c)、(d)具有實質上相對應之操作,於此並不再對其進行贅述(圖未示)。In this embodiment, steps (d), (e), (f), (g) are further included before step (a), and respectively, and steps (a), (b), (in Figure 2), respectively. c), (d) have substantially corresponding operations, and will not be described again (not shown). In this embodiment, steps (d'), (e'), (f') may also be included before step (a), which respectively correspond to steps (b), (c), (d) in FIG. It has a substantially corresponding operation, and will not be described again here (not shown).

本實施例之轉速估算方法係選擇定應用一個或多個不同操作頻率之取樣訊號,來對一個或多個不同操作頻率之相位編碼訊號進行取樣操作。據此,相較於傳統轉速估算方法,本實施例之轉速估算方法具有轉速估算範圍較廣的優點。The method for estimating the rotational speed of this embodiment selects one or more sampling signals of different operating frequencies to perform sampling operations on one or more phase-coded signals of different operating frequencies. Accordingly, the rotational speed estimating method of the present embodiment has an advantage that the rotational speed estimating range is wider than the conventional rotational speed estimating method.

另外,本實施例之轉速估算方法更有效地整合測頻法及測週期法,來有效地得到馬達裝置之旋轉方向資訊及其之轉速估算值,據此,相較於傳統轉速估算方法,本實施例之轉速估算方法更具有可整合測頻法及測週期法,以得到更為精確之馬達裝置旋轉操作資訊的優點。In addition, the method for estimating the rotational speed of the present embodiment integrates the frequency measuring method and the measuring period method more effectively, so as to effectively obtain the rotation direction information of the motor device and the estimated speed value thereof, according to which, compared with the conventional speed estimation method, The method for estimating the rotational speed of the embodiment has the advantages of integrating the frequency measuring method and the measuring period method to obtain more accurate information on the rotational operation of the motor device.

再者,由於本實施例之轉速估算方法係應用測週期法來計算馬達裝置之轉速估算值。參考本發明所舉之實施例的方程式可知,本實施例之轉速估算值之運算式中並未包括相關於速度計算電路之工作頻率的因子。據此,轉速估算值的漣波(Ripple)值不會因為提高速度計算電路之操作頻率(以提升高速度計算電路之操作速度)而提升。據此,相較於傳統轉速估算方法,本實施例之轉速估算方法更具有可在相同之操作速度的條件下,提供具有較低漣波值且更為精確之馬達裝置轉速估算值的優點。另,本發明中所稱之馬達裝置,其包含一般泛稱之內轉子馬達、外轉子馬達、風力發電機、車用馬達等常見之電動機裝置。Furthermore, since the rotational speed estimating method of the present embodiment applies the measuring period method to calculate the rotational speed estimated value of the motor device. Referring to the equation of the embodiment of the present invention, it is known that the calculation formula of the rotational speed estimation value of the present embodiment does not include a factor related to the operating frequency of the speed calculation circuit. Accordingly, the Ripple value of the rotational speed estimate is not increased by increasing the operating frequency of the speed calculation circuit (to increase the operating speed of the high speed calculation circuit). Accordingly, the rotational speed estimating method of the present embodiment has an advantage of providing a lower chopping value and a more accurate motor device rotational speed estimation value at the same operating speed than the conventional rotational speed estimating method. Further, the motor device referred to in the present invention includes a common motor device such as an inner rotor motor, an outer rotor motor, a wind power generator, and a motor for a vehicle.

另,本發明雖主要係採用測週期法以計算馬達速度,熟悉此技術領域者,亦可輕易將其與頻率法做結合,利用頻率法來補強週期法之無法判斷方向性之不足,另,此發明雖可大幅提升週期法之速度量測範圍以及精準度,然因週期法主要用於中低速度量測,故本發明亦可藉由與頻率法的結合,使高速時切換至頻率法,使本發明之應用範疇更加廣泛與實用。In addition, although the present invention mainly uses the measurement cycle method to calculate the motor speed, those skilled in the art can easily combine it with the frequency method, and use the frequency method to reinforce the periodic method, which cannot determine the directionality. Although the invention can greatly improve the speed measurement range and accuracy of the periodic method, since the periodic method is mainly used for medium and low speed measurement, the present invention can also switch to the frequency method at high speed by combining with the frequency method. To make the application scope of the invention more extensive and practical.

綜上所述,雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。In conclusion, the present invention has been disclosed in the above preferred embodiments, and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

1...馬達系統1. . . Motor system

110...速度控制迴路110. . . Speed control loop

112...電流控制迴路112. . . Current control loop

114...電壓向量轉換器114. . . Voltage vector converter

116...電流向量轉換器116. . . Current vector converter

118...等效驅動系統118118. . . Equivalent drive system 118

120...信號迴授介面電路120. . . Signal feedback interface circuit

122...速度計算電路122. . . Speed calculation circuit

124...馬達裝置124. . . Motor unit

第1圖繪示應用本發明實施例之轉速估算方法之馬達系統的方塊圖。Fig. 1 is a block diagram showing a motor system to which a rotational speed estimating method according to an embodiment of the present invention is applied.

第2圖繪示依照本發明第一實施例之轉速估算方法的流程圖。2 is a flow chart showing a method of estimating the rotational speed according to the first embodiment of the present invention.

第3圖繪示本發明第一實施例之轉速估算方法的部份流程圖。FIG. 3 is a partial flow chart showing the method for estimating the rotational speed of the first embodiment of the present invention.

第4圖繪示乃計數值CV1及CV2的數值變動示意圖。FIG. 4 is a schematic diagram showing numerical changes of the count values CV1 and CV2.

第5圖繪示依照本發明第一實施例之轉速估算方法的另一流程圖。Fig. 5 is a flow chart showing another method of estimating the rotational speed according to the first embodiment of the present invention.

第6圖繪示依照本發明第一實施例之轉速估算方法的再一流程圖。Fig. 6 is a flow chart showing still another method of estimating the rotational speed according to the first embodiment of the present invention.

第7圖繪示依照本發明第二實施例之轉速估算方法的一流程圖。FIG. 7 is a flow chart showing a method for estimating the rotational speed according to the second embodiment of the present invention.

第8圖繪示依照本發明第二實施例之轉速估算方法的另一流程圖。Figure 8 is a flow chart showing another method of estimating the rotational speed in accordance with the second embodiment of the present invention.

第9圖繪示依照本發明第三實施例之轉速估算方法的流程圖。Figure 9 is a flow chart showing a method of estimating the rotational speed in accordance with a third embodiment of the present invention.

(a)-(f)...操作步驟(a)-(f). . . Steps

Claims (14)

一種轉速估算方法,用以對一馬達裝置進行轉速估算,該轉速估算方法包括:(a) 提供一第一取樣訊號及一第二取樣訊號,該第一及該第二取樣訊號分別具有一第一取樣頻率及一第二取樣頻率,該第一取樣頻率實質上大於該第二取樣頻率;(b) 根據該馬達裝置之一最高轉速資訊及該第一取樣訊號,決定一第一運算參數,並根據該最高轉速資訊及該第二取樣訊號,決定一第二運算參數;(c) 當該馬達裝置之一轉速資訊達到一第一轉速條件時,選擇該第一取樣訊號做為一取樣訊號,並選擇該第一運算參數做為一運算參數;(d) 當該馬達裝置之轉速資訊達到一第二轉速條件時,選擇該第二取樣訊號做為該取樣訊號,並選擇該第二運算參數做為該運算參數;(e) 以該取樣訊號對該馬達裝置之一待取樣相位編碼訊號進行取樣,以得到一取樣數值;以及(f) 根據該取樣數值及該運算參數產生一轉速估算值;其中該第一及該第二轉速條件分別對應至不同之轉速範圍,該第一轉速條件之轉速範圍係高於該第二轉速條件之轉速範圍。A method for estimating a rotational speed for estimating a rotational speed of a motor device, the method for estimating the rotational speed comprising: (a) providing a first sampling signal and a second sampling signal, wherein the first and second sampling signals respectively have a first a sampling frequency and a second sampling frequency, the first sampling frequency is substantially greater than the second sampling frequency; (b) determining a first operational parameter according to the highest rotational speed information of the motor device and the first sampling signal, And determining a second operation parameter according to the maximum speed information and the second sampling signal; (c) selecting a first sampling signal as a sampling signal when the speed information of the motor device reaches a first speed condition And selecting the first operation parameter as an operation parameter; (d) when the rotation speed information of the motor device reaches a second rotation speed condition, selecting the second sampling signal as the sampling signal, and selecting the second operation The parameter is used as the operation parameter; (e) sampling the phase-coded signal to be sampled by the motor device with the sample signal to obtain a sample value; and (f) The sampling value and the operation parameter generate an estimated speed value; wherein the first and the second speed conditions respectively correspond to different speed ranges, and the speed range of the first speed condition is higher than the speed range of the second speed condition . 如申請專利範圍第1項所述之轉速估算方法,其中步驟(c)及(d)中更分別包括:(c1)選擇該馬達裝置之一第一相位編碼訊號做為該待取樣相位編碼訊號;及(d1)選擇該馬達裝置之一第二相位編碼訊號做為該待取樣相位編碼訊號;其中,該第一及該第二相位編碼訊號具有不同之產生頻率,該第一相位編碼訊號之頻率實質上小於該第二相位編碼訊號之頻率。 The method for estimating the rotational speed according to the first aspect of the patent application, wherein the steps (c) and (d) further comprise: (c1) selecting a first phase-encoding signal of the motor device as the phase-coded signal to be sampled. And (d1) selecting a second phase-encoding signal of the motor device as the phase-coded signal to be sampled; wherein the first and second phase-coded signals have different generating frequencies, and the first phase-encoding signal The frequency is substantially less than the frequency of the second phase encoded signal. 如申請專利範圍第1項所述之轉速估算方法,其中步驟(e)中更包括:(e1)提供一第一計數器及一第二計數器,分別產生一第一計數值及一第二計數值,該第一及該第二計數值對應至一終止計數值;(e2)當接收到該待取樣相位編碼訊號時,驅動該第二計數器,使該第二計數值等於該第一計數值,並驅動該第一計數器,重置該第一計數值為一起始計數值;(e3)當接收到該取樣訊號時,驅動該第一計數器,將該第一計數值遞增1;(e4)當該第一計數值等於一最高計數值時,驅動該第一計數器終止步驟(e3)之操作,使該第一計數值維持在該最高計數值;及(e5)讀取該第二計數值做為該取樣數值。 The method for estimating the rotational speed according to the first aspect of the patent application, wherein the step (e) further comprises: (e1) providing a first counter and a second counter, respectively generating a first count value and a second count value. The first and the second count value correspond to a termination count value; (e2) when receiving the phase-coded signal to be sampled, driving the second counter to make the second count value equal to the first count value, And driving the first counter to reset the first count value to a start count value; (e3) when receiving the sample signal, driving the first counter to increment the first count value by 1; (e4) When the first count value is equal to a highest count value, the first counter is driven to terminate the operation of the step (e3) to maintain the first count value at the highest count value; and (e5) the second count value is read. For this sample value. 如申請專利範圍第1項所述之轉速估算方法,其中步驟(a)及(b)中更分別包括: (a1)提供一第三取樣訊號,該第三取樣訊號具有一第三取樣頻率,該第二取樣頻率實質上大於該第三取樣頻率;及(b1)根據該最高轉速資訊及該第三取樣訊號,決定一第三運算參數;其中,該轉速估算方法於步驟(b)及(e)之間更包括:(g)當該轉速資訊對應至一第三轉速條件時,選擇該第三取樣訊號做為該取樣訊號,並選擇該第三運算參數做為該運算參數,其中該第三轉速條件對應至另一轉速範圍,該第二轉速條件之轉速範圍係高於該第三轉速條件之轉速範圍。 For example, the method for estimating the rotational speed described in claim 1 wherein steps (a) and (b) further comprise: (a1) providing a third sampling signal, the third sampling signal having a third sampling frequency, the second sampling frequency being substantially greater than the third sampling frequency; and (b1) according to the maximum rotational speed information and the third sampling The signal determines a third operational parameter; wherein the rotational speed estimating method further comprises between step (b) and (e): (g) selecting the third sampling when the rotational speed information corresponds to a third rotational speed condition The signal is used as the sampling signal, and the third operation parameter is selected as the operation parameter, wherein the third rotational speed condition corresponds to another rotational speed range, and the rotational speed range of the second rotational speed condition is higher than the third rotational speed condition. range of rotation. 一種電腦可讀取媒體,用以記載申請專利範圍第1項至第4項其中之一之轉速估算方法。 A computer readable medium for recording a method for estimating the rotational speed of one of the first to fourth aspects of the patent application. 一種轉速估算方法,用以對一馬達裝置進行轉速估算,該轉速估算方法包括:(a)根據該馬達裝置之一最高轉速資訊及一第一相位編碼訊號,決定一第一運算參數,並根據該最高轉速資訊及一第二相位編碼訊號,決定一第二運算參數,該第一及該第二相位編碼訊號具有不同之產生頻率,該第一相位編碼訊號之頻率實質上小於該第二相位編碼訊號之頻率;(b)當該馬達裝置之一轉速資訊對應至一第一轉速條件時,選擇該第一相位編碼訊號做為一待取樣相位編碼訊號,並選擇該第一運算參數做為一運算參數; (c)當該轉速資訊對應至一第二轉速條件時,選擇該第二相位編碼訊號做為該待取樣相位編碼訊號,並選擇該第二運算參數做為該運算參數;(d)以一取樣訊號對該待取樣相位編碼訊號進行取樣,以得到一取樣數值;以及(e)根據該取樣數值及該運算參數產生一轉速估算值;其中該第一及該第二轉速條件對應不同轉速範圍,該第一轉速條件之轉速範圍係高於該第二轉速條件之轉速範圍。 A method for estimating a rotational speed for estimating a rotational speed of a motor device, the method for estimating the rotational speed comprising: (a) determining a first operational parameter according to a maximum rotational speed information of the motor device and a first phase encoded signal, and The maximum speed information and a second phase encoding signal determine a second operating parameter, the first and second phase encoded signals have different generating frequencies, and the frequency of the first phase encoded signal is substantially smaller than the second phase The frequency of the encoded signal; (b) when the rotational speed information of the motor device corresponds to a first rotational speed condition, the first phase encoded signal is selected as a phase-coded signal to be sampled, and the first operational parameter is selected as An arithmetic parameter; (c) when the rotational speed information corresponds to a second rotational speed condition, selecting the second phase encoded signal as the phase encoded signal to be sampled, and selecting the second operational parameter as the operational parameter; (d) The sampling signal samples the phase-coded signal to be sampled to obtain a sample value; and (e) generates an estimated speed value according to the sampled value and the operation parameter; wherein the first and second speed conditions correspond to different speed ranges The speed range of the first speed condition is higher than the speed range of the second speed condition. 如申請專利範圍第6項所述之轉速估算方法,其中更包括:(f)提供一第一取樣訊號及一第二取樣訊號,該第一及該第二取樣訊號分別具有一第一取樣頻率及一第二取樣頻率,該第一取樣頻率實質上大於該第二取樣頻率;其中,步驟(d)中更分別包括:當該運算參數為第一運算參數時,選擇該第一取樣訊號做為該取樣訊號;及當該運算參數為第二運算參數時,選擇該第二取樣訊號做為該取樣訊號。 The method for estimating the rotational speed of claim 6, wherein the method further comprises: (f) providing a first sampling signal and a second sampling signal, wherein the first sampling signal and the second sampling signal respectively have a first sampling frequency And a second sampling frequency, wherein the first sampling frequency is substantially greater than the second sampling frequency; wherein, in step (d), the method further comprises: when the operation parameter is the first operation parameter, selecting the first sampling signal to do For the sampling signal; and when the operation parameter is the second operation parameter, the second sampling signal is selected as the sampling signal. 如申請專利範圍第6項所述之轉速估算方法,其中步驟(d)中更包括:(d1)提供一第一計數器及一第二計數器,分別記錄一第一計數值及一第二計數值,該第一及該第二計數值對 應至一終止計數值;(d2)接收該待取樣相位編碼訊號,驅動該第二計數器,使該第二計數值等於該第一計數值,並驅動該第一計數器,重置該第一計數值為一起始計數值;(d3)接收該取樣訊號,驅動該第一計數器,將該第一計數值遞增1;(d4)當該第一計數值等於一最高計數值時,驅動該第一計數器終止步驟(d3)之操作,使該第一計數值維持在該最高計數值;及(d5)讀取該第二計數值做為該取樣數值。 The method for estimating the rotational speed according to the sixth aspect of the patent application, wherein the step (d) further comprises: (d1) providing a first counter and a second counter, respectively recording a first count value and a second count value; The first and second count value pairs Receiving a count value; (d2) receiving the phase coded signal to be sampled, driving the second counter, causing the second count value to be equal to the first count value, and driving the first counter to reset the first count The value is a starting count value; (d3) receiving the sampling signal, driving the first counter, incrementing the first count value by 1; (d4) driving the first when the first count value is equal to a highest count value The counter terminates the operation of step (d3) to maintain the first count value at the highest count value; and (d5) reads the second count value as the sample value. 如申請專利範圍第6項所述之轉速估算方法,其中步驟(a)中更分別包括:提供一第三相位編碼訊號,具有與該第一及該第二相位編碼訊號不同之產生頻率,該第二相位編碼訊號之頻率實質上小於該第三相位編碼訊號之頻率,並根據該最高轉速資訊及該第三相位編碼訊號,決定一第三運算參數;其中,該轉速估算方法於步驟(a)及(d)之間更包括:(g)當該轉速資訊對應至一第三轉速條件時,選擇該第三相位編碼訊號做為該待取樣相位編碼訊號,並選擇該第三運算參數做為該運算參數,其中該第三轉速條件對應至另一轉速範圍,該第二轉速條件之轉速範圍係高於該第三轉速條件之轉速範圍。 The method for estimating a rotational speed according to the sixth aspect of the invention, wherein the step (a) further comprises: providing a third phase encoded signal having a different generating frequency from the first and second phase encoded signals, The frequency of the second phase-encoded signal is substantially smaller than the frequency of the third phase-encoded signal, and a third operational parameter is determined according to the maximum rotational speed information and the third phase-encoded signal; wherein the rotational speed estimation method is in the step (a) And (d) further comprising: (g) when the rotational speed information corresponds to a third rotational speed condition, selecting the third phase encoded signal as the phase-coded signal to be sampled, and selecting the third operational parameter to do For the operation parameter, the third rotational speed condition corresponds to another rotational speed range, and the rotational speed range of the second rotational speed condition is higher than the rotational speed range of the third rotational speed condition. 一種電腦可讀取媒體,用以記載申請專利範圍第 6至第9項其中之一之轉速估算方法。 A computer readable medium for recording the scope of patent application Method for estimating the speed of one of the 6 to 9 items. 一種轉速估算方法,用以對一馬達裝置進行轉速估算,該轉速估算方法包括:(a)根據該馬達裝置之一最高轉速資訊及一待取樣相位編碼訊號,決定一運算參數;(b)以一取樣訊號對該待取樣相位編碼訊號進行取樣,以得到一取樣數值,其中步驟(b)中更包括:(b1)提供一第一計數器及一第二計數器,分別記錄一第一計數值及一第二計數值,該第一及該第二計數值對應至一終止計數值;(b2)當接收到該待取樣相位編碼訊號時,驅動該第二計數器,使該第二計數值等於該第一計數值,並驅動該第一計數器,重置該第一計數值為一起始計數值;(b3)當接收到該取樣訊號,驅動該第一計數器,將該第一計數值遞增1;(b4)當該第一計數值等於一最高計數值時,驅動該第一計數器終止步驟(b3)之操作,使該第一計數值維持在該最高計數值;及(b5)讀取該第二計數值做為該取樣數值;以及(c)根據該取樣數值及該運算參數產生一轉速估算值。 A method for estimating a rotational speed for estimating a rotational speed of a motor device, the method for estimating the rotational speed comprising: (a) determining an operational parameter according to a maximum rotational speed information of the motor device and a phase-coded signal to be sampled; (b) A sampling signal samples the phase-coded signal to be sampled to obtain a sample value, wherein the step (b) further comprises: (b1) providing a first counter and a second counter, respectively recording a first count value and a second count value, the first and second count values corresponding to a termination count value; (b2) when receiving the phase coded signal to be sampled, driving the second counter such that the second count value is equal to the a first count value, and driving the first counter, resetting the first count value to a start count value; (b3) when receiving the sample signal, driving the first counter, incrementing the first count value by one; (b4) when the first count value is equal to a highest count value, driving the first counter to terminate the operation of step (b3), maintaining the first count value at the highest count value; and (b5) reading the first Two count values as the take And (c) generating an estimated speed value based on the sampled value and the operational parameter. 如申請專利範圍第11項所述之轉速估算方法,其中在步驟(a)之前,更包括: (d)提供一第一取樣訊號及一第二取樣訊號,該第一及該第二取樣訊號分別具有一第一取樣頻率及一第二取樣頻率,該第一取樣頻率實質上大於該第二取樣頻率;(e)根據該馬達裝置之一最高轉速資訊及該第一取樣訊號,決定一第一運算參數,並根據該最高轉速資訊及該第二取樣訊號,決定一第二運算參數;(f)當該馬達裝置之一轉速資訊對應至一第一轉速條件時,選擇該第一取樣訊號做為該取樣訊號,並選擇該第一運算參數做為該運算參數;及(g)當該轉速資訊對應至一第二轉速條件時,選擇該第二取樣訊號做為該取樣訊號,並選擇該第二運算參數做為該運算參數;其中,該第一及該第二轉速條件對應至不同轉速範圍,該第一轉速條件之轉速範圍係高於該第二轉速條件之轉速範圍。 The method for estimating the rotational speed as described in claim 11 wherein before step (a), the method further comprises: (d) providing a first sampling signal and a second sampling signal, the first sampling signal and the second sampling signal respectively having a first sampling frequency and a second sampling frequency, the first sampling frequency being substantially greater than the second a sampling frequency; (e) determining a first operational parameter according to the maximum rotational speed information of the motor device and the first sampling signal, and determining a second operational parameter according to the maximum rotational speed information and the second sampling signal; f) when the rotational speed information of the motor device corresponds to a first rotational speed condition, selecting the first sampling signal as the sampling signal, and selecting the first operational parameter as the operational parameter; and (g) when the When the rotational speed information corresponds to a second rotational speed condition, the second sampling signal is selected as the sampling signal, and the second operational parameter is selected as the operational parameter; wherein the first and the second rotational speed conditions are different The speed range, the speed range of the first speed condition is higher than the speed range of the second speed condition. 如申請專利範圍第11項所述之轉速估算方法,其中在步驟(a)之前,更包括:(d’)根據該馬達裝置之一最高轉速資訊及一第一相位編碼訊號,決定一第一運算參數,並根據該馬達裝置之該最高轉速資訊及一第二相位編碼訊號,決定一第二運算參數,該第一及該第二相位編碼訊號具有不同之產生頻率,該第一相位編碼訊號之頻率實質上小於該第二相位編碼訊號之頻率;(e’)當該馬達裝置之一轉速資訊對應至一第一轉速 條件時,選擇該第一相位編碼訊號做為該待取樣相位編碼訊號,並選擇該第一運算參數做為該運算參數;(f’)當該轉速資訊對應至一第二轉速條件時,選擇該第二相位編碼訊號做為該待取樣相位編碼訊號,並選擇該第二運算參數做為該運算參數;其中,該第一及該第二轉速條件分別對應至不同之轉速範圍,該第一轉速條件之轉速範圍係高於該第二轉速條件之轉速範圍。 The method for estimating the rotational speed according to claim 11, wherein before the step (a), the method further comprises: (d') determining a first according to the highest rotational speed information of the motor device and a first phase encoded signal. Calculating a parameter, and determining a second operation parameter according to the maximum rotation speed information of the motor device and a second phase encoding signal, wherein the first and second phase encoding signals have different generating frequencies, and the first phase encoding signal The frequency is substantially smaller than the frequency of the second phase-encoded signal; (e') when the rotational speed information of the motor device corresponds to a first rotational speed In the condition, the first phase coded signal is selected as the phase coded signal to be sampled, and the first operation parameter is selected as the operation parameter; (f') when the speed information corresponds to a second speed condition, The second phase-encoded signal is used as the phase-coded signal to be sampled, and the second operational parameter is selected as the operational parameter; wherein the first and second rotational speed conditions respectively correspond to different rotational speed ranges, the first The speed range of the speed condition is higher than the speed range of the second speed condition. 一種電腦可讀取媒體,用以記載申請專利範圍第11至第13項其中之一之轉速估算方法。A computer readable medium for recording a method of estimating the rotational speed of one of the 11th to 13th patent applications.
TW99133709A 2010-10-04 2010-10-04 Estimation method for rotational speed and computer readable medium using the same TWI424163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99133709A TWI424163B (en) 2010-10-04 2010-10-04 Estimation method for rotational speed and computer readable medium using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99133709A TWI424163B (en) 2010-10-04 2010-10-04 Estimation method for rotational speed and computer readable medium using the same

Publications (2)

Publication Number Publication Date
TW201215889A TW201215889A (en) 2012-04-16
TWI424163B true TWI424163B (en) 2014-01-21

Family

ID=46786993

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99133709A TWI424163B (en) 2010-10-04 2010-10-04 Estimation method for rotational speed and computer readable medium using the same

Country Status (1)

Country Link
TW (1) TWI424163B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI835627B (en) * 2023-04-13 2024-03-11 綠源動力科技股份有限公司 Electric vehicle motor speed value generating device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329359A (en) * 2007-06-21 2008-12-24 台达电子工业股份有限公司 Method for estimating multi-point smoothing motor velocity
CN101363742A (en) * 2007-08-06 2009-02-11 台达电子工业股份有限公司 Angle calculating machinery of three phase optical encoder and angle calculating method
TW200914833A (en) * 2007-09-26 2009-04-01 Delta Electronics Inc Method for automatically setting initially-estimated rotational speed in motor speed measuring system
TW200935410A (en) * 2008-02-05 2009-08-16 Mediatek Inc System and method for printing visible image onto optical disc through tuning driving signal of optical pick-up unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329359A (en) * 2007-06-21 2008-12-24 台达电子工业股份有限公司 Method for estimating multi-point smoothing motor velocity
CN101363742A (en) * 2007-08-06 2009-02-11 台达电子工业股份有限公司 Angle calculating machinery of three phase optical encoder and angle calculating method
TW200914833A (en) * 2007-09-26 2009-04-01 Delta Electronics Inc Method for automatically setting initially-estimated rotational speed in motor speed measuring system
TW200935410A (en) * 2008-02-05 2009-08-16 Mediatek Inc System and method for printing visible image onto optical disc through tuning driving signal of optical pick-up unit

Also Published As

Publication number Publication date
TW201215889A (en) 2012-04-16

Similar Documents

Publication Publication Date Title
CN101834555B (en) Rotation speed detection circuit and motor driver apparatus having the same
CN108535507B (en) Computer storage medium for incremental encoder speed measurement
CN106645780B (en) DSP-based rotating speed detection method and system
CN107425781A (en) A kind of SRM positions predictor method based on linear flux linkage model and linear regression analysis
TWI424163B (en) Estimation method for rotational speed and computer readable medium using the same
KR101338707B1 (en) Excitation signal generating device and resolver sensing device
JPS5913957A (en) Speed detecting circuit
JP4871131B2 (en) Stepping motor stop fixing detection method and stepping motor equipped with a stop detector
CN105634342B (en) Motor drive control device and motor drive control method
CN102447433B (en) Rotating speed estimation method and computer readable media applying same
JP2720705B2 (en) Motor NRR measurement device
CN104767467A (en) Method for calibrating mechanical zero of motor
TW201111785A (en) Rotation speed detecting module and method of motor
JPH061279B2 (en) Digital speed detector
JPH08128855A (en) Speed detecting device
CN110601605A (en) Method, device and system for controlling motor
EP2977727B1 (en) Field programmable gate array based brushless dc motor speed detector
CN113125790A (en) Low-delay variable rotation frequency measurement
US10802037B2 (en) Methods and systems for motor control
CN113726250B (en) Synchronous motor cogging torque calibration method and device and electronic equipment
KR101135253B1 (en) Method for sensing motor speed
JPH04233467A (en) Method and apparatus for measuring speed of motor
CN108627670B (en) Method and device for detecting motor rotation speed
CN116125093A (en) Rotation speed measuring method and device of incremental encoder
JP2009236643A (en) Rotational speed measurement device and motor device having the same