TW201822453A - Encoder alignment method and device utilizes the memory to store the deviation angle so as complete alignment configuration between the encoder and the motor - Google Patents
Encoder alignment method and device utilizes the memory to store the deviation angle so as complete alignment configuration between the encoder and the motor Download PDFInfo
- Publication number
- TW201822453A TW201822453A TW105141516A TW105141516A TW201822453A TW 201822453 A TW201822453 A TW 201822453A TW 105141516 A TW105141516 A TW 105141516A TW 105141516 A TW105141516 A TW 105141516A TW 201822453 A TW201822453 A TW 201822453A
- Authority
- TW
- Taiwan
- Prior art keywords
- encoder
- angle
- signal
- rotor
- sensing
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000005259 measurement Methods 0.000 claims description 29
- 230000008859 change Effects 0.000 claims description 5
- 230000010354 integration Effects 0.000 description 7
- 239000003990 capacitor Substances 0.000 description 4
- 238000005034 decoration Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Control Of Motors That Do Not Use Commutators (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
Description
本發明是有關於一種對位方法及裝置,特別是指一種編碼器對位方法及裝置。The present invention relates to an alignment method and device, in particular to an encoder alignment method and device.
現有馬達系統包括一提供一電源信號的電源、一驅動控制裝置及一馬達裝置。該馬達裝置包括一包括一轉子的馬達,及一安裝在該馬達上的編碼器。該編碼器用來感測該轉子,以產生一對應該轉子角度的位置信號。該驅動控制裝置電連接該電源、該馬達及該編碼器,且根據該電源信號及該位置信號產生一三相驅動信號輸出來驅動該馬達之該轉子轉動。The existing motor system includes a power supply for providing a power signal, a drive control device, and a motor device. The motor device includes a motor including a rotor, and an encoder mounted on the motor. The encoder is used to sense the rotor to generate a position signal corresponding to the rotor angle. The driving control device is electrically connected to the power source, the motor and the encoder, and generates a three-phase driving signal output according to the power signal and the position signal to drive the rotor of the motor to rotate.
因此,在組裝時,該編碼器必需依據該馬達的轉子角度安裝至該馬達上,以避免其感應到的該位置信號不正確而影響到該馬達的運轉,進而產生了該編碼器與該馬達需對位的問題。而目前該編碼器與該馬達的對位方法多採用人工方式處理,於該馬達裝置裝設在該馬達系統前,裝修人員會先將該馬達裝置電連接至一外部電源供應器,並藉由該外部電源供應器所提供的一驅動信號來使該轉子轉動到該馬達之一U相反電動勢為零的位置,同時裝修人員在利用一電腦將此位置寫入該編碼器,以完成該編碼器與該馬達的對位設定。對位完成後,裝修人員在將該馬達裝置設置在該馬達系統中。Therefore, when assembling, the encoder must be installed on the motor according to the rotor angle of the motor to avoid the position signal that it senses is incorrect and affect the operation of the motor, which in turn generates the encoder and the motor. Questions on alignment. At present, the method of aligning the encoder with the motor is mostly handled manually. Before the motor device is installed in the motor system, the decorator will first electrically connect the motor device to an external power supply. A driving signal provided by the external power supply causes the rotor to rotate to a position where the electromotive force of the motor is opposite to zero. At the same time, the decoration staff uses a computer to write this position to the encoder to complete the encoder. Registration with this motor. After the alignment is completed, the decorator is setting the motor device in the motor system.
然而,現有編碼器對位方法具有以下缺點:However, existing encoder alignment methods have the following disadvantages:
1.需利用該外部電源供應器來進行對位,而此儀器成本較高,導致生產該馬達系統需要花費較高成本。1. The external power supply needs to be used for alignment, and the cost of this instrument is relatively high, which results in a higher cost for producing the motor system.
2.該馬達裝置若拆裝維修後,該編碼器與該馬達的相對位置就會偏移,使得該編碼器與該馬達需重新對位,並對該編碼器重新寫入以完成對位設定。然而,該編碼器只能支援單次寫入,因此,當該馬達裝置拆裝維修後,該馬達裝置就必需用一新的編碼器來取代該編碼器,造成該馬達裝置的維修費用提高。2. If the motor device is disassembled and repaired, the relative position of the encoder and the motor will be shifted, so that the encoder and the motor need to be realigned, and the encoder must be rewritten to complete the alignment setting. . However, the encoder can only support a single write. Therefore, after the motor device is disassembled and repaired, the motor device must replace the encoder with a new encoder, resulting in increased maintenance costs of the motor device.
3.當該編碼器與該馬達要對位時,需裝修人員將該馬達裝置從該馬達系統拆下,並電連接該外部電源供應器,且在對位完成後,裝修人員再將該馬達裝置裝回該馬達系統中,造成裝修及對位過程繁瑣且不方便。3. When the encoder and the motor are to be aligned, the decoration personnel need to remove the motor device from the motor system, and electrically connect the external power supply, and after the alignment is completed, the decoration personnel then reposition the motor. Replacing the device into the motor system caused tedious and inconvenient decoration and alignment processes.
[本發明欲解決之課題][Problems to be Solved by the Invention]
因此,本發明之目的,即在提供一種能夠克服先前技術缺點的編碼器對位方法及裝置。Therefore, an object of the present invention is to provide an encoder alignment method and device capable of overcoming the disadvantages of the prior art.
[解決問題之技術手段][Technical means to solve the problem]
如申請專利範圍第1項之發明,本發明一種編碼器對位方法由一編碼器對位裝置所執行,該編碼器對位裝置適用於電連接一馬達裝置,該馬達裝置包括一包括一轉子的馬達及一電連接該馬達的編碼器,該編碼器感測該轉子並產生一感測輸出,該感測輸出包括一第一感測信號,該編碼器對位方法包含以下步驟:According to the invention of claim 1 in the scope of patent application, an encoder alignment method of the present invention is performed by an encoder alignment device. The encoder alignment device is suitable for electrically connecting a motor device. The motor device includes a rotor including a rotor. A motor and an encoder electrically connected to the motor, the encoder senses the rotor and generates a sensing output, the sensing output includes a first sensing signal, and the encoder alignment method includes the following steps:
(A)利用該編碼器對位裝置根據一對位命令產生一切換信號輸出;(A) using the encoder alignment device to generate a switching signal output according to a pair of bit commands;
(B)利用該編碼器對位裝置根據該切換信號輸出及一電源信號產生一三相驅動信號輸出,以驅動該轉子轉動至一預定位置;(B) using the encoder alignment device to generate a three-phase driving signal output according to the switching signal output and a power signal to drive the rotor to rotate to a predetermined position;
(C)利用該編碼器對位裝置根據該第一感測信號得到一偏差角度,該偏差角度為該編碼器所感測到的該轉子的角度與該轉子之實際角度間的位置偏差;及(C) using the encoder alignment device to obtain a deviation angle based on the first sensing signal, the deviation angle being a position deviation between the angle of the rotor sensed by the encoder and the actual angle of the rotor; and
(D)利用該編碼器對位裝置儲存該偏差角度。(D) Use the encoder alignment device to store the deviation angle.
如申請專利範圍第2項之發明,該三相驅動信號輸出包括一U相驅動信號、一V相驅動信號及一W相驅動信號,在步驟(B)之後,且在步驟(C)之前,該編碼器對位方法還包含以下步驟:According to the invention in the second scope of the patent application, the three-phase driving signal output includes a U-phase driving signal, a V-phase driving signal, and a W-phase driving signal. The encoder alignment method also includes the following steps:
(E)利用該編碼器對位裝置根據一目標電流值與該U相驅動信號的一電流調整該切換信號輸出,以致該U相驅動信號的該電流大小、該V相驅動信號及該W相驅動信號的電流大小改變到該目標電流值。(E) using the encoder alignment device to adjust the switching signal output according to a target current value and a current of the U-phase drive signal, so that the magnitude of the current of the U-phase drive signal, the V-phase drive signal, and the W-phase The current level of the driving signal is changed to the target current value.
如申請專利範圍第3項之發明,該編碼器所產生的該感測輸出還包括一第二感測信號及一第三感測信號,該等第二及第三感測信號相關於該轉子在運轉過程中的角度及轉速,在步驟(B)之後,且在步驟(C)之前,該編碼器對位方法還包含以下步驟:If the invention of claim 3 is applied for, the sensing output generated by the encoder further includes a second sensing signal and a third sensing signal, and the second and third sensing signals are related to the rotor. The angle and rotation speed during the operation, after step (B) and before step (C), the encoder alignment method further includes the following steps:
(F)利用該編碼器對位裝置判斷其驅動該轉子轉動至該預定位置的起始時間至當下時間是否大於一預定時間;及(F) using the encoder alignment device to determine whether the time from the start of driving the rotor to the predetermined position to the present time is greater than a predetermined time; and
(G)當步驟(F)的判斷結果為是時,利用該編碼器對位裝置根據該等第二及第三感測信號判斷該轉子是否靜止,且於判斷結果為是時,執行步驟(C)。(G) When the judgment result of step (F) is yes, use the encoder alignment device to judge whether the rotor is stationary according to the second and third sensing signals, and when the judgment result is yes, execute step ( C).
如申請專利範圍第4項之發明,該編碼器對位方法還包含以下步驟:If the invention in the fourth scope of the patent application is applied, the encoder alignment method further includes the following steps:
(H)當該編碼器對位裝置得到該偏差角度且接收到一轉動命令時,利用該編碼器對位裝置根據該等第一至第三感測信號得到一量測角度,該量測角度為該編碼器所感測到的該轉子的角度;(H) When the encoder alignment device obtains the deviation angle and receives a rotation command, use the encoder alignment device to obtain a measurement angle based on the first to third sensing signals, the measurement angle The angle of the rotor sensed by the encoder;
(I)利用該編碼器對位裝置根據該量測角度及其所儲存的該偏差角度得到該轉子的一實際角度;及(I) using the encoder alignment device to obtain an actual angle of the rotor according to the measurement angle and the stored deviation angle; and
(J)利用該編碼器對位裝置根據該實際角度調整該切換信號輸出,以致該三相驅動信號輸出改變,使得該轉子轉動。(J) Use the encoder alignment device to adjust the output of the switching signal according to the actual angle, so that the output of the three-phase driving signal changes, causing the rotor to rotate.
如申請專利範圍第5項之發明,其中,步驟(I)包括以下子步驟:For example, for the invention in the fifth scope of the application, step (I) includes the following sub-steps:
(I1)利用該編碼器對位裝置將該量測角度減掉該偏差角度來得到該實際角度;(I1) Use the encoder alignment device to subtract the deviation angle from the measurement angle to obtain the actual angle;
(I2)利用該編碼器對位裝置判斷是否零度小於等於該實際角度小於等於360度;及(I2) use the encoder alignment device to determine whether the zero angle is less than or equal to the actual angle of 360 degrees; and
(I3)當步驟(I2)的判斷結果為否時,利用該編碼器對位裝置將該實際角度調整到零度至360度間的範圍內。(I3) When the judgment result of step (I2) is NO, use the encoder alignment device to adjust the actual angle to a range between zero and 360 degrees.
如申請專利範圍第6項之發明,本發明一種編碼器對位裝置適用於電連接在一電源與一馬達裝置間,並接收來自該電源的一電源信號,該馬達裝置包括一包括一轉子的馬達及一電連接該馬達的編碼器,該編碼器感測該轉子並產生一感測輸出,該感測輸出包括一第一感測信號,該編碼器對位裝置包含一驅動模組及一控制模組。According to the invention in claim 6 of the patent application scope, an encoder alignment device of the present invention is suitable for being electrically connected between a power source and a motor device, and receiving a power signal from the power source. The motor device includes a rotor including a rotor. A motor and an encoder electrically connected to the motor. The encoder senses the rotor and generates a sensing output. The sensing output includes a first sensing signal. The encoder alignment device includes a driving module and a Control module.
該驅動模組適於電連接在該電源與該馬達間,且接收一切換信號輸出及來自該電源的該電源信號,當接收到該切換信號輸出時,該驅動模組根據該切換信號輸出及該電源信號,產生一三相驅動信號輸出,以驅動該馬達之該轉子轉動至一預定位置。The driving module is adapted to be electrically connected between the power source and the motor, and receives a switching signal output and the power signal from the power source. When receiving the switching signal output, the driving module outputs and The power signal generates a three-phase driving signal output to drive the rotor of the motor to a predetermined position.
該控制模組包括一控制器、一脈寬調變電路及一電連接該控制器之記憶體。The control module includes a controller, a pulse width modulation circuit, and a memory electrically connected to the controller.
該控制器適於電連接該編碼器,用來接收一對位命令及來自該編碼器之該感測輸出,當接收到該對位命令時,該控制器根據該對位命令產生一對位控制信號。The controller is adapted to be electrically connected to the encoder for receiving a pair of bit commands and the sensing output from the encoder. When the pair of commands is received, the controller generates a pair of bits according to the pair of commands. control signal.
該脈寬調變電路電連接該驅動模組及該控制器,接收來自該控制器之該對位控制信號,且根據該對位控制信號產生該切換信號輸出,並將該切換信號輸出輸出至該驅動模組。The pulse width modulation circuit is electrically connected to the driving module and the controller, receives the registration control signal from the controller, and generates the switching signal output according to the registration control signal, and outputs the switching signal output To the drive module.
在該脈寬調變電路輸出該切換信號輸出及經過一預定時間後,且該轉子靜止時,該控制器根據該感測輸出中之該第一感測信號得到一偏差角度,並將該偏差角度輸出至該記憶體且儲存在該記憶體中,該偏差角度為該編碼器所感測到的該轉子的角度與該轉子之實際角度間的位置偏差。After the pulse width modulation circuit outputs the switching signal output and a predetermined time elapses, and when the rotor is stationary, the controller obtains a deviation angle according to the first sensing signal in the sensing output, and applies the The deviation angle is output to the memory and stored in the memory, and the deviation angle is a position deviation between the angle of the rotor sensed by the encoder and the actual angle of the rotor.
如申請專利範圍第7項之發明,其中,該三相驅動信號輸出包括一U相驅動信號、一V相驅動信號及一W相驅動信號,該控制模組還包括一電流閉迴路控制電路。For example, the invention in claim 7 of the patent application scope, wherein the three-phase driving signal output includes a U-phase driving signal, a V-phase driving signal and a W-phase driving signal, and the control module further includes a current closed-loop control circuit.
該電流閉迴路控制電路包括一減法器及一比例積分控制器。The current closed-loop control circuit includes a subtractor and a proportional-integral controller.
該減法器電連接該驅動模組,接收一目標電流值及來自該驅動模組之該U相驅動信號的一電流,該減法器將該目標電流值減掉該U相驅動信號的該電流來得到一電流差值。The subtractor is electrically connected to the driving module, receives a target current value and a current of the U-phase driving signal from the driving module, and the subtractor subtracts the target current value from the current of the U-phase driving signal to A current difference is obtained.
該比例積分控制器電連接該脈寬調變電路及該減法器,接收來自該減法器之該電流差值,並根據該電流差值產生一積分控制信號,且將該積分控制信號輸出至該脈寬調變電路。The proportional-integral controller is electrically connected to the pulse width modulation circuit and the subtractor, receives the current difference value from the subtractor, generates an integration control signal according to the current difference value, and outputs the integration control signal to The pulse width modulation circuit.
該脈寬調變電路在接收到該積分控制信號時,該脈寬調變電路還根據該積分控制信號調整該切換信號輸出,以致該U相驅動信號的該電流大小、該V相驅動信號及該W相驅動信號的電流大小改變到該目標電流值。When the pulse width modulation circuit receives the integration control signal, the pulse width modulation circuit also adjusts the switching signal output according to the integration control signal, so that the magnitude of the current of the U-phase drive signal and the V-phase drive The current level of the signal and the W-phase drive signal is changed to the target current value.
如申請專利範圍第8項之發明,該編碼器所產生的該感測輸出還包括一第二感測信號及一第三感測信號,該等第二及第三感測信號相關於該轉子在運轉過程中的角度及轉速。If the invention of claim 8 is applied for, the sensing output generated by the encoder further includes a second sensing signal and a third sensing signal, and the second and third sensing signals are related to the rotor. Angle and speed during operation.
該控制器得到該偏差角度且接收到一轉動命令時,該控制器還根據該等第一至第三感測信號得到一量測角度,該量測角度為該編碼器所感測到的該轉子的角度。When the controller obtains the deviation angle and receives a rotation command, the controller also obtains a measurement angle according to the first to third sensing signals, and the measurement angle is the rotor sensed by the encoder. Angle.
該控制模組還包括一角度校正器,該角度校正器電連接該控制器、該記憶體及該脈寬調變電路,接收來自該記憶體之該偏差角度及來自該控制器之該量測角度,當接收到該量測角度時,該角度校正器根據該偏差角度及該量測角度得到該轉子的一實際角度,且將該實際角度輸出至該脈寬調變電路。The control module also includes an angle corrector, which is electrically connected to the controller, the memory and the pulse width modulation circuit, and receives the deviation angle from the memory and the amount from the controller. Angle measurement. When the measurement angle is received, the angle corrector obtains an actual angle of the rotor according to the deviation angle and the measurement angle, and outputs the actual angle to the pulse width modulation circuit.
該脈寬調變電路接收到來自該角度校正器之該實際角度時,根據該實際角度調整該切換信號輸出,以致該驅動模組所輸出的該三相驅動信號輸出改變,使得該轉子隨著該三相驅動信號輸出而轉動。When the pulse width modulation circuit receives the actual angle from the angle corrector, the switching signal output is adjusted according to the actual angle, so that the output of the three-phase driving signal output by the driving module changes, so that the rotor follows The three-phase driving signal is output to rotate.
如申請專利範圍第9項之發明,該角度校正器將該量測角度減掉該偏差角度來得到該實際角度,且當該實際角度超過零度至360度間的範圍時,將該實際角度調整到零度至360度間的範圍內。For example, the invention applied for item 9 of the patent scope, the angle corrector subtracts the measurement angle from the deviation angle to obtain the actual angle, and adjusts the actual angle when the actual angle exceeds the range between zero and 360 degrees. From zero to 360 degrees.
如申請專利範圍第10項之發明,該記憶體為一電子抹除式可複寫唯讀記憶體及一快閃記憶體二者其中之一。According to the invention of claim 10, the memory is one of an electronic erasable rewritable read-only memory and a flash memory.
[本發明之效果][Effect of the present invention]
在申請專利範圍第1、6項的發明中,該編碼器對位裝置可根據該第一感測信號得到該編碼器與該馬達對位時所需的該偏差角度,並利用該記憶體儲存該偏差角度,以完成該編碼器與該馬達間的對位設定。In the inventions with the scope of claims 1 and 6, the encoder alignment device can obtain the deviation angle required when the encoder and the motor are aligned according to the first sensing signal, and use the memory to store The deviation angle completes the alignment setting between the encoder and the motor.
在申請專利範圍第2、7項的發明中,該電流閉迴路控制電路可根據該目標電流值與該U相驅動信號的該電流調整該切換信號輸出,使得該等U相、V相、W相驅動信號的電流大小改變到該目標電流值,達到定電流控制功能。In the inventions with the scope of claims 2 and 7, the current closed-loop control circuit can adjust the switching signal output according to the target current value and the current of the U-phase drive signal, so that the U-phase, V-phase, W The current magnitude of the phase drive signal is changed to the target current value to achieve a constant current control function.
在申請專利範圍第3項的發明中,限定該編碼器對位裝置何時才根據該第一感測信號得到該偏差角度,以確保得到正確的該偏差角度。In the invention in the third scope of the patent application, it is limited when the encoder alignment device obtains the deviation angle according to the first sensing signal, so as to ensure that the correct deviation angle is obtained.
在申請專利範圍第4、8項的發明中,該角度校正器可根據該偏差角度校正該量測角度,以得到正確的該轉子的該實際角度,使該三相驅動信號輸出的變化正確,確保該轉子正常轉動。In the inventions claimed in claims 4 and 8, the angle corrector can correct the measurement angle according to the deviation angle, so as to obtain the correct actual angle of the rotor and make the change of the three-phase drive signal output correct. Ensure that the rotor rotates normally.
在申請專利範圍第5、9項的發明中,限定該編碼器對位裝置如何得到該實際角度。In the inventions claimed in the scope of claims 5 and 9, how the encoder alignment device obtains the actual angle is limited.
在申請專利範圍第10項的發明中,限定該記憶體為可重複寫入的記憶元件,進而若該編碼器與該馬達間要重新對位,本發明不需要更換新的編碼器。In the invention of claim 10, the memory is limited to a rewritable memory element, and if the encoder and the motor are to be realigned, the present invention does not need to be replaced with a new encoder.
參閱圖1、2,本發明編碼器對位裝置3的實施例適用於電連接在一電源1與一馬達裝置2間,並用來接收來自該電源1的一電源信號,該電源信號包括一正相電源信號P1及一負相電源信號P2。該馬達裝置2包括一包括一轉子20的馬達21,及一電連接該馬達21且安裝在該馬達21上的編碼器22。在本實施例中,該編碼器對位裝置3、該電源1與該馬達裝置2組成一馬達系統。該馬達21還包括一定子外殼(圖未示),該編碼器22被組裝在該馬達21之該定子外殼上。該編碼器22定期地(例如連續地)感測該轉子20,以產生一感測輸出,該感測輸出包括一第一感測信號S1、一第二感測信號S2及一第三感測信號S3。需說明的是,該馬達21為一直流無刷馬達(Brushless DC Motor)。該第一感測信號S1為一脈寬調變訊號,在單一週期中,該第一感測信號S1之高邏輯準位所對應的一脈寬寬度與該第一感測信號S1在單一週期中所對應的一全部脈寬寬度之比值相關於該編碼器22所感測到的該轉子20的角度與該轉子20之實際角度間的位置偏差。該等第二及第三感測信號S2、S3相關於該轉子20在運轉過程中的角度及轉速,且該等第二及第三感測信號S2、S3的相位相差90度。在其他實施例中,該感測輸出還包括一第四感測信號,該第四感測信號為該轉子20運轉一圈時,該編碼器22所產生的一脈波訊號,用以檢測該等第二及第三感測信號S2、S3是否有異常。Referring to FIGS. 1 and 2, an embodiment of the encoder alignment device 3 of the present invention is suitable for being electrically connected between a power supply 1 and a motor device 2 and used to receive a power signal from the power supply 1. The power signal includes a positive A phase power signal P1 and a negative phase power signal P2. The motor device 2 includes a motor 21 including a rotor 20 and an encoder 22 electrically connected to the motor 21 and mounted on the motor 21. In this embodiment, the encoder alignment device 3, the power supply 1 and the motor device 2 constitute a motor system. The motor 21 further includes a stator casing (not shown), and the encoder 22 is assembled on the stator casing of the motor 21. The encoder 22 periodically (for example, continuously) senses the rotor 20 to generate a sensing output. The sensing output includes a first sensing signal S1, a second sensing signal S2, and a third sensing. Signal S3. It should be noted that the motor 21 is a brushless DC motor. The first sensing signal S1 is a pulse width modulation signal. In a single cycle, a pulse width corresponding to a high logic level of the first sensing signal S1 and the first sensing signal S1 are in a single cycle. A ratio of a total pulse width width corresponding to φ is related to a position deviation between the angle of the rotor 20 sensed by the encoder 22 and the actual angle of the rotor 20. The second and third sensing signals S2 and S3 are related to the angle and rotation speed of the rotor 20 during operation, and the phases of the second and third sensing signals S2 and S3 are different by 90 degrees. In other embodiments, the sensing output further includes a fourth sensing signal. The fourth sensing signal is a pulse wave signal generated by the encoder 22 when the rotor 20 runs one revolution, and is used to detect the pulse signal. Wait for whether the second and third sensing signals S2 and S3 are abnormal.
該編碼器對位裝置3電連接該電源1、該馬達21及該編碼器22,接收一目標電流值、來自該電源1的該等正相及負相電源信號P1、P2及來自該編碼器22的該等第一至第三感測信號S1、S2、S3,且適於接收一外部對位命令及一外部轉動命令二者其中之一。當該編碼器對位裝置3接收到該對位命令時,其操作於一對位模式,並因應該對位命令,根據該等正相及負相電源信號P1、P2產生一三相驅動信號輸出來驅動該馬達21之該轉子20轉動至一預定位置。當該編碼器對位裝置3接收到該轉動命令時,其操作於一轉動模式,並因應該轉動命令,根據該等第一至第三感測信號S1、S2、S3調整該三相驅動信號輸出,以驅動該馬達21之該轉子20持續轉動。在本實施例中,該預定位置為該馬達21之一U相反電動勢為零的位置。該三相驅動信號輸出包括一U相驅動信號DU 、一V相驅動信號DV 及一W相驅動信號DW 。該對位命令及該轉動命令可為一實體開關被觸發所產生,或來自一外部通訊界面。該編碼器對位裝置3主要可提供生產廠商或使用者將該編碼器22裝設在該馬達21時進行該編碼器22與該馬達21間的對位校正,或該馬達裝置2維修後需對該編碼器22重新對位校正的用途。The encoder alignment device 3 is electrically connected to the power source 1, the motor 21 and the encoder 22, and receives a target current value, the positive and negative phase power signals P1, P2 from the power source 1, and from the encoder. The first to third sensing signals S1, S2, and S3 of 22 are adapted to receive one of an external alignment command and an external rotation command. When the encoder alignment device 3 receives the alignment command, it operates in a pair of alignment modes, and generates a three-phase driving signal according to the positive and negative power signals P1 and P2 in response to the alignment command. The output is used to drive the rotor 20 of the motor 21 to a predetermined position. When the encoder alignment device 3 receives the rotation command, it operates in a rotation mode, and adjusts the three-phase driving signal according to the first to third sensing signals S1, S2, and S3 in response to the rotation command. Output to drive the rotor 20 of the motor 21 to continuously rotate. In the present embodiment, the predetermined position is a position where one U of the motors 21 has opposite electromotive force to zero. The three-phase driving signal output includes a U-phase driving signal D U , a V-phase driving signal D V, and a W-phase driving signal D W. The alignment command and the rotation command may be generated by a physical switch being triggered, or from an external communication interface. The encoder alignment device 3 mainly provides a manufacturer or a user to perform alignment correction between the encoder 22 and the motor 21 when the encoder 22 is installed in the motor 21, or the motor device 2 needs to be repaired after maintenance. The encoder 22 is re-aligned for use.
在本實施例中,該編碼器對位裝置3包括一驅動模組31及一控制模組32。In this embodiment, the encoder alignment device 3 includes a driving module 31 and a control module 32.
該驅動模組31適於電連接該電源1及該馬達21,接收一切換信號輸出及來自該電源1的該等正相及負相電源信號P1、P2。當操作於該對位模式且接收到該切換信號輸出時,該驅動模組31根據該等正相及負相電源信號P1、P2及該切換信號輸出,產生該U相驅動信號DU 、該V相驅動信號DV 及該W相驅動信號DW 來驅動該馬達21之該轉子20轉動至該預定位置。在本實施例中,該切換信號輸出包括第一至第六切換信號Q1~Q6。該驅動模組31包括一電容器310及六個開關311~316。The driving module 31 is adapted to be electrically connected to the power source 1 and the motor 21, and receives a switching signal output and the positive-phase and negative-phase power signals P1 and P2 from the power source 1. When operating in the alignment mode and receiving the switching signal output, the driving module 31 generates the U-phase driving signal D U , the U-phase driving signal D U , The V-phase driving signal D V and the W-phase driving signal D W are used to drive the rotor 20 of the motor 21 to rotate to the predetermined position. In this embodiment, the switching signal output includes first to sixth switching signals Q1 to Q6. The driving module 31 includes a capacitor 310 and six switches 311-316.
該電容器310具有適於電連接該電源1以分別接收該等正相及負相電源信號P1、P2的第一端及第二端。串接的該等開關311、312、串接的該等開關313、314及串接的該等開關315、316與該電容器310並聯連接。該等開關311~316分別接收該等第一至第六切換信號Q1~Q6,且分別受該等第一至第六切換信號Q1~Q6控制而導通或不導通。該等開關311、312間的一共同接點N1輸出該U相驅動信號DU 。該等開關313、314間的一共同接點N2輸出該V相驅動信號DV 。該等開關315、316間的一共同接點N3輸出該W相驅動信號Dw 。The capacitor 310 has a first terminal and a second terminal adapted to be electrically connected to the power source 1 to receive the positive-phase and negative-phase power signals P1 and P2, respectively. The series connected switches 311, 312, the series connected switches 313, 314, and the series connected switches 315, 316 are connected in parallel with the capacitor 310. The switches 311 to 316 respectively receive the first to sixth switching signals Q1 to Q6, and are controlled to be turned on or off by being controlled by the first to sixth switching signals Q1 to Q6, respectively. A common contact N1 between the switches 311 and 312 outputs the U-phase driving signal D U. A common contact N2 between the switches 313 and 314 outputs the V-phase driving signal D V. A common contact N3 between the switches 315 and 316 outputs the W-phase driving signal D w .
該控制模組32電連接該編碼器22及該驅動模組31,接收該目標電流值、來自該編碼器22的該等第一至第三感測信號S1、S2、S3,及來自該驅動模組31的該U相驅動信號DU 的一電流IU ,並接收該對位命令及該轉動命令二者其中之一。該控制模組32根據該對位命令及該轉動命令,分別操作在該對位模式及該轉動模式。簡單來說,操作時,該控制模組32會先接收到該對位命令並操作在該對位模式。當該對位模式結束,且該控制模組32接收到該轉動命令時,該控制模組32再根據該轉動命令而操作在該轉動模式。當操作在該對位模式時,該控制模組32執行以下動作:(1)根據該對位命令產生該等第一至第六切換信號Q1~Q6,以驅動該轉子20轉動至該預定位置;(2)根據該目標電流值及該U相驅動信號DU 的該電流IU 調整該等第一至第六切換信號Q1~Q6的脈寬寬度,以致該U相驅動信號DU 的該電流IU 大小及該等V相、W相驅動信號DV 、DW 的電流大小改變到該目標電流值;(3)根據該第一感測信號S1得到一偏差角度Ad,該偏差角度Ad為該編碼器22所感測到的該轉子20的角度與該轉子20之實際角度間的位置偏差。當操作在該轉動模式時,該控制模組32執行以下動作:(1)根據該等第一至第三感測信號S1、S2、S3得到一量測角度Am,該量測角度Am為該編碼器22所感測到的該轉子20的角度;(2)根據該偏差角度Ad校正該量測角度Am因受該編碼器22組裝時位置偏移影響而產生的誤差,以得到該轉子20的一實際角度Ar;(3) 根據該實際角度Ar調整該等第一至第六切換信號Q1~Q6,進而改變該驅動模組31所輸出的該三相驅動信號輸出,使得該馬達21之該轉子20隨著該三相驅動信號輸出所產生的磁場轉動(如,開始順時針或逆時針旋轉)。The control module 32 is electrically connected to the encoder 22 and the driving module 31, and receives the target current value, the first to third sensing signals S1, S2, S3 from the encoder 22, and from the driver A current I U of the U-phase driving signal D U of the module 31, and receives one of the alignment command and the rotation command. The control module 32 operates in the registration mode and the rotation mode respectively according to the registration command and the rotation command. In simple terms, during operation, the control module 32 will first receive the alignment command and operate in the alignment mode. When the alignment mode ends and the control module 32 receives the rotation command, the control module 32 operates in the rotation mode according to the rotation command. When operating in the alignment mode, the control module 32 performs the following actions: (1) generating the first to sixth switching signals Q1 to Q6 according to the alignment command to drive the rotor 20 to rotate to the predetermined position ; the current I (2) D U-phase drive signal based on the target current value and the adjustment of such U U sixth switching signal to the first pulse width of Q1 ~ Q6, so that the U-phase drive signal of the D U The magnitude of the current I U and the magnitudes of the V-phase and W-phase drive signals D V and D W are changed to the target current value; (3) A deviation angle Ad is obtained according to the first sensing signal S1, and the deviation angle Ad The position deviation between the angle of the rotor 20 sensed by the encoder 22 and the actual angle of the rotor 20. When operating in the rotation mode, the control module 32 performs the following actions: (1) A measurement angle Am is obtained according to the first to third sensing signals S1, S2, and S3, and the measurement angle Am is The angle of the rotor 20 sensed by the encoder 22; (2) Correcting the error of the measurement angle Am due to the position deviation when the encoder 22 is assembled according to the deviation angle Ad to obtain the rotor 20's An actual angle Ar; (3) adjusting the first to sixth switching signals Q1 to Q6 according to the actual angle Ar, and then changing the three-phase driving signal output output by the driving module 31 so that the motor 21 The rotor 20 rotates according to the magnetic field generated by the three-phase driving signal output (for example, starts to rotate clockwise or counterclockwise).
該控制模組32包括一產生該等第一至第六切換信號Q1~Q6的脈寬調變電路321、一用來儲存該偏差角度Ad的記憶體322、一控制器323、一角度校正器324及一電流閉迴路控制電路325。該控制器323電連接該編碼器22、該脈寬調變電路321及該記憶體322,用來接收該對位命令及該轉動命令二者其中之一,且接收來自該編碼器22的該等第一至第三感測信號S1。該角度校正器324電連接該控制器323、該記憶體322及該脈寬調變電路321。該電流閉迴路控制電路325電連接該脈寬調變電路321,且接收該目標電流值。在本實施例中,該記憶體322為一可重複寫入的記憶元件,例如一電子抹除式可複寫唯讀記憶體(Electrically-Erasable Programmable Read-Only Memory,EEPROM)或一快閃記憶體(flash memory),但不限於此。該電流閉迴路控制電路325包括一減法器3251及一比例積分控制器(Proportional Integral Controller,PIC)3252。該比例積分控制器3252電連接在該減法器3251與該脈寬調變電路321之間。The control module 32 includes a pulse width modulation circuit 321 for generating the first to sixth switching signals Q1 to Q6, a memory 322 for storing the deviation angle Ad, a controller 323, and an angle correction. 324 and a current closed-loop control circuit 325. The controller 323 is electrically connected to the encoder 22, the pulse width modulation circuit 321, and the memory 322, and is used for receiving one of the alignment command and the rotation command, and receiving the The first to third sensing signals S1. The angle corrector 324 is electrically connected to the controller 323, the memory 322, and the pulse width modulation circuit 321. The current closed-loop control circuit 325 is electrically connected to the pulse width modulation circuit 321 and receives the target current value. In this embodiment, the memory 322 is a rewritable memory element, such as an electronically erasable rewritable read-only memory (EEPROM) or a flash memory (flash memory), but is not limited to this. The current closed-loop control circuit 325 includes a subtractor 3251 and a Proportional Integral Controller (PIC) 3252. The proportional-integral controller 3252 is electrically connected between the subtractor 3251 and the pulse width modulation circuit 321.
進一步參閱圖3A、3B,說明該編碼器對位裝置3操作於該對位模式且執行一種編碼器對位方法來完成該編碼器22與該馬達21的對位設定。以下詳細說明本實施例該編碼器對位方法所包含的步驟。Further referring to FIGS. 3A and 3B, it is described that the encoder alignment device 3 operates in the alignment mode and executes an encoder alignment method to complete the alignment setting of the encoder 22 and the motor 21. The steps included in the encoder alignment method of this embodiment are described in detail below.
在步驟40中,該控制器323接收到該對位命令,並根據該對位命令產生一對位控制信號C1,該對位控制信號C1指示該等開關312、313、315導通,且該等開關311、314、316不導通。In step 40, the controller 323 receives the registration command and generates a pair of registration control signals C1 according to the registration command. The registration control signal C1 instructs the switches 312, 313, 315 to be turned on, and The switches 311, 314, and 316 are not turned on.
在步驟41中,該脈寬調變電路321根據該對位控制信號C1產生該等第一至第六切換信號Q1~Q6(即,該切換信號輸出)。In step 41, the pulse width modulation circuit 321 generates the first to sixth switching signals Q1 to Q6 (that is, the switching signal output) according to the registration control signal C1.
在步驟42中,該等開關311~316分別接收該等第一至第六切換信號Q1~Q6,且該等開關312、313、315受該等第二、第三及第五切換信號Q2、Q3、Q5控制而導通,該等開關311、314、316受該等第一、第四及第六切換信號Q1、Q4、Q6控制而不導通。該驅動模組31根據該等第一至第六切換信號Q1~Q6及該電源信號所產生的該三相驅動信號輸出(即,該等U相、V相、W相驅動信號DU 、DV 、DW )驅動該轉子20轉動至該預定位置。In step 42, the switches 311 to 316 respectively receive the first to sixth switching signals Q1 to Q6, and the switches 312, 313, and 315 are subjected to the second, third, and fifth switching signals Q2, Q3 and Q5 are controlled and turned on. The switches 311, 314, and 316 are controlled by the first, fourth, and sixth switching signals Q1, Q4, and Q6 but are not turned on. The driving module 31 outputs the three-phase driving signals (i.e., the U-phase, V-phase, and W-phase driving signals D U and D) according to the first to sixth switching signals Q1 to Q6 and the power signal. V , DW ) drive the rotor 20 to the predetermined position.
在步驟43中,該控制模組32接收該目標電流值及該U相驅動信號DU 的該電流IU ,並根據該目標電流值與該電流IU 調整該等第一至第六切換信號Q1~Q6的脈寬寬度,以致該U相驅動信號DU 的該電流IU 大小及該等V相、W相驅動信號DV 、DW 的電流大小改變到該目標電流值。In step 43, the control module 32 receives the target current value and the current of the U phase of the drive signal D U U I, U and adjust the plurality of first to sixth switching signal and the current based on the target current value I The pulse widths of Q1 to Q6 are such that the magnitude of the current I U of the U-phase drive signal D U and the magnitude of the currents of the V-phase and W-phase drive signals D V , D W change to the target current value.
詳細來說,在步驟43中,還進一步包含子步驟431、432、433之細部流程。In detail, step 43 further includes detailed processes of sub-steps 431, 432, and 433.
在子步驟431中,該減法器3251接收該目標電流值及該電流IU ,並將該目標電流值減掉該電流IU 來得到一電流差值I1。In sub-step 431, the subtractor 3251 receives the target current value and the current I U , and subtracts the target current value from the current I U to obtain a current difference value I 1.
在子步驟432中,該比例積分控制器3252接收該電流差值I1,並根據該電流差值I1產生一積分控制信號C2。In sub-step 432, the proportional-integral controller 3252 receives the current difference value I1 and generates an integration control signal C2 according to the current difference value I1.
在子步驟433中,該脈寬調變電路321接收該積分控制信號C2,並根據該積分控制信號C2調整該等第一至第六切換信號Q1~Q6的脈寬寬度。In sub-step 433, the pulse width modulation circuit 321 receives the integration control signal C2, and adjusts the pulse widths of the first to sixth switching signals Q1 to Q6 according to the integration control signal C2.
在步驟44中,該控制器323判斷該脈寬調變電路321在根據該對位控制信號C1產生該等第一至第六切換信號Q1~Q6,以驅動該轉子20轉動至該預定位置的一起始時間至當下時間是否大於一預定時間。若該判斷結果為是,則進行步驟45;若否,則重覆進行步驟44。在本實施例中,該預定時間,例如為2秒,但不以此為限。In step 44, the controller 323 determines that the pulse width modulation circuit 321 is generating the first to sixth switching signals Q1 to Q6 according to the registration control signal C1 to drive the rotor 20 to rotate to the predetermined position. Whether the time from a start time to the current time is greater than a predetermined time. If the determination result is yes, go to step 45; if not, go to step 44 repeatedly. In this embodiment, the predetermined time is, for example, 2 seconds, but is not limited thereto.
在步驟45中,該控制器323根據該等第二及第三感測信號S2、S3判斷該轉子20是否靜止。若該判斷結果為是,則進行步驟46;若否,則重覆進行步驟45。In step 45, the controller 323 determines whether the rotor 20 is stationary according to the second and third sensing signals S2 and S3. If the determination result is yes, go to step 46; otherwise, go to step 45 repeatedly.
在步驟46中,該控制器323根據該第一感測信號S1得到該偏差角度Ad。In step 46, the controller 323 obtains the deviation angle Ad according to the first sensing signal S1.
在步驟47中,該控制器323控制該脈寬調變電路321調整該等第一至第六切換信號Q1~Q6,以致該等開關311~316分別受該等第一至第六切換信號Q1~Q6控制而不導通。In step 47, the controller 323 controls the pulse width modulation circuit 321 to adjust the first to sixth switching signals Q1 to Q6, so that the switches 311 to 316 receive the first to sixth switching signals, respectively. Q1 ~ Q6 are controlled but not turned on.
在步驟48中,該控制器323將該偏差角度Ad輸出至該記憶體322,並儲存在該記憶體322中。如此,該對位模式結束,且該編碼器22與該馬達21的對位設定完成。In step 48, the controller 323 outputs the deviation angle Ad to the memory 322 and stores it in the memory 322. In this way, the alignment mode ends, and the alignment setting of the encoder 22 and the motor 21 is completed.
進一步參閱圖4,說明當該對位模式結束,且該控制模組32接收到該轉動命令時,該控制模組32會根據該轉動命令而操作在該轉動模式,並藉由儲存在該記憶體322中之該偏差角度Ad,校正該編碼器22所感測到的該轉子20的角度與該轉子20的實際角度之間的誤差。該編碼器對位裝置3所執行的該編碼器對位方法還包含以下步驟。Further referring to FIG. 4, when the alignment mode ends and the control module 32 receives the rotation command, the control module 32 will operate in the rotation mode according to the rotation command, and save it in the memory The deviation angle Ad in the body 322 corrects an error between the angle of the rotor 20 sensed by the encoder 22 and the actual angle of the rotor 20. The encoder alignment method executed by the encoder alignment device 3 further includes the following steps.
在步驟51中,該控制器323接收到該轉動命令時,該控制器323根據該等第一至第三感測信號S1、S2、S3得到該量測角度Am。In step 51, when the controller 323 receives the rotation command, the controller 323 obtains the measurement angle Am according to the first to third sensing signals S1, S2, and S3.
在步驟52中,該角度校正器324接收該記憶體322所儲存之該偏差角度Ad,及來自該控制器323的該量測角度Am,並根據該偏差角度Ad及該量測角度Am得到該轉子20的該實際角度Ar。In step 52, the angle corrector 324 receives the deviation angle Ad stored in the memory 322 and the measurement angle Am from the controller 323, and obtains the deviation angle Ad and the measurement angle Am This actual angle Ar of the rotor 20.
詳細來說,在步驟52中,還進一步包含子步驟521、522、523之細部流程。Specifically, in step 52, the detailed process of the sub-steps 521, 522, and 523 is further included.
在子步驟521中,該角度校正器324將該量測角度Am減掉該偏差角度Ad來得到該實際角度Ar。In sub-step 521, the angle corrector 324 subtracts the measurement angle Am from the deviation angle Ad to obtain the actual angle Ar.
在子步驟522中,該角度校正器324判斷是否零度小於等於該實際角度Ar小於等於360度(即,0o ≦該實際角度Ar≦360o )。若該判斷結果為是,則進行步驟53;若否,則進行子步驟523。In sub-step 522, the angle corrector 324 determines whether zero degree is less than or equal to the actual angle Ar less than or equal to 360 degrees (that is, 0 o ≦ the actual angle Ar ≦ 360 o ). If the determination result is yes, go to step 53; if not, go to sub-step 523.
在子步驟523中,該角度校正器324將該實際角度Ar調整到零度至360度間的範圍內。舉例來說,若該量測角度Am為20度,該偏差角度Ad為30度,則該實際角度Ar為-10度(即,20-30=-10)。該角度校正器324會將該實際角度Ar調整為350度。In sub-step 523, the angle corrector 324 adjusts the actual angle Ar to a range between zero and 360 degrees. For example, if the measurement angle Am is 20 degrees and the deviation angle Ad is 30 degrees, the actual angle Ar is -10 degrees (that is, 20-30 = -10). The angle corrector 324 adjusts the actual angle Ar to 350 degrees.
在步驟53中,該脈寬調變電路321接收該實際角度Ar,並根據該實際角度Ar調整該等第一至第六切換信號Q1~Q6,進而改變該驅動模組31所輸出的該三相驅動信號輸出,以致該三相驅動信號輸出換相,使得該馬達21之該轉子20隨著該三相驅動信號輸出所產生的磁場而開始轉動。舉例來說,該脈寬調變電路321根據該實際角度Ar並藉由一120度六步方波驅動方法(即,一驅動週期中包括六個導通區間,每一導通區間僅將該等開關311~316中的二者導通,而每一開關導通的時間皆為120度電器角的時間),來調整該等第一至第六切換信號Q1~Q6,以藉由該等開關311~316的變化使該三相驅動信號輸出換相,進而使該轉子20依序轉動到六個定點(即,電器角60o 、120o 、180o 、240o 、300o 、360o 的位置),如此循環操作該驅動週期,來使該馬達21之該轉子20隨著該三相驅動信號輸出所產生的磁場而開始順時針或逆時針旋轉。In step 53, the pulse width modulation circuit 321 receives the actual angle Ar, and adjusts the first to sixth switching signals Q1 to Q6 according to the actual angle Ar, and then changes the output from the driving module 31. The three-phase driving signal is output, so that the three-phase driving signal output is commutated, so that the rotor 20 of the motor 21 starts to rotate with the magnetic field generated by the three-phase driving signal output. For example, the pulse width modulation circuit 321 uses a 120 degree six-step square wave driving method according to the actual angle Ar (that is, a driving cycle includes six conduction intervals, and each conduction interval only The two of the switches 311 to 316 are turned on, and each of the switches is turned on for a time of 120 degrees electrical angle) to adjust the first to sixth switching signals Q1 to Q6 so as to use the switches 311 to The change of 316 commutates the three-phase driving signal output, and then causes the rotor 20 to sequentially rotate to six fixed points (ie, the positions of the electrical angles 60 o , 120 o , 180 o , 240 o , 300 o , and 360 o ). In this way, the driving cycle is cyclically operated, so that the rotor 20 of the motor 21 starts to rotate clockwise or counterclockwise with the magnetic field generated by the three-phase driving signal output.
綜上所述,上述本實施例具有以下優點:In summary, the above embodiment has the following advantages:
1.本發明編碼器對位裝置3即可使該編碼器22與該馬達21間完成對位,使得包含本發明編碼器對位裝置3的馬達系統不需如習知馬達系統需利用一外部電源供應器來進行對位,因此,在生產時,包含本發明編碼器對位裝置3的馬達系統相較於習知馬達系統可降低生產成本。1. The encoder alignment device 3 of the present invention can complete the alignment between the encoder 22 and the motor 21, so that the motor system including the encoder alignment device 3 of the present invention does not need to use an external motor system as is conventionally known The power supply is used for alignment. Therefore, during production, the motor system including the encoder alignment device 3 of the present invention can reduce production costs compared with the conventional motor system.
2.由於該記憶體322為可重複寫入的記憶元件,因此當該馬達裝置2拆裝維修後,該編碼器對位裝置3可重複執行該編碼器對位方法來使該編碼器22與該馬達21間重新對位,並將該對位模式中所獲得的偏差角度儲存在該記憶體322中,進而本發明不需如習知馬達系統只要編碼器與馬達間若要重新對位,就需更換新的編碼器,因而可降低本發明該馬達裝置2的維修費用,同時減少不必要的資源浪費。2. Since the memory 322 is a rewritable memory element, after the motor device 2 is disassembled and repaired, the encoder alignment device 3 may repeatedly execute the encoder alignment method to make the encoder 22 and The motors 21 are re-aligned, and the deviation angle obtained in the alignment mode is stored in the memory 322. Therefore, the present invention does not need to realign the encoder and the motor as in conventional motor systems. It is necessary to replace the new encoder, so that the maintenance cost of the motor device 2 of the present invention can be reduced, and unnecessary waste of resources can be reduced.
3.由於本發明編碼器對位裝置3即可使該編碼器22與該馬達21間完成對位,使得包含本發明編碼器對位裝置3的馬達系統不需如習知馬達系統需裝修人員將該馬達裝置從該馬達系統拆下來進行對位,且不需如習知馬達系統需裝修人員在對位完成後再將該馬達裝置裝回該馬達系統中,因此,包含本發明編碼器對位裝置3的馬達系統相較於習知馬達系統,具有對位過程簡單且便利之功效。3. Since the encoder alignment device 3 of the present invention can complete the alignment between the encoder 22 and the motor 21, the motor system including the encoder alignment device 3 of the present invention does not need to be decorated as is the case with the conventional motor system The motor device is removed from the motor system for alignment, and the motor system does not need to be renovated by the person who is familiar with the motor system. After the alignment is completed, the motor device is returned to the motor system. Compared with the conventional motor system, the motor system of the positioning device 3 has the advantages of simple and convenient alignment process.
4.因本發明編碼器對位裝置3本身就需要利用該記憶體322來記錄馬達系統的故障碼,故不需額外增加一記憶體來儲存該偏差角度Ad,使得本發明編碼器對位裝置3不會額外增加製造成本。4. Since the encoder alignment device 3 of the present invention needs to use the memory 322 to record the fault code of the motor system, no additional memory is needed to store the deviation angle Ad, so that the encoder alignment device of the present invention 3 does not add additional manufacturing costs.
5.該電流閉迴路控制電路325可根據該目標電流值與該電流IU 調整該等第一至第六切換信號Q1~Q6,使該等U相、V相、W相驅動信號DU 、DV 、DW 的電流大小改變到該目標電流值,達到定電流控制功能,使得該等U相、V相、W相驅動信號DU 、DV 、DW 的電流不會受該電源信號影響,可防止該編碼器22與該馬達21間因受該電源信號影響而無法精準對位的問題。5. The current closed-loop control circuit 325 can adjust the first to sixth switching signals Q1 to Q6 according to the target current value and the current I U so that the U-phase, V-phase, and W-phase driving signals D U , The current levels of D V and D W are changed to the target current value to achieve a constant current control function, so that the currents of the U-phase, V-phase, and W-phase drive signals D U , D V , and D W are not affected by the power signal. The influence can prevent the problem that the encoder 22 and the motor 21 cannot be accurately aligned due to the influence of the power signal.
惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above are only examples of the present invention. When the scope of implementation of the present invention cannot be limited in this way, any simple equivalent changes and modifications made in accordance with the scope of the patent application and the content of the patent specification of the present invention are still Within the scope of the invention patent.
1‧‧‧電源 1‧‧‧ Power
2‧‧‧馬達裝置2‧‧‧Motor device
20‧‧‧轉子20‧‧‧rotor
21‧‧‧馬達21‧‧‧Motor
22‧‧‧編碼器22‧‧‧ Encoder
3‧‧‧編碼器對位裝置3‧‧‧ Encoder alignment device
31‧‧‧驅動模組31‧‧‧Drive Module
310‧‧‧電容器310‧‧‧Capacitor
311‧‧‧開關311‧‧‧switch
312‧‧‧開關312‧‧‧switch
313‧‧‧開關313‧‧‧Switch
314‧‧‧開關314‧‧‧Switch
315‧‧‧開關315‧‧‧Switch
316‧‧‧開關316‧‧‧Switch
32‧‧‧控制模組32‧‧‧control module
321‧‧‧脈寬調變電路321‧‧‧Pulse Width Modulation Circuit
322‧‧‧記憶體322‧‧‧Memory
323‧‧‧控制器323‧‧‧controller
324‧‧‧角度校正器324‧‧‧Angle Corrector
325‧‧‧電流閉迴路控制電路325‧‧‧Current closed-loop control circuit
3251‧‧‧減法器3251‧‧‧Subtractor
3252‧‧‧比例積分控制器3252‧‧‧ Proportional Integral Controller
40~48‧‧‧步驟40 ~ 48‧‧‧step
Q4‧‧‧第四切換信號Q4‧‧‧ Fourth switching signal
Q5‧‧‧第五切換信號Q5‧‧‧ fifth switching signal
Q6‧‧‧第六切換信號Q6‧‧‧ Sixth switching signal
431‧‧‧子步驟431‧‧‧Sub-step
432‧‧‧子步驟432‧‧‧Sub-step
433‧‧‧子步驟433‧‧‧ Substep
51~53‧‧‧步驟51 ~ 53‧‧‧step
521‧‧‧子步驟521‧‧‧Sub-step
522‧‧‧子步驟522‧‧‧Sub-step
523‧‧‧子步驟523‧‧‧Sub-steps
Ad‧‧‧偏差角度Ad‧‧‧ deviation angle
Am‧‧‧量測角度Am‧‧‧Measurement angle
Ar‧‧‧實際角度Ar‧‧‧actual angle
C1‧‧‧對位控制信號C1‧‧‧ Registration control signal
C2‧‧‧積分控制信號C2‧‧‧Integral control signal
DU‧‧‧U相驅動信號D U ‧‧‧ U phase drive signal
DV‧‧‧V相驅動信號D V ‧‧‧V phase drive signal
DW‧‧‧W相驅動信號D W ‧‧‧W phase drive signal
I1‧‧‧電流差值 I1‧‧‧Current difference
IU‧‧‧電流I U ‧‧‧ Current
N1~N3‧‧‧共同接點 N1 ~ N3‧‧‧Common contact
P1‧‧‧正相電源信號P1‧‧‧ Normal phase power signal
P2‧‧‧負相電源信號P2‧‧‧Negative-phase power signal
Q1‧‧‧第一切換信號Q1‧‧‧first switching signal
Q2‧‧‧第二切換信號Q2‧‧‧Second switching signal
Q3‧‧‧第三切換信號Q3‧‧‧Third switching signal
S1‧‧‧第一感測信號S1‧‧‧First sensing signal
S2‧‧‧第二感測信號S2‧‧‧Second sensing signal
S3‧‧‧第三感測信號 S3‧‧‧Third sensing signal
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一電路方塊圖,說明本發明編碼器對位裝置的實施例與一電源及一馬達裝置一起使用; 圖2是一方塊圖,說明該實施例之一控制模組; 圖3A、3B是一流程圖,說明該實施例之該編碼器對位裝置操作於一對位模式且執行一編碼器對位方法;及 圖4是一流程圖,說明該實施例之該編碼器對位裝置操作於一轉動模式且執行該編碼器對位方法。Other features and effects of the present invention will be clearly presented in the embodiment with reference to the drawings, in which: FIG. 1 is a circuit block diagram illustrating an embodiment of an encoder alignment device of the present invention, a power source, and a motor device Used together; Figure 2 is a block diagram illustrating a control module of this embodiment; Figures 3A and 3B are flowcharts illustrating that the encoder alignment device of this embodiment operates in a pair of bit modes and performs an encoding And FIG. 4 is a flowchart illustrating that the encoder registration device of the embodiment operates in a rotation mode and executes the encoder registration method.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW105141516A TWI623189B (en) | 2016-12-15 | 2016-12-15 | Encoder alignment method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW105141516A TWI623189B (en) | 2016-12-15 | 2016-12-15 | Encoder alignment method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI623189B TWI623189B (en) | 2018-05-01 |
| TW201822453A true TW201822453A (en) | 2018-06-16 |
Family
ID=62951460
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW105141516A TWI623189B (en) | 2016-12-15 | 2016-12-15 | Encoder alignment method and device |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI623189B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI659602B (en) * | 2018-05-11 | 2019-05-11 | 士林電機廠股份有限公司 | Brushless motor torque position coding device |
| CN114123885A (en) * | 2020-08-28 | 2022-03-01 | 威刚科技股份有限公司 | Calibration system for motor |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI241063B (en) * | 2004-12-22 | 2005-10-01 | Ind Tech Res Inst | Thin magnetic rotary encoder for detection of absolute position of a rotary device |
| TWI403699B (en) * | 2008-08-26 | 2013-08-01 | Univ Nat Central | Absolute-type encoder and method for detecting absolute position |
| TWI455474B (en) * | 2011-12-07 | 2014-10-01 | Ind Tech Res Inst | Method and apparatus for automatically positioning encoder |
| TWI497899B (en) * | 2013-08-05 | 2015-08-21 | Ind Tech Res Inst | Mechanical encoder |
-
2016
- 2016-12-15 TW TW105141516A patent/TWI623189B/en not_active IP Right Cessation
Also Published As
| Publication number | Publication date |
|---|---|
| TWI623189B (en) | 2018-05-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108322103B (en) | Permanent magnet synchronous motor phase sequence correction method and device | |
| US7042190B2 (en) | Motor control apparatus and motor control method | |
| JP6026812B2 (en) | Motor control device including motor unit and inverter unit | |
| TWI504861B (en) | Calibration device for encoder positioning and calibration method thereof | |
| CN107922000B (en) | Motor control device, electric power steering device and vehicle | |
| CN114499290B (en) | Position deviation calibration method, motor driving method, system and device | |
| CN108270372B (en) | Encoder alignment method and device | |
| JP2004112942A (en) | Electrically driven machine controller, electrically driven machine control method, and program therefor | |
| CN103944477A (en) | Method for correcting phase sequence of power line of permanent magnet synchronous motor driver of electric car | |
| JP2005204406A (en) | Method of detecting angular difference and controller for synchronous motor | |
| TW201822453A (en) | Encoder alignment method and device utilizes the memory to store the deviation angle so as complete alignment configuration between the encoder and the motor | |
| JP3465646B2 (en) | Method for detecting angle difference between motor magnetic pole position and encoder reference position and motor control device | |
| CN108288934B (en) | A control method for correcting PMSM motor compensation items | |
| CN102195544B (en) | Motor drive | |
| CN100364224C (en) | Controls for permanent magnet motors | |
| JP2004274855A (en) | Method and device for detection and adjustment of rotor position | |
| JP5974539B2 (en) | Inspection method and motor control device | |
| JP4689192B2 (en) | Elevator control device | |
| US8248007B2 (en) | Control apparatus and control method for AC motor | |
| JP2011087395A (en) | Motor controller for vehicle | |
| JP2005088709A (en) | Steering device | |
| JP2012253986A (en) | Magnetic pole position estimating method for motor | |
| JP2004208385A (en) | Method and apparatus for controlling motor | |
| JP2004289971A (en) | Motor control device | |
| JP2015050789A (en) | Motor control device and drum-type washing machine or drum-type washing / drying machine using the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |