TWI719544B - The method of system identification and servo tuning - Google Patents

The method of system identification and servo tuning Download PDF

Info

Publication number
TWI719544B
TWI719544B TW108125677A TW108125677A TWI719544B TW I719544 B TWI719544 B TW I719544B TW 108125677 A TW108125677 A TW 108125677A TW 108125677 A TW108125677 A TW 108125677A TW I719544 B TWI719544 B TW I719544B
Authority
TW
Taiwan
Prior art keywords
loop
speed
guide rod
frequency response
servo
Prior art date
Application number
TW108125677A
Other languages
Chinese (zh)
Other versions
TW202105101A (en
Inventor
李慶鴻
林建佑
李格非
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 TW108125677A priority Critical patent/TWI719544B/en
Publication of TW202105101A publication Critical patent/TW202105101A/en
Application granted granted Critical
Publication of TWI719544B publication Critical patent/TWI719544B/en

Links

Images

Abstract

The present invention provides a method of system identification and servo tuning, which excites responses of a drive systems for machine tools by the output of sweep signal to obtain the frequency responses of a velocity loop and a position loop. Through transfer function of the velocity loop and transfer function of the position loop, it calculates and identifies Rotary Inertia—J M, damping coefficient of the rotary motion—B M, table mass—M t, damping coefficient of the lead-screw—C tand stiffness coefficient of the lead-screw—K of a drive systems for machine tools by algorithm, and further identifies frictional force and value of backlash through variant velocity of the drive systems for machine tools and reciprocating operation, so as to analyze the influence which parameters of servo controller impact on the drive systems for machine tools. Through system bandwidth, it limits the resonant peak, gain margin and phase margin to find out the optimum servo controller parameters K p, K vpand K vi, which are adjusted and inputted in the said servo controller. There by, it can achieve the goal of optimizing tuning and to reduce the vibration circumstance of drive system for machine tools, which guarantee its function and precision requirements.

Description

系統鑑別與伺服調機方法System identification and servo tuning method

本發明係提供一種系統鑑別與伺服調機方法,尤指一種可對工具驅動系統進行鑑別,並透過智能演算法找出工具驅動系統當前狀況最合適之伺服控制器參數,藉以提升工具驅動系統之性能及工作精度者。The present invention provides a system identification and servo adjustment method, especially a method that can identify the tool drive system and find the most suitable servo controller parameters for the current condition of the tool drive system through intelligent algorithms, so as to improve the performance of the tool drive system. Performance and work accuracy.

按,現今製造產業對成品的精度要求日漸增加,除要求一定的加工品質外,縮短加工週期也是一個重要的目標;因此,如何使電腦數值控制(Computer Numerical Control;CNC)工具機在不同加工環境或條件下維持高速及高精度是一個重要的議題;目前已有諸多文獻探討CNC工具機中之機械結構、運動控制、進給驅動系統、主軸、CNC伺服控制器及插補器等研究,並提出不同方法來改善加工性能;在傳統的設計過程中,工程師需要花費很多的時間和成本來製造和測試實物原型,以檢測需改善的地方藉以優化其設計;而現今的設計過程,機台是透過電腦採用模擬原型技術,與傳統設計方式相比,減少了許多時間和成本,惟對於調機仍須仰賴經驗或試誤法進行,此方法效率低且無法判斷伺服參數是否已達到最佳化。According to the fact that the manufacturing industry’s requirements for the accuracy of finished products are increasing day by day, in addition to requiring certain processing quality, shortening the processing cycle is also an important goal; therefore, how to make computer numerical control (CNC) machine tools work in different processing environments It is an important issue to maintain high speed and high precision under other conditions; there are already many documents discussing the mechanical structure, motion control, feed drive system, spindle, CNC servo controller and interpolator in CNC machine tools. Propose different methods to improve processing performance; in the traditional design process, engineers need to spend a lot of time and cost to manufacture and test physical prototypes to detect areas that need improvement to optimize their design; and in the current design process, the machine is Compared with the traditional design method, the simulation prototype technology is adopted through the computer, which reduces a lot of time and cost. However, the adjustment of the machine still has to rely on experience or trial and error. This method is inefficient and cannot determine whether the servo parameters have been optimized. .

由於工具機系統之性能將直接影響加工質量,因此,研究五軸進給驅動模型對於虛擬系統開發具有重要意義。目前已有許多文獻探討虛擬驅動系統的議題,並提出了虛擬進給模型,包含了馬達結構、摩擦力與背隙等非線性特性及噪音檢測,但其假設導螺桿是剛體,並忽略了工作台結構特徵,故仍降低虛擬進給驅動系統模型的性能。Since the performance of the machine tool system will directly affect the processing quality, the study of the five-axis feed drive model is of great significance for the development of virtual systems. At present, many documents have discussed the topic of virtual drive system, and proposed a virtual feed model, including motor structure, friction and backlash and other nonlinear characteristics and noise detection, but it assumes that the lead screw is a rigid body, and ignores the work Due to the characteristics of the table structure, the performance of the virtual feed drive system model is still reduced.

有鑑於此,吾等發明人乃潛心進一步研究工具機系統之鑑別與調基,並著手進行研發及改良,期以一較佳發明以解決上述問題,且在經過不斷試驗及修改後而有本發明之問世。In view of this, our inventors have devoted themselves to further research on the identification and adjustment of machine tool systems, and proceeded to develop and improve them, hoping to have a better invention to solve the above problems, and after continuous testing and modification, we have the potential The invention is born.

爰是,本發明之目的係為解決前述問題,為達致以上目的,吾等發明人提供一種系統鑑別方法,其步驟包含:輸出一掃頻訊號於一工具驅動系統進行掃頻,藉以激發該工具驅動系統響應,並取得一速度迴路及一位置迴路之頻率響應;其中,該工具驅動系統具有至少一伺服控制器,其控制至少一馬達,至少一分別受所述馬達驅動旋轉之導桿,及至少一分別從動於所述導桿之驅動平台;建立一速度迴路轉移函數,並經運算以鑑別該工具驅動系統中具有之馬達的轉動慣量J M及旋轉運動之阻尼係數B M;以及建立一位置迴路轉移函數,並將該轉動慣量及旋轉運動之阻尼係數代入該位置迴路轉移函數,並經運算鑑別一驅動平台質量M t、導桿之阻尼係數Ct及導桿之剛性K。 The purpose of the present invention is to solve the aforementioned problems. In order to achieve the above objectives, our inventors provide a system identification method, the steps of which include: outputting a sweep signal in a tool drive system for sweeping, thereby stimulating the tool The drive system responds and obtains the frequency response of a speed loop and a position loop; wherein the tool drive system has at least one servo controller that controls at least one motor, at least one guide rod that is driven to rotate by the motors, and At least one driving platform respectively driven by the guide rod; establishing a speed loop transfer function, and calculating it to identify the moment of inertia J M of the motor and the damping coefficient B M of the rotary motion in the tool driving system; and establishing A position loop transfer function, and the rotational inertia and the damping coefficient of the rotational motion are substituted into the position loop transfer function, and the mass M t of a driving platform, the damping coefficient Ct of the guide rod and the rigidity K of the guide rod are identified by calculation.

據上所述之系統鑑別方法,其中,該速度迴路轉移函數

Figure 02_image001
Figure 02_image003
;其中,K p、K vp、K vi為伺服控制器之參數,K t為馬達轉矩常數;且其係經演算法計算以鑑別該轉動慣量J M及阻尼係數B M。 According to the system identification method described above, the speed loop transfer function
Figure 02_image001
for
Figure 02_image003
; Among them, K p , K vp , K vi are the parameters of the servo controller, and K t is the motor torque constant; and it is calculated by an algorithm to identify the moment of inertia J M and the damping coefficient B M.

據上所述之系統鑑別方法,其中,該演算法為PSO(粒子群優化)演算法,且界定優化問題為

Figure 02_image005
;並限制
Figure 02_image007
;其中,
Figure 02_image009
Figure 02_image011
為速度迴路之頻率響應,N v為速度迴路之頻率響應數據之長度、
Figure 02_image013
Figure 02_image015
分別為速度迴路之頻率響應的大小及相位權重值。 According to the system identification method described above, the algorithm is a PSO (Particle Swarm Optimization) algorithm, and the optimization problem is defined as
Figure 02_image005
; And limit
Figure 02_image007
;among them,
Figure 02_image009
and
Figure 02_image011
Is the frequency response of the speed loop, N v is the length of the frequency response data of the speed loop,
Figure 02_image013
and
Figure 02_image015
They are the magnitude and phase weight of the frequency response of the speed loop.

據上所述之系統鑑別方法,其中,該工具驅動系統之所述馬達、導桿及驅動平台係呈線性軸設置,且該線性軸之位置迴路轉移函數

Figure 02_image017
Figure 02_image019
;其中,
Figure 02_image021
According to the system identification method described above, wherein the motor, the guide rod and the driving platform of the tool driving system are arranged in a linear axis, and the position loop transfer function of the linear axis
Figure 02_image017
for
Figure 02_image019
;among them,
Figure 02_image021

Figure 02_image023
Figure 02_image023

Figure 02_image025
;且其係經演算法計算以鑑別該驅動平台質量M t、導桿之阻尼係數C t及導桿之剛性K。
Figure 02_image025
; And it is calculated by an algorithm to identify the drive platform mass M t , the damping coefficient C t of the guide rod and the rigidity K of the guide rod.

據上所述之系統鑑別方法,其中,該工具驅動系統之所述導桿係接設於所述驅動平台一端,藉以令所述驅動平台繞所述導桿進行旋轉運動,藉以形成搖床之旋轉軸A之設置,且該旋轉軸A之位置迴路轉移函數

Figure 02_image027
為 According to the system identification method described above, wherein the guide rod of the tool driving system is connected to one end of the driving platform, so that the driving platform rotates around the guide rod, thereby forming the rocking table The setting of the rotation axis A, and the position loop transfer function of the rotation axis A
Figure 02_image027
for

Figure 02_image029
;且其係經演算法計算以鑑別該驅動平台質量M t
Figure 02_image029
; And it is calculated by an algorithm to identify the quality of the driving platform M t .

據上所述之系統鑑別方法,其中,該工具驅動系統之所述導桿係接設於所述驅動平台中心,藉以令所述驅動平台以所述導桿為旋轉軸C而進行旋轉,且該旋轉軸C之位置迴路轉移函數

Figure 02_image031
為 According to the system identification method described above, wherein the guide rod of the tool driving system is connected to the center of the driving platform, so that the driving platform rotates with the guide rod as the rotation axis C, and The position loop transfer function of the rotation axis C
Figure 02_image031
for

Figure 02_image033
;且其係經演算法計算以鑑別該轉動慣量J M及阻尼係數B M
Figure 02_image033
; And it is calculated by an algorithm to identify the moment of inertia J M and the damping coefficient B M.

據上所述之系統鑑別方法,其中,該演算法為PSO(粒子群優化)演算法,且界定優化問題為

Figure 02_image035
According to the system identification method described above, the algorithm is a PSO (Particle Swarm Optimization) algorithm, and the optimization problem is defined as
Figure 02_image035

限制

Figure 02_image037
;以及 limit
Figure 02_image037
;as well as

Figure 02_image039
Figure 02_image039

限制

Figure 02_image041
; limit
Figure 02_image041

其中,

Figure 02_image043
Figure 02_image045
為位置迴路之頻率響應,N p為位置迴路之頻率響應數據長度、 w p1及 w p2分別為位置迴路的頻率響應之大小及相位權重值。 among them,
Figure 02_image043
and
Figure 02_image045
Is the frequency response of the position loop, N p is the frequency response data length of the position loop, w p1 and w p2 are the magnitude and phase weight value of the frequency response of the position loop respectively.

據上所述之系統鑑別方法,其步驟更包含:設定一路徑供該工具驅動系統進行變體速度運行;擷取所述伺服控制器生成命令至所述馬達之電流數據以及對應之速度數據;建立一穩態摩擦力函數,並經演算法鑑別正轉時之黏滯摩擦係數

Figure 02_image047
、負轉時之黏滯摩擦係數
Figure 02_image049
、黏滯摩擦之初始係數
Figure 02_image051
及靜摩擦係數
Figure 02_image051
。 According to the system identification method described above, the steps further include: setting a path for the tool drive system to perform variant speed operation; capturing the current data generated by the servo controller to the motor and the corresponding speed data; Establish a steady-state friction force function, and use an algorithm to identify the viscous friction coefficient during forward rotation
Figure 02_image047
, Viscous friction coefficient during negative rotation
Figure 02_image049
, The initial coefficient of viscous friction
Figure 02_image051
And static friction coefficient
Figure 02_image051
.

據上所述之系統鑑別方法,其中,該穩態摩擦力函數

Figure 02_image053
Figure 02_image055
;其中,dv為受靜摩擦影響之低速範圍;透過演算法計算以鑑別該正轉時之黏滯摩擦係數
Figure 02_image047
、負轉時之黏滯摩擦係數
Figure 02_image049
、黏滯摩擦之初始係數
Figure 02_image051
及靜摩擦係數
Figure 02_image051
。 According to the system identification method described above, the steady-state friction force function
Figure 02_image053
for
Figure 02_image055
; Among them, dv is the low-speed range affected by static friction; calculated by algorithm to identify the viscous friction coefficient during forward rotation
Figure 02_image047
, Viscous friction coefficient during negative rotation
Figure 02_image049
, The initial coefficient of viscous friction
Figure 02_image051
And static friction coefficient
Figure 02_image051
.

據上所述之系統鑑別方法,其中,該演算法為PSO(粒子群優化)演算法,且界定優化問題之目標函數E newAccording to the system identification method described above, the algorithm is a PSO (Particle Swarm Optimization) algorithm, and the objective function E new that defines the optimization problem is

Figure 02_image057
Figure 02_image057

Figure 02_image059
Figure 02_image059

其中,

Figure 02_image061
為誤差權重。 among them,
Figure 02_image061
Is the error weight.

據上所述之系統鑑別方法,其步驟更包含:According to the system authentication method described above, the steps further include:

擷取該工具驅動系統進行往返移動時之驅動平台位置數據及馬達速度數據;以及當馬達到達相同位置時,將驅動平台及導桿之間之位置相減,並透過最小平方法鑑別一背隙值。Capture the drive platform position data and motor speed data when the tool drive system moves back and forth; and when the motor reaches the same position, subtract the position between the drive platform and the guide rod, and identify a backlash through the least square method value.

本發明另提供一種伺服調機方法,其係應用於據上所述之系統鑑別方法,其速度迴路之調機步驟包含:界定求得最大化閉迴路之速度迴路之系統頻寬Bw vel;限制一相依於該速度迴路頻率響應之共振峰值;界定一相依於該速度迴路頻率響應之增益邊限及相位邊限;界定伺服控制器之參數中之比例增益值K vp及積分增益值K vi之間的比率;以及求得比例增益值K vp及積分增益值K vi,並調整輸入於該伺服控制器。 The present invention also provides a servo tuning method, which is applied to the system identification method described above. The tuning steps of the speed loop include: defining the system bandwidth Bw vel of the speed loop that maximizes the closed loop; restriction; A resonance peak dependent on the frequency response of the speed loop; defining a gain margin and phase margin dependent on the frequency response of the speed loop; defining the proportional gain value K vp and the integral gain value K vi among the parameters of the servo controller And obtain the proportional gain value K vp and the integral gain value K vi , and adjust the input to the servo controller.

據上所述之伺服調機方法,其中,該共振峰值

Figure 02_image063
為速度迴路頻率響應之最大值,且界定
Figure 02_image065
。 According to the above-mentioned servo tuning method, the resonance peak
Figure 02_image063
Is the maximum value of the frequency response of the speed loop, and defines
Figure 02_image065
.

據上所述之伺服調機方法,其中,該增益邊限G M

Figure 02_image067
;其中,
Figure 02_image069
為所述工具驅動系統速度迴路之開迴路轉移函數,
Figure 02_image071
為相位交叉頻率;並限制增益邊限G M>10 dB。 According to the above-mentioned servo tuning method, the gain margin G M is
Figure 02_image067
;among them,
Figure 02_image069
Is the open-loop transfer function of the speed loop of the tool drive system,
Figure 02_image071
Is the phase cross frequency; and limit the gain margin G M >10 dB.

據上所述之伺服調機方法,其中,該相位邊限P M

Figure 02_image073
;其中,
Figure 02_image069
為所述工具驅動系統速度迴路之開迴路轉移函數,
Figure 02_image075
為增益交叉頻率;並限制相位邊限P M> 45˚。 According to the above-mentioned servo tuning method, the phase margin P M is
Figure 02_image073
;among them,
Figure 02_image069
Is the open-loop transfer function of the speed loop of the tool drive system,
Figure 02_image075
Is the gain crossover frequency; and limits the phase margin P M > 45˚.

據上所述之伺服調機方法,其中,比例增益值K vp及積分增益值Kvi之間的比率

Figure 02_image077
Figure 02_image079
。 According to the above-mentioned servo tuning method, the ratio between the proportional gain value K vp and the integral gain value Kvi
Figure 02_image077
for
Figure 02_image079
.

據上所述之伺服調機方法,更包含一位置迴路之步驟:界定求得最大化閉迴路之位置迴路之系統頻寬Bw pos;限制為伺服控制器之參數K p;限制一相依於該位置迴路頻率響應之共振峰值;界定一相依於該位置迴路頻率響應之增益邊限及相位邊限;限制最大化閉迴路之位置迴路的系統頻寬

Figure 02_image081
;求得伺服控制器之參數K p,並調整輸入於該伺服控制器。 According to the above-mentioned servo tuning method, it further includes the steps of a position loop: define the system bandwidth Bw pos of the position loop that maximizes the closed loop; limit it to the parameter K p of the servo controller; limit a dependent on this The resonance peak of the frequency response of the position loop; define a gain margin and phase margin that depend on the frequency response of the position loop; limit the system bandwidth of the position loop that maximizes the closed loop
Figure 02_image081
; Obtain the parameter K p of the servo controller, and adjust the input to the servo controller.

據上所述之伺服調機方法,其中,伺服控制器之參數K p限制為

Figure 02_image083
,且相依於該位置迴路頻率響應之共振峰值M pp之限制為
Figure 02_image085
,其中,共振峰值M pp為位置迴路頻率響應之最大值。 According to the above-mentioned servo tuning method, the parameter K p of the servo controller is limited to
Figure 02_image083
, And the limit of the resonance peak M pp that depends on the frequency response of the loop at that position is
Figure 02_image085
, Where the resonance peak M pp is the maximum value of the frequency response of the position loop.

據上所述之伺服調機方法,其中,係限制增益邊限G M>15dB,且限制相位邊限P M> 45˚。 According to the above-mentioned servo tuning method, the gain margin G M is limited to >15dB, and the phase margin P M is limited to 45˚.

據上所述之伺服調機方法,其步驟更包含:於所述伺服控制器設置一前饋控制單元,並界定該前饋控制單元相依且控制速度及加速度之一常數係數AF;令位置迴路的頻率響應接近水平,並界定優化問題之函數E之最小值為According to the above-mentioned servo tuning method, the steps further include: setting a feedforward control unit on the servo controller, and defining a constant coefficient AF that the feedforward control unit is dependent on and controls the speed and acceleration; making the position loop The frequency response of is close to the level, and the minimum value of the function E that defines the optimization problem is

Figure 02_image087
;擷取函數E為最小值時之常數係數AF,並對應輸入於該前饋控制單元。
Figure 02_image087
; Capture the constant coefficient AF when the function E is the minimum value, and correspondingly input it to the feedforward control unit.

是由上述說明及設置,顯見本發明主要具有下列數項優點及功效,茲逐一詳述如下:Based on the above description and settings, it is obvious that the present invention mainly has the following advantages and effects, which are described in detail as follows:

1.本發明係藉由輸出掃頻訊號激發工具驅動系統響應,取得一速度迴路及一位置迴路之頻率響應;並藉由速度迴路轉移函數及位置迴路轉移函數,透過演算法以運算並鑑別工具驅動系統之馬達轉動慣量J M、旋轉運動之阻尼係數B M、驅動平台質量M t、導桿之阻尼係數C t及導桿之剛性K,並可更進一步透過工具驅動系統之變體速度及往復之運行而鑑別摩擦力及背隙值,藉以分析伺服控制器參數對工具驅動系統之影響,進而達致鑑別工具驅動系統之目的與功效。 1. The present invention stimulates the response of the tool drive system by outputting a frequency sweep signal to obtain the frequency response of a speed loop and a position loop; and uses the transfer function of the speed loop and the transfer function of the position loop to calculate and identify the tool through an algorithm The motor moment of inertia J M of the driving system, the damping coefficient B M of the rotational motion, the mass of the driving platform M t , the damping coefficient C t of the guide rod and the rigidity K of the guide rod, and can further be driven by the tool driving system’s variant speed and The reciprocating operation is used to identify the friction and backlash values, so as to analyze the influence of the servo controller parameters on the tool drive system, and then achieve the purpose and effect of identifying the tool drive system.

2.本發明另可藉由前述之鑑別結果,並透過系統頻寬,且予限制共振峰值、增益邊限及相位邊限而找出最佳之伺服控制器參數K p、K vp、K vi,並調整輸入於該伺服控制器,藉以達致優化調機之目的,藉以減少工具驅動系統之振動現象,並能提升工具驅動系統之性能及工作精度。 2. The present invention can also find the best servo controller parameters K p , K vp , K vi based on the aforementioned identification results, through the system bandwidth, and to limit the resonance peak, gain margin and phase margin , And adjust the input to the servo controller to achieve the purpose of optimizing the adjustment, thereby reducing the vibration phenomenon of the tool driving system, and improving the performance and working accuracy of the tool driving system.

關於吾等發明人之技術手段,茲舉數種較佳實施例配合圖式於下文進行詳細說明,俾供  鈞上深入了解並認同本發明。Regarding the technical means of our inventors, several preferred embodiments are described in detail below in conjunction with the drawings, in order to provide a thorough understanding and approval of the present invention.

本發明係提供一種系統鑑別與伺服調機方法,在一具體之實施例中,主要係用以鑑別一工具驅動系統1,就工具驅動系統1而言,其係可為五軸CNC工具機,其包含三個線性軸(X軸、Y軸和Z軸)及二個旋轉軸(A軸和C軸),如第1圖所示,其主要包含一主計算機11、一伺服控制器12及一機械結構13;其中,就主計算機11而言,其主要係透過數控控制(NC)程序由操作員或使用CAD / CAM應用程序創建,為各伺服控制器12生成離散數值位置命令;伺服控制器12可分為PID(Proportional Integral Derivative,比例積分微分)控制器121和前饋控制單元122;在一實施例中,伺服控制器12基於三個迴路控制,包含電流迴路控制,速度迴路控制和位置迴路控制,故藉由調整伺服控制器12之參數可提供高性能運動控制;機械結構13可分為馬達131、導桿132及驅動平台133,伺服控制器12係耦接並將命令傳送到馬達131以產生扭矩,使驅動導桿132旋轉,進而傳動於驅動平台133,其中,導桿132可為一螺桿;The present invention provides a system identification and servo adjustment method. In a specific embodiment, it is mainly used to identify a tool drive system 1. As far as the tool drive system 1 is concerned, it can be a five-axis CNC machine tool. It contains three linear axes (X-axis, Y-axis, and Z-axis) and two rotary axes (A-axis and C-axis). As shown in Figure 1, it mainly includes a host computer 11, a servo controller 12, and A mechanical structure 13; among them, as far as the host computer 11 is concerned, it is mainly created by the operator through a numerical control (NC) program or using a CAD/CAM application program to generate discrete numerical position commands for each servo controller 12; servo control The controller 12 can be divided into a PID (Proportional Integral Derivative) controller 121 and a feedforward control unit 122; in one embodiment, the servo controller 12 is based on three loop control, including current loop control, speed loop control and Position loop control, so high-performance motion control can be provided by adjusting the parameters of the servo controller 12; the mechanical structure 13 can be divided into a motor 131, a guide rod 132 and a drive platform 133. The servo controller 12 is coupled and sends commands to The motor 131 generates torque to rotate the driving guide rod 132 and then drive it to the driving platform 133. The guide rod 132 may be a screw rod;

而工具驅動系統1之線性軸模型係概如第2圖所示,其中 T為馬達131轉矩[Nm], J m 為馬達131轉動慣量[kgm 2], B m 為旋轉運動的阻尼係數[Ns / m], M t 為驅動平台133質量[kg], C t 為導桿132的阻尼係數[Ns / m], K為導桿132的剛性[N / m], R為從馬達131旋轉角度到驅動平台133位置的轉換比[mm / rev],θ m 是馬達131旋轉角度[rad], x act 是驅動平台133位置[m]; The linear axis model system of the tool drive system 1 is shown in Figure 2, where T is the torque of the motor 131 [Nm], J m is the moment of inertia of the motor 131 [kgm 2 ], and B m is the damping coefficient of the rotary motion [ Ns / m], M t is the mass of the drive platform 133 [kg], C t is the damping coefficient of the guide rod 132 [Ns / m], K is the rigidity of the guide rod 132 [N / m], R is the rotation from the motor 131 The conversion ratio of the angle to the position of the drive platform 133 [mm / rev], θ m is the rotation angle of the motor 131 [rad], and x act is the position of the drive platform 133 [m];

就旋轉軸模型而言,A軸的機械結構13是搖床結構,如第3圖所示,所述導桿132係接設於所述驅動平台133一端,藉以令所述驅動平台133繞所述導桿132進行旋轉運動,藉以形成搖床結構之旋轉軸A之設置,C軸的機械結構13是直接驅動機構的旋轉平台,如第4圖所示,所述導桿132係接設於所述驅動平台133中心,藉以令所述驅動平台133以所述導桿132為旋轉軸C而進行旋轉。As far as the rotating shaft model is concerned, the mechanical structure 13 of the A-axis is a shaker structure. As shown in Figure 3, the guide rod 132 is connected to one end of the driving platform 133, so that the driving platform 133 can be moved around. The guide rod 132 rotates, thereby forming the setting of the rotating shaft A of the rocking table structure. The mechanical structure 13 of the C axis is the rotating platform of the direct drive mechanism. As shown in Figure 4, the guide rod 132 is connected to The center of the driving platform 133 allows the driving platform 133 to rotate with the guide rod 132 as the rotation axis C.

在一實施例中,完整的五軸CNC之工具驅動系統1如第5圖所示,其中, K p 係位置控制器,本實施例中係使用比例( P)控制器, K v 為速度控制器,本實施例中係使用比例積分(PI)控制器, K i 是電流控制器,本實施例中係使用PI控制器, L a 是電樞電感, R a 是電樞電阻, K t 是轉矩常數, K e 是電磁干擾和電場(EMF)常數,ω cmd 是角速度命令,x cmd 是位置命令,

Figure 02_image089
是角度指令,
Figure 02_image091
是驅動平台133角度,
Figure 02_image091
是角速度指令,
Figure 02_image093
是表角速度;該工具驅動系統1包含前饋控制單元122,其係可用於改善伺服系統性能,前饋控制單元122包括速度及加速度前饋控制,其中 VF是前饋控制系統的開關; VF的值為1或0,如果 VF= 1,則表示打開前饋控制系統;反之,如果 VF= 0,則意味著關閉前饋控制系統; AF是加速度前饋控制系統的常數係數。 In one embodiment, a complete five-axis CNC tool drive system 1 is shown in Figure 5, where K p is a position controller, in this embodiment a proportional ( P ) controller is used, and K v is a speed control , a system using the present embodiment, proportional-integral (PI) controller, K i is a current controller according to the present embodiment based PI controller is used, L a is the armature inductance, R a is the armature resistance, K t is Torque constant, K e is the electromagnetic interference and electric field (EMF) constant, ω cmd is the angular velocity command, x cmd is the position command,
Figure 02_image089
Is the angle command,
Figure 02_image091
Is the 133 angle of the drive platform,
Figure 02_image091
Is the angular velocity command,
Figure 02_image093
Is the surface angular velocity; the tool driving system 1 includes a feedforward control unit 122, which can be used to improve the performance of the servo system, the feedforward control unit 122 includes speed and acceleration feedforward control, where VF is the switch of the feedforward control system; VF The value is 1 or 0. If VF = 1, it means that the feedforward control system is turned on; on the contrary, if VF = 0, it means that the feedforward control system is turned off; AF is the constant coefficient of the acceleration feedforward control system.

在一實施中,本發明之工具驅動系統1為Microcut-MCU-5X五軸工具機,其配備有海德漢控制器及TNC640,並透過使用TNCOPT、TNCSCOPE、TNCREMO等海德漢軟件,電腦可直接連接控制器,獲取馬達131主軸轉速、驅動平台133位置、各軸速度及加速度等運行數據。In one implementation, the tool drive system 1 of the present invention is a Microcut-MCU-5X five-axis machine tool, which is equipped with a HEIDENHAIN controller and TNC640, and by using HEIDENHAIN software such as TNCOPT, TNCSCOPE, TNCREMO, etc., the computer can be directly connected The controller obtains operating data such as the spindle speed of the motor 131, the position of the driving platform 133, the speed and acceleration of each axis, and so on.

[速度迴路及位置迴路之鑑別][Identification of speed loop and position loop]

藉此,本發明使用正弦掃頻訊號進行系統鑑別,並通過伺服導向軟件TNCOPT獲得相應的頻率響應,且正弦掃頻功能不包括前饋控制器;其實施步驟如下:Therefore, the present invention uses a sinusoidal frequency sweep signal for system identification, and obtains the corresponding frequency response through the servo-oriented software TNCOPT, and the sinusoidal frequency sweep function does not include a feedforward controller; the implementation steps are as follows:

S001:輸出一掃頻訊號於一工具驅動系統1進行掃頻,藉以激發該工具驅動系統1響應,並取得各軸之一速度迴路及一位置迴路之頻率響應;如第6a至6e圖所示。S001: Output a frequency sweep signal in a tool driving system 1 to perform frequency scanning, so as to stimulate the tool driving system 1 to respond, and obtain the frequency response of a speed loop and a position loop of each axis; as shown in Figures 6a to 6e.

S002:建立一速度迴路轉移函數,並經運算以鑑別該工具驅動系統1中具有之馬達131的轉動慣量J M及旋轉運動之阻尼係數B M;在一實施例中,速度迴路轉移函數

Figure 02_image095
Figure 02_image003
;其中,K p、K vp、K vi為伺服控制器12之參數,K t為馬達131轉矩常數;且其係經演算法計算以鑑別該轉動慣量J M及阻尼係數B M; S002: Establish a speed loop transfer function, and perform calculations to identify the moment of inertia J M of the motor 131 and the damping coefficient B M of the rotary motion in the tool drive system 1; in one embodiment, the speed loop transfer function
Figure 02_image095
for
Figure 02_image003
; Among them, K p , K vp , K vi are the parameters of the servo controller 12, and K t is the torque constant of the motor 131; and it is calculated by an algorithm to identify the moment of inertia J M and the damping coefficient B M ;

本發明主要係透過PSO(粒子群優化)演算法進行演算,由於PSO演算法易於實現,並且具有較少的選擇參數以提供計算效率,其主要係藉由定義優化問題及粒子更新標準,其中,粒子更新主要由三部分組成;第一部分係當前的速度影響慣性運動的效果;第二部分是認知部分,根據粒子自己的判斷;第三部分是社會部分,根據群體的最佳解決方案來搜索解空間;本發明係使用PSO演算法的學習因素的線性調整,學習因素的線性調整表示為:The present invention is mainly calculated through the PSO (Particle Swarm Optimization) algorithm. Since the PSO algorithm is easy to implement and has fewer selection parameters to provide calculation efficiency, it is mainly based on the definition of optimization problems and particle update standards. Among them, The particle update is mainly composed of three parts; the first part is the current speed affecting the effect of inertial motion; the second part is the cognitive part, based on the particle's own judgment; the third part is the social part, searching for solutions based on the best solution of the group Space; the present invention uses the linear adjustment of the learning factor of the PSO algorithm, and the linear adjustment of the learning factor is expressed as:

Figure 02_image097
Figure 02_image097

Figure 02_image099
Figure 02_image099

其中,

Figure 02_image101
為正常數;
Figure 02_image103
Figure 02_image105
Figure 02_image107
是允許的最大迭代數, g是粒子的當前迭代次數。 among them,
Figure 02_image101
Is a normal number;
Figure 02_image103
and
Figure 02_image105
.
Figure 02_image107
Is the maximum number of iterations allowed, and g is the current number of iterations of the particle.

將每顆粒子的當前適應值作為每顆粒子的局部最佳適應值(

Figure 02_image109
);並且將每顆粒子的當前解作為其局部最優解(
Figure 02_image111
);在初始群體粒子中,找到適應值的極值作為群體最優適應值(
Figure 02_image113
);並將具有群體最優適應值的粒子的位置作為群體最優解(
Figure 02_image115
);在每次迭代後,更新粒子參數時,重新計算粒子適應值;比較適應值的變化並更新最佳適應值和解決方案。 Take the current fitness value of each particle as the local optimal fitness value of each particle (
Figure 02_image109
); and take the current solution of each particle as its local optimal solution (
Figure 02_image111
); In the initial population particles, find the extreme value of the fitness value as the optimal fitness value of the group (
Figure 02_image113
); and take the position of the particle with the optimal fitness value of the group as the optimal solution of the group (
Figure 02_image115
); After each iteration, when the particle parameters are updated, the particle fitness value is recalculated; the changes in the fitness value are compared and the best fitness value and solution are updated.

故,就速度迴路轉移函數,優化問題將可表述為Therefore, regarding the speed loop transfer function, the optimization problem can be expressed as

Figure 02_image005
Figure 02_image005

並限制

Figure 02_image007
; And limit
Figure 02_image007

其中,

Figure 02_image009
Figure 02_image011
為TNCOPT測量速度迴路之頻率響應,N v為速度迴路之頻率響應數據之長度、
Figure 02_image013
Figure 02_image015
分別為速度迴路之頻率響應的大小及相位權重值;藉此,即可鑑別速度迴路中之轉動慣量J M及阻尼係數B M。 among them,
Figure 02_image009
and
Figure 02_image011
For TNCOPT to measure the frequency response of the speed loop, N v is the length of the frequency response data of the speed loop,
Figure 02_image013
and
Figure 02_image015
They are the magnitude of the frequency response of the speed loop and the phase weight value; by this, the moment of inertia J M and the damping coefficient B M in the speed loop can be identified.

對於速度迴路,系統鑑別採用1-300 [rad / s]的頻率響應,因為該頻率響應範圍主要用於加工。For the speed loop, the system uses a frequency response of 1-300 [rad / s], because this frequency response range is mainly used for processing.

S003:建立一位置迴路轉移函數,並將該轉動慣量及旋轉運動之阻尼係數代入該位置迴路轉移函數,並經運算鑑別一驅動平台133質量M t、導桿132之阻尼係數Ct及導桿132之剛性K;在一實施例中,依據線性軸之模型,位置迴路轉移函數

Figure 02_image117
Figure 02_image019
;其中,
Figure 02_image021
S003: Establish a position loop transfer function, and substitute the rotational inertia and the damping coefficient of the rotational motion into the position loop transfer function, and the mass M t of a driving platform 133, the damping coefficient Ct of the guide rod 132, and the guide rod 132 are identified by calculation The rigidity K; in one embodiment, according to the linear axis model, the position loop transfer function
Figure 02_image117
for
Figure 02_image019
;among them,
Figure 02_image021

Figure 02_image023
Figure 02_image023

Figure 02_image025
;且其係經演算法計算以鑑別該驅動平台133質量M t、導桿132之阻尼係數C t及導桿132之剛性K。
Figure 02_image025
; And it is calculated by an algorithm to identify the mass M t of the drive platform 133, the damping coefficient C t of the guide rod 132 and the rigidity K of the guide rod 132.

旋轉軸(A軸和C軸)的結構與線性軸不同;A軸的機械結構13是搖床結構;且該旋轉軸A之位置迴路轉移函數

Figure 02_image027
為 The structure of the rotary axis (A axis and C axis) is different from that of the linear axis; the mechanical structure 13 of the A axis is a shaker structure; and the position loop transfer function of the rotary axis A
Figure 02_image027
for

Figure 02_image029
Figure 02_image029
.

C軸的機械結構13是直接驅動的機構,來自馬達131的動力沒有任何減少,故僅能鑑別轉動慣量J M及阻尼係數B M,該旋轉軸C之位置迴路轉移函數

Figure 02_image031
為 The mechanical structure 13 of the C-axis is a direct drive mechanism, and the power from the motor 131 is not reduced, so it can only identify the moment of inertia J M and the damping coefficient B M , the position loop transfer function of the rotating shaft C
Figure 02_image031
for

Figure 02_image033
Figure 02_image033
.

通過使用PSO演算法,可以鑑別位置迴路的參數;此外,線性軸和旋轉軸的相應優化問題為By using the PSO algorithm, the parameters of the position loop can be identified; in addition, the corresponding optimization problems for the linear axis and the rotary axis are

Figure 02_image035
Figure 02_image035

限制

Figure 02_image037
;以及 limit
Figure 02_image037
;as well as

Figure 02_image039
Figure 02_image039

限制

Figure 02_image041
; limit
Figure 02_image041

其中,

Figure 02_image043
Figure 02_image045
為位置迴路之頻率響應,N p為位置迴路之頻率響應數據長度、 w p1及 w p2分別為位置迴路的頻率響應之大小及相位權重值;藉此,即可鑑別驅動平台133質量M t、導桿132之阻尼係數Ct及導桿132之剛性K。 among them,
Figure 02_image043
and
Figure 02_image045
Is the frequency response of the position loop, N p is the frequency response data length of the position loop, w p1 and w p2 are the size and phase weight value of the frequency response of the position loop, respectively; by this, the quality of the driving platform 133 M t , The damping coefficient Ct of the guide rod 132 and the rigidity K of the guide rod 132.

鑑別目標是為了確保整體頻率響應,頻寬和共振頻率正確,為加速鑑別,使用速度迴路鑑別結果的轉動慣量J M及阻尼係數B M作為已知知識來鑑別位置迴路參數。 The goal of identification is to ensure that the overall frequency response, bandwidth and resonance frequency are correct. To speed up identification, use the moment of inertia J M and the damping coefficient B M of the speed loop identification result as known knowledge to identify the position loop parameters.

其中,本發明使用 PSO演算法的參數設置如下表1所示:Among them, the parameter settings of the PSO algorithm used in the present invention are shown in Table 1 below:

【表1】 參數 速度迴路 位置迴路 粒子數量 35 30 迭代次數 1000 1500 慣性稱重( w) 0.9 1 學習參數 c 1 b 1.5 1.5 c 1 s 0.5 0.5 c 2 b 1.5 1.5 c 2 s 0.5 0.5 錯誤稱重 w v 1=1 w p 1= 1 w v 2= 0.3 w p 2= 0.2 【Table 1】 parameter Speed loop Position loop Number of particles 35 30 Number of iterations 1000 1500 Inertial weighing ( w ) 0.9 1 Learning parameters c 1 b 1.5 1.5 c 1 s 0.5 0.5 c 2 b 1.5 1.5 c 2 s 0.5 0.5 Wrong weighing w v 1 =1 w p 1 = 1 w v 2 = 0.3 w p 2 = 0.2

各軸的鑑別結果參數如下表2所示:The identification result parameters of each axis are shown in Table 2 below:

【表2】 參數 X軸 Y軸 Z軸 A軸 C軸

Figure 02_image122
0.038085 0.055463 0.030151 0.030324 1.8874 Bm (Ns/m) 5.1249 8.8442 3.4242 3.8205 0.5 M t / m(kg) 241.0744 655.6798 123.8739 311.5166 X C t (Ns/m) 3.4295
Figure 02_image124
9.7142
Figure 02_image126
4.1544
Figure 02_image126
X X
K(N/m) 1.4571
Figure 02_image127
1.0069
Figure 02_image129
1.0237
Figure 02_image130
X X
【Table 2】 parameter X axis Y axis Z axis A axis C axis
Figure 02_image122
0.038085 0.055463 0.030151 0.030324 1.8874
Bm (Ns/m) 5.1249 8.8442 3.4242 3.8205 0.5 M t / m (kg) 241.0744 655.6798 123.8739 311.5166 X C t (Ns/m) 3.4295
Figure 02_image124
9.7142
Figure 02_image126
4.1544
Figure 02_image126
X X
K (N/m) 1.4571
Figure 02_image127
1.0069
Figure 02_image129
1.0237
Figure 02_image130
X X

[摩擦力之鑑別][Identification of Friction]

由於非線性現象影響工具驅動系統1的性能,故在進給驅動系統中,非線性現象的摩擦力和背隙不可忽略;本發明在一實施例中係使用圓形測試獲得的變速度數據以鑑別摩擦力,故無需如習知需獲取大量之每種不同速度下的速度數據和電流數據,而係僅設定一路徑供該工具驅動系統1進行變體速度運行;擷取所述伺服控制器12生成命令至所述馬達131之電流數據以及對應之速度數據;建立一穩態摩擦力函數,並經演算法鑑別正轉時之黏滯摩擦係數

Figure 02_image047
、負轉時之黏滯摩擦係數
Figure 02_image049
、黏滯摩擦之初始係數
Figure 02_image051
及靜摩擦係數
Figure 02_image051
。 Since the nonlinear phenomenon affects the performance of the tool drive system 1, in the feed drive system, the friction and backlash of the nonlinear phenomenon cannot be ignored; in one embodiment of the present invention, the variable speed data obtained by the circular test is used to To identify friction, it is not necessary to obtain a large amount of speed data and current data at each different speed as known, but only one path is set for the tool drive system 1 to perform variable speed operation; capture the servo controller 12 Generate current data and corresponding speed data commanded to the motor 131; establish a steady-state friction force function, and use an algorithm to identify the viscous friction coefficient during forward rotation
Figure 02_image047
, Viscous friction coefficient during negative rotation
Figure 02_image049
, The initial coefficient of viscous friction
Figure 02_image051
And static friction coefficient
Figure 02_image051
.

在一具體之實施例中,本發明使用簡化之摩擦力模型,如第7圖所示,並可將該簡化之穩態摩擦力函數

Figure 02_image053
表示為 In a specific embodiment, the present invention uses a simplified friction force model, as shown in Figure 7, and the simplified steady-state friction force function
Figure 02_image053
Expressed as

Figure 02_image055
;其中,dv為受靜摩擦影響之低速範圍;此外,摩擦力在運動轉向時具有更明顯的影響,因此,本發明係於不同速度使用不同的學習權重予以鑑別之,即對於較低速度使用較大的權重並且對較高速度使用較小的權重。因此,選擇優化的目標函數E new
Figure 02_image055
; Among them, dv is the low-speed range affected by static friction; in addition, friction has a more obvious impact on the movement and steering. Therefore, the present invention uses different learning weights to identify different speeds, that is, the use of higher speeds for lower speeds Large weights and use smaller weights for higher speeds. Therefore, the optimized objective function E new is selected as

Figure 02_image057
Figure 02_image057

Figure 02_image059
Figure 02_image059

其中,

Figure 02_image061
是誤差權重。 among them,
Figure 02_image061
Is the error weight.

用於摩擦力鑑別的PSO演算法參數設置如下表3所示:The PSO algorithm parameter settings for friction identification are shown in Table 3 below:

【表3】 參數 簡化模型 粒子數量 20 迭代次數 300 慣性稱重( w) 0.9 學習參數 c 1 b 1.5 c 1 s 0.5 c 2 b 1.5 c 2 s 0.5 【table 3】 parameter Simplified model Number of particles 20 Number of iterations 300 Inertial weighing ( w ) 0.9 Learning parameters c 1 b 1.5 c 1 s 0.5 c 2 b 1.5 c 2 s 0.5

本發明摩擦力鑑別結果下表4所示:The friction identification results of the present invention are shown in Table 4 below:

【表4】 參數 X軸 Y軸 Z軸 A軸 C軸

Figure 02_image134
0.0003399 0.0002776 0.0003542 0.0007542 0.0001880
Figure 02_image136
0.0003399 0.0002474 0.0003542 0.0011542 0.0001880
Figure 02_image137
0.9421 0.9971 0.8479 1.1479 0.6255
Figure 02_image139
1.5685 1.4357 1.5416 1.5816 0.7209
Figure 02_image141
10 10 10 10 5
【Table 4】 parameter X axis Y axis Z axis A axis C axis
Figure 02_image134
0.0003399 0.0002776 0.0003542 0.0007542 0.0001880
Figure 02_image136
0.0003399 0.0002474 0.0003542 0.0011542 0.0001880
Figure 02_image137
0.9421 0.9971 0.8479 1.1479 0.6255
Figure 02_image139
1.5685 1.4357 1.5416 1.5816 0.7209
Figure 02_image141
10 10 10 10 5

[背隙之鑑別][Identification of Backlash]

透過工具驅動系統1的單軸來回移動,可以藉由線性刻度和旋轉編碼器獲得驅動平台133位置訊號及馬達131速度訊號。因此,通過計算馬達131速度得到導導桿132位置訊號,可以得到導桿132位置訊號和驅動平台133位置訊號之間的關係;如第8圖所示,其係導桿132與驅動平台133間之背隙示意,其中 x act 是驅動平台133的位置, x l 是導桿132的位置, D b 是背隙值;並可說明驅動平台133的及導桿132在向前或向後移動時的誤差理論值是背隙值的一半,為確保導桿132及平台之間的誤差保持在背隙值的一半,故移動速度需要很慢,在前後往返運動過程中,擷取驅動平台133位置數據及馬達131速度數據,當馬達131到達相同位置時,比較前後平台的位置誤差,將驅動平台133及導桿132之間之位置相減,並透過最小平方法鑑別一背隙值,其係可表示為: Through the single-axis back and forth movement of the tool driving system 1, the position signal of the driving platform 133 and the speed signal of the motor 131 can be obtained by the linear scale and the rotary encoder. Therefore, by calculating the speed of the motor 131 to obtain the position signal of the guide rod 132, the relationship between the position signal of the guide rod 132 and the position signal of the driving platform 133 can be obtained; as shown in Figure 8, the relationship between the guide rod 132 and the driving platform 133 The backlash indicates that x act is the position of the driving platform 133, x l is the position of the guide rod 132, and D b is the backlash value; it can also indicate the driving platform 133 and the guide rod 132 when moving forward or backward The theoretical error value is half of the backlash value. In order to ensure that the error between the guide rod 132 and the platform remains at half of the backlash value, the moving speed needs to be very slow. During the back and forth movement, the position data of the drive platform 133 is captured. And motor 131 speed data. When the motor 131 reaches the same position, compare the position error of the front and rear platforms, subtract the position between the driving platform 133 and the guide rod 132, and identify a backlash value through the least square method. Expressed as:

Figure 02_image143
Figure 02_image143

其中,

Figure 02_image145
為驅動平台133及導桿132之間之位置差值,L 是路徑數據的長度。 among them,
Figure 02_image145
Is the position difference between the driving platform 133 and the guide rod 132, and L is the length of the path data.

[伺服調機方法-速度迴路][Servo Tuning Method-Speed Loop]

由於工具驅動系統1的響應過快往往會導致結構振動,故透過調整其參數可與提升其穩定度、性能及工作之精度。Since the response of the tool drive system 1 is too fast, it will often cause structural vibration, so by adjusting its parameters, its stability, performance and working accuracy can be improved.

如第9圖所示,本發明另提供一種伺服調機方法,其係應用於據上所述之系統鑑別方法,並在一實施例中係實際應用於MCU-5X搭配海德漢控制器,使用速度迴路的頻率響應來調整速度控制器的參數,其目在於最大化閉迴路的速度迴路的系統頻寬,從而獲得更好的響應性能並改善穩態誤差;其速度迴路之調機步驟包含:As shown in Figure 9, the present invention also provides a servo tuning method, which is applied to the system identification method described above, and in one embodiment is actually applied to MCU-5X with a HEIDENHAIN controller. The frequency response of the speed loop is used to adjust the parameters of the speed controller, and its purpose is to maximize the system bandwidth of the closed loop speed loop, so as to obtain better response performance and improve the steady-state error; the adjustment steps of the speed loop include:

界定求得最大化閉迴路之速度迴路之系統頻寬Bw vel Define the system bandwidth Bw vel of the speed loop that maximizes the closed loop;

限制一相依於該速度迴路頻率響應之共振峰值;在一實施例中,該共振峰值

Figure 02_image063
為速度迴路頻率響應之最大值,且界定
Figure 02_image065
,限制共振峰值之目的在於避免更大的過衝及振動情形; Limit a resonance peak that depends on the frequency response of the speed loop; in one embodiment, the resonance peak
Figure 02_image063
Is the maximum value of the frequency response of the speed loop, and defines
Figure 02_image065
, The purpose of limiting the resonance peak is to avoid greater overshoot and vibration;

界定一相依於該速度迴路頻率響應之增益邊限及相位邊限,增益邊限和相位邊限用於確認整體系統之穩定性和穩健性;在一實施例中,該增益邊限G M

Figure 02_image067
;其中,
Figure 02_image069
為所述工具驅動系統1速度迴路之開迴路轉移函數,
Figure 02_image071
為相位交叉頻率;並限制增益邊限G M>10 Db;該相位邊限P M
Figure 02_image073
;其中,
Figure 02_image069
為所述工具驅動系統1速度迴路之開迴路轉移函數,
Figure 02_image075
為增益交叉頻率;並限制相位邊限P M> 45˚。 Define a gain margin and phase margin that depend on the frequency response of the speed loop. The gain margin and phase margin are used to confirm the stability and robustness of the overall system; in one embodiment, the gain margin G M is
Figure 02_image067
;among them,
Figure 02_image069
Is the open-loop transfer function of the speed loop of the tool drive system 1,
Figure 02_image071
Is the phase cross frequency; and limit the gain margin G M >10 Db; the phase margin P M is
Figure 02_image073
;among them,
Figure 02_image069
Is the open-loop transfer function of the speed loop of the tool drive system 1,
Figure 02_image075
Is the gain crossover frequency; and limits the phase margin P M > 45˚.

界定伺服控制器12之參數中之比例增益值K vp及積分增益值K vi之間的比率;在一實施例中,,比例增益值K vp及積分增益值Kvi之間的比率

Figure 02_image077
Figure 02_image079
Defines the ratio between the proportional gain value K vp and the integral gain value K vi in the parameters of the servo controller 12; in one embodiment, the ratio between the proportional gain value K vp and the integral gain value Kvi
Figure 02_image077
for
Figure 02_image079
.

在符合上述約束條件的情況下,求得比例增益值K vp及積分增益值K vi,並調整輸入於該伺服控制器12,即可達致優化工具驅動系統1速度迴路之目的。 Under the condition that the above constraint conditions are met, the proportional gain value K vp and the integral gain value K vi are obtained , and the adjustment input is input to the servo controller 12 to achieve the goal of optimizing the speed loop of the tool drive system 1.

[伺服調機方法-位置迴路][Servo Tuning Method-Position Loop]

本發明之伺服調機方法更包含一位置迴路之步驟,位置迴路的頻率響應數據用於調整位置控制器的參數,其步驟包含:The servo tuning method of the present invention further includes a step of a position loop. The frequency response data of the position loop is used to adjust the parameters of the position controller. The steps include:

界定優化問題是求得最大化閉迴路之位置迴路之系統頻寬Bw posDefining the optimization problem is to maximize the system bandwidth Bw pos of the position loop of the closed loop;

限制為伺服控制器12之參數K p;在一實施例中,伺服控制器12之參數K p限制為

Figure 02_image083
Figure 02_image156
增加的目標為提高響應速度;惟,
Figure 02_image158
過大會導致位置迴路的共振峰變大甚至使系統變得不穩定,故須予限定; It is limited to the parameter K p of the servo controller 12; in one embodiment, the parameter K p of the servo controller 12 is limited to
Figure 02_image083
,
Figure 02_image156
The goal of the increase is to improve the response speed; however,
Figure 02_image158
Too big will cause the resonance peak of the position loop to become larger and even make the system unstable, so it must be limited;

限制一相依於該位置迴路頻率響應之共振峰值;在一實施例中,相依於該位置迴路頻率響應之共振峰值M pp之限制為

Figure 02_image085
,其中,共振峰值M pp為位置迴路頻率響應之最大值;其中,限制共振峰值係可避免更大的過衝和振動情形;由於位置迴路將直接影響產品的軌跡和質量,故過衝的限制比速度迴路更嚴謹。 Limit a resonance peak dependent on the frequency response of the position loop; in one embodiment, the limit of the resonance peak M pp dependent on the frequency response of the position loop is
Figure 02_image085
, Where the resonance peak M pp is the maximum value of the frequency response of the position loop; among them, limiting the resonance peak can avoid greater overshoot and vibration; because the position loop will directly affect the trajectory and quality of the product, the overshoot is limited More rigorous than the speed loop.

界定一相依於該位置迴路頻率響應之增益邊限及相位邊限;在一實施例中,係限制增益邊限G M>15dB,且限制相位邊限P M> 45˚;位置迴路的增益邊限和相位邊限用於確認系統穩定性和穩健性,在加工中,外部負載將直接影響位置迴路的增益邊限和相位邊限,因此,增益邊限和相位邊限的限制比速度迴路更寬容。 Define a gain margin and phase margin that depend on the frequency response of the position loop; in one embodiment, limit the gain margin G M > 15dB and limit the phase margin P M >45˚; the gain margin of the position loop The limit and phase limit are used to confirm the stability and robustness of the system. During processing, the external load will directly affect the gain limit and phase limit of the position loop. Therefore, the gain limit and phase limit are more limited than the speed loop. tolerant.

限制最大化閉迴路之位置迴路的系統頻寬

Figure 02_image081
;在符合上述約束條件的情況下,求得伺服控制器12之參數K p,並調整輸入於該伺服控制器12,藉以優化工具驅動系統1之位置迴路。 Limit the system bandwidth of the position loop that maximizes the closed loop
Figure 02_image081
; Under the condition that the above-mentioned constraint conditions are met, the parameter K p of the servo controller 12 is obtained and adjusted and input to the servo controller 12 to optimize the position loop of the tool drive system 1.

[伺服調機方法-具有前饋控制單元122的位置迴路][Servo Tuning Method-Position Loop with Feedforward Control Unit 122]

前述之伺服調機方法係於無前饋控制單元122的情況下調整速度控制器和位置控制器的參數,在此考慮前饋控制單元122對位置迴路的頻率響應的影響,並調整前饋控制單元122的參數,故優化問題是使頻率響應接近水平,透過適當設置前饋參數,可避免響應失真並消除伺服落後,其步驟更包含:界定該前饋控制單元122相依且控制速度及加速度之一常數係數AF;令位置迴路的頻率響應接近水平,並界定優化問題之函數E之最小值為The aforementioned servo tuning method is to adjust the parameters of the speed controller and the position controller without the feedforward control unit 122. Here, consider the influence of the feedforward control unit 122 on the frequency response of the position loop, and adjust the feedforward control. Therefore, the optimization problem of the parameters of the unit 122 is to make the frequency response close to the level. By appropriately setting the feedforward parameters, the response distortion can be avoided and the servo lag can be eliminated. The steps further include: defining the feedforward control unit 122 dependent and controlling the speed and acceleration A constant coefficient AF; make the frequency response of the position loop close to the level, and define the minimum value of the function E of the optimization problem as

Figure 02_image087
;擷取函數E為最小值時之常數係數AF,並對應輸入於該前饋控制單元122;前饋控制單元122之功能可以改善伺服落後和響應衰減,故加工頻率在位置迴路的頻寬內,藉可避免響應失真。
Figure 02_image087
; Capture the constant coefficient AF when the function E is the minimum value, and correspondingly input it to the feedforward control unit 122; the function of the feedforward control unit 122 can improve the servo lag and response attenuation, so the processing frequency is within the bandwidth of the position loop , Which can avoid response distortion.

本發明用於伺服調機方法之PSO演算法的參數設置如下表5所示:The parameter settings of the PSO algorithm used in the servo tuning method of the present invention are shown in Table 5 below:

【表5】 參數 速度迴路 位置迴路 具有前饋控制單元122的位置迴路 粒子數量 10 10 20 迭代次數 300 300 300 慣性稱重(w) 0.9 1 0.9 學習工廠 c 1 b 1.5 1.2 1.5 c 1 s 0.5 0.2 0.5 c 2 b 1.5 1.2 1.5 c 2 s 0.5 0.2 0.5 【table 5】 parameter Speed loop Position loop Position loop with feedforward control unit 122 Number of particles 10 10 20 Number of iterations 300 300 300 Inertial weighing (w) 0.9 1 0.9 Learning factory c 1 b 1.5 1.2 1.5 c 1 s 0.5 0.2 0.5 c 2 b 1.5 1.2 1.5 c 2 s 0.5 0.2 0.5

調機前各軸之預設參數如下表6所示:The preset parameters of each axis before adjustment are shown in Table 6 below:

【表6】 參數 X軸 Y軸 Z軸 A軸 C軸 K p 48 32 60 16 32 K vp 10 10 8 12 200 K vi 1000 1000 800 1400 20000 VF 1 1 1 1 1 AF 0.0282 0.0458 0.0251 0.02 1.2333 【Table 6】 parameter X axis Y axis Z axis A axis C axis K p 48 32 60 16 32 K vp 10 10 8 12 200 K vi 1000 1000 800 1400 20000 VF 1 1 1 1 1 AF 0.0282 0.0458 0.0251 0.02 1.2333

調機前各軸之頻寬值如下表7所示:The bandwidth values of each axis before tuning are shown in Table 7 below:

【表7】 頻寬值 (Hz) X軸 Y軸 Z軸 A軸 C軸 Bw Vel . 42.866 22.18 47.881 73.623 41.109 Bw Pos . 8.52 6.41 12.026 1.302 5.562 Bw Cri . 61.817 38.756 61.388 x 23.97 【Table 7】 Bandwidth value (Hz) X axis Y axis Z axis A axis C axis Bw Vel . 42.866 22.18 47.881 73.623 41.109 Bw Pos . 8.52 6.41 12.026 1.302 5.562 Bw Cri . 61.817 38.756 61.388 x 23.97

調機後各軸之伺服控制器12參數如下表8所示:The servo controller 12 parameters of each axis after adjustment are shown in Table 8 below:

【表8】 參數 X軸 Y軸 Z軸 A軸 C軸 K p 69 46 100 36 61 K vp 18 20 15 24 496 K vi 1890 1941 1575 2546 49825 VF 1 1 1 1 1 AF 0.0364 0.0776 0.0349 0.008 1.1799 【Table 8】 parameter X axis Y axis Z axis A axis C axis K p 69 46 100 36 61 K vp 18 20 15 twenty four 496 K vi 1890 1941 1575 2546 49825 VF 1 1 1 1 1 AF 0.0364 0.0776 0.0349 0.008 1.1799

調機後各軸之頻寬值如下表9所示:The bandwidth values of each axis after tuning are shown in Table 9 below:

【表9】 頻寬值 (Hz) X軸 Y軸 Z軸 A軸 C軸 Bw Vel . 84.375 55.449 93.209 147.238 82.218 Bw Pos . 12.838 8.935 20.391 3.67 11.121 Bw Cri . 51.552 32.294 51.807 x 122.774 【Table 9】 Bandwidth value (Hz) X axis Y axis Z axis A axis C axis Bw Vel . 84.375 55.449 93.209 147.238 82.218 Bw Pos . 12.838 8.935 20.391 3.67 11.121 Bw Cri . 51.552 32.294 51.807 x 122.774

並請參閱第10a.1至10e.3圖所示,可以觀察到速度迴路和位置迴路的頻寬得到改善,最終伺服調機結果之頻率響應比調機前更佳。Please also refer to the figures 10a.1 to 10e.3. It can be observed that the bandwidth of the speed loop and position loop has been improved, and the frequency response of the final servo tuning result is better than before the tuning.

為驗證伺服調機方法的優化可以有效地應用於工具驅動系統1,故利用時域實驗來證明伺服調機結果,在此採用循圓測試,設定進給速率1200 [mm / min]和半徑1 [mm] 進行驗證,如第11a至11c圖之循圓軌跡實驗的輪廓誤差及下表10所示:In order to verify that the optimization of the servo adjustment method can be effectively applied to the tool drive system 1, the time domain experiment is used to prove the result of the servo adjustment, and the circular test is used here, and the feed rate is 1200 [mm / min] and the radius 1 is set. [mm] Perform verification, as shown in the contour error of the circular trajectory experiment in Figures 11a to 11c and Table 10 below:

【表10】 路徑 輪廓誤差 追蹤誤差 均方根誤差 (mm) 最大值 (mm) 均方根誤差(mm) 最大值 (mm) XY 循圓 0.0102 0.0215 0.5089 0.5228 0.0046 0.0118 0.5060 0.5133 改善 54.9 % 45.1 % 0.57 % 1.82 % XZ 循圓 0.0066 0.0142 0.5087 0.5140 0.0029 0.0068 0.5064 0.5085 改善 56.1 % 52.1 % 0.45 1.07 % YZ 循圓 0.0101 0.0190 0.5092 0.5218 0.0049 0.0116 0.5067 0.5133 改善 51.5 % 38.9 % 0.49 % 1.63 % 【Table 10】 path Contour error Tracking error round Root mean square error (mm) Maximum (mm) Root mean square error (mm) Maximum (mm) XY circle before 0.0102 0.0215 0.5089 0.5228 Rear 0.0046 0.0118 0.5060 0.5133 improve 54.9% 45.1% 0.57% 1.82% XZ circle before 0.0066 0.0142 0.5087 0.5140 Rear 0.0029 0.0068 0.5064 0.5085 improve 56.1% 52.1% 0.45 1.07% YZ circle before 0.0101 0.0190 0.5092 0.5218 Rear 0.0049 0.0116 0.5067 0.5133 improve 51.5% 38.9% 0.49% 1.63%

由前述者可觀察到輪廓誤差明顯改善,而追蹤誤差略有改善,且經比較輪廓誤差和跟踪的改進程度,顯見本發明伺服調機結果是具可靠性的。From the foregoing, it can be observed that the contour error is significantly improved, and the tracking error is slightly improved. After comparing the contour error and the degree of improvement of the tracking, it is obvious that the servo tuning result of the present invention is reliable.

[機台老化診斷方法][Machine aging diagnosis method]

由於當機台老化時,機台通常會更容易有震動現象的發生,頻寬改變,系統響應改變的現象,故透過前述之鑑別方法中之參數的變動以診斷機台是否老化,其步驟如下:When the machine is aging, the machine is usually more prone to vibration, bandwidth changes, and system response changes. Therefore, the change of the parameters in the aforementioned identification method can be used to diagnose whether the machine is aging. The steps are as follows :

S004:界定一變動值及一閥值,該變動值係選自至少其一由所述頻寬BW、第一共振頻率F r、轉動慣量J m、阻尼係數B m、阻尼係數C t及剛性K所組成之群組; S004: Define a variation value and a threshold value. The variation value is selected from at least one of the bandwidth BW, the first resonance frequency F r , the moment of inertia J m , the damping coefficient B m , the damping coefficient C t and the rigidity The group formed by K;

S005:重複紀錄前述之鑑別方法中,每一時點之變動值,並於所述變動值之變化量大於該閥值時診斷該工具驅動系統1已老化。S005: Repeatedly record the variation value at each time point in the aforementioned identification method, and diagnose that the tool driving system 1 is aging when the variation value of the variation value is greater than the threshold value.

在一具體之實施例中,如第12a至12c圖所示,其分別為馬達131阻尼係數B m變異、導桿132阻尼係數C t變異及導桿132剛性K變異之系統響應,藉可觀察到當馬達131阻尼係數B m變異對應到系統響應變差;當導桿132阻尼係數C t變異對應到系統共振峰值變大;當導桿132剛性K變異對應到系統共振頻變小和共振峰值變大,因此可以透過鑑別參數的變異來判定機台老化。 In a specific embodiment, as shown in Figures 12a to 12c, they are the system response of the variation of the damping coefficient B m of the motor 131, the variation of the damping coefficient C t of the guide rod 132, and the variation of the stiffness K of the guide rod 132, which can be observed When the variation of the damping coefficient B m of the motor 131 corresponds to the deterioration of the system response; when the variation of the damping coefficient C t of the guide rod 132 corresponds to the increase of the system resonance peak; when the variation of the stiffness K of the guide rod 132 corresponds to the decrease of the system resonance frequency and the resonance peak It becomes larger, so the aging of the machine can be judged by identifying the variation of the parameters.

此外,從頻域訊號可以觀察到頻寬、共振頻與共振峰值的改變,另外,從時域訊號可以觀察到輪廓誤差與追蹤誤差變差;故在一具體之實施例中,係將該變動值包含剛性K、頻寬BW及第一共振頻率F r,且設定該閥值為-20%;藉以於剛性K、頻寬BW及第一共振頻率F r同時下降20%時,則判斷其已老化,建議進行調機或維護。 In addition, the changes in bandwidth, resonance frequency, and resonance peak can be observed from the frequency domain signal. In addition, the profile error and tracking error deterioration can be observed from the time domain signal; therefore, in a specific embodiment, the change is The value includes stiffness K, bandwidth BW and first resonance frequency F r , and the threshold is set to -20%; when stiffness K, bandwidth BW, and first resonance frequency F r decrease at the same time by 20%, it is judged It has been aging, it is recommended to adjust or maintain the machine.

在另一實施例中,亦可藉由界定一路徑令該工具驅動系統1運行,如:循圓測試;並記錄並比對該工具驅動系統1運行之軌跡;且透過設定一誤差值;並於該軌跡比對該路徑之誤差大於該誤差值時診斷該工具驅動系統1已老化。In another embodiment, the tool driving system 1 can also be operated by defining a path, such as a circular test; and recording and comparing the running trajectory of the tool driving system 1; and by setting an error value; and It is diagnosed that the tool driving system 1 is aging when the error of the trajectory compared to the path is greater than the error value.

在另一實施例中,亦可藉由如前述鑑別穩態摩擦力,並於其大於該閥值時診斷該工具驅動系統1已老化。In another embodiment, it is also possible to identify the steady-state friction force as described above, and diagnose that the tool driving system 1 is aging when it is greater than the threshold.

而當診斷為老化時,可執行前述之伺服調機方法,或進行相關維護,藉以改善老化後之性能及精度。When it is diagnosed as aging, the aforementioned servo tuning method or related maintenance can be performed to improve the performance and accuracy after aging.

綜上所述,本發明所揭露之技術手段確能有效解決習知等問題,並達致預期之目的與功效,且申請前未見諸於刊物、未曾公開使用且具長遠進步性,誠屬專利法所稱之發明無誤,爰依法提出申請,懇祈  鈞上惠予詳審並賜准發明專利,至感德馨。In summary, the technical means disclosed in the present invention can effectively solve the conventional problems and achieve the expected purpose and effect. It has not been seen in the publications, has not been used publicly, and has long-term progress before the application. The patent law claims that the invention is correct. Yan filed an application in accordance with the law and prayed that Jun Shanghui would give a detailed examination and grant a patent for invention.

惟以上所述者,僅為本發明之數種較佳實施例,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明書內容所作之等效變化與修飾,皆應仍屬本發明專利涵蓋之範圍內。However, the above are only a few preferred embodiments of the present invention, and should not be used to limit the scope of implementation of the present invention, that is, all equivalent changes and modifications made in accordance with the scope of the patent application of the present invention and the content of the invention specification are It should still fall within the scope of the invention patent.

1 工具驅動系統 11 主計算機 12 伺服控制器 121 PID控制器 122 前饋控制單元 13 機械結構 131 馬達 132 導桿 133 驅動平台 1 Tool drive system 11 Main computer 12 Servo controller 121 PID controller 122 Feedforward control unit 13 Mechanical structure 131 Motor 132 guide rod 133 Drive Platform

第1圖係本發明工具驅動系統之基本架構示意圖。 第2圖係本發明線性軸模型之結構示意圖。 第3圖係本發明A軸旋轉軸模型之結構示意圖。 第4圖係本發明C軸旋轉軸模型之結構示意圖。 第5圖係本發明工具驅動系統之架構示意圖。 第6a圖係X軸分別於位置迴路及速度迴路之輸入訊號與輸出訊號之訊號圖。 第6b圖係Y軸分別於位置迴路及速度迴路之輸入訊號與輸出訊號之訊號圖。 第6c圖係Z軸分別於位置迴路及速度迴路之輸入訊號與輸出訊號之訊號圖。 第6d圖係A軸分別於位置迴路及速度迴路之輸入訊號與輸出訊號之訊號圖。 第6e圖係C軸分別於位置迴路及速度迴路之輸入訊號與輸出訊號之訊號圖。 第7圖係本發明簡化之摩擦力模型示意圖。 第8圖係本發明導桿與驅動平台間之背隙示意圖。 第9圖係本發明伺服調機方法之簡易流程示意圖。 第10a.1圖係本發明X軸於速度迴路之調機前後訊號比較圖。 第10a.2圖係本發明X軸於位置迴路之調機前後訊號比較圖。 第10a.3圖係本發明X軸於前饋位置迴路之調機前後訊號比較圖。 第10b.1圖係本發明Y軸於速度迴路之調機前後訊號比較圖。 第10b.2圖係本發明Y軸於位置迴路之調機前後訊號比較圖。 第10b.3圖係本發明Y軸於前饋位置迴路之調機前後訊號比較圖。 第10c.1圖係本發明Z軸於速度迴路之調機前後訊號比較圖。 第10c.2圖係本發明Z軸於位置迴路之調機前後訊號比較圖。 第10c.3圖係本發明Z軸於前饋位置迴路之調機前後訊號比較圖。 第10d.1圖係本發明A軸於速度迴路之調機前後訊號比較圖。 第10d.2圖係本發明A軸於位置迴路之調機前後訊號比較圖。 第10d.3圖係本發明A軸於前饋位置迴路之調機前後訊號比較圖。 第10e.1圖係本發明C軸於速度迴路之調機前後訊號比較圖。 第10e.2圖係本發明C軸於位置迴路之調機前後訊號比較圖。 第10e.3圖係本發明C軸於前饋位置迴路之調機前後訊號比較圖。 第11a圖係本發明於XY平面循圓於調機前後之軌跡輪廓誤差之比較圖。 第11b圖係本發明於XZ平面循圓於調機前後之軌跡輪廓誤差之比較圖。 第11c圖係本發明於YZ平面循圓於調機前後之軌跡輪廓誤差之比較圖。 第12a圖係本發明馬達阻尼係數衰減之訊號比較圖。 第12b圖係本發明導桿阻尼係數衰減之訊號比較圖。 第12c圖係本發明導桿剛性衰減之訊號比較圖。 Figure 1 is a schematic diagram of the basic structure of the tool drive system of the present invention. Figure 2 is a schematic diagram of the structure of the linear axis model of the present invention. Figure 3 is a schematic diagram of the structure of the A-axis rotating shaft model of the present invention. Figure 4 is a schematic diagram of the structure of the C-axis rotating shaft model of the present invention. Figure 5 is a schematic diagram of the structure of the tool drive system of the present invention. Figure 6a is the signal diagram of the input signal and output signal of the position loop and the speed loop of the X axis. Figure 6b is the signal diagram of the input signal and output signal of the Y-axis in the position loop and the speed loop. Figure 6c is the signal diagram of the input signal and output signal of the Z axis in the position loop and the speed loop. Figure 6d is the signal diagram of the input signal and output signal of the A axis in the position loop and the speed loop. Figure 6e is the signal diagram of the input signal and output signal of the C axis in the position loop and the speed loop. Figure 7 is a schematic diagram of the simplified friction model of the present invention. Figure 8 is a schematic diagram of the backlash between the guide rod and the driving platform of the present invention. Figure 9 is a simplified flow chart of the servo tuning method of the present invention. Figure 10a.1 is a comparison diagram of signals before and after adjustment of the X axis in the speed loop of the present invention. Figure 10a.2 is a comparison diagram of the signals before and after adjustment of the X axis in the position loop of the present invention. Figure 10a.3 is a comparison diagram of signals before and after tuning of the X-axis in the feedforward position loop of the present invention. Figure 10b.1 is a comparison diagram of the signals before and after adjustment of the Y-axis in the speed loop of the present invention. Figure 10b.2 is a comparison diagram of signals before and after adjustment of the Y-axis in the position loop of the present invention. Figure 10b.3 is a comparison diagram of signals before and after adjustment of the Y-axis in the feedforward position loop of the present invention. Figure 10c.1 is a comparison diagram of signals before and after adjustment of the Z axis in the speed loop of the present invention. Figure 10c.2 is a comparison diagram of signals before and after adjustment of the Z axis in the position loop of the present invention. Figure 10c.3 is a comparison diagram of signals before and after adjustment of the Z axis in the feedforward position loop of the present invention. Figure 10d.1 is a comparison diagram of the signals before and after adjustment of the A-axis in the speed loop of the present invention. Figure 10d.2 is a comparison diagram of the signals before and after adjustment of the A-axis in the position loop of the present invention. Figure 10d.3 is a comparison diagram of signals before and after adjustment of the A-axis in the feedforward position loop of the present invention. Figure 10e.1 is a comparison diagram of the signals before and after adjustment of the C axis in the speed loop of the present invention. Figure 10e.2 is a comparison diagram of signals before and after adjustment of the C axis in the position loop of the present invention. Figure 10e.3 is a comparison diagram of signals before and after adjustment of the C-axis in the feedforward position loop of the present invention. Figure 11a is a comparison diagram of the contour error of the trajectory of the present invention in the XY plane before and after the adjustment of the machine. Figure 11b is a comparison diagram of the contour error of the trajectory before and after adjusting the machine in the XZ plane of the present invention. Figure 11c is a comparison diagram of the contour error of the trajectory of the present invention in the YZ plane before and after the adjustment of the machine. Figure 12a is a signal comparison diagram of the attenuation of the damping coefficient of the motor of the present invention. Figure 12b is a signal comparison diagram of the attenuation of the damping coefficient of the guide rod of the present invention. Figure 12c is a signal comparison diagram of the attenuation of the rigidity of the guide rod of the present invention.

Claims (18)

一種系統鑑別方法,其步驟包含:輸出一掃頻訊號於一工具驅動系統進行掃頻,藉以激發該工具驅動系統響應,並取得一速度迴路及一位置迴路之頻率響應;其中,該工具驅動系統具有至少一伺服控制器,其控制至少一馬達,至少一分別受所述馬達驅動旋轉之導桿,及至少一分別從動於所述導桿之驅動平台;建立一速度迴路轉移函數,並經運算以鑑別該工具驅動系統中具有之馬達的轉動慣量JM及旋轉運動之阻尼係數BM;該速度迴路轉移函數
Figure 108125677-A0305-02-0028-24
(s)為
Figure 108125677-A0305-02-0028-1
;其中,Kp、Kvp、Kvi為伺服控制器之參數,Kt為馬達轉矩常數;且其係經演算法計算以鑑別該轉動慣量JM及阻尼係數BM;該演算法為PSO(粒子群優化)演算法,且界定優化問題為
Figure 108125677-A0305-02-0028-3
;並限制
Figure 108125677-A0305-02-0028-25
Figure 108125677-A0305-02-0028-26
>0;其中,G v ( i )| dBG v ( i )| dB速度迴路之頻率響應,Nv為速度迴路之頻率響應數據之長度、w v1w v2分別為速度迴路之頻率響應的大小及相位權重值;以及建立一位置迴路轉移函數,並將該轉動慣量及旋轉運動之阻尼係數代入該位置迴路轉移函數,並經運算鑑別一驅動平台質量Mt、導桿之阻尼係數Ct及導桿之剛性K。
A system identification method, the steps include: outputting a frequency sweep signal in a tool driving system to perform frequency scanning, thereby stimulating the response of the tool driving system, and obtaining the frequency response of a speed loop and a position loop; wherein, the tool driving system has At least one servo controller, which controls at least one motor, at least one guide rod driven and rotated by the motor, and at least one driving platform respectively driven by the guide rod; establishes a speed loop transfer function, and calculates it To identify the moment of inertia J M of the motor and the damping coefficient B M of the rotary motion in the tool drive system; the speed loop transfer function
Figure 108125677-A0305-02-0028-24
(s) is
Figure 108125677-A0305-02-0028-1
; Among them, K p , K vp , K vi are the parameters of the servo controller, and K t is the motor torque constant; and it is calculated by an algorithm to identify the moment of inertia J M and the damping coefficient B M ; the algorithm is PSO (Particle Swarm Optimization) algorithm, and define the optimization problem as
Figure 108125677-A0305-02-0028-3
; And limit
Figure 108125677-A0305-02-0028-25
,
Figure 108125677-A0305-02-0028-26
>0; where G v ( i )| dB andG v ( i )| dB are the frequency response of the speed loop, N v is the length of the frequency response data of the speed loop, w v 1 and w v 2 respectively Is the magnitude and phase weight value of the frequency response of the speed loop; and establishes a position loop transfer function, and substitutes the rotational inertia and the damping coefficient of the rotational motion into the position loop transfer function, and the mass of a driving platform M t , The damping coefficient C t of the guide rod and the rigidity K of the guide rod.
如請求項1所述之系統鑑別方法,其中,該工具驅動系統之所述馬達、導桿及驅動平台係呈線性軸設置,且該線性軸之位置迴路轉移函數
Figure 108125677-A0305-02-0029-44
(s)為
Figure 108125677-A0305-02-0029-8
; 其中,
Figure 108125677-A0305-02-0029-22
,
Figure 108125677-A0305-02-0029-18
,
Figure 108125677-A0305-02-0029-19
,
Figure 108125677-A0305-02-0029-4
且其係經演算法計算以鑑別該驅動平台質量Mt、導桿之阻尼係數Ct及導桿之剛性K。
The system identification method according to claim 1, wherein the motor, the guide rod and the driving platform of the tool driving system are arranged in a linear axis, and the position loop transfer function of the linear axis
Figure 108125677-A0305-02-0029-44
(s) is
Figure 108125677-A0305-02-0029-8
; among them,
Figure 108125677-A0305-02-0029-22
,
Figure 108125677-A0305-02-0029-18
,
Figure 108125677-A0305-02-0029-19
,
Figure 108125677-A0305-02-0029-4
And it is calculated by an algorithm to identify the mass M t of the driving platform, the damping coefficient C t of the guide rod and the rigidity K of the guide rod.
如請求項1所述之系統鑑別方法,其中,該工具驅動系統之所述導桿係接設於所述驅動平台一端,藉以令所述驅動平台繞所述導桿進行旋轉運動,藉以形成搖床之旋轉軸A之設置,且該旋轉軸A之位置迴路轉移函數
Figure 108125677-A0305-02-0029-32
(s)為
Figure 108125677-A0305-02-0029-5
且其係經演算法計算以鑑別該驅動平台質量Mt
The system identification method according to claim 1, wherein the guide rod of the tool driving system is connected to one end of the driving platform, so that the driving platform rotates around the guide rod, thereby forming a rocker The setting of the rotary axis A of the bed, and the position loop transfer function of the rotary axis A
Figure 108125677-A0305-02-0029-32
(s) is
Figure 108125677-A0305-02-0029-5
And it is calculated by an algorithm to identify the quality of the driving platform M t .
如請求項1所述之系統鑑別方法,其中,該工具驅動系統之所述導桿係接設於所述驅動平台中心,藉以令所述驅動平台以所述導桿為旋轉軸C而進行旋轉,且該旋轉軸C之位置迴路轉移函數
Figure 108125677-A0305-02-0029-31
(s)為
Figure 108125677-A0305-02-0029-6
且其係經演算法計算以鑑別該轉動慣量JM及阻尼係數BM
The system identification method according to claim 1, wherein the guide rod of the tool driving system is connected to the center of the driving platform, so that the driving platform rotates with the guide rod as the rotation axis C , And the position loop transfer function of the rotation axis C
Figure 108125677-A0305-02-0029-31
(s) is
Figure 108125677-A0305-02-0029-6
And it is calculated by an algorithm to identify the moment of inertia J M and the damping coefficient B M.
如請求項1至請求項4中任一項所述之系統鑑別方法,其中,該演算法為PSO(粒子群優化)演算法,且界定優化問題為
Figure 108125677-A0305-02-0030-10
限制
Figure 108125677-A0305-02-0030-33
,
Figure 108125677-A0305-02-0030-34
,
Figure 108125677-A0305-02-0030-35
>0;以及
Figure 108125677-A0305-02-0030-11
限制
Figure 108125677-A0305-02-0030-36
,
Figure 108125677-A0305-02-0030-37
,
Figure 108125677-A0305-02-0030-38
>0;其中,G p ( i )| dB 及∠G p ( i )為位置迴路之頻率響應,Np為位置迴路之頻率響應數據長度、wp1及wp2分別為位置迴路的頻率響應之大小及相位權重值。
The system identification method according to any one of claim 1 to claim 4, wherein the algorithm is a PSO (particle swarm optimization) algorithm, and the optimization problem is defined as
Figure 108125677-A0305-02-0030-10
limit
Figure 108125677-A0305-02-0030-33
,
Figure 108125677-A0305-02-0030-34
,
Figure 108125677-A0305-02-0030-35
>0; and
Figure 108125677-A0305-02-0030-11
limit
Figure 108125677-A0305-02-0030-36
,
Figure 108125677-A0305-02-0030-37
,
Figure 108125677-A0305-02-0030-38
>0; where G p ( i )| dB and ∠ G p ( i ) are the frequency response of the position loop, N p is the frequency response data length of the position loop, w p1 and w p2 are the frequency of the position loop respectively The magnitude and phase weight of the response.
如請求項1所述之系統鑑別方法,其步驟更包含:設定一路徑供該工具驅動系統進行變體速度運行;擷取所述伺服控制器生成命令至所述馬達之電流數據以及對應之速度數據;建立一穩態摩擦力函數,並經演算法鑑別正轉時之黏滯摩擦係數f a 、負轉時之黏滯摩擦係數f b 、黏滯摩擦之初始係數f d及靜摩擦係數f dThe system identification method according to claim 1, wherein the steps further include: setting a path for the tool drive system to perform variable speed operation; capturing the current data and the corresponding speed generated by the servo controller to the motor Data; establish a steady-state friction function, and use an algorithm to identify the viscous friction coefficient f a during forward rotation, the viscous friction coefficient during negative rotation f b , the initial coefficient of viscous friction f d and the static friction coefficient f d . 如請求項6所述之系統鑑別方法,其中,該穩態摩擦力函數 Fss,new
Figure 108125677-A0305-02-0031-48
; 其中,dv為受靜摩擦影響之低速範圍;透過演算法計算以鑑別該正轉時之黏滯摩擦係數f a 、負轉時之黏滯摩擦係數f b 、黏滯摩擦之初始係數f d及靜摩擦係數f d
The system identification method according to claim 6, wherein the steady-state friction function F ss,new is
Figure 108125677-A0305-02-0031-48
; Among them, dv is the low-speed range affected by static friction; the viscous friction coefficient f a during forward rotation, the viscous friction coefficient f b during negative rotation, the initial viscous friction coefficient f d and The coefficient of static friction f d .
如請求項7所述之系統鑑別方法,其中,該演算法為PSO(粒子群優化)演算法,且界定優化問題之目標函數Enew
Figure 108125677-A0305-02-0031-49
subject to
Figure 108125677-A0305-02-0031-50
,
Figure 108125677-A0305-02-0031-51
,
Figure 108125677-A0305-02-0031-52
,
Figure 108125677-A0305-02-0031-58
,and dv>0
Figure 108125677-A0305-02-0031-55
-
Figure 108125677-A0305-02-0031-56
>0; 其中,w 1,及w 2為誤差權重。
The system identification method according to claim 7, wherein the algorithm is a PSO (particle swarm optimization) algorithm, and the objective function E new that defines the optimization problem is
Figure 108125677-A0305-02-0031-49
subject to
Figure 108125677-A0305-02-0031-50
,
Figure 108125677-A0305-02-0031-51
,
Figure 108125677-A0305-02-0031-52
,
Figure 108125677-A0305-02-0031-58
,and dv >0
Figure 108125677-A0305-02-0031-55
-
Figure 108125677-A0305-02-0031-56
>0; Among them, w 1 and w 2 are error weights.
如請求項1所述之系統鑑別方法,其步驟更包含:擷取該工具驅動系統進行往返移動時之驅動平台位置數據及馬達速度數據;以及當馬達到達相同位置時,將驅動平台及導桿之間之位置相減,並透過最小平方法鑑別一背隙值。 The system identification method according to claim 1, wherein the steps further include: acquiring the driving platform position data and motor speed data when the tool driving system moves back and forth; and when the motor reaches the same position, driving the platform and the guide rod Subtract the positions between the two, and identify a backlash value through the least square method. 一種伺服調機方法,其係應用於如請求項1至請求項9中任一項所述之系統鑑別方法,其速度迴路之調機步驟包含:界定求得最大化閉迴路之速度迴路之系統頻寬Bwvel;限制一相依於該速度迴路頻率響應之共振峰值; 界定一相依於該速度迴路頻率響應之增益邊限及相位邊限;界定伺服控制器之參數中之比例增益值Kvp及積分增益值Kvi之間的比率;以及求得比例增益值Kvp及積分增益值Kvi,並調整輸入於該伺服控制器。 A servo tuning method, which is applied to the system identification method described in any one of claim 1 to claim 9, and the tuning steps of the speed loop include: defining the system that maximizes the closed loop speed loop Bandwidth Bw vel ; limit a resonance peak dependent on the frequency response of the speed loop; define a gain margin and phase margin dependent on the frequency response of the speed loop; define the proportional gain value K vp in the parameters of the servo controller and The ratio between the integral gain value K vi ; and the proportional gain value K vp and the integral gain value K vi are obtained , and the adjustment input is input to the servo controller. 如請求項10所述之伺服調機方法,其中,該共振峰值M vp 為速度迴路頻率響應之最大值,且界定Mvp
Figure 108125677-A0305-02-0032-39
1.5。
The servo tuning method according to claim 10, wherein the resonance peak value M vp is the maximum value of the frequency response of the speed loop, and M vp is defined
Figure 108125677-A0305-02-0032-39
1.5.
如請求項10所述之伺服調機方法,其中,該增益邊限GM
Figure 108125677-A0305-02-0032-14
其中,GH v ()為所述工具驅動系統速度迴路之開迴路轉移函數,ω c 為相位交叉頻率;並限制增益邊限GM>10dB。
The servo tuning method according to claim 10, wherein the gain margin G M is
Figure 108125677-A0305-02-0032-14
Among them, GH v ( ) is the open-loop transfer function of the speed loop of the tool driving system, and ω c is the phase cross frequency; and the gain margin G M is limited to >10dB.
如請求項10所述之伺服調機方法,其中,該相位邊限PMP M =180°+∠[GH v ( g )];其中,GH v ()為所述工具驅動系統速度迴路之開迴路轉移函數,ω g 為增益交叉頻率;並限制相位邊限PM>45°。 The servo tuning method according to claim 10, wherein the phase margin P M is P M =180 ° +∠[ GH v ( g )]; wherein, GH v ( ) is the tool drive system The open-loop transfer function of the speed loop, ω g is the gain crossover frequency; and the phase margin P M is restricted to >45°. 如請求項10所述之伺服調機方法,其中,比例增益值Kvp及積分增益值Kvi之間的比率R pi R pi =K vi /K vp =100±5%。 The servo tuning method according to claim 10, wherein the ratio R pi between the proportional gain value Kvp and the integral gain value Kvi is R pi = K vi / K vp = 100±5%. 如請求項10至請求項14中任一項所述之伺服調機方法,更包含一位置迴路之步驟:界定求得最大化閉迴路之位置迴路之系統頻寬Bwpos;限制為伺服控制器之參數Kp;限制一相依於該位置迴路頻率響應之共振峰值; 界定一相依於該位置迴路頻率響應之增益邊限及相位邊限;限制最大化閉迴路之位置迴路的系統頻寬Bw pos. <
Figure 108125677-A0305-02-0033-15
;求得伺服控制器之參數Kp,並調整輸入於該伺服控制器。
The servo tuning method described in any one of claim 10 to claim 14, further includes a position loop step: define the system bandwidth Bw pos of the position loop that maximizes the closed loop; limit it to the servo controller The parameter K p ; limit a resonance peak that depends on the frequency response of the position loop; define a gain margin and phase margin that depend on the frequency response of the position loop; limit the system bandwidth Bw pos of the position loop that maximizes the closed loop . <
Figure 108125677-A0305-02-0033-15
; Obtain the parameter K p of the servo controller, and adjust the input to the servo controller.
如請求項15所述之伺服調機方法,其中,伺服控制器之參數Kp限制為K p
Figure 108125677-A0305-02-0033-40
100,且相依於該位置迴路頻率響應之共振峰值Mpp之限制為M pp
Figure 108125677-A0305-02-0033-41
1,其中,共振峰值Mpp為位置迴路頻率響應之最大值。
The servo tuning method according to claim 15, wherein the parameter K p of the servo controller is limited to K p
Figure 108125677-A0305-02-0033-40
100, and the resonant peak value M pp of the frequency response of the loop depends on the position and the limit is M pp
Figure 108125677-A0305-02-0033-41
1. Among them, the resonance peak Mpp is the maximum value of the frequency response of the position loop.
如請求項15所述之伺服調機方法,其中,係限制增益邊限GM>15dB,且限制相位邊限PM>45°。 The servo tuning method according to claim 15, wherein the gain margin G M is restricted to >15 dB, and the phase margin P M is restricted to 45°. 如請求項15所述之伺服調機方法,其步驟更包含:於所述伺服控制器設置一前饋控制單元,並界定該前饋控制單元相依且控制速度及加速度之一常數係數AF;令位置迴路的頻率響應接近水平,並界定優化問題之函數E之最小值為
Figure 108125677-A0305-02-0033-16
擷取函數E為最小值時之常數係數AF,並對應輸入於該前饋控制單元。
According to the servo tuning method of claim 15, the steps further include: arranging a feedforward control unit in the servo controller, and defining a constant coefficient AF that the feedforward control unit is dependent on and controls the speed and acceleration; The frequency response of the position loop is close to the level, and the minimum value of the function E that defines the optimization problem is
Figure 108125677-A0305-02-0033-16
The constant coefficient AF when the function E is the minimum value is captured and input into the feedforward control unit correspondingly.
TW108125677A 2019-07-19 2019-07-19 The method of system identification and servo tuning TWI719544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108125677A TWI719544B (en) 2019-07-19 2019-07-19 The method of system identification and servo tuning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108125677A TWI719544B (en) 2019-07-19 2019-07-19 The method of system identification and servo tuning

Publications (2)

Publication Number Publication Date
TW202105101A TW202105101A (en) 2021-02-01
TWI719544B true TWI719544B (en) 2021-02-21

Family

ID=75745368

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108125677A TWI719544B (en) 2019-07-19 2019-07-19 The method of system identification and servo tuning

Country Status (1)

Country Link
TW (1) TWI719544B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI768830B (en) * 2021-04-15 2022-06-21 財團法人精密機械研究發展中心 Machine tool servo parameter adjustment device and using method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7072777B1 (en) * 1998-06-23 2006-07-04 Canon Kabushiki Kaisha Exposure apparatus anti-vibration apparatus, system identification apparatus and system identification method
WO2015111298A1 (en) * 2014-01-23 2015-07-30 三菱電機株式会社 Motor control device
US10025296B2 (en) * 2015-04-24 2018-07-17 Fanuc Corporation Servo control apparatus having function of obtaining frequency characteristics of machine on line
TW201927464A (en) * 2017-12-22 2019-07-16 財團法人工業技術研究院 Tuning system, simulation unit and tuning and simulation method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7072777B1 (en) * 1998-06-23 2006-07-04 Canon Kabushiki Kaisha Exposure apparatus anti-vibration apparatus, system identification apparatus and system identification method
WO2015111298A1 (en) * 2014-01-23 2015-07-30 三菱電機株式会社 Motor control device
US10025296B2 (en) * 2015-04-24 2018-07-17 Fanuc Corporation Servo control apparatus having function of obtaining frequency characteristics of machine on line
TW201927464A (en) * 2017-12-22 2019-07-16 財團法人工業技術研究院 Tuning system, simulation unit and tuning and simulation method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"工具機伺服進給系統之模擬與分析",國立中興大學碩士論文,李政翰,http://aleweb.ncl.edu.tw/F?func=item-global&doc_library=TOP02&doc_number=004147817¸上架日:2017/09/02 *
"工具機伺服進給系統之模擬與分析",國立中興大學碩士論文,李政翰,http://aleweb.ncl.edu.tw/F?func=item-global&doc_library=TOP02&doc_number=004147817¸上架日:2017/09/02。

Also Published As

Publication number Publication date
TW202105101A (en) 2021-02-01

Similar Documents

Publication Publication Date Title
Zanotto et al. Experimental validation of minimum time-jerk algorithms for industrial robots
US10824121B2 (en) Machine learning device, servo motor controller, servo motor control system, and machine learning method
WO2018151215A1 (en) Control device and control method
TWI649648B (en) Processing machine thermal compensation control system and method thereof
JP2019008472A (en) Machine learning device, servo control device, servo control system, and machine learning method
CN105005265B (en) A kind of digital control processing feed rate planing method deformed based on line smoothing
JP6841801B2 (en) Machine learning equipment, control systems and machine learning methods
CN108572609A (en) Control device, record media and control system
TWI719544B (en) The method of system identification and servo tuning
JP2019164484A (en) Machine learning device, servo control device, servo control system and machine learning method
JP2020177257A (en) Machine learning device, control device and machine learning method
Chang et al. Big data analysis of a mini three-axis CNC machine tool based on the tuning operation of controller parameters
US11914333B2 (en) Machine learning device, servo control device, servo control system, and machine learning method
CN111552237B (en) Machine learning device, control device, and method for setting search range for machine learning
TWI724467B (en) The diagnosis method of machine ageing
CN107678276A (en) A kind of adaptive composite control method based on turning table control
CN111722530B (en) Machine learning device, control system, and machine learning method
WO2022030346A1 (en) Control assistance device, control system, and control assistance method
CN111152213B (en) Mechanical arm vibration compensation method and device based on hybrid control
WO1993016424A1 (en) Method for controlling servomotor
CN109039152B (en) A kind of supersonic motor servo-control system contour outline control method
US11146191B2 (en) Simulation device, simulation method, and simulation program for a motor control device
CN113126538A (en) Electronic device and control method thereof
CN110209055B (en) Second-order system controller and control method based on reference model and disturbance observation
CN110727242B (en) Machine learning device, control device, and machine learning method