[go: up one dir, main page]

TWI676871B - Motor command converging device and method thereof - Google Patents

Motor command converging device and method thereof Download PDF

Info

Publication number
TWI676871B
TWI676871B TW108100733A TW108100733A TWI676871B TW I676871 B TWI676871 B TW I676871B TW 108100733 A TW108100733 A TW 108100733A TW 108100733 A TW108100733 A TW 108100733A TW I676871 B TWI676871 B TW I676871B
Authority
TW
Taiwan
Prior art keywords
command
position command
output
motor
output position
Prior art date
Application number
TW108100733A
Other languages
Chinese (zh)
Other versions
TW202026780A (en
Inventor
解明潔
Ming Chieh Hsieh
Original Assignee
東元電機股份有限公司
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 東元電機股份有限公司 filed Critical 東元電機股份有限公司
Priority to TW108100733A priority Critical patent/TWI676871B/en
Application granted granted Critical
Publication of TWI676871B publication Critical patent/TWI676871B/en
Publication of TW202026780A publication Critical patent/TW202026780A/en

Links

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

一種馬達命令收斂調整裝置,包含一差值運算單元、一積分單元與一濾波頻寬設定單元。差值運算單元,係用以接收一命令產生裝置產生之輸入位置命令與一傳送至馬達驅動裝置之輸出位置命令,並運算出一命令差值。濾波頻寬設定單元,係用以設定一濾波頻寬,並使積分單元依據濾波頻寬與命令差值積分運算出一動態命令輸出修正量,藉以利用動態命令輸出修正量即時性地修正輸出位置命令,使輸出位置命令逐漸收斂於輸入位置命令。 A motor command convergence adjustment device includes a difference calculation unit, an integration unit, and a filter bandwidth setting unit. The difference calculation unit is used for receiving an input position command generated by a command generating device and an output position command transmitted to the motor driving device, and calculating a command difference. The filter bandwidth setting unit is used to set a filter bandwidth and cause the integration unit to calculate a dynamic command output correction amount based on the integration of the filter bandwidth and the command difference value, so as to use the dynamic command output correction amount to instantly correct the output position. Command to gradually converge the output position command to the input position command.

Description

馬達命令收斂調整裝置及其方法 Motor command convergence adjustment device and method

本發明係有關於一種收斂調整裝置,尤其是指一種馬達命令收斂調整裝置。 The present invention relates to a convergence adjustment device, in particular to a motor command convergence adjustment device.

馬達,又稱電動機、電動馬達,是一種將電能轉換為動能,可用來驅動其他裝置的電器設備,在現今生活中被廣泛地應用。其原理與發電機大致相同,差異僅在於能量的轉換不同而已。馬達的發展也帶動了人類科技的進步,從馬達問世發展至今,衍生出了各式各樣的馬達種類。 A motor, also known as an electric motor or an electric motor, is an electrical device that converts electrical energy into kinetic energy and can be used to drive other devices. It is widely used in today's life. The principle is roughly the same as that of the generator, the difference is only that the energy conversion is different. The development of motors has also promoted the progress of human science and technology. From the advent and development of motors, various types of motors have been derived.

隨著科技的進步,人類對於精確度的要求越來越高,這樣的要求也應用於馬達,一般稱之為伺服馬達,而伺服馬達主要應用於精密的轉速或位置控制。 With the advancement of science and technology, humans have higher and higher requirements for accuracy. Such requirements also apply to motors, which are generally called servo motors, and servo motors are mainly used for precise speed or position control.

一般來說,伺服馬達控制系統會包含一命令產生裝置、一濾波裝置、一馬達驅動裝置、一伺服馬達與一回授裝置。命令產生裝置係產生一輸入位置命令,並將輸入位置命令傳送至濾波裝置。濾波裝置,係電性連接命令產生裝置,用以接收輸入位置命令,並且 將其濾波成一輸出位置命令,其中,濾波的用意在於過濾輸入位置命令中的雜訊。 Generally, a servo motor control system includes a command generating device, a filtering device, a motor driving device, a servo motor, and a feedback device. The command generating device generates an input position command and transmits the input position command to the filtering device. The filtering device is an electrical connection command generating device for receiving an input position command, and It is filtered into an output position command. The purpose of filtering is to filter noise in the input position command.

馬達驅動裝置,係電性連接濾波裝置,用以接收輸出位置命令,並據以驅動伺服馬達。回授裝置係用以擷取伺服馬達的一實際位置,並且回授傳送至馬達驅動裝置。馬達驅動裝置,接收到伺服馬達的實際位置後,會再與輸出位置命令運算,產生下一次的輸出位置命令,藉以使伺服馬達的實際位置逐漸趨近於輸出位置命令所代表之一輸出位置。 The motor driving device is electrically connected with a filtering device for receiving an output position command and driving a servo motor accordingly. The feedback device is used to capture an actual position of the servo motor, and the feedback is transmitted to the motor driving device. After receiving the actual position of the servo motor, the motor drive device will calculate with the output position command to generate the next output position command, so that the actual position of the servo motor gradually approaches one of the output positions represented by the output position command.

請參閱第一圖,第一圖係顯示先前技術中之輸入位置命令與輸出位置命令之收斂關係圖。如圖所示,一輸入位置命令PAIc與一輸出位置命令PAOc。馬達驅動裝置接收伺服馬達的實際位置後,會再與輸出位置命令PAOc運算,產生下一次的輸出位置命令PAOc。因此,隨著時間越久,輸出位置命令PAOc會向輸入位置命令PAIc收斂。 Please refer to the first diagram. The first diagram is a diagram showing the convergence relationship between the input position command and the output position command in the prior art. As shown in the figure, an input position command PAIc and an output position command PAOc. After the motor drive device receives the actual position of the servo motor, it will calculate with the output position command PAOc to generate the next output position command PAOc. Therefore, as time goes by, the output position command PAOc will converge to the input position command PAIc.

然而,先前技術中的濾波裝置在過濾輸入位置命令PAIc產生輸出位置命令PAOc時,有可能發生命令遺失、命令誤差等情形。因此,輸出位置命令PAOc所代表之輸出位置便與輸入位置命令PAIc所代表之一輸入位置有所差異。故當馬達驅動裝置認為伺服馬達的實際位置與輸出位置相同而認為伺服馬達已完成輸出位置命令時,實際上伺服馬達的實際位置仍未到達輸入位置命令所希望伺服馬達到達的輸入位置,亦即在圖式中,在一收斂時間點PATc後,輸出位置命令PAOc與輸入與輸 入位置命令PAIc平行,且不再向輸入位置命令PAIc收斂時,輸出位置命令PAO與輸入位置命令PAIc係存在一命令誤差e。在日漸要求精確與精準的現今社會,此一命令誤差e的累積有可能會帶來極大的影響。 However, in the filtering device in the prior art, when the input position command PAIc is filtered to generate the output position command PAOc, a command may be lost, a command error, or the like may occur. Therefore, the output position represented by the output position command PAOc is different from one of the input positions represented by the input position command PAIc. Therefore, when the motor driving device considers that the actual position of the servo motor is the same as the output position and considers that the servo motor has completed the output position command, the actual position of the servo motor has not yet reached the input position that the servo motor expects to enter the position command. In the figure, after PATc at a convergence time, the output position command PAOc and the input and output When the input position command PAIc is parallel and no longer converges to the input position command PAIc, there is a command error e between the output position command PAO and the input position command PAIc. In today's society where precision and precision are increasingly required, the accumulation of this command error e may have a great impact.

此外,先前技術中的濾波裝置會有一切換判別動作。當判斷出伺服馬達的實際位置與輸出位置命令代表之輸出位置相同,也就是收斂時間點PATc後,輸出位置命令PAOc與輸入位置命令PAIc平行,且不再向輸入位置命令PAIc收斂時,濾波裝置會從1切換至0,也就是不對輸入位置命令濾波,使得輸入位置命令PAIc直接變成輸出位置命令PAOc輸出。此時,馬達驅動裝置接收到的輸出位置命令PAOc會與輸入位置命令PAIc相同,故會使輸出位置命令PAOc瞬間增加命令誤差e躍升至輸入位置命令PAIc。然而,濾波裝置從1切換至0的瞬間,使得輸出位置命令PAOc瞬間增加命令誤差e躍升至輸入位置命令PAIc,容易造成整個系統震盪而不穩定的情形。 In addition, the filtering device in the prior art has a switching discrimination action. When it is determined that the actual position of the servo motor is the same as the output position represented by the output position command, that is, the convergence time point PATc, the output position command PAOc is parallel to the input position command PAIc and no longer converges to the input position command PAIc, the filtering device It will switch from 1 to 0, that is, the input position command is not filtered, so that the input position command PAIc directly becomes the output position command PAOc output. At this time, the output position command PAOc received by the motor driving device will be the same as the input position command PAIc, so the output position command PAOc will increase the command error e instantly to the input position command PAIc. However, the moment the filtering device is switched from 1 to 0, the output position command PAOc instantly increases the command error e and jumps to the input position command PAIc, which easily causes the whole system to oscillate and become unstable.

有鑒於在先前技術中,回授裝置僅回授伺服馬達的實際位置,馬達驅動裝置也僅比對實際位置與濾波裝置產生的輸出位置命令,並未去比對濾波裝置產生的輸出位置命令與命令產生器產生的輸入位置命令,容易造成實際位置等於輸出位置,卻與輸入位置有所落差的情形發生,以及濾波裝置切換判斷動作切換至0容易造成整個系統的震盪不穩定。本發明之一主要目的係提 供一種馬達命令收斂調整裝置,係用以接收一命令產生裝置之一輸入位置命令,產生一用以傳送至一馬達驅動裝置之輸出位置命令,並使輸出位置命令逐漸收斂於輸入位置命令。 Whereas in the prior art, the feedback device only feedbacks the actual position of the servo motor, the motor drive device only compares the actual position with the output position command generated by the filter device, and does not compare the output position command generated by the filter device with the output position command. The input position command generated by the command generator is likely to cause the actual position to be equal to the output position, but it is different from the input position, and the filter device switching judgment action is switched to 0, which easily causes the entire system to be unstable and unstable. One of the main objects of the present invention is to provide A motor command convergence adjusting device is provided for receiving an input position command of a command generating device, generating an output position command for transmission to a motor driving device, and gradually converging the output position command to the input position command.

本發明為解決先前技術之問題,所採用之必要技術手段為提供一種馬達命令收斂調整裝置,係用以接收一命令產生裝置之一輸入位置命令,產生一用以傳送至一馬達驅動裝置之輸出位置命令,並使輸出位置命令逐漸收斂於輸入位置命令,馬達命令收斂調整裝置包含一差值運算單元、一積分單元與一濾波頻寬設定單元。 In order to solve the problems of the prior art, the present invention adopts the necessary technical means to provide a motor command convergence adjustment device for receiving an input position command from a command generating device and generating an output for transmission to a motor driving device. The position command gradually converges the output position command to the input position command. The motor command convergence adjustment device includes a difference calculation unit, an integration unit, and a filter bandwidth setting unit.

差值運算單元,係電性連接於命令產生裝置,用以接收輸入位置命令與輸出位置命令,並運算出一命令差值。積分單元,係電性連接差值運算單元,用以接收命令差值。濾波頻寬設定單元,係電性連接積分單元,用以設定一濾波頻寬,並將濾波頻寬傳送至積分單元,使積分單元依據命令差值與濾波頻寬積分運算出一動態命令輸出修正量,藉以利用動態命令輸出修正量即時性地修正輸出位置命令,使輸出位置命令逐漸收斂於輸入位置命令。 The difference calculation unit is electrically connected to the command generating device, and is used for receiving an input position command and an output position command, and calculating a command difference. The integration unit is an electrically connected difference calculation unit for receiving a command difference. The filter bandwidth setting unit is electrically connected to the integration unit to set a filter bandwidth and transmit the filter bandwidth to the integration unit, so that the integration unit calculates a dynamic command output correction based on the command difference and the filter bandwidth integration. By using the dynamic command output correction amount, the output position command is immediately corrected, so that the output position command gradually converges to the input position command.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使馬達命令收斂調整裝置中之差值運算單元,係一減法器。 Based on the above-mentioned necessary technical means, a subsidiary technical means derived from the present invention is a difference calculation unit in the motor command convergence adjustment device, which is a subtractor.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使馬達命令收斂調整裝置中之 積分單元,係一積分器。 On the basis of the above-mentioned necessary technical means, one of the subsidiary technical means derived from the present invention is the one in the motor command convergence adjustment device. Integrating unit, an integrator.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使馬達命令收斂調整裝置中之濾波頻寬設定單元,包含一濾波頻寬設定介面,且濾波頻寬設定介面係用以供一使用者設定濾波頻寬。 Based on the above-mentioned necessary technical means, a subsidiary technical means derived from the present invention is a filtering bandwidth setting unit in the motor command convergence adjustment device, which includes a filtering bandwidth setting interface, and the filtering bandwidth setting interface is used for Allows a user to set the filtering bandwidth.

本發明為解決先前技術之問題,所採用之必要技術手段為另外提供一種馬達命令收斂調整方法,係利用如前述之馬達命令收斂調整裝置加以實施,並包含以下步驟:(a)利用差值運算單元,接收輸入位置命令與輸出位置命令,並運算出命令差值;(b)利用積分單元,接收命令差值;(c)利用濾波頻寬設置單元,設定濾波頻寬,並將濾波頻寬傳送至積分單元;(d)利用積分單元,依據命令差值與濾波頻寬積分運算出動態命令輸出修正量;以及(e)利用積分單元,依據動態命令輸出修正量即時性地修正輸出位置命令,使輸出位置命令逐漸收斂於輸入位置命令。 In order to solve the problems of the prior art, the present invention adopts the necessary technical means to additionally provide a motor command convergence adjustment method, which is implemented by using the aforementioned motor command convergence adjustment device, and includes the following steps: (a) using a difference operation The unit receives the input position command and the output position command, and calculates the command difference; (b) uses the integration unit to receive the command difference; (c) uses the filter bandwidth setting unit to set the filter bandwidth and sets the filter bandwidth Transmit to the integration unit; (d) use the integration unit to calculate the dynamic command output correction amount based on the command difference and filter bandwidth integration; and (e) use the integration unit to correct the output position command in real time based on the dynamic command output correction amount To gradually converge the output position command to the input position command.

承上所述,本發明所提供馬達命令收斂調整裝置,係利用差值運算單元、積分單元與濾波頻寬設定單元,使傳送至馬達驅動裝置之輸出位置命令逐漸收斂於命令產生裝置產生之輸入位置命令,藉以解決先前技術中輸入位置命令與輸出位置命令有所誤差之情形。 As mentioned above, the motor command convergence adjustment device provided by the present invention uses the difference calculation unit, the integration unit, and the filter bandwidth setting unit to gradually converge the output position command transmitted to the motor drive device to the input generated by the command generation device The position command is used to solve the situation where the input position command and the output position command are different in the prior art.

e‧‧‧命令差值 e‧‧‧command difference

PAIc‧‧‧輸入位置命令 PAIc‧‧‧Enter position command

PAOc‧‧‧輸出位置命令 PAOc‧‧‧Output position command

PATc‧‧‧收斂時間點 PATc‧‧‧ convergence time

100‧‧‧馬達控制系統 100‧‧‧Motor control system

1‧‧‧馬達命令收斂調整裝置 1‧‧‧ Motor command convergence adjustment device

11‧‧‧差值運算單元 11‧‧‧ Difference calculation unit

12‧‧‧積分單元 12‧‧‧point unit

13‧‧‧濾波頻寬設定單元 13‧‧‧Filtering bandwidth setting unit

131‧‧‧操作介面 131‧‧‧ operation interface

2‧‧‧命令產生裝置 2‧‧‧command generating device

3‧‧‧馬達驅動裝置 3‧‧‧ Motor Drive

4‧‧‧馬達 4‧‧‧ Motor

Ic‧‧‧輸入位置命令 Ic‧‧‧Enter position command

Oc‧‧‧輸出位置命令 Oc‧‧‧ output position command

Tc‧‧‧收斂時間點 Tc‧‧‧ convergence time

第一圖係顯示先前技術中之輸入位置命令與輸出位置命 令之收斂關係圖;第二圖係顯示本發明較佳實施例所提供之馬達命令收斂調整裝置應用於馬達控制系統之方塊圖;第三圖係顯示本發明較佳實施例所提供之馬達命令收斂調整裝置之輸出位置命令與輸入位置命令之收斂關係圖;以及第四圖係顯示本發明較佳實施例所提供之馬達命令收斂調整方法之流程圖。 The first figure shows the input position command and output position command in the prior art. Convergence diagram of the order; the second diagram is a block diagram showing that the motor command convergence adjustment device provided by the preferred embodiment of the present invention is applied to a motor control system; the third diagram is a diagram showing the motor command provided by the preferred embodiment of the present invention Convergence diagram of the output position command and input position command of the convergence adjustment device; and the fourth diagram is a flowchart showing a method for adjusting the convergence of the motor command provided by the preferred embodiment of the present invention.

請一併參閱第二圖與第三圖,其中,第二圖係顯示本發明較佳實施例所提供之馬達命令收斂調整裝置應用於馬達控制系統之方塊圖;以及,第三圖係顯示本發明較佳實施例所提供之馬達命令收斂調整裝置之輸出位置命令與輸入位置命令之收斂關係圖。如圖所示,一種馬達控制系統100,包含一馬達命令收斂調整裝置1、一命令產生裝置2、一馬達驅動裝置3與一馬達4。 Please refer to the second figure and the third figure together, wherein the second figure is a block diagram showing that the motor command convergence adjustment device provided by the preferred embodiment of the present invention is applied to a motor control system; Convergence diagram of the output position command and the input position command of the motor command convergence adjustment device provided by the preferred embodiment of the invention. As shown in the figure, a motor control system 100 includes a motor command convergence adjusting device 1, a command generating device 2, a motor driving device 3, and a motor 4.

命令產生裝置2,係用以產生一輸入位置命令Ic。馬達命令收斂調整裝置1,係電性連接命令產生裝置2,用以接收輸入位置命令Ic,並據以產生一輸出位置命令Oc,且輸出位置命令Oc會受操作地回授至馬達命令收斂調整裝置1。馬達驅動裝置3,係電性連接馬達命令收斂調整裝置1,用以接收輸出位置命令Oc,並據以驅動馬達4作動。 The command generating device 2 is used for generating an input position command Ic. The motor command convergence adjustment device 1 is an electrical connection command generation device 2 for receiving an input position command Ic and generating an output position command Oc, and the output position command Oc is operatively fed back to the motor command convergence adjustment.装置 1。 Device 1. The motor driving device 3 is electrically connected to the motor command convergence adjustment device 1 to receive the output position command Oc and drive the motor 4 to operate accordingly.

馬達命令收斂調整裝置1,包含一差值運 算單元11、一積分單元12與一濾波頻寬設定單元13。差值運算單元11,係電性連接於命令產生裝置2,用以接收輸入位置命令Ic與回授的輸出位置命令,並據以運算出一命令差值。差值運算單元11,可為一減法器,或是其他具有差值運算的晶片、韌體等。 Motor command convergence adjustment device 1, including a differential operation The arithmetic unit 11, an integration unit 12, and a filter bandwidth setting unit 13. The difference calculation unit 11 is electrically connected to the command generating device 2 and is configured to receive the input position command Ic and the feedback output position command, and calculate a command difference value accordingly. The difference calculation unit 11 may be a subtractor, or other chips, firmware, and the like having a difference calculation.

積分單元12,係電性連接差值運算單元11,用以接收差值運算單元11所運算出的命令差值。濾波頻寬設定單元13,係電性連接積分單元12,用以設定一濾波頻寬,並將濾波頻寬傳送至積分單元12。 The integration unit 12 is electrically connected to the difference calculation unit 11 and is configured to receive a command difference calculated by the difference calculation unit 11. The filter bandwidth setting unit 13 is electrically connected to the integration unit 12 for setting a filter bandwidth and transmitting the filter bandwidth to the integration unit 12.

積分單元12,接收到命令差值與濾波頻寬後,係據以積分運算出一動態命令輸出修正量,藉以利用動態命令輸出修正量即時性地修正輸出位置命令Oc,使得輸出位置命令Oc逐漸收斂於輸入位置命令Oc。 After receiving the command difference and the filtering bandwidth, the integrating unit 12 calculates a dynamic command output correction amount based on the integral, so as to use the dynamic command output correction amount to instantly correct the output position command Oc so that the output position command Oc gradually Converge to the input position command Oc.

因為只要有輸出位置命令Oc產生,輸出位置命令Oc便會被回授至差值運算單元11,差值運算單元11便會將輸入位置命令Ic減掉輸出位置命令Oc得到命令差值,而積分單元12便會不斷地接收命令差值,並利用濾波頻寬與命令差值不斷地進行積分運算,而計算出對應的動態命令輸出修正量。因此,動態命令輸出修正量可以即時性地修正輸出位置命令Oc,使得輸出位置命令Oc逐漸收斂於輸入位置命令Ic。亦即只要一有輸出位置命令Oc產生或是輸出位置命令Oc與輸入位置命令Ic相異時,馬達命令收斂調整裝置1就會進行上述作動,故可以在動態的情況下即時性地修正輸出位置命令Oc,使輸出位置命令Oc逐漸收斂於輸入位置命令Ic。 Because as long as an output position command Oc is generated, the output position command Oc will be fed back to the difference operation unit 11, and the difference operation unit 11 will subtract the input position command Ic from the output position command Oc to obtain the command difference and integrate. The unit 12 will continuously receive the command difference value, and continuously perform the integral operation by using the filter bandwidth and the command difference value to calculate the corresponding dynamic command output correction amount. Therefore, the dynamic command output correction amount can immediately correct the output position command Oc so that the output position command Oc gradually converges to the input position command Ic. That is, whenever the output position command Oc is generated or the output position command Oc is different from the input position command Ic, the motor command convergence adjustment device 1 will perform the above operation, so the output position can be corrected in real time in a dynamic situation. The command Oc gradually converges the output position command Oc to the input position command Ic.

在本實施例中,濾波頻寬設定單元13包含一操作介面131。操作介面131,係用以供一使用者設定上述濾波頻寬。濾波頻寬越大,則輸出位置命令收斂於輸入位置命令的速度就越快;反之,濾波頻寬越小,則輸出位置命令收斂於輸入位置命令的速度就越慢。 In this embodiment, the filtering bandwidth setting unit 13 includes an operation interface 131. The operation interface 131 is for a user to set the filtering bandwidth. The larger the filtering bandwidth, the faster the output position command converges to the input position command; conversely, the smaller the filtering bandwidth, the slower the output position command converges to the input position command.

以第三圖為例,輸入位置命令Ic為一步階響應由0至100的命令,若將濾波頻寬設定為100Hz,則在1/(2π×100)的時間點時,輸出位置命令Oc會到達輸入位置命令Ic的62.8%;若將濾波頻寬設定為200Hz,則在1/(2π×200)的時間點時,輸出位置命令Oc就會到達輸入位置命令Ic的62.8%。因為,輸出位置命令Oc會一直向輸入位置命令Ic收斂,越早到達輸入位置命令Ic的62.8%,也表示輸出位置命令Oc會越早收斂於輸入位置命令Ic。如圖所示,一收斂時間點Tc係表示輸出位置命令Oc收斂於輸入位置命令Ic的時間點。濾波頻寬設定的越大,輸出位置命令Oc收斂於輸入位置命令Ic的速度會越快,收斂時間點Tc會越小。反之,濾波頻寬設定的越小,輸出位置命令Oc收斂於輸入位置命令Ic的速度會越慢,收斂時間點Tc會越大。 Taking the third figure as an example, the input position command Ic is a one-step response command from 0 to 100. If the filter bandwidth is set to 100Hz, the output position command Oc will be at the time point of 1 / (2π × 100). 62.8% of the input position command Ic is reached; if the filter bandwidth is set to 200Hz, the output position command Oc will reach 62.8% of the input position command Ic at a time point of 1 / (2π × 200). Because the output position command Oc will always converge to the input position command Ic, the sooner it reaches 62.8% of the input position command Ic, it also means that the output position command Oc will converge to the input position command Ic as soon as possible. As shown in the figure, a convergence time point Tc represents a time point when the output position command Oc converges to the input position command Ic. The larger the filter bandwidth is set, the faster the output position command Oc converges to the input position command Ic, and the smaller the convergence time point Tc. Conversely, the smaller the filter bandwidth is set, the slower the speed at which the output position command Oc converges to the input position command Ic, and the larger the convergence time point Tc.

而本發明較佳實施例所提供之馬達命令收斂調整裝置1,也可應用於先前技術中的伺服馬達控制系統。因為馬達命令收斂調整裝置1可以在動態的情況下,即時性地修正輸出位置命令Oc,使得輸出位置命令Oc逐漸收斂於輸入位置命令Ic。而先前技術中的伺服馬達控制系統,回授裝置會將伺服馬達的實際位置回授至 馬達驅動裝置,馬達驅動裝置會將實際位置與輸出位置命令Oc所代表的輸出位置進行比較運算,以修正出下一個輸出位置命令Oc,使得實際位置逐漸向輸出位置命令Oc所代表的輸出位置逼近。故,實際位置會逐漸逼近輸出位置命令Oc所代表的輸出位置,而馬達命令收斂調整裝置1又會使得輸出位置命令Oc逐漸收斂於輸入位置命令Ic,因此,實際位置也會逐漸逼近輸入位置命令Ic所代表的輸入位置,不會像先前技術中實際位置逐漸逼近輸出位置,然而輸出位置命令PAOc卻與輸入位置命令PAIc存在有命令誤差e。 The motor command convergence adjustment device 1 provided by the preferred embodiment of the present invention can also be applied to a servo motor control system in the prior art. Because the motor command convergence adjustment device 1 can immediately modify the output position command Oc in a dynamic situation, so that the output position command Oc gradually converges to the input position command Ic. In the prior art servo motor control system, the feedback device will feedback the actual position of the servo motor to Motor drive. The motor drive compares the actual position with the output position represented by the output position command Oc to correct the next output position command Oc, so that the actual position gradually approaches the output position represented by the output position command Oc. . Therefore, the actual position will gradually approach the output position represented by the output position command Oc, and the motor command convergence adjustment device 1 will cause the output position command Oc to gradually converge to the input position command Ic. Therefore, the actual position will gradually approach the input position command. The input position represented by Ic will not gradually approach the output position like the actual position in the prior art. However, there is a command error e between the output position command PAOc and the input position command PAIc.

而當輸出位置命令Oc收斂於輸入位置命令Ic,使得命令差值為0時,馬達命令收斂調整裝置1仍會繼續運算,但是因為命令差值為0,使得動態命令輸出修正量為0,故不會對已經收斂於輸入位置命令Ic的輸出位置命令Oc造成影響。因此,本發明所提供之馬達命令收斂調整裝置1也不需要像先前技術一樣需要進行切換,進而避免切換所造成系統震盪不穩定的情形發生。 When the output position command Oc converges to the input position command Ic so that the command difference value is 0, the motor command convergence adjustment device 1 will continue to operate, but because the command difference value is 0, the dynamic command output correction amount is 0, so It does not affect the output position command Oc that has converged to the input position command Ic. Therefore, the motor command convergence adjustment device 1 provided by the present invention does not need to be switched as in the prior art, thereby avoiding the occurrence of unstable system oscillation caused by the switching.

在本實施例中,積分單元12係一積分器,也可為其他具有積分能力的晶片、韌體等。此外,濾波頻寬設定單元13可包含一濾波頻寬設定介面(圖未繪示),濾波頻寬設定介面係用以供一使用者設定上述濾波頻寬。 In this embodiment, the integration unit 12 is an integrator, and may also be other chips, firmware, etc. that have integration capabilities. In addition, the filtering bandwidth setting unit 13 may include a filtering bandwidth setting interface (not shown), and the filtering bandwidth setting interface is used for a user to set the filtering bandwidth.

接著,請一併參閱第二圖至第四圖,第四圖係顯示本發明較佳實施例所提供之馬達命令收斂調整方法之流程圖。馬達命令收斂調整方法,係利用如第一 圖所示之馬達命令收斂調整裝置1加以實施,並包含以下步驟S101至S105。 Next, please refer to the second to fourth figures together. The fourth figure is a flowchart showing a method for adjusting convergence of a motor command provided by a preferred embodiment of the present invention. The motor command convergence adjustment method uses the first The motor command convergence adjustment device 1 shown in the figure is implemented, and includes the following steps S101 to S105.

步驟S101:利用該差值運算單元,接收該輸入位置命令與該輸出位置命令,並運算出該命令差值。 Step S101: Use the difference calculation unit to receive the input position command and the output position command, and calculate the command difference.

步驟S102:利用該積分單元,接收該命令差值。 Step S102: Use the integration unit to receive the command difference.

步驟S103:利用該濾波頻寬設定單元,設定該濾波頻寬,並將該濾波頻寬傳送至該積分單元。 Step S103: Use the filter bandwidth setting unit to set the filter bandwidth and transmit the filter bandwidth to the integration unit.

步驟S104:利用該積分單元,依據該命令差值與該濾波頻寬積分運算出該動態命令輸出修正量。 Step S104: Use the integration unit to calculate the dynamic command output correction amount according to the command difference and the filter bandwidth integration.

步驟S105:利用該積分單元,依據該動態命令輸出修正量即時性地修正該輸出位置命令,使該輸出位置命令逐漸收斂於該輸入位置命令。 Step S105: Use the integration unit to modify the output position command in real time according to the dynamic command output correction amount, so that the output position command gradually converges to the input position command.

步驟S101係利用差值運算單元11,接收輸入位置命令Ic與輸出位置命令Oc,並運算出命令差值,其中,輸入位置命令Ic係第二圖中之命令產生裝置2所產生,輸出位置命令Oc係由馬達命令收斂調整裝置1產生,並傳送至馬達驅動裝置3,且同時回授至差值運算單元11。 Step S101 is to use the difference calculation unit 11 to receive the input position command Ic and the output position command Oc, and calculate the command difference. The input position command Ic is generated by the command generating device 2 in the second figure and outputs the position command. Oc is generated by the motor command convergence adjustment device 1 and transmitted to the motor drive device 3, and is simultaneously fed back to the difference calculation unit 11.

步驟S102係利用積分單元12,接收差值運算單元11所運算出之命令差值。 Step S102 is to use the integration unit 12 to receive the command difference calculated by the difference calculation unit 11.

步驟S103係利用濾波頻寬設定單元13,設定濾波頻寬,通常係由一使用者操作設定,並將濾波頻寬傳送至積分單元12。 Step S103 is to use the filter bandwidth setting unit 13 to set the filter bandwidth, which is usually set by a user's operation, and the filter bandwidth is transmitted to the integration unit 12.

步驟S104係利用積分單元12,接收差值運 算單元11所運算出的命令差值與濾波頻寬設定單元13所設定的濾波頻寬,並依據命令差值與濾波頻寬進行積分運算出動態命令輸出修正量。 Step S104 uses the integration unit 12 to receive the difference The command difference calculated by the arithmetic unit 11 and the filter bandwidth set by the filter bandwidth setting unit 13 are integrated to calculate a dynamic command output correction amount according to the command difference and the filter bandwidth.

步驟S105係利用積分單元12,依據動態命令輸出修正量,即時性地修正輸出位置命令Oc,使輸出位置命令Oc逐漸收斂於輸入位置命令Ic。因為只要有輸出位置命令Oc的產生便會回授至差值運算單元11,便會產生出命令差值。而只要有命令差值,積分單元12便會依據命令差值與濾波頻寬進行積分運算,而計算出動態命令輸出修正量。因此,馬達命令收斂調整方法可以在動態的情況下即時性地修正輸出位置命令,使得輸出位置命令Oc逐漸收斂於輸入位置命令Ic。 Step S105 is to use the integration unit 12 to correct the output position command Oc in real time according to the dynamic command output correction amount, so that the output position command Oc gradually converges to the input position command Ic. Because as long as the output position command Oc is generated, it will be fed back to the difference calculation unit 11 and a command difference will be generated. As long as there is a command difference, the integration unit 12 performs an integration operation according to the command difference and the filtering bandwidth to calculate a dynamic command output correction amount. Therefore, the motor command convergence adjustment method can immediately modify the output position command under dynamic conditions, so that the output position command Oc gradually converges to the input position command Ic.

而當輸出位置命令Oc收斂於輸入位置命令Ic,使得命令差值為0時,馬達命令收斂調整裝置1仍會繼續運算,但是因為命令差值為0,使得動態命令輸出修正量為0,故不會對已經收斂於輸入位置命令Ic的輸出位置命令Oc造成影響。因此,本發明所提供之馬達命令收斂調整裝置1也不需要像先前技術一樣需要進行切換,進而避免切換所造成系統震盪不穩定的情形發生。 When the output position command Oc converges to the input position command Ic so that the command difference value is 0, the motor command convergence adjustment device 1 will continue to operate, but because the command difference value is 0, the dynamic command output correction amount is 0, so It does not affect the output position command Oc that has converged to the input position command Ic. Therefore, the motor command convergence adjustment device 1 provided by the present invention does not need to be switched as in the prior art, thereby avoiding the occurrence of unstable system oscillation caused by the switching.

綜上所述,本發明所提供之馬達命令收斂調整裝置及其方法,利用差值運算單元、積分單元與濾波頻寬設定單元,運算出動態命令輸出修正量,並且即時性地修正輸出位置命令,藉以使得輸出位置命令逐漸收斂於輸入位置命令。相較於先前技術,本發明可以確保輸出位置命令逐漸收斂於輸入位置命令,而不會像先 前技術當中輸出位置命令與輸入位置命令不同,造成的誤差所衍生出後續的問題。而當輸出位置命令收斂於輸入位置命令時,因命令差值為0使得動態命令輸出修正量也為0,並不會對輸出位置命令造成影響,因此,本發明所提供之馬達命令收斂調整裝置及其方法不需要進行切換,也避免因為切換而導致系統震盪不穩定的情形發生。 In summary, the motor command convergence adjustment device and method provided by the present invention use a difference calculation unit, an integration unit, and a filter bandwidth setting unit to calculate a dynamic command output correction amount and correct the output position command in real time. , So that the output position command gradually converges to the input position command. Compared with the prior art, the present invention can ensure that the output position command gradually converges to the input position command without The output position command is different from the input position command in the previous technology, and the subsequent problems are caused by errors. When the output position command converges to the input position command, because the command difference value is 0, the dynamic command output correction amount is also 0, which will not affect the output position command. Therefore, the motor command convergence adjustment device provided by the present invention And its method does not need to switch, and avoids the situation that the system is unstable due to the switch.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。 With the above detailed description of the preferred embodiments, it is hoped that the features and spirit of the present invention can be more clearly described, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various changes and equivalent arrangements within the scope of the patents to be applied for in the present invention.

Claims (5)

一種馬達命令收斂調整裝置,係用以接收一命令產生裝置之一輸入位置命令,產生一用以傳送至一馬達驅動裝置之輸出位置命令,並使該輸出位置命令逐漸收斂於該輸入位置命令,該馬達命令收斂調整裝置包含:一差值運算單元,係電性連接於該命令產生裝置,用以接收該輸入位置命令與該輸出位置命令,並運算出一命令差值;一積分單元,係電性連接該差值運算單元,用以接收該命令差值;以及一濾波頻寬設定單元,係電性連接該積分單元,用以設定一濾波頻寬,並將該濾波頻寬傳送至該積分單元,使該積分單元依據該命令差值與該濾波頻寬積分運算出一動態命令輸出修正量,藉以利用該動態命令輸出修正量即時性地修正該輸出位置命令,使該輸出位置命令逐漸收斂於該輸入位置命令。A motor command convergence adjustment device is used for receiving an input position command of a command generating device, generating an output position command for transmission to a motor driving device, and gradually converging the output position command to the input position command. The motor command convergence adjustment device includes: a difference calculation unit electrically connected to the command generating device for receiving the input position command and the output position command, and calculating a command difference; an integration unit, The difference calculation unit is electrically connected to receive the command difference; and a filtering bandwidth setting unit is electrically connected to the integration unit to set a filtering bandwidth and transmit the filtering bandwidth to the Integrating unit, which enables the integrating unit to calculate a dynamic command output correction amount based on the command difference and the filter bandwidth integration, thereby using the dynamic command output correction amount to instantly correct the output position command, so that the output position command gradually Converge on the input position command. 如申請專利範圍第1項所述之馬達命令收斂調整裝置,其中,該差值運算單元係一減法器。The motor command convergence adjustment device according to item 1 of the scope of patent application, wherein the difference calculation unit is a subtractor. 如申請專利範圍第1項所述之馬達命令收斂調整裝置,其中,該積分單元係一積分器。The motor command convergence adjustment device according to item 1 of the scope of patent application, wherein the integration unit is an integrator. 如申請專利範圍第1項所述之馬達命令收斂調整裝置,其中,該濾波頻寬設定單元包含一濾波頻寬設定介面,且該濾波頻寬設定介面係用以供一使用者設定該濾波頻寬。According to the motor command convergence adjustment device described in the first item of the patent application scope, wherein the filtering bandwidth setting unit includes a filtering bandwidth setting interface, and the filtering bandwidth setting interface is used for a user to set the filtering frequency. width. 一種馬達命令收斂調整方法,係利用如申請專利範圍第1項所述之馬達命令收斂調整裝置加以實施,並包含以下步驟:(a)利用該差值運算單元,接收該輸入位置命令與該輸出位置命令,並運算出該命令差值;(b)利用該積分單元,接收該命令差值;(c)利用該濾波頻寬設定單元,設定該濾波頻寬,並將該濾波頻寬傳送至該積分單元;(d)利用該積分單元,依據該命令差值與該濾波頻寬積分運算出該動態命令輸出修正量;以及(e)利用該積分單元,依據該動態命令輸出修正量即時性地修正該輸出位置命令,使該輸出位置命令逐漸收斂於該輸入位置命令。A motor command convergence adjustment method is implemented by using the motor command convergence adjustment device described in item 1 of the scope of patent application, and includes the following steps: (a) using the difference calculation unit to receive the input position command and the output Position command and calculate the command difference; (b) use the integration unit to receive the command difference; (c) use the filter bandwidth setting unit to set the filter bandwidth and send the filter bandwidth to The integration unit; (d) using the integration unit to calculate the dynamic command output correction amount based on the command difference and the filter bandwidth integration; and (e) using the integration unit to output the correction amount instantaneously according to the dynamic command Correct the output position command so that the output position command gradually converges to the input position command.
TW108100733A 2019-01-08 2019-01-08 Motor command converging device and method thereof TWI676871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108100733A TWI676871B (en) 2019-01-08 2019-01-08 Motor command converging device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108100733A TWI676871B (en) 2019-01-08 2019-01-08 Motor command converging device and method thereof

Publications (2)

Publication Number Publication Date
TWI676871B true TWI676871B (en) 2019-11-11
TW202026780A TW202026780A (en) 2020-07-16

Family

ID=69189193

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108100733A TWI676871B (en) 2019-01-08 2019-01-08 Motor command converging device and method thereof

Country Status (1)

Country Link
TW (1) TWI676871B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW321801B (en) * 1995-03-28 1997-12-01 Mitsubishi Electric Corp
TW385437B (en) * 1995-01-25 2000-03-21 Discovision Ass Analog to digital converter and assembly for use in servo control of optical drive system and improved servo control system relating thereto
TW200421703A (en) * 2003-04-02 2004-10-16 Chung Shan Inst Of Science Automatic adjustment method of all-digitalized control parameter for DC brushless linear motor
TW201633669A (en) * 2015-03-13 2016-09-16 光寶科技股份有限公司 Servo motor system and operating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW385437B (en) * 1995-01-25 2000-03-21 Discovision Ass Analog to digital converter and assembly for use in servo control of optical drive system and improved servo control system relating thereto
TW321801B (en) * 1995-03-28 1997-12-01 Mitsubishi Electric Corp
TW200421703A (en) * 2003-04-02 2004-10-16 Chung Shan Inst Of Science Automatic adjustment method of all-digitalized control parameter for DC brushless linear motor
TW201633669A (en) * 2015-03-13 2016-09-16 光寶科技股份有限公司 Servo motor system and operating method thereof

Also Published As

Publication number Publication date
TW202026780A (en) 2020-07-16

Similar Documents

Publication Publication Date Title
US11038454B2 (en) Power conversion device and server
TW595082B (en) Device for controlling motor speed
CN102893513B (en) Device for controlling a motor
CN105843282B (en) A kind of temperature control equipment and method based on FPGA for image intensifer
JP2010528385A5 (en)
WO2008041598A1 (en) Servo control device
TW201604668A (en) Correction control method, controller and correction control system
TWI676871B (en) Motor command converging device and method thereof
CN103414418B (en) Current PI control system and method of direct current motor
CN104035378B (en) The control device of servomotor
CN107873122A (en) motor control system
JP2016156665A (en) Ultrasonic flow meter
JP5390468B2 (en) Angular velocity detector
WO2002033599A1 (en) Electronic cam device and method of preparing cam data in electronic cam device
CN114518704B (en) Radio frequency impedance matching device and method
JPWO2017098568A1 (en) Imaging device
JP5017648B2 (en) Actuator control device and actuator control method
CN115864867A (en) Synchronous rectification circuit
JP2014236532A (en) Driving control device for vibration actuator and optical equipment
JP6922069B2 (en) High frequency power supply
CN107688292B (en) A flexible nano-positioning method, device and system based on piezoelectric ceramics
TWI716175B (en) Current response compensating system and method thereof
US20250044317A1 (en) Circuit Device And Physical Quantity Sensor
TWI718959B (en) Motor load real-time adjustment system and method thereof
CN117134732B (en) A radio frequency impedance matching device and control method based on fractional calculus model