TWI656940B - Tuning system, simulation unit and tuning and simulation method thereof - Google Patents
Tuning system, simulation unit and tuning and simulation method thereof Download PDFInfo
- Publication number
- TWI656940B TWI656940B TW106145286A TW106145286A TWI656940B TW I656940 B TWI656940 B TW I656940B TW 106145286 A TW106145286 A TW 106145286A TW 106145286 A TW106145286 A TW 106145286A TW I656940 B TWI656940 B TW I656940B
- Authority
- TW
- Taiwan
- Prior art keywords
- simulation
- parameter
- command
- unit
- machine
- Prior art date
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 101
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 22
- 230000033001 locomotion Effects 0.000 claims description 55
- 230000004044 response Effects 0.000 claims description 39
- 238000004458 analytical method Methods 0.000 claims description 6
- 238000013480 data collection Methods 0.000 claims description 5
- 230000001133 acceleration Effects 0.000 description 43
- 238000010586 diagram Methods 0.000 description 31
- 238000004364 calculation method Methods 0.000 description 21
- 239000011159 matrix material Substances 0.000 description 16
- 238000005094 computer simulation Methods 0.000 description 13
- 229920000136 polysorbate Polymers 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 238000013016 damping Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 4
- 238000010276 construction Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000003754 machining Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Numerical Control (AREA)
- Feedback Control In General (AREA)
Abstract
一種調機方法,係提供一配置有虛擬機台之調機系統,其中,該虛擬機台係仿照一目標機台建構,且於該調機系統上設定該目標機台之加工條件,並將一包含模擬參數之模擬命令輸入該虛擬機台,再使該虛擬機台依據該模擬參數進行該目標機台之響應之模擬作業,以計算出所需之控制參數,再將該控制參數作為調整該目標機台之基礎參數。 A tuning method is to provide a tuning system configured with a virtual machine, wherein the virtual machine is modeled on a target machine, and the processing conditions of the target machine are set on the tuning system, and An analog command including an analog parameter is input to the virtual machine, and then the virtual machine performs a simulation operation of the target machine according to the simulation parameter to calculate a required control parameter, and then the control parameter is used as an adjustment. The basic parameters of the target machine.
Description
本案係有關一種自動調整參數之方法,尤指一種利於使用者調整參數之調機方法及其調機系統。 This case relates to a method for automatically adjusting parameters, especially a method for adjusting the parameters of the user and adjusting the system.
隨著工具機自動化的快速發展,利用輸入相關參數以進行加工作業已成為現今的主流。通常工具機在出廠前會先經過調校過程,藉由相關參數的調整,以達到一定的性能指標,進而符合客戶所指定的加工要求。 With the rapid development of machine tool automation, the use of input related parameters for processing operations has become the mainstream today. Usually, the machine tool will go through the adjustment process before leaving the factory, and adjust the relevant parameters to achieve certain performance indicators, and then meet the processing requirements specified by the customer.
但機台出廠後,常因現場安裝、場地施工與環境等問題,影響原有機台性能。此外,機械元件經過長時間運作,受到振動、摩擦、粉塵所造成的耗損,或者結構變形等,皆會使機台特性改變,造成性能的劣化。若要拆解機台以維修機械元件或結構而改善機台性能,在實務的執行上相當困難。 However, after the machine is shipped from the factory, it often affects the performance of the original organic platform due to on-site installation, site construction and environmental issues. In addition, mechanical components undergo long-term operation, which are subject to vibration, friction, dust, or structural deformation, which may cause the characteristics of the machine to change, resulting in deterioration of performance. It is quite difficult to implement the practice in order to disassemble the machine to repair the mechanical components or structures and improve the performance of the machine.
再者,有關機台之控制器的參數的調整,使用者需相當熟悉機台功能,且了解機台性能,同時對機台設計與加工製程有一定的專業知識。換言之,使用者須為資深作業員,否則無法即時調整工廠線上的機台。 Furthermore, regarding the adjustment of the parameters of the controller of the machine, the user needs to be quite familiar with the function of the machine, and understand the performance of the machine, and at the same time have certain expertise in the design and processing of the machine. In other words, the user must be a senior operator, otherwise the machine on the factory line cannot be adjusted immediately.
因此,如何使一般作業員能即時調整工廠生產線上的各種機台,實為目前本技術領域人員急迫解決之技術問題。 Therefore, how to enable the general operator to instantly adjust various machines on the factory production line is a technical problem that is urgently solved by those skilled in the art.
鑑於上述習知技術之種種缺失,本案揭露一種調機方法,係包括:提供一配置有虛擬機台之調機系統,其中,該虛擬機台係仿照一目標機台建構;於該調機系統中設定該目標機台之加工條件;將一包含模擬參數之模擬命令輸入該虛擬機台;以及由該虛擬機台依據該模擬參數進行該目標機台之響應之模擬作業,並即時計算出所需之控制參數,以令該控制參數作為調整該目標機台之基礎參數。 In view of the above-mentioned various deficiencies of the prior art, the present disclosure discloses a tuning method, which includes: providing a tuning system configured with a virtual machine, wherein the virtual machine is modeled on a target machine; Setting a processing condition of the target machine; inputting an analog command including a simulation parameter into the virtual machine; and performing a simulation operation of the target machine response by the virtual machine according to the simulation parameter, and calculating the current situation immediately The control parameters are required to make the control parameter as a basic parameter for adjusting the target machine.
前述之調機方法中,該調機系統更配置有一鑑別模組,且於設定該加工條件之前,該調機方法復包括:將包含另一模擬參數之另一模擬命令輸入該目標機台,使該目標機台產生響應資訊;將該響應資訊傳送至該鑑別模組;以及該鑑別模組比對該另一模擬命令與該響應資訊,若該另一模擬參數之誤差位於合理範圍內,則將該另一模擬參數與該響應資訊作為系統參數。進一步,該調機系統更配置有一用以將該另一模擬命令傳輸至該目標機台與該鑑別模組之模擬單元。例如,該目標機台具有控制器,且該模擬單元係用以模擬該控制器。 In the foregoing tuning method, the tuning system is further configured with an authentication module, and before the processing condition is set, the tuning method further comprises: inputting another simulation command including another simulation parameter into the target machine, Having the target machine generate response information; transmitting the response information to the authentication module; and the authentication module compares the other analog command with the response information, if the error of the other analog parameter is within a reasonable range, Then, the other simulation parameter and the response information are used as system parameters. Further, the tuning system is further configured with an analog unit for transmitting the another analog command to the target machine and the authentication module. For example, the target machine has a controller and the analog unit is used to simulate the controller.
前述之調機方法中,該調機系統更配置有一參考模型,其係利用該虛擬機台建構且具有對照參數,且該調機方法復包括:依據該目標機台之加工條件,選擇該參考模型,並與該控制參數進行比對,以計算出另一控制參數。 In the foregoing tuning method, the tuning system is further configured with a reference model, which is constructed by using the virtual machine and has a control parameter, and the tuning method includes: selecting the reference according to the processing condition of the target machine. The model is compared to the control parameter to calculate another control parameter.
本案揭露一種調機系統,係包括:主機,係配置有虛擬機台,其中,該虛擬機台係仿照一目標機台建構;鑑別模組,係用以鑑別該目標機台以建構該虛擬機台;以及模擬單元,係用以模擬該目標機台之控制器,以供該鑑別模組進行鑑別。 The present invention discloses a tuning system, which includes: a host, configured with a virtual machine, wherein the virtual machine is modeled on a target machine; and an authentication module is used to identify the target machine to construct the virtual machine. And an analog unit for simulating a controller of the target machine for identification by the authentication module.
前述之調機系統中,該模擬單元還用以將模擬命令傳輸至該目標機台與該鑑別模組,以供該鑑別模組進行鑑別。 In the foregoing tuning system, the analog unit is further configured to transmit an analog command to the target machine and the authentication module for identification by the authentication module.
本案揭露一種模擬單元模擬一控制器之模擬方法,該控制器係用以操控一目標機台之運動,該模擬方法包括:設定一模擬運動軌跡的參數;根據該參數計算出一模擬命令;以及將該模擬命令輸入該目標機台進行響應比對,以判斷該模擬命令是否對應該控制器用以執行操控該目標機台的目標命令。 The present invention discloses a simulation method for simulating a controller, the controller is for controlling the motion of a target machine, the simulation method includes: setting a parameter of a simulated motion trajectory; calculating an analog command according to the parameter; The simulation command is input to the target machine for response comparison to determine whether the analog command corresponds to a target command used by the controller to perform the manipulation of the target machine.
本案揭露一種模擬單元,係包括:資料收集部,係用以設定一模擬運動軌跡的參數;計算部,係用以根據該參數計算出一模擬命令;以及分析部,係用以將該模擬命令輸入一目標機台進行響應比對,以判斷該模擬命令是否對應一用以執行操控該目標機台的控制器之目標命令。 The present disclosure discloses a simulation unit, which includes: a data collection unit for setting parameters of a simulated motion trajectory; a calculation unit for calculating an analog command according to the parameter; and an analysis unit for using the simulation command A target machine is input for response comparison to determine whether the analog command corresponds to a target command for executing a controller that controls the target machine.
前述之模擬單元及其模擬方法中,該模擬單元係為另一控制器。 In the foregoing analog unit and its simulation method, the analog unit is another controller.
前述之模擬單元及其模擬方法中,該資料收集部係藉由收集該控制器之運動參數資訊,以設定該模擬運動軌跡的參數。 In the foregoing simulation unit and the simulation method thereof, the data collection unit sets parameters of the simulated motion trajectory by collecting motion parameter information of the controller.
前述之模擬單元及其模擬方法中,該分析部係藉由該 模擬運動軌跡與該目標機台作動的關聯性,以判斷該模擬命令是否對應該目標命令。 In the foregoing simulation unit and its simulation method, the analysis unit is Simulate the correlation between the motion trajectory and the action of the target machine to determine whether the simulation command corresponds to the target command.
由上可知,本案之調機方法及其調機系統,主要藉由該虛擬機台之建構,使該虛擬機台獲取該目標機台之相關參數後以模擬該目標機台之響應,且即時計算所需之控制參數,再將該控制參數提供使用者作為調整該目標機台之參數的初始值,故相較於習知技術,採用本案之調機方法,不論使用者之工作經驗深淺,均可快速地於該目標機台上輸入該控制參數,因而能大幅減少使用者調整該目標機台之參數之時間。 It can be seen from the above that the tuning method and the tuning system of the present invention mainly enable the virtual machine to acquire the relevant parameters of the target machine by simulating the virtual machine to simulate the response of the target machine, and Calculate the required control parameters, and then provide the control parameters as the initial value of the parameters of the target machine. Therefore, compared with the prior art, the tuning method of the present case is adopted, regardless of the user's work experience. The control parameters can be quickly input to the target machine, thereby greatly reducing the time for the user to adjust the parameters of the target machine.
1‧‧‧模擬單元 1‧‧‧simulation unit
10‧‧‧資料收集部 10‧‧‧Information Collection Department
11‧‧‧計算部 11‧‧‧ Calculation Department
12‧‧‧分析部 12‧‧‧Analysis Department
1a‧‧‧運動軌跡 1a‧‧‧ trajectory
1b‧‧‧控制器型式 1b‧‧‧Controller type
1c‧‧‧模型公式 1c‧‧‧ model formula
1d‧‧‧模擬時間 1d‧‧‧simulation time
2‧‧‧目標機台 2‧‧‧Target machine
20‧‧‧控制器 20‧‧‧ Controller
3‧‧‧鑑別模組 3‧‧‧ Identification module
3a‧‧‧系統參數之數值 3a‧‧‧System parameter values
3b‧‧‧系統型式 3b‧‧‧System type
3c,30‧‧‧系統參數之模型 3c, 30‧‧‧ model of system parameters
31‧‧‧系統參數之動態模擬圖 31‧‧‧ Dynamic simulation of system parameters
40‧‧‧動態模擬圖 40‧‧‧Dynamic simulation
41‧‧‧執行選項 41‧‧‧Execution options
9‧‧‧調機系統 9‧‧‧ Tuning system
9a‧‧‧虛擬機台 9a‧‧‧Virtual Machine
90‧‧‧主機 90‧‧‧Host
91‧‧‧螢幕 91‧‧‧ screen
a,b‧‧‧數值 a, b‧‧‧ values
t,t’‧‧‧誤差值 t, t’‧‧‧ error value
d‧‧‧目標系統參數之數值 d‧‧‧Value of target system parameters
d’‧‧‧預估系統參數之數值 D’‧‧‧ Estimated system parameter values
E1‧‧‧振幅圖表 E1‧‧‧Amplitude chart
E2‧‧‧相位圖表 E2‧‧‧ phase chart
L,L’‧‧‧實際運動路徑 L, L’‧‧‧ actual movement path
S,S’‧‧‧模擬運動路徑 S, S’‧‧‧ simulated motion path
R1,R3‧‧‧實線 R1, R3‧‧‧ solid line
R2,R4‧‧‧虛線 R2, R4‧‧‧ dotted line
T1,T2,T3,Ta,Tb,Tc‧‧‧時間 T1, T2, T3, Ta, Tb, Tc‧‧ ‧ time
U1-U4‧‧‧曲線 U1-U4‧‧‧ Curve
V1-V4‧‧‧速度曲線 V1-V4‧‧‧ speed curve
P1-P4‧‧‧加速度曲線 P1-P4‧‧‧ acceleration curve
X,Y’,Z‧‧‧箭頭方向 X, Y’, Z‧‧‧ arrow direction
S21~S27‧‧‧步驟 S21~S27‧‧‧Steps
S31~S37‧‧‧步驟 S31~S37‧‧‧Steps
S41~S47‧‧‧步驟 S41~S47‧‧‧Steps
S51~S55‧‧‧步驟 S51~S55‧‧‧Steps
S60~S65‧‧‧步驟 S60~S65‧‧‧ steps
第1A圖係為本案之調機系統之應用配置示意圖;第1B圖係為本案之調機方法之功能架構示意圖;第2A圖係為本案之模擬單元之模擬作業之流程示意圖;第2B至2C圖係為本案之模擬單元之資料收集部生成模擬參數之示意圖;第2D-1至2D-4圖係為本案之模擬單元之不同模擬軌跡生成示意圖;第3A圖係為本案之虛擬機台配合鑑別模組之建構流程示意圖;第3B-1及3B-2圖係為本案之鑑別模組之介面之示意圖;第3C圖係為本案之調機系統進行系統鑑別之流程圖; 第4A圖係為本案之調機方法之流程示意圖;第4B圖係為本案之調機方法之加工需求之示意圖;第4C至4D圖係為本案之調機系統之虛擬機台於自動調整參數過程之介面之示意圖;第4E圖係為本案之調機系統之虛擬機台之另一介面之示意圖;第4F-1至4F-3圖係為第4B圖於調機後之加工狀態檢驗之示意圖;第5圖係為本案之調機系統建立參考模型之流程示意圖;以及第6圖係為本案之調機方法應用該第5圖之流程示意圖。 1A is a schematic diagram of the application configuration of the tuning system of the present case; FIG. 1B is a schematic diagram of the functional architecture of the tuning method of the present invention; FIG. 2A is a schematic diagram of the simulation operation of the simulation unit of the present embodiment; 2B to 2C The diagram is a schematic diagram of the simulation parameters generated by the data collection unit of the simulation unit of the present case; the 2D-1 to 2D-4 diagrams are schematic diagrams for generating different simulation trajectories of the simulation unit of the present case; the 3A diagram is the virtual machine platform cooperation of the case. Schematic diagram of the construction process of the authentication module; the 3B-1 and 3B-2 diagrams are schematic diagrams of the interface of the authentication module of the present invention; and the 3C diagram is a flow chart for system identification of the tuning system of the present invention; Figure 4A is a schematic diagram of the process of the tuning method of the present case; Figure 4B is a schematic diagram of the processing requirements of the tuning method of the present case; the 4C to 4D drawings are the automatic adjustment parameters of the virtual machine of the tuning system of the present case. Schematic diagram of the interface of the process; Figure 4E is a schematic diagram of another interface of the virtual machine of the tuning system of the present case; and Figures 4F-1 to 4F-3 are the inspection state of the processing state after the adjustment of the 4B chart. Schematic diagram; Figure 5 is a schematic diagram of the process of establishing a reference model for the tuning system of the present invention; and Figure 6 is a schematic diagram of the flow of the fifth embodiment of the tuning method of the present application.
以下藉由特定的具體實施例說明本案之實施方式,熟悉此技藝之人士可由本說明書所揭示之內容輕易地瞭解本案之其他優點及功效。 The embodiments of the present invention are described below by way of specific embodiments, and those skilled in the art can readily appreciate the other advantages and functions of the present disclosure.
須知,本說明書所附圖式所繪示之結構、比例、大小等,均僅用以配合說明書所揭示之內容,以供熟悉此技藝之人士之瞭解與閱讀,並非用以限定本案可實施之限定條件,故不具技術上之實質意義,任何結構之修飾、比例關係之改變或大小之調整,在不影響本案所能產生之功效及所能達成之目的下,均應仍落在本案所揭示之技術內容得能涵蓋之範圍內。同時,本說明書中所引用之如「一」等之用語,亦僅為便於敘述之明瞭,而非用以限定本案可實 施之範圍,其相對關係之改變或調整,在無實質變更技術內容下,當亦視為本案可實施之範疇。 It is to be understood that the structure, the proportions, the size and the like of the drawings are only used in conjunction with the disclosure of the specification for the understanding and reading of those skilled in the art, and are not intended to limit the practice of the present invention. The qualifications are not technically meaningful. Any modification of the structure, change of the proportional relationship or adjustment of the size should not be affected by the effects of the case and the objectives that can be achieved. The technical content can be covered. At the same time, the terms "一" and the like quoted in this specification are for convenience only, and are not intended to limit the case. The scope of the application, the change or adjustment of its relative relationship, is also considered to be within the scope of the case under the technical content of no substantive change.
請參閱第1A至1B圖,係為本案之調機系統及其調機方法之示意圖。 Please refer to Figures 1A to 1B for a schematic diagram of the tuning system and the method of adjusting the same.
如第1A圖所示,該調機系統9係用以調整一目標機台2之參數,且該調機系統9係為電腦或其它具有人機介面之配備,其包括一主機90、一螢幕91以及一模擬單元1。 As shown in FIG. 1A, the tuning system 9 is used to adjust the parameters of a target machine 2, and the tuning system 9 is a computer or other device having a human-machine interface, and includes a host 90 and a screen. 91 and a simulation unit 1.
於本實施例中,該目標機台2係為自動化控制工具機(如CNC車床),其配置有一控制器20,以操控該目標機台2之運作(如加工動作)。 In the present embodiment, the target machine 2 is an automated control machine tool (such as a CNC lathe), which is provided with a controller 20 to control the operation of the target machine 2 (such as a machining action).
所述之主機90係用以模擬該目標機台2之運作,且將模擬的狀況以虛擬機台之形式呈現於該螢幕91上。 The host 90 is used to simulate the operation of the target machine 2, and the simulated condition is presented on the screen 91 in the form of a virtual machine.
於本實施例中,該虛擬機台係用以模擬該控制器20於調整參數前後之該目標機台2之運動狀態,例如,該虛擬機台具有複數用以呈現參數運作之介面(如第4D至4F圖所示之其中一介面)。應可理解地,該虛擬機台亦可選擇性呈現該目標機台2之外觀。 In this embodiment, the virtual machine is used to simulate the motion state of the target machine 2 before and after the parameter adjustment of the controller 20. For example, the virtual machine has a plurality of interfaces for presenting parameter operations (eg, One of the interfaces shown in Figure 4D to 4F). It should be understood that the virtual machine can also selectively present the appearance of the target machine 2.
因此,該虛擬機台之模擬準確性極為重要,以下將詳述該虛擬機台之建構。 Therefore, the simulation accuracy of the virtual machine is extremely important. The construction of the virtual machine will be detailed below.
請參閱第2A至2D-4圖,係為本案之模擬單元1及其模擬作業之示意圖。 Please refer to Figures 2A to 2D-4 for a schematic diagram of the simulation unit 1 and its simulation work in this case.
由於該虛擬機台之應用涉及該控制器20之各種參數,故需配置一能模擬該控制器20之裝置,即為該模擬單元1。具體地,所述之模擬單元1係用以模擬該控制器20, 其構造可為一特製的控制器,例如,由一控制晶片配合相關電子元件所組成,且其可選擇性整合於該主機90內或單獨設於該主機90外。 Since the application of the virtual machine involves various parameters of the controller 20, it is necessary to configure a device capable of simulating the controller 20, that is, the analog unit 1. Specifically, the analog unit 1 is used to simulate the controller 20, The configuration can be a special controller, for example, consisting of a control chip with associated electronic components, and can be selectively integrated into the host 90 or separately disposed outside the host 90.
於本實施例中,如第2A圖所示,該模擬單元1之功能架構可包括一資料收集部10、一計算部11以及一分析部12。所述之資料收集部10係用以收集該控制器20之運動參數資訊,以設定一模擬該控制器20之運動軌跡的模擬參數。所述之計算部11係用以根據該模擬參數計算出至少一模擬命令。所述之分析部12係用以將該模擬命令輸入該目標機台2進行響應比對,以判斷該模擬命令是否對應該控制器20用以執行操控該目標機台2之目標命令。 In this embodiment, as shown in FIG. 2A, the functional architecture of the simulation unit 1 may include a data collection unit 10, a calculation unit 11, and an analysis unit 12. The data collecting unit 10 is configured to collect motion parameter information of the controller 20 to set a simulation parameter simulating a motion trajectory of the controller 20. The calculating unit 11 is configured to calculate at least one simulation command according to the simulation parameter. The analyzing unit 12 is configured to input the analog command to the target machine 2 for response comparison to determine whether the analog command corresponds to the controller 20 for executing the target command for manipulating the target machine 2.
再者,該模擬單元1於模擬該控制器20之具體步驟如下: Furthermore, the specific steps of the analog unit 1 for simulating the controller 20 are as follows:
首先,依步驟S21:該資料收集部10先以通訊傳輸方式擷取該控制器20之運動參數資訊,且使用者任意設定一運動軌跡(如加工路徑),如直線、轉折線、弧線等,並無特別限制,且將該運動軌跡輸入至該資料收集部10中,再依步驟S22:使用者根據該運動軌跡設定模擬運動軌跡的參數,如空間參數(模擬參數),其中,該空間可為二維平面空間或三維立體空間。接著,依步驟S23:使用者根據該空間參數設定一加減速參數(即模擬參數),其中,該加減速參數可為補間(Interpolation)前時間常數(Tb)、補間後時間常數(Ta)、補間前軸像加速度(Ap)、或軸向最大速度差限制(Vc)之任一項或其組合。使用者設定之加減速參數 可經由圖表呈現設定狀態,如第2B圖所示,係為使用者設定之補間前加減速參數之曲線圖,圖式中之實線R1表示速度曲線,而虛線R2為自動換算之加速度曲線,且T1為加速度上升的時間,T2為加速度上升與持平的時間,T3為加速度上升、持平與下降的時間,並於補間後,可得到如第2C圖所示之補間前後加減速參數曲線圖,圖式中之實線R3表示補間前加減速曲線,虛線R4表示補間後加減速曲線,Tb為補間前加減速上升之時間,T2為補間前加減速上升與持平的時間,Tc為補間前加減速下降之時間,Ta為補間後加減速之時間,故補間前之加減速總時間係為T2與Tc之總和,而補間後之加減速總時間係為T2、Tc與Ta之總和。需注意,若該加減速參數超出一允許值,則重新設定該空間參數(如步驟S23’)。 First, in step S21, the data collecting unit 10 first captures the motion parameter information of the controller 20 by using a communication transmission mode, and the user arbitrarily sets a motion track (such as a processing path), such as a straight line, a turning line, an arc, and the like. There is no particular limitation, and the motion trajectory is input to the data collecting unit 10, and according to step S22, the user sets parameters of the simulated motion trajectory according to the motion trajectory, such as a spatial parameter (simulation parameter), wherein the space can be It is a two-dimensional plane space or a three-dimensional space. Next, in step S23, the user sets an acceleration/deceleration parameter (ie, an analog parameter) according to the spatial parameter, wherein the acceleration/deceleration parameter may be a pre-interference time constant (Tb), a post-complement time constant (Ta), Any one or a combination of the fulcrum front axle image acceleration (Ap) or the axial maximum speed difference limit (Vc). User set acceleration and deceleration parameters The setting state can be presented via a graph. As shown in FIG. 2B, it is a graph of the pre-compensation acceleration/deceleration parameters set by the user. The solid line R1 in the figure represents the speed curve, and the broken line R2 is the auto-converted acceleration curve. T1 is the time when the acceleration rises, T2 is the time when the acceleration rises and is flat, and T3 is the time when the acceleration rises, is flat and falls, and after tween, the curve of the acceleration and deceleration parameter before and after the tween as shown in Fig. 2C can be obtained. In the figure, the solid line R3 represents the acceleration/deceleration curve before the tween, the dotted line R4 represents the acceleration/deceleration curve after the tween, Tb is the time of the acceleration and deceleration before the tween, and T2 is the time of the acceleration and deceleration before the tween and the flat, Tc is the tween before adding When decelerating and descending, Ta is the time of acceleration and deceleration after tween, so the total acceleration and deceleration time before tween is the sum of T2 and Tc, and the total acceleration and deceleration time after tween is the sum of T2, Tc and Ta. It should be noted that if the acceleration/deceleration parameter exceeds an allowable value, the spatial parameter is reset (as in step S23').
接著,依步驟S24:該計算部11根據該加減速參數自動計算出一速度命令與加速度命令,例如,可利用內建的數學的積分方式計算出該速度命令與加速度命令,其中,有關數學的積分方式繁多,並無特別限制。接著,依步驟S25:該計算部11根據該速度命令與加速度命令自動計算出一位置命令(模擬命令)。具體地,由於該目標機台2無法根據該速度命令與加速度命令直接進行作動,故將該速度命令與加速度命令計算出一位置命令(模擬命令),以利用位置的相對關係,使該目標機台2產生作動。 Next, in step S24, the calculating unit 11 automatically calculates a speed command and an acceleration command according to the acceleration/deceleration parameter. For example, the speed command and the acceleration command can be calculated by using a built-in mathematical integration method, wherein There are many ways to integrate points, and there are no special restrictions. Next, in step S25, the calculation unit 11 automatically calculates a position command (simulation command) based on the speed command and the acceleration command. Specifically, since the target machine 2 cannot directly act according to the speed command and the acceleration command, the speed command and the acceleration command calculate a position command (simulation command) to make the target machine use the relative relationship of the positions. Table 2 produces an action.
之後,依步驟S26:將該模擬命令(位置命令)自動輸入該目標機台2,使該分析部12進行響應比對,即比對 該位置命令與歷史資料(如該控制器20用以執行操控該目標機台2之目標命令)以得到一模擬誤差值,藉此判斷該模擬命令是否對應該目標命令。具體地,若該模擬誤差值小於一預設值,則表示該模擬命令可對應該控制器20之目標命令,因而結束該模擬作業(如步驟S27);若該模擬誤差值大於一預設值,則表示該模擬命令無法對應該控制器20之目標命令,故該計算部11需重新計算該速度命令與加速度命令(如步驟S26’)。 Then, in step S26, the simulation command (position command) is automatically input to the target machine 2, and the analysis unit 12 performs response comparison, that is, comparison The position command and historical data (such as the controller 20 is used to execute the target command to manipulate the target machine 2) to obtain an analog error value, thereby determining whether the analog command corresponds to the target command. Specifically, if the analog error value is less than a preset value, it indicates that the analog command can correspond to the target command of the controller 20, thereby ending the simulation job (such as step S27); if the analog error value is greater than a preset value , it means that the simulation command cannot correspond to the target command of the controller 20, so the calculation unit 11 needs to recalculate the speed command and the acceleration command (step S26').
藉由上述的模擬方式,該模擬單元1可有效模擬該目標機台2(工具機)之控制器20的軌跡生成,以預測參數調整對運動軌跡的影響,進而能分析該控制參數之調整是否符合實際需求,亦即兩者之軌跡是否接近。具體地,如第2D-1至2D-4圖所示之判讀畫面,該模擬單元1之位置的軌跡曲線與該控制器20之位置的軌跡曲線幾乎重疊,且兩者之速度、加速度與加加速度的軌跡曲線亦幾乎重疊,故可知第2A圖之模擬步驟能有效得到該控制器20之控制參數。 By the above simulation mode, the simulation unit 1 can effectively simulate the trajectory generation of the controller 20 of the target machine 2 (tool machine) to predict the influence of the parameter adjustment on the motion trajectory, and further analyze whether the adjustment of the control parameter is It meets the actual demand, that is, whether the trajectories of the two are close. Specifically, as shown in the 2D-1 to 2D-4 diagrams, the trajectory curve of the position of the analog unit 1 and the trajectory curve of the position of the controller 20 almost overlap, and the speed, acceleration, and acceleration of the two are The trajectory curves of the accelerations also overlap almost, so that the simulation steps of FIG. 2A can effectively obtain the control parameters of the controller 20.
應可理解地,於步驟S21-S23中,若使用者設定的條件與該控制器20之條件不符,則無法於步驟S26中進行響應比對。 It should be understood that, in steps S21-S23, if the condition set by the user does not match the condition of the controller 20, the response comparison cannot be performed in step S26.
請參閱第3A至3C圖,係為本案之系統鑑別方法之示意圖。 Please refer to Figures 3A to 3C for a schematic diagram of the system identification method of this case.
於該調機系統9初次仿照該目標機台2時,雖可利用該模擬單元1提供模擬該控制器20之功能而建構出所需之 虛擬機台9a,但仍需鑑別該目標機台2之伺服系統,使該虛擬機台9a之運作同於該目標機台2之運作,其中,該伺服系統包含位置、速度、電流控制迴路以及電器部分的動態特性,以得知不同馬達與伺服參數對於伺服系統的影響。 When the tuning system 9 first simulates the target machine 2, the simulation unit 1 can be used to provide the function of simulating the controller 20 to construct the required The virtual machine 9a, but still needs to identify the servo system of the target machine 2, so that the operation of the virtual machine 9a is the same as the operation of the target machine 2, wherein the servo system includes a position, speed, current control loop, and The dynamic characteristics of the electrical part to understand the effects of different motor and servo parameters on the servo system.
如第3A圖所示,於本實施例中,該調機系統9之主機90配置有一用於鑑別該目標機台2之伺服系統的鑑別模組3。於進行系統鑑別作業時,該模擬單元1將一包含模擬參數之模擬命令輸入該目標機台2與該鑑別模組3,使該目標機台2產生響應資訊,再將該響應資訊傳送至該鑑別模組3,此時,該鑑別模組3比對該模擬命令與該響應資訊,若該模擬參數之誤差位於合理範圍內,則該模擬參數與該響應資訊作為該目標機台2之系統參數(如第4C圖所示之系統參數之數值3a),以製成該虛擬機台9a,其中,該系統參數係例如為質量係數(M)、阻尼係數(B)或彈簧係數(K)之組合。換言之,取得該系統參數的質量係數(M)、阻尼係數(B)或彈簧係數(K)之組合後,可製成該虛擬機台9a,以模擬該目標機台2的真實運動行為。 As shown in FIG. 3A, in the present embodiment, the host 90 of the tuning system 9 is provided with an authentication module 3 for identifying the servo system of the target machine 2. When performing the system identification operation, the simulation unit 1 inputs an analog command including the analog parameters into the target machine 2 and the authentication module 3, so that the target machine 2 generates response information, and then transmits the response information to the The authentication module 3, at this time, the authentication module 3 compares the simulation command with the response information, and if the error of the simulation parameter is within a reasonable range, the simulation parameter and the response information are used as the system of the target machine 2. The parameter (such as the value 3a of the system parameter shown in FIG. 4C) is used to make the virtual machine table 9a, wherein the system parameter is, for example, a mass coefficient (M), a damping coefficient (B) or a spring coefficient (K). The combination. In other words, after the combination of the quality coefficient (M), the damping coefficient (B) or the spring coefficient (K) of the system parameter is obtained, the virtual machine table 9a can be made to simulate the real motion behavior of the target machine 2.
所述之鑑別模組3之演算軟體係採用最小平方法(The Method of Least Square,簡稱LS)進行比對演算,如下式:
其中,i=1~t之正整數;y(i):實際系統輸出;:估測系統輸出;:系統輸入矩陣;:系統輸入矩陣之轉置矩陣;θ:系統係數矩陣;:系統估測係數矩陣;Φ:之轉置矩陣;Y(t):系統輸出矩陣;e(i):估測誤差;E(t):估測誤差矩陣。 Where i = a positive integer from 1 to t ; y(i) : the actual system output; : Estimating system output; : system input matrix; : transposed matrix of system input matrix; θ : system coefficient matrix; : system estimation coefficient matrix; Φ: Transposed matrix; Y(t) : system output matrix; e(i) : estimated error; E(t) : estimated error matrix.
接著,利用矩陣相乘,如下式,以估測一誤差值。 Next, matrix multiplication is used, as follows, to estimate an error value.
另外,為使誤差值達到最小,亦可採用另一相乘矩陣,如下式:
於本實施例中,如第3B-1及3B-2圖所示之鑑別模組3之檢驗介面,其可包含該系統參數(質量係數(M)、阻尼係數(B)或彈簧係數(K))、該系統參數之模型30及該系統參數之動態模擬圖31。具體地,於檢驗該鑑別模組3之準確性以判斷演算方法之有效性時,可任意輸入一目標系統參數之數值d,例如將彈簧係數(K)由5調變成1作檢驗,以藉由上述的LS演算方法計算出預估系統參數之數值d’ (即4.99976變成0.99974),其大致等於該目標系統參數之數值d(即4.99976趨近5,且0.99974趨近於1),故可知,該鑑別模組3藉由上述的LS演算方法能有效得到該目標機台2之系統參數。 In this embodiment, the inspection interface of the authentication module 3 as shown in Figures 3B-1 and 3B-2 may include the system parameters (mass coefficient (M), damping coefficient (B) or spring coefficient (K). )), the model 30 of the system parameters and the dynamic simulation of the system parameters. Specifically, when the accuracy of the authentication module 3 is checked to determine the validity of the calculation method, the value d of a target system parameter can be arbitrarily input, for example, the spring coefficient (K) is adjusted from 5 to 1 for testing. Calculate the value d' of the estimated system parameter by the LS calculation method described above. (ie, 4.997976 becomes 0.99974), which is approximately equal to the value d of the target system parameter (ie, 4.99776 approaches 5, and 0.99974 approaches 1). Therefore, it can be seen that the authentication module 3 can be effectively obtained by the above LS calculation method. The system parameters of the target machine 2.
再者,可將演算出之質量係數(M)、阻尼係數(B)及彈簧係數(K)等系統參數進行模型公式化,如下所示:ms2X(s)+bsX(s)+ksX(s)=F(s),s為常數,以轉換成該系統參數之模型30,且該模型公式係內建於該主機90中,即可依所得之系統參數選擇適當的態樣,故該系統參數之模型30係供使用者理解其物理力學關係,因而可選擇顯示或不顯示。 Furthermore, the system parameters such as the calculated mass coefficient (M), damping coefficient (B) and spring coefficient (K) can be modeled as follows: ms 2 X(s)+bsX(s)+ksX( s)=F(s), s is a constant to be converted into the model 30 of the system parameter, and the model formula is built in the host 90, and the appropriate mode can be selected according to the obtained system parameters, so The model 30 of the system parameters is for the user to understand the physical and mechanical relationship, and thus may or may not be displayed.
又,該系統參數之動態模擬圖31係為演算出之質量係數(M)、阻尼係數(B)及彈簧係數(K)等系統參數於該目標機台2之系統運作時所呈現之狀態曲線圖,故該系統參數之動態模擬圖31係供使用者理解該系統參數之模型30於該目標機台2之系統運作時之實際狀態,如第3B-1及3B-2圖所示之不同曲線,因而可選擇顯示或不顯示。 Moreover, the dynamic simulation diagram 31 of the system parameter is a state curve of the system parameters such as the calculated quality coefficient (M), the damping coefficient (B) and the spring coefficient (K) when the system of the target machine 2 operates. Therefore, the dynamic simulation of the system parameters is shown in Figure 31 for the user to understand the actual state of the model 30 of the system parameters when the system of the target machine 2 is operating, as shown in Figures 3B-1 and 3B-2. The curve is thus selectable for display or not.
因此,該模擬單元1(特製控制器)的運動軌跡可輸入至該調機系統9之鑑別模組3中,以模擬加減速對該目標機台2(真實工具機)中的系統響應。具體地,如第3C圖所示,首先,步驟S31:使用者先選定一輸入信號之種類(如速度、位置或其它選項),再依步驟S32至S32:令該模擬單元1依序設定加工路徑及加減速參數(如同步驟S21至S23);需注意,若該加減速參數超出一允許值,則 重新設定該空間參數(如步驟S33’)。 Therefore, the motion trajectory of the analog unit 1 (special controller) can be input to the authentication module 3 of the tuning system 9 to simulate the acceleration and deceleration of the system response in the target machine 2 (real machine tool). Specifically, as shown in FIG. 3C, first, step S31: the user first selects an input signal type (such as speed, position, or other options), and then according to steps S32 to S32: the analog unit 1 is sequentially set and processed. Path and acceleration/deceleration parameters (as in steps S21 to S23); note that if the acceleration/deceleration parameter exceeds an allowable value, then This spatial parameter is reset (as in step S33').
接著,依步驟S34:如同步驟S24至S25,該模擬單元1將該加減速參數轉成模擬命令(速度命令、加速度命令或位置命令),再依步驟S35:藉由該模擬命令取得該目標機台2的輸出(即響應資訊)。 Then, in step S34: as in steps S24 to S25, the simulation unit 1 converts the acceleration/deceleration parameter into an analog command (speed command, acceleration command or position command), and then proceeds to step S35 by using the simulation command to obtain the target machine. The output of station 2 (ie response information).
之後,依步驟S36:該鑑別模組3利用如上述LS演算法的演算軟體針對該目標機台2的響應資訊與該模擬命令(作為輸入)進行該目標機台2之系統鑑別,以得到一鑑別誤差值,進而取得該目標機台2之相關系統參數,藉此完成該目標機台2之伺服系統的估測(如步驟S37)。需注意,若該鑑別誤差過大,則該模擬單元1會重新生成模擬命令,如步驟S36’。 Then, in step S36, the authentication module 3 performs system identification of the target machine 2 by using the response information of the LS algorithm and the simulation command (as input) by the calculus software of the LS algorithm to obtain a The error value is discriminated, and the relevant system parameters of the target machine 2 are obtained, thereby completing the estimation of the servo system of the target machine 2 (step S37). It should be noted that if the discrimination error is too large, the simulation unit 1 will regenerate the simulation command, as by step S36'.
應可理解地,於步驟S31-S33中,若使用者設定的條件與該控制器20之條件不符,則無法於步驟S35中進行響應比對。 It should be understood that, in steps S31-S33, if the condition set by the user does not match the condition of the controller 20, the response comparison cannot be performed in step S35.
由此可知,為了避免該模擬單元1所選定之運動軌跡無法符合該目標機台2之系統運作,故藉由該鑑別模組3進行該目標機台2之系統判別(例如,該模擬單元1要求弧線運動,但該目標機台2之系統只能進行直線運動,故該鑑別模組3可加以修正,使該虛擬機台9a只能進行直線運動),因而當使用者利用該調機系統9建構該虛擬機台9a時,需先利用該鑑別模組3進行該目標機台2之系統進行鑑別,以得到所需之系統參數。 Therefore, in order to prevent the motion track selected by the simulation unit 1 from meeting the system operation of the target machine 2, the system identification of the target machine 2 is performed by the authentication module 3 (for example, the simulation unit 1) The arc motion is required, but the system of the target machine 2 can only perform linear motion, so the authentication module 3 can be modified so that the virtual machine 9a can only perform linear motion), so when the user utilizes the tuning system 9 When constructing the virtual machine 9a, the identification module 3 is first used to perform the identification of the system of the target machine 2 to obtain the required system parameters.
請參閱第4A至4F圖,係為本案之調機方法之流程示 意圖,其中,該調機系統9已經完成該虛擬機台9a之建置。 Please refer to Figures 4A to 4F for the flow of the method of tuning for this case. It is intended that the tuning system 9 has completed the construction of the virtual machine 9a.
如第4A圖所示,首先,依步驟S41至S42:使用者先於該調機系統9之內建介面(圖未示)中設定一加工條件,例如精度需求、速度需求或粗糙度需求之任一項或其組合(如第4B圖所示)。接著,依步驟S43:使用者於該調機系統9之內建介面(圖未示)中根據該加工條件設定誤差限制,例如,該誤差限制可為路徑誤差限制、加工時間限制或軸向誤差限制之任一項或其組合,其中,該精度需求對應該路徑誤差限制、該速度需求對應該加工時間限制與該粗糙度需求對應該軸向誤差限制。之後,依步驟S44:使用者切換至該虛擬機台9a之其中一介面(如第4C或4D圖所示),以設定所需之調機參數(如輸入控制參數之數值a),再依步驟S45:使用者於該介面上設定所需之調機運動(加工)路徑(如第4C圖所示之運動軌跡1a),再令該虛擬機台9a開始依據上述相關設定自動執行參數演算(如按下執行選項41)。接著,依步驟S46:將該控制器20之現有參數(如PID之控制參數之數值a)輸入(人工方式或自動傳輸方式)該虛擬機台9a中以進行演算及量測,藉此得到該控制參數於該運動軌跡1a下的狀態,如呈現於動態模擬圖40中之模擬運動路徑S,S’,且將其比對該目標機台2的實際運動路徑L,L’,而得到一誤差值t,t’。最後,若該誤差值t’小於預設值(依步驟S43的設定),則依步驟S47:使用者採用該控制參數並儲存該控制參數之數值b;若該誤差值t大於該預設值,則依步驟S46’:使 用者重新設定該調機參數。 As shown in FIG. 4A, first, according to steps S41 to S42, the user sets a processing condition, such as precision requirement, speed requirement or roughness requirement, in the built-in interface (not shown) of the tuning system 9. Any one or combination thereof (as shown in Figure 4B). Next, in step S43, the user sets an error limit according to the processing condition in the built-in interface (not shown) of the tuning system 9, for example, the error limit may be a path error limit, a processing time limit, or an axial error. Any one or combination of limitations, wherein the accuracy requirement corresponds to a path error limit, the speed requirement corresponds to a processing time limit and the roughness requirement corresponds to an axial error limit. Then, in step S44, the user switches to one of the interfaces of the virtual machine 9a (as shown in FIG. 4C or 4D) to set the required tuning parameters (such as the value a of the input control parameter), and then Step S45: The user sets a required movement (machining) path (such as the motion track 1a shown in FIG. 4C) on the interface, and then causes the virtual machine 9a to automatically perform parameter calculation according to the above related setting ( Press Execute option 41). Then, in step S46, the existing parameters of the controller 20 (such as the value a of the control parameter of the PID) are input (manually or automatically) into the virtual machine 9a for calculation and measurement, thereby obtaining the Controlling the state of the parameter under the motion trajectory 1a, such as the simulated motion path S, S' presented in the dynamic simulation map 40, and comparing it to the actual motion path L, L' of the target machine 2, and obtaining a Error value t, t'. Finally, if the error value t' is less than the preset value (according to the setting of step S43), then according to step S47: the user adopts the control parameter and stores the value b of the control parameter; if the error value t is greater than the preset value , according to step S46': The user resets the tuning parameters.
於本實施例中,該虛擬機台9a之其中一介面係依據該模擬單元1與該鑑別模組3所獲取的資訊作配置,如第4C或4D圖之介面係為時間響應或如第4E圖所示之介面係為該虛擬機台9a之頻率響應,其呈現有控制器型式1b、該運動軌跡1a、該控制器20之模型公式1c、模擬時間1d、該執行選項41、該鑑別模組3所定義之系統參數之數值3a、系統型式3b及系統參數之模型3c、該控制參數之數值a,b及該動態模擬圖40。 In this embodiment, one of the interfaces of the virtual machine 9a is configured according to the information acquired by the analog unit 1 and the authentication module 3, and the interface of the 4C or 4D is time response or 4E. The interface shown in the figure is the frequency response of the virtual machine 9a, which is presented with the controller type 1b, the motion track 1a, the model formula 1c of the controller 20, the simulation time 1d, the execution option 41, and the authentication mode. The value 3a of the system parameter defined by the group 3, the model 3c of the system type 3b and the system parameter, the values a, b of the control parameter, and the dynamic simulation map 40.
所述之控制參數係依據該控制器20的型式而定,如PID型控制元件(比例-積分-微分控制器)之參數可為比例增益(Kp)、積分時間(Ti)、微分時間(Td)、自然頻率(N)或其它等數值a,b。應可理解地,該控制參數亦可為PI型控制元件之參數。因此,該模擬單元1於步驟S21至S27所擷取的參數態樣將呈現於第4C或4E圖之介面上。 The control system according to the type of the parameter controller 20 may be, such as PID type control element (proportional - integral - derivative controller) parameter of a proportional gain (K p), integral time (T i), the differential time (T d ), natural frequency (N) or other equivalent values a, b. It should be understood that the control parameter can also be a parameter of the PI type control element. Therefore, the parameter patterns captured by the simulation unit 1 in steps S21 to S27 will be presented on the interface of the 4C or 4E diagram.
所述之運動軌跡1a係為調整參數時所選擇之調機路徑,其包含多種加工路徑之態樣,以供使用者選擇及設定。因此,當使用者輸入該控制參數之數值a,b後,再選定該運動軌跡1a,即可按下該執行選項41(系統參數之數值3a係於第3A至3C圖之系統鑑別作業時已決定)。 The motion track 1a is a tuning path selected when the parameters are adjusted, and includes a plurality of processing paths for the user to select and set. Therefore, when the user inputs the value a, b of the control parameter, and then selects the motion track 1a, the execution option 41 can be pressed (the value 3a of the system parameter is based on the system identification operation of the 3A to 3C figure) Decide).
所述之控制器型式1b係經由該模擬單元1所模擬而得,故單一調機系統9可儲存多種控制器型式1b,如該控制器20為PID型或PI型,以供使用者選擇及設定。 The controller type 1b is simulated by the simulation unit 1, so that the single tuning system 9 can store a plurality of controller types 1b, such as the controller 20 being of a PID type or a PI type, for the user to select and set up.
所述之模型公式1c係依據業界熟知的模型而內建的 數學公式,如下所示: GPID(S)=Kp[(1/TiS)+1+Td/(1+TdS/N)],且S為常數,其中,該模型公式1c可依該模擬單元1所得之控制器20之控制參數選擇適當的態樣,故該模型公式1c係供使用者理解其物理力學關係,因而可選擇顯示或不顯示。因此,當使用者選擇該控制器型式1b後,第4C或4E圖之介面會自動呈現該模型公式1c。 The model formula 1c is a mathematical formula built in accordance with a well-known model in the industry, as follows: G PID (S) = K p [(1/T i S) + 1 + T d / (1 + T d S/N)], and S is a constant, wherein the model formula 1c can select an appropriate state according to the control parameter of the controller 20 obtained by the simulation unit 1, so the model formula 1c is for the user to understand the physical mechanics. Relationships, so you can choose to display or not. Therefore, when the user selects the controller type 1b, the interface of the 4C or 4E diagram automatically presents the model formula 1c.
所述之模擬時間1d係為該虛擬機台9a執行參數演算的時間(單位:秒)。因此,當使用者按下該執行選項41後,經該虛擬機台9a演算完成後,第4C或4E圖之介面會呈現該模擬時間1d之秒數。 The simulation time 1d is the time (unit: second) at which the virtual machine 9a performs parameter calculation. Therefore, after the user presses the execution option 41, after the calculation of the virtual machine 9a is completed, the interface of the 4C or 4E diagram presents the number of seconds of the simulation time 1d.
所述之動態模擬圖40係依需求顯示各種模擬比對狀態。具體地,於其中一介面中,如第4C及4D圖所示,該數值a,b輸入至該目標機台2中之運作會呈現該實際運動路徑L,L’,且該數值a,b經由該虛擬機台9a之演算後會得到該模擬運動路徑S,S’,故使用者可經由該動態模擬圖40之曲線比對情況得知該實際運動路徑L,L’與該模擬運動路徑S,S’之誤差值t,t’。或者,於另一介面中,如第4E圖所示,該動態模擬圖40係呈現振幅圖表E1及相位圖表E2。 The dynamic simulation map 40 displays various analog alignment states as required. Specifically, in one of the interfaces, as shown in FIGS. 4C and 4D, the operation of inputting the values a, b into the target machine 2 presents the actual motion path L, L', and the value a, b The simulated motion path S, S' is obtained after the calculation by the virtual machine 9a, so that the user can know the actual motion path L, L' and the simulated motion path through the curve comparison of the dynamic simulation map 40. The error value of S, S' is t, t'. Alternatively, in another interface, as shown in FIG. 4E, the dynamic simulation map 40 presents an amplitude chart E1 and a phase chart E2.
所述之系統參數之數值3a係於第3A至3C圖之系統鑑別作業時決定。 The value 3a of the system parameter is determined at the time of the system identification operation of Figures 3A to 3C.
所述之系統型式3b係經由該鑑別模組3所鑑定而得的目標機台2之伺服系統,故單一調機系統9可依據廠區 的機台型號儲存多種系統型式3b,以供使用者選擇及設定。 The system type 3b is the servo system of the target machine 2 identified by the authentication module 3, so the single tuning system 9 can be based on the factory area. The model of the machine stores a variety of system types 3b for user selection and setting.
所述之系統參數之模型3c係於第3A至3C圖之系統鑑別作業時決定,即依所得之系統參數選擇態樣,故可為第3B-1圖所示之ms2X(s)+bsX(s)+ksX(s)=F(s),亦可選擇如第4C及4D圖所示之方程式:
然而,有關該虛擬機台9a之任何介面之呈現方式繁多,可依需求改變,並不限於上述。 However, any interface regarding the virtual machine 9a is presented in a variety of ways, and can be changed as needed, and is not limited to the above.
再者,於步驟S45中,該虛擬機台9a於時計算該控制參數時係採用迴圈式調整該控制參數(如Kp、Ti、Td、N之任一者之數值),以得到產生最小誤差值之控制參數。例如,該虛擬機台9a用於即時計算該控制參數之內建軟體,其所採用之數學計算方式係為古典Runge-Kutta四階方法,如下:給定系統初始值:y’(x)=f(x,y),且y(x 0)=y 0,則y值可近似為:y (i+1)=y i +(k 1+2k 2+2k 3+k 4)/6,其中,k 1=hf(x i ,y i );k 2=hf(x i +h/2,y i +k 1/2);k 3=hf(x i +h/2,y i +k 2/2); k 4=hf(x i +h,y i +k 3);x i =x 0+ih,其中,y (i+1) 為輸出值,其等號右式y i +(k 1+2k 2+2k 3+k 4)/6(y i 及k 1 、k 2 、k 3 、k 4 )為輸入值,h為常數。因上述公式係為數學式,故可任意定義其所代表的條件,例如,該輸入值可為該控制器20之目前參數(如第4D圖所示之Kp、Ti、Td、N之其中一者),且該輸出值可為調整後之控制參數(如第4E圖所示之Kp、Ti、Td、N之其中一者之數值b)。具體地,於運算過程中,所得之數值a,b會於該動態模擬圖40中呈現不同的模擬運動路徑S,S’與實際運動路徑L,L’之曲線,藉此,利於使用者判斷該誤差值t,t’之變化。 Furthermore, in step S45, when the virtual machine 9a calculates the control parameter at the time, the control parameter (such as the value of any one of K p , T i , T d , N) is adjusted by a loop type to The control parameters that produce the smallest error value are obtained. For example, the virtual machine 9a is used for real-time calculation of the built-in software of the control parameter, and the mathematical calculation method used is a classical Runge-Kutta fourth-order method, as follows: given system initial value: y '( x )= f ( x , y ), and y ( x 0 )= y 0 , then the y value can be approximated as: y ( i +1) = y i +( k 1 +2 k 2 +2 k 3 + k 4 )/ 6, where k 1 = hf ( x i , y i ); k 2 = hf ( x i + h /2, y i + k 1 /2); k 3 = hf ( x i + h /2, y i + k 2 /2); k 4 = hf ( x i + h , y i + k 3 ); x i = x 0 + ih , where y (i + 1) is the output value, its equal sign y i +( k 1 +2 k 2 +2 k 3 + k 4 )/6 ( y i and k 1 , k 2 , k 3 , k 4 ) are input values, and h is a constant. Since the above formula is a mathematical formula, the condition represented by it can be arbitrarily defined. For example, the input value can be the current parameter of the controller 20 (such as K p , T i , T d , N shown in FIG. 4D). One of the outputs), and the output value may be the adjusted control parameter (such as the value b of one of K p , T i , T d , N shown in FIG. 4E ). Specifically, in the operation process, the obtained values a, b will present curves of different simulated motion paths S, S′ and actual motion paths L, L′ in the dynamic simulation map 40, thereby facilitating user judgment. The error value t, t' changes.
又,於檢驗第4A圖所示之流程之有效性時,可藉由比對之方式。具體地,當加工條件為粗糙度需求方面時,如第4F-1圖所示,係將該虛擬機台9a計算過程中之曲線U1-U4整合於一圖表中,可知於相同速度區間內,加速度之限制變大,軸向動態之誤差變小,如箭頭方向Z係表示從曲線U1朝曲線U4之誤差逐漸變小,其中,第4F-1圖之速度之單位為毫米/秒(mm/s),且誤差之單位為0.001mm。 Moreover, when checking the validity of the process shown in FIG. 4A, it can be compared by means of comparison. Specifically, when the processing condition is the roughness requirement aspect, as shown in FIG. 4F-1, the curves U1-U4 in the calculation process of the virtual machine 9a are integrated into a graph, and it is known that in the same speed interval, The acceleration limit becomes larger, and the error of the axial dynamic becomes smaller. For example, the arrow direction Z indicates that the error from the curve U1 to the curve U4 gradually becomes smaller, wherein the speed of the 4F-1 chart is in millimeters per second (mm/ s), and the unit of error is 0.001 mm.
當加工條件為速度需求方面時,如第4F-2圖所示,P1-P4係表示第一至第四加速度曲線,V1-V4係表示第一至第四速度曲線,且第一加速度曲線P1對應第一速度曲線V1,第二加速度曲線P2對應第二速度曲線V2,第三加速度曲線P3對應第三速度曲線V3,第四加速度曲線P4對應第四速度曲線V4,故於達到相同速度(第一至第四速 度曲線V1-V4具有相同最大值)之需求下,加速度越大(如箭頭方向Y’),則加速時間短(如箭頭方向X)。 When the machining condition is the speed demand aspect, as shown in FIG. 4F-2, P1-P4 means the first to fourth acceleration curves, V1-V4 means the first to fourth speed curves, and the first acceleration curve P1 Corresponding to the first speed curve V1, the second acceleration curve P2 corresponds to the second speed curve V2, the third acceleration curve P3 corresponds to the third speed curve V3, and the fourth acceleration curve P4 corresponds to the fourth speed curve V4, so the same speed is reached. First to fourth speed Under the demand of the degree curve V1-V4 having the same maximum value, the larger the acceleration (such as the arrow direction Y'), the shorter the acceleration time (such as the arrow direction X).
當加工條件為精度需求方面時,如第4F-3圖所示,可知轉角誤差小,且幾何誤差小。 When the processing conditions are in terms of accuracy requirements, as shown in Fig. 4F-3, it is known that the corner error is small and the geometric error is small.
因此,於該調機系統9進行調整參數時,該模擬單元1與該鑑別模組3先分別完成模擬作業與系統鑑別作業(亦即建構出一虛擬機台9a)而將資訊呈現於至少一介面(如第4D或4E圖所示之介面)上,供使用者設定欲模擬的該目標機台2之加工條件及將欲調整之控制器20之目前控制參數(即包含模擬參數之模擬命令)輸入至該虛擬機台9a中,如步驟S41-S45。 Therefore, when the tuning system 9 performs the adjustment parameter, the simulation unit 1 and the authentication module 3 respectively complete the simulation operation and the system identification operation (that is, construct a virtual machine 9a) to present the information to at least one. The interface (such as the interface shown in FIG. 4D or 4E), for the user to set the processing conditions of the target machine 2 to be simulated and the current control parameters of the controller 20 to be adjusted (ie, the simulation command including the analog parameters) ) is input to the virtual machine 9a as in steps S41-S45.
接著,如步驟S45-S46,於上述設定完成後,使用者按下該執行選項41,即可使該虛擬機台9a藉由內建軟體(如依據上述古典Runge-Kutta四階方法所建構之軟體)即時自動演算所需之控制參數(或最佳化參數),且該目標機台2之實際響應(如該實際運動路徑L,L’)與該虛擬機台9a模擬該目標機台2之模擬響應(如該模擬運動路徑S,S’)會呈現於該動態模擬圖40中(即該虛擬機台9a依據該模擬參數進行該目標機台2之響應之模擬作業)。於實際作業中,該虛擬機台9a係將第4C圖之控制參數之數值a(如演算前或演算中之參數、或可為該控制器20之目前參數)演算成第4D圖之控制參數之數值b(其誤差值t’更小)。 Then, in steps S45-S46, after the setting is completed, the user presses the execution option 41, so that the virtual machine 9a can be built by the built-in software (for example, according to the classical Runge-Kutta fourth-order method described above. Software) real-time automatic calculation of required control parameters (or optimization parameters), and the actual response of the target machine 2 (such as the actual motion path L, L') and the virtual machine 9a simulate the target machine 2 The simulated response (eg, the simulated motion path S, S') is presented in the dynamic simulation map 40 (ie, the virtual machine 9a performs a simulated job of responding to the target machine 2 based on the simulation parameters). In actual operation, the virtual machine 9a calculates the value a of the control parameter of FIG. 4C (such as the parameter before or during the calculation, or the current parameter of the controller 20) into the control parameter of the 4D map. The value b (the error value t' is smaller).
之後,如步驟S47,使用者可將該虛擬機台9a演算後 之控制參數之數值b作為調整該目標機台2之基礎參數(如該控制器20之控制參數)的初始值。最後,使用者再以人工方式或該調機系統9自動傳輸方式快速地調整該目標機台2上之參數,因而能大幅減少調整該目標機台2之參數之時間。 After that, in step S47, the user can calculate the virtual machine 9a. The value b of the control parameter is used as an initial value for adjusting the basic parameters of the target machine 2, such as the control parameters of the controller 20. Finally, the user can quickly adjust the parameters on the target machine 2 by manual mode or the automatic transmission mode of the tuning system 9, thereby greatly reducing the time for adjusting the parameters of the target machine 2.
另外,該模擬單元1所提供的運動軌跡1a可輸入該虛擬機台9a中,以模擬加減速對機械結構所產生的響應,也可模擬伺服系統對機構所引起的摩擦與背隙的補償效果,或者對結構振動抑制的成效。 In addition, the motion track 1a provided by the simulation unit 1 can be input into the virtual machine table 9a to simulate the response of the acceleration/deceleration to the mechanical structure, and can also simulate the compensation effect of the servo system on the friction and backlash caused by the mechanism. , or the effectiveness of structural vibration suppression.
請參閱第5及6圖,係為本案之調機方法之另一實施例之示意圖。 Please refer to Figures 5 and 6, which are schematic diagrams of another embodiment of the method of tuning of the present invention.
於另一實施例中,該調機系統9可利用該鑑別模組3將該虛擬機台9a於每一次調整參數後所得到的控制參數或每一次量測該目標機台2(同一工具機或不同工具機)於平常狀態下運作所得到的控制參數存檔,以作為對照參數,藉此建立參考模型。 In another embodiment, the tuning system 9 can use the authentication module 3 to measure the control parameters obtained by the virtual machine 9a after each parameter adjustment or measure the target machine 2 (the same machine tool) The control parameters obtained by operating under normal conditions are archived as control parameters to establish a reference model.
如第5圖所示,該參考模型之成型方法係先依步驟S51至S53:將一運動命令(模擬命令)經由該模擬單元1輸入該虛擬機台9a與該目標機台2中,使該目標機台2產生第一響應資訊,且該虛擬機台9a產生第二響應資訊,之後依步驟S54:比對該第一響應資訊與該第二響應資訊,當兩者誤差值小於預設值時(即誤差位於允許範圍內),則依步驟S55:儲存該第二響應資訊,以建立該參考模型。若兩者誤差值大於預設值時,則依步驟S54’:修正該模擬命令 之模擬參數。 As shown in FIG. 5, the reference model is formed by first inputting a motion command (simulation command) into the virtual machine 9a and the target machine 2 via the simulation unit 1 according to steps S51 to S53. The target machine 2 generates the first response information, and the virtual machine 9a generates the second response information, and then according to step S54: comparing the first response information with the second response information, when the error values of the two are less than the preset value. When the error is within the allowable range, the second response information is stored in step S55 to establish the reference model. If the error value of the two is greater than the preset value, then according to step S54': correct the analog command Analog parameters.
因此,本案可先透過該鑑別模組3取得該目標機台2之參考模型,故於進行調整參數作業時,如第1B及第6圖所示,使用者先設定完成加工條件,再依步驟S60至S63:將該模擬單元1擷取自該控制器20之控制參數(運動指令)輸入該目標機台2與該鑑別模組3,使該調機系統9模擬該目標機台2之響應而得到一系統模型(如第一虛擬機台),且該調機系統9會依步驟S64:提供一符合加工條件之參考模型(如第二虛擬機台),以令該系統模型利用數學演算軟體(如依據上述古典Runge-Kutta四階方法為基礎)即時計算出該參考模型與該系統模型之間的差異(如該動態模擬圖40中,該參考模型之運動路徑取代該實際運動路徑L,L’,以得到該系統模型之運動路徑與該參考模型之運動路徑之間的誤差值),而推算出最佳化參數(如步驟S65),此參數(如第4D圖中之控制參數之欄位中之數字)可以作為自動調整流程的基礎參數的初始值,因而能減少使用者調整該目標機台2之參數之時間。 Therefore, in this case, the reference model of the target machine 2 can be obtained through the identification module 3, so when performing the adjustment parameter operation, as shown in FIGS. 1B and 6 , the user first sets the processing condition, and then follows the steps. S60 to S63: input the control parameter (motion command) extracted from the controller 20 into the target machine 2 and the authentication module 3, so that the tuning system 9 simulates the response of the target machine 2. And obtaining a system model (such as the first virtual machine), and the tuning system 9 provides a reference model (such as a second virtual machine) that meets the processing conditions according to step S64, so that the system model utilizes mathematical calculations. The software (based on the classical Runge-Kutta fourth-order method described above) instantly calculates the difference between the reference model and the system model (as in the dynamic simulation map 40, the motion path of the reference model replaces the actual motion path L) , L', to obtain the error value between the motion path of the system model and the motion path of the reference model), and to derive an optimization parameter (such as step S65), this parameter (such as the control parameter in the 4D figure) The number in the field) can be used as Automatically adjusts a flow of the initial value of the basic parameters, which can reduce the user to adjust the parameters of the time 2 of the target machine.
綜上所述,本案之調機系統9及調機方法,係藉由該模擬單元1與鑑別模組3之設計,以建構出能有效模擬該目標機台2之虛擬機台9a,故不論使用者之操控經驗,使用者只需於該調機系統9之介面上設定所需之相關條件,該虛擬機台9a即可快速地自動演算出所需之控制器20之參數(如步驟S45至S46),以令使用者可直接採用該演算出之參數(如數值b)或僅需微調該參數之數值,因而使 用者能輕易地調整該目標機台2之控制器20之參數,而無需不斷地嘗試大量參數值。 In summary, the tuning system 9 and the tuning method of the present invention are constructed by the simulation unit 1 and the authentication module 3 to construct a virtual machine 9a capable of effectively simulating the target machine 2. The user's control experience, the user only needs to set the relevant conditions on the interface of the tuning system 9, and the virtual machine 9a can quickly and automatically calculate the parameters of the required controller 20 (step S45). Up to S46), so that the user can directly use the calculated parameter (such as the value b) or only need to fine-tune the value of the parameter, thereby The user can easily adjust the parameters of the controller 20 of the target machine 2 without constantly trying a large number of parameter values.
再者,本案之調機系統9可遠端進行調機作業(仍需得知該控制器20之目前參數,以輸入至第4C圖之介面之數值a之欄位中),且可同時針對多台目標機台2(工具機)進行調整參數之作業。 Furthermore, the tuning system 9 of the present invention can perform the tuning operation at a remote end (the current parameters of the controller 20 still need to be known to be input into the field of the value a of the interface of FIG. 4C), and can simultaneously target Multiple target machines 2 (tool machines) perform adjustment parameters.
又,該鑑別模組3之系統鑑別方法係以該模擬單元1之模擬命令作為輸入信號。 Moreover, the system identification method of the authentication module 3 uses the analog command of the analog unit 1 as an input signal.
另外,該模擬單元1可單獨用於模擬該控制器20,而未限定需配合該調機系統9。 In addition, the simulation unit 1 can be used alone to simulate the controller 20 without limiting the need to cooperate with the tuning system 9.
上述實施例係用以例示性說明本案之原理及其功效,而非用於限制本案。任何熟習此項技藝之人士均可在不違背本案之精神及範疇下,對上述實施例進行修改。因此本案揭露之權利保護範圍,應如後述之申請專利範圍所列。 The above embodiments are intended to illustrate the principles of the present invention and its effects, and are not intended to limit the present invention. Anyone who is familiar with the art can modify the above embodiments without violating the spirit and scope of the case. Therefore, the scope of protection of the rights disclosed in this case should be listed in the scope of the patent application described later.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106145286A TWI656940B (en) | 2017-12-22 | 2017-12-22 | Tuning system, simulation unit and tuning and simulation method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106145286A TWI656940B (en) | 2017-12-22 | 2017-12-22 | Tuning system, simulation unit and tuning and simulation method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI656940B true TWI656940B (en) | 2019-04-21 |
| TW201927464A TW201927464A (en) | 2019-07-16 |
Family
ID=66995958
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW106145286A TWI656940B (en) | 2017-12-22 | 2017-12-22 | Tuning system, simulation unit and tuning and simulation method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI656940B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI756780B (en) * | 2020-08-13 | 2022-03-01 | 國立屏東科技大學 | Frame of a vehicle and designing method thereof |
| US11360749B2 (en) | 2020-10-22 | 2022-06-14 | Industrial Technology Research Institute | Device for dynamically generating numerical controller software of machine tool and method for the same |
| TWI844858B (en) * | 2022-05-31 | 2024-06-11 | 何其澤 | Automation control system |
| TWI849858B (en) * | 2023-04-21 | 2024-07-21 | 財團法人精密機械研究發展中心 | Machine dynamic characteristics based intelligent controller processing parameters adjusting method and system |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI719544B (en) * | 2019-07-19 | 2021-02-21 | 國立中興大學 | The method of system identification and servo tuning |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100524130C (en) * | 2001-03-01 | 2009-08-05 | 费舍-柔斯芒特系统股份有限公司 | Automatic work command/unit command generation and track |
| CN101758422A (en) * | 2009-12-10 | 2010-06-30 | 华中科技大学 | Detection analysis device for technical indexes of numerical control device |
-
2017
- 2017-12-22 TW TW106145286A patent/TWI656940B/en active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100524130C (en) * | 2001-03-01 | 2009-08-05 | 费舍-柔斯芒特系统股份有限公司 | Automatic work command/unit command generation and track |
| CN101758422A (en) * | 2009-12-10 | 2010-06-30 | 华中科技大学 | Detection analysis device for technical indexes of numerical control device |
| CN101758422B (en) | 2009-12-10 | 2011-01-26 | 华中科技大学 | A detection and analysis device for technical indicators of numerical control device |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI756780B (en) * | 2020-08-13 | 2022-03-01 | 國立屏東科技大學 | Frame of a vehicle and designing method thereof |
| US11360749B2 (en) | 2020-10-22 | 2022-06-14 | Industrial Technology Research Institute | Device for dynamically generating numerical controller software of machine tool and method for the same |
| TWI844858B (en) * | 2022-05-31 | 2024-06-11 | 何其澤 | Automation control system |
| TWI849858B (en) * | 2023-04-21 | 2024-07-21 | 財團法人精密機械研究發展中心 | Machine dynamic characteristics based intelligent controller processing parameters adjusting method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201927464A (en) | 2019-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI656940B (en) | Tuning system, simulation unit and tuning and simulation method thereof | |
| JP6871842B2 (en) | Machining simulation condition optimization method, machining simulation equipment, machining simulation system and program | |
| JP2017102619A (en) | Control parameter adjustment device, control parameter adjustment method, and control parameter adjustment program | |
| US12153413B2 (en) | Virtual sensor on a higher-level machine platform | |
| TW201725458A (en) | Device for automatically generating machine tool control commands and parameters and method thereof capable of being implemented in an auxiliary device operated independently from a machine tool control system, or being used as a sub-unit of the machine tool control system | |
| CN103926847A (en) | Robot simulation system | |
| WO2018160163A1 (en) | System and method for determining grasping positions for two-handed grasps of industrial objects | |
| JP6920972B2 (en) | Method for optimizing simulation conditions, manufacturing process simulation equipment, manufacturing process simulation system and program | |
| JP2018120327A (en) | Control apparatus, control program and control system | |
| CN105415387A (en) | Robot System For Setting Motion Monitoring Range Of Robot | |
| US11137728B2 (en) | Processing device, control parameter determination method, and non-transitory recording medium storing a control parameter determination program | |
| CN108398896A (en) | Control device, control method and control program | |
| CN113641239B (en) | Methods for immersive human-computer interaction | |
| US7284154B2 (en) | System and method for evaluating usability using virtual user | |
| US20190196422A1 (en) | Tuning system, simulation unit and tuning and simulation method thereof | |
| JP2008102714A (en) | Optimal design support device for feed drive system of multi-axis machine tool and program for the device | |
| KR20100135513A (en) | Numerical control system with graphical user interface | |
| CN109960832A (en) | Tuning method and its tuning system and simulation unit and simulation method | |
| JP2006340480A (en) | Motor control device and control method | |
| JP2020052032A (en) | Imaging device and imaging system | |
| JP2011158931A (en) | Working time estimation system, method, and program | |
| CN117507287A (en) | Display control system and method of injection molding machine | |
| Liu et al. | Fractional‐order PID servo control based on decoupled visual model | |
| CN110109372A (en) | For simulating the equipment and method of controlled machines or facility | |
| TW202301049A (en) | Prediction system, information processing device, and information processing program |