CN110568761A - On-line Optimizing Method of Feed Speed Based on Fuzzy Control - Google Patents
On-line Optimizing Method of Feed Speed Based on Fuzzy Control Download PDFInfo
- Publication number
- CN110568761A CN110568761A CN201910954545.9A CN201910954545A CN110568761A CN 110568761 A CN110568761 A CN 110568761A CN 201910954545 A CN201910954545 A CN 201910954545A CN 110568761 A CN110568761 A CN 110568761A
- Authority
- CN
- China
- Prior art keywords
- fuzzy
- power
- error
- control
- output
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000005457 optimization Methods 0.000 claims abstract description 38
- 238000012545 processing Methods 0.000 claims abstract description 29
- 238000005520 cutting process Methods 0.000 claims abstract description 21
- 238000013139 quantization Methods 0.000 claims description 13
- 238000003801 milling Methods 0.000 claims description 9
- 238000003754 machining Methods 0.000 claims description 8
- 238000012360 testing method Methods 0.000 claims description 8
- 230000005484 gravity Effects 0.000 claims description 5
- 238000005070 sampling Methods 0.000 claims description 4
- 238000004519 manufacturing process Methods 0.000 claims 3
- 238000006243 chemical reaction Methods 0.000 claims 1
- 238000001342 constant potential amperometry Methods 0.000 claims 1
- 238000013507 mapping Methods 0.000 claims 1
- 238000004422 calculation algorithm Methods 0.000 abstract description 4
- 238000013178 mathematical model Methods 0.000 abstract description 3
- 230000003044 adaptive effect Effects 0.000 abstract 1
- 201000005947 Carney Complex Diseases 0.000 description 13
- 238000004088 simulation Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000011089 mechanical engineering Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B13/00—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
- G05B13/02—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
- G05B13/04—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
- G05B13/042—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Feedback Control In General (AREA)
Abstract
本发明公开了一种基于模糊控制的进给速度在线优化方法,用于解决现有进给速度在线控制方法实用性差的技术问题。技术方案是通过制作恒功率模糊控制器,应用模糊控制算法,对复杂多变、难以用精确数学模型表达的控制体系实现切削过程的恒功率控制,本发明可以解决复杂曲面多轴数控铣削过程中的工艺参数在线优化问题,实现恒功率自适应在线调控,保证了在变工况情况下避免刀具过度磨损以及机床主轴的振荡,起到在保护机床和刀具的前提下缩短加工时间,提高加工效率的作用,并且具有广泛适用性和实际工程应用价值,实用性好。
The invention discloses an online optimization method of feed speed based on fuzzy control, which is used to solve the technical problem of poor practicability of the existing online feed speed control method. The technical solution is to realize the constant power control of the cutting process for complex and changeable control systems that are difficult to express with precise mathematical models by making a constant power fuzzy controller and applying fuzzy control algorithms. On-line optimization of the process parameters, to achieve constant power adaptive on-line control, to avoid excessive wear of the tool and vibration of the machine tool spindle under variable working conditions, to shorten the processing time and improve the processing efficiency under the premise of protecting the machine tool and the tool The role, and has wide applicability and practical engineering application value, good practicability.
Description
技术领域technical field
本发明涉及一种进给速度在线控制方法,特别涉及一种基于模糊控制的进给速度在线优化方法。The invention relates to an online feed speed control method, in particular to an online feed speed optimization method based on fuzzy control.
背景技术Background technique
在当前数控加工技术飞速发展的时代,加工工艺参数的优化有助于发挥机床的最优驱动性能和刀具的最佳切削性能,进而提高加工质量、降低成本、提高能效。实际数控加工中可优化的工艺参数并不多,比如调整主轴转速或进给速度来优化加工过程,然而主轴转速体现了机床主轴的运动,频繁改变会对机床造成损伤。所以通过进给速度优化是实现工艺参数优化,进而提高加工效率最直接、最有效的方法。In the current era of rapid development of CNC machining technology, the optimization of machining process parameters is helpful to give full play to the optimal driving performance of machine tools and the best cutting performance of cutting tools, thereby improving processing quality, reducing costs, and improving energy efficiency. There are not many process parameters that can be optimized in actual NC machining, such as adjusting the spindle speed or feed rate to optimize the machining process. However, the spindle speed reflects the movement of the machine tool spindle, and frequent changes will cause damage to the machine tool. Therefore, the optimization of the feed rate is the most direct and effective way to optimize the process parameters and improve the processing efficiency.
文献“基于有限元数值模型和进给速度优化的薄壁件侧铣变形在线控制,机械工程学报,2017,Vol.53,No.21,p190-199”提出一种基于有限元数值模型和进给速度优化的在线控制方法,根据薄壁件切削过程的有限元仿真结果,建立数控机床进给速度、切削力、工件切削变形间的数值模型,进而确定用于控制变形的最优目标切削力。在具有开放式模块化的数控系统平台上开发了切削力信号实时采集、滤波功能和进给速度在线优化策略,并根据滤波后的切削力及相应算法在加工过程中实时调整机床进给速度,保证切削力逐渐接近最优控制目标而实现切削变形的在线控制。该文献建立的进给速度与切削力之间的数值模型是通过有限元仿真得到的,故其优化效果依赖于数值仿真的准确性,并且数值模型未考虑切削宽度、切削深度等加工参数,不适用于复杂曲面多轴数控加工,其应用受到限制约束。The literature "On-line control of side milling deformation of thin-walled parts based on finite element numerical model and feed rate optimization, Chinese Journal of Mechanical Engineering, 2017, Vol.53, No.21, p190-199" proposes a method based on finite element numerical model and advanced Based on the online control method of speed optimization, according to the finite element simulation results of the cutting process of thin-walled parts, the numerical model among the feed speed, cutting force and workpiece cutting deformation of CNC machine tools is established, and then the optimal target cutting force for controlling deformation is determined . On the open and modularized CNC system platform, the real-time acquisition of cutting force signal, filtering function and online optimization strategy of feed speed are developed, and the feed speed of the machine tool is adjusted in real time according to the filtered cutting force and corresponding algorithm during the machining process. The on-line control of cutting deformation is realized by ensuring that the cutting force is gradually approaching the optimal control target. The numerical model between feed speed and cutting force established in this document is obtained through finite element simulation, so its optimization effect depends on the accuracy of numerical simulation, and the numerical model does not consider processing parameters such as cutting width and cutting depth. It is suitable for multi-axis CNC machining of complex surfaces, and its application is subject to restrictions.
发明内容Contents of the invention
为了克服现有进给速度在线控制方法实用性差的不足,本发明提供一种基于模糊控制的进给速度在线优化方法。该方法通过制作恒功率模糊控制器,应用模糊控制算法,对复杂多变、难以用精确数学模型表达的控制体系实现切削过程的恒功率控制,本发明可以解决复杂曲面多轴数控铣削过程中的工艺参数在线优化问题,实现恒功率自适应在线调控,保证了在变工况情况下避免刀具过度磨损以及机床主轴的振荡,起到在保护机床和刀具的前提下缩短加工时间,提高加工效率的作用,并且具有广泛适用性和实际工程应用价值,实用性好。In order to overcome the disadvantage of poor practicability of the existing online feed speed control method, the present invention provides an online feed speed optimization method based on fuzzy control. By making a constant power fuzzy controller and applying a fuzzy control algorithm, the method realizes constant power control of the cutting process for a complex and changeable control system that is difficult to express with an accurate mathematical model. On-line optimization of process parameters, to achieve constant power self-adaptive on-line control, to avoid excessive tool wear and vibration of the machine tool spindle under variable working conditions, to shorten the processing time and improve the processing efficiency under the premise of protecting the machine tool and tools Function, and has wide applicability and practical engineering application value, good practicability.
本发明解决其技术问题所采用的技术方案:一种基于模糊控制的进给速度在线优化方法,其特点是包括以下步骤:The technical solution adopted by the present invention to solve its technical problems: a method for online optimization of feed speed based on fuzzy control, which is characterized in that it includes the following steps:
步骤一、确定模糊控制器的输入输出。设定目标切削功率Pobj,采集加工过程中机床的主轴功率,将实际加工功率与目标功率值Pobj进行比较获得功率误差EP,同时对误差求微分,在一个采样周期里计算出功率误差变化率CP,功率误差EP和功率误差变化率CP作为模糊控制器的输入变量,将数控机床的进给倍率作为输出量。Step 1: Determine the input and output of the fuzzy controller. Set the target cutting power P obj , collect the spindle power of the machine tool during processing, compare the actual processing power with the target power value P obj to obtain the power error E P , and at the same time differentiate the error, and calculate the power error in one sampling cycle Change rate C P , power error E P and power error change rate C P are used as the input variables of the fuzzy controller, and the feed override of the CNC machine tool is used as the output.
步骤二、输入输出模糊化处理。对于输入输出精确值变量进行相应模糊化处理,用七个词汇来描述,即{负大,负中,负小,零,正小,正中,正大},模糊控制的输入输出变量设置如下:Step 2, input and output fuzzy processing. Carry out corresponding fuzzy processing on the input and output precise value variables, using seven words to describe, namely {negative large, negative medium, negative small, zero, positive small, positive medium, positive large}, the input and output variables of fuzzy control are set as follows:
Ep的模糊集为{NB,NM,NS,N0,0,PS,PM,PB};The fuzzy set of Ep is {NB, NM, NS, N0, 0, PS, PM, PB};
Cp的模糊集为{NB,NM,NS,N0,0,PS,PM,PB};The fuzzy set of Cp is {NB, NM, NS, N0, 0, PS, PM, PB};
△U的模糊集为{NB,NM,NS,0,PS,PM,PB};The fuzzy set of △U is {NB, NM, NS, 0, PS, PM, PB};
Ep、Cp、△U的论域均为{-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6};The domains of Ep, Cp, and △U are all {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6};
步骤三、确定模糊子集的隶属度函数。输入变量采用三角形的隶属度函数,输出变量使用梯形隶属度函数。Step 3: Determine the membership function of the fuzzy subset. The input variable uses a triangular membership function, and the output variable uses a trapezoidal membership function.
步骤四、制定模糊控制规则。采用If…then的条件语句控制规则。Step four, formulate fuzzy control rules. Use If...then conditional statements to control the rules.
步骤五、采用重心法的解模糊化方法,将输出的模糊集转化为确定的数值输出,并制作成模糊查询表,对于给定的输入通过查询表得出相应的输出控制量。Step 5. Using the defuzzification method of the center of gravity method, the output fuzzy set is converted into a definite numerical output, and a fuzzy lookup table is made, and the corresponding output control quantity is obtained through the lookup table for a given input.
步骤六、确定模糊控制器参数。确定输入量主轴功率变化的区间和主轴功率变化率的变化区间和作为输出量的进给倍率的变化区间。同时需要选择合理的比例因子和量化因子,当误差的论域设为[-x,+x],则误差的模糊集论域为{-n,-n+1,…,0,…,n-1,n},误差的量化因子K如下式表示:Step six, determine the parameters of the fuzzy controller. Determine the change interval of the input spindle power, the change interval of the spindle power change rate, and the change interval of the output feedrate override. At the same time, it is necessary to choose a reasonable scale factor and quantization factor. When the domain of error is set to [-x,+x], the fuzzy set domain of error is {-n, -n+1,...,0,...,n -1, n}, the quantization factor K of the error is expressed as follows:
其中,n为误差模糊集的论域最大值,x为误差论域的最大值。Among them, n is the maximum value of the discourse domain of the error fuzzy set, and x is the maximum value of the discourse domain of the error.
步骤七、制作模糊控制查询表。在MATLAB软件的SIMULINK模块中制作简易模糊控制器,并将之前建立的模糊规则加载到工作空间,在系统测试中将输入和输出变量映射到模糊控制器的对应输入输出,运行测试并保存结果,将结果进行格式转换得到相应的模糊控制查询表。Step seven, making fuzzy control lookup table. Make a simple fuzzy controller in the SIMULINK module of MATLAB software, and load the previously established fuzzy rules into the workspace, map the input and output variables to the corresponding input and output of the fuzzy controller in the system test, run the test and save the results, Transform the result to get the corresponding fuzzy control query table.
步骤八、用模糊控制查询表替换在线优化流程中的模糊控制器,并建立基于模糊控制的在线优化模型,通过编程内置于数控机床中。Step eight, replace the fuzzy controller in the online optimization process with the fuzzy control look-up table, and establish an online optimization model based on fuzzy control, which is built into the CNC machine tool through programming.
步骤九、在线优化调试。通过数控铣削加工工件采集实时铣削功率数据,利用在线优化控制器自适应调控进给倍率进而调整进给速度,并将调整后的功率反馈到恒功率控制器中不断进行迭代调整,直至实现功率恒定。Step nine, online optimization and debugging. Collect real-time milling power data through CNC milling workpieces, use the online optimization controller to adaptively adjust the feed rate and then adjust the feed speed, and feed the adjusted power back to the constant power controller for continuous iterative adjustment until the power is constant .
本发明的有益效果是:该方法通过制作恒功率模糊控制器,应用模糊控制算法,对复杂多变、难以用精确数学模型表达的控制体系实现切削过程的恒功率控制,本发明可以解决复杂曲面多轴数控铣削过程中的工艺参数在线优化问题,实现恒功率自适应在线调控,保证了在变工况情况下避免刀具过度磨损以及机床主轴的振荡,起到在保护机床和刀具的前提下缩短加工时间,提高加工效率的作用,并且具有广泛适用性和实际工程应用价值,实用性好。The beneficial effects of the present invention are: the method realizes the constant power control of the cutting process for complex and changeable control systems that are difficult to express with precise mathematical models by making a constant power fuzzy controller and applying the fuzzy control algorithm. The present invention can solve complex curved surfaces On-line optimization of process parameters in the multi-axis CNC milling process realizes constant power self-adaptive on-line control, which ensures the avoidance of excessive tool wear and vibration of the machine tool spindle under variable working conditions, and shortens the time while protecting the machine tool and the tool. It can reduce the processing time and improve the processing efficiency, and has wide applicability and practical engineering application value, and has good practicability.
下面结合附图和具体实施方式对本发明作详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
附图说明Description of drawings
图1是本发明基于模糊控制的进给速度在线优化方法的流程图。Fig. 1 is a flow chart of the online optimization method of feed speed based on fuzzy control in the present invention.
图2是本发明方法中输入输出变量的隶属度函数图。Fig. 2 is a graph of membership function of input and output variables in the method of the present invention.
图3是本发明方法中基于模糊控制的进给速度在线优化仿真模型图。Fig. 3 is a simulation model diagram of online optimization of feed speed based on fuzzy control in the method of the present invention.
图4是本发明方法中基于模糊控制的进给速度在线优化仿真结果对比图。Fig. 4 is a comparison chart of online optimization simulation results of feed speed based on fuzzy control in the method of the present invention.
具体实施方式Detailed ways
参照图1-4。本发明基于模糊控制的进给速度在线优化方法具体步骤如下:Refer to Figure 1-4. The present invention is based on fuzzy control feed speed online optimization method concrete steps as follows:
步骤一、确定模糊控制器的输入输出。设定目标切削功率Pobj,采集加工过程中机床的主轴功率,将实际加工功率与目标功率值Pobj进行比较以获得功率误差EP,同时对误差求微分,在一个采样周期里计算出功率误差变化率CP,因此,功率误差EP和功率误差变化率CP作为模糊控制器的输入变量,将数控机床的进给倍率作为输出量。Step 1: Determine the input and output of the fuzzy controller. Set the target cutting power P obj , collect the spindle power of the machine tool during processing, compare the actual processing power with the target power value P obj to obtain the power error E P , and differentiate the error to calculate the power in one sampling period The error change rate C P , therefore, the power error E P and the power error change rate C P are used as the input variables of the fuzzy controller, and the feed override of the CNC machine tool is taken as the output.
步骤二、输入输出模糊化处理。对于输入输出精确值变量进行相应模糊化处理,用七个词汇来描述,即{负大,负中,负小,零,正小,正中,正大},因此模糊控制的输入输出变量设置如下:Step 2, input and output fuzzy processing. Corresponding fuzzy processing is carried out for the input and output precise value variables, which are described by seven words, namely {negative large, negative medium, negative small, zero, positive small, positive medium, positive large}, so the input and output variables of fuzzy control are set as follows:
Ep的模糊集为{NB,NM,NS,N0,0,PS,PM,PB};The fuzzy set of Ep is {NB, NM, NS, N0, 0, PS, PM, PB};
Cp的模糊集为{NB,NM,NS,N0,0,PS,PM,PB};The fuzzy set of Cp is {NB, NM, NS, N0, 0, PS, PM, PB};
△U的模糊集为{NB,NM,NS,0,PS,PM,PB};The fuzzy set of △U is {NB, NM, NS, 0, PS, PM, PB};
Ep、Cp、△U的论域均为{-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6};The domains of Ep, Cp, and △U are all {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6};
步骤三、确定模糊子集的隶属度函数。输入变量采用三角形的隶属度函数,形状简单,计算工作量少,节约存储空间,控制灵敏度高。输出变量使用梯形隶属度函数,能使模糊控制器对非线性系统有良好的控制性能。Step 3: Determine the membership function of the fuzzy subset. The input variable adopts a triangular membership function, which has a simple shape, less calculation workload, saves storage space, and has high control sensitivity. The output variable uses the trapezoidal membership function, which can make the fuzzy controller have good control performance on the nonlinear system.
步骤四、制定模糊控制规则。采用If…then的条件语句控制规则。当误差和误差变化率大或者较大的情况下,选取的控制量以消除误差为主;当误差和误差变化率较小的时候,选择的控制量要注意防止超调,要以系统的稳定性为主要考虑因素;当误差和误差变化率为正时或者都为负时,相应的符号需要变化,以消除误差为主要目的。Step four, formulate fuzzy control rules. Use If...then conditional statements to control the rules. When the error and the rate of change of the error are large or large, the selected control quantity is mainly to eliminate the error; when the error and the rate of change of the error are small, the selected control quantity should pay attention to prevent overshooting, and the stability of the system should be considered. Sex is the main consideration; when the error and the error rate of change are positive or both are negative, the corresponding sign needs to be changed to eliminate the error as the main purpose.
步骤五、采用重心法的解模糊化方法,将输出的模糊集转化为确定的数值输出,并制作成模糊查询表,对于给定的输入通过查询表得出相应的输出控制量。Step 5. Using the defuzzification method of the center of gravity method, the output fuzzy set is converted into a definite numerical output, and a fuzzy lookup table is made, and the corresponding output control quantity is obtained through the lookup table for a given input.
步骤六、确定模糊控制器参数。确定输入量主轴功率变化的区间和主轴功率变化率的变化区间和作为输出量的进给倍率的变化区间。同时需要选择合理的比例因子和量化因子,当误差的论域设为[-x,+x],则误差的模糊集论域为{-n,-n+1,…,0,…,n-1,n},因此误差的量化因子K如下式表示:Step six, determine the parameters of the fuzzy controller. Determine the change interval of the input spindle power, the change interval of the spindle power change rate, and the change interval of the output feedrate override. At the same time, it is necessary to choose a reasonable scale factor and quantization factor. When the domain of error is set to [-x,+x], the fuzzy set domain of error is {-n, -n+1,...,0,...,n -1, n}, so the quantization factor K of the error is expressed as follows:
其中n为误差模糊集的论域最大值,x为误差论域的最大值。同理误差变化率的量化因子和输出控制量的比例因子也可以通过上述方法得到。但是这些控制参数的取值需要根据加工实验来给予一定的修正来达到一定的控制效果。Among them, n is the maximum value of the discourse domain of the error fuzzy set, and x is the maximum value of the discourse domain of the error. Similarly, the quantization factor of the error change rate and the scaling factor of the output control quantity can also be obtained by the above method. However, the values of these control parameters need to be corrected according to the processing experiment to achieve a certain control effect.
步骤七、制作模糊控制查询表。在MATLAB软件的SIMULINK模块中制作简易模糊控制器,并将之前建立的模糊规则加载到工作空间,在系统测试中将输入和输出变量映射到模糊控制器的对应输入输出,运行测试并保存结果,将结果进行格式转换得到相应的模糊控制查询表。Step seven, making fuzzy control lookup table. Make a simple fuzzy controller in the SIMULINK module of MATLAB software, and load the previously established fuzzy rules into the workspace, map the input and output variables to the corresponding input and output of the fuzzy controller in the system test, run the test and save the results, Transform the result to get the corresponding fuzzy control query table.
步骤八、用模糊控制查询表替换在线优化流程中的模糊控制器,并建立基于模糊控制的在线优化模型,通过编程内置于数控机床中。Step eight, replace the fuzzy controller in the online optimization process with the fuzzy control look-up table, and establish an online optimization model based on fuzzy control, which is built into the CNC machine tool through programming.
步骤九、在线优化调试。通过数控铣削加工工件采集实时铣削功率数据,利用在线优化控制器自适应调控进给倍率进而调整进给速度,并将调整后的功率反馈到恒功率控制器中不断进行迭代调整,直至实现功率恒定。Step nine, online optimization and debugging. Collect real-time milling power data through CNC milling workpieces, use the online optimization controller to adaptively adjust the feed rate and then adjust the feed speed, and feed the adjusted power back to the constant power controller for continuous iterative adjustment until the power is constant .
应用实施例。Application examples.
步骤一、通过数控机床内置传感器采集切削加工过程中的主轴负载,主轴负载乘以额定功率得到机床主轴功率值。Step 1: Collect the spindle load during the cutting process through the built-in sensor of the CNC machine tool, and multiply the spindle load by the rated power to obtain the power value of the machine tool spindle.
步骤二、确定模糊控制器的输入输出。给定目标切削功率Pobj,将采集的加工功率与目标功率值Pobj进行比较以获得功率误差EP,同时对误差求微分,在一个采样周期里计算出功率误差变化率CP,因此,功率误差EP和功率误差变化率CP作为模糊控制器的输入变量。将数控机床的进给倍率作为输出量。Step two, determine the input and output of the fuzzy controller. Given the target cutting power P obj , compare the collected processing power with the target power value P obj to obtain the power error E P , and at the same time differentiate the error, and calculate the rate of change of the power error C P in one sampling period. Therefore, The power error E P and the power error change rate C P are used as the input variables of the fuzzy controller. The feed override of the CNC machine tool is used as the output.
步骤三、输入输出模糊化处理。用{负大,负中,负小,零,正小,正中,正大}来描述模糊量大小,设置模糊控制的输入输出变量如下:Step 3, input and output fuzzy processing. Use {negative large, negative medium, negative small, zero, positive small, positive medium, positive large} to describe the size of the fuzzy quantity, and set the input and output variables of the fuzzy control as follows:
Ep的模糊集为{NB,NM,NS,N0,0,PS,PM,PB};The fuzzy set of Ep is {NB, NM, NS, N0, 0, PS, PM, PB};
Cp的模糊集为{NB,NM,NS,N0,0,PS,PM,PB};The fuzzy set of Cp is {NB, NM, NS, N0, 0, PS, PM, PB};
△U的模糊集为{NB,NM,NS,0,PS,PM,PB};The fuzzy set of △U is {NB, NM, NS, 0, PS, PM, PB};
Ep、Cp、△U的论域均为{-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6};The domains of Ep, Cp, and △U are all {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6};
步骤四、参照图2,其为输入输出的隶属度函数图,其输入变量采用三角形的隶属度函数,形状简单,计算工作量少,节约存储空间,控制灵敏度高。输出变量使用梯形隶属度函数,能使模糊控制器对非线性系统有良好的控制性能。使用Matlab软件的模糊逻辑工具箱完成对所需要的模糊逻辑控制器的设计,在模糊逻辑编辑窗口下编辑前面定义的EP、CP和△U的隶属度函数。两个隶属度函数都选择三角形,输出的隶属度函数选择梯形,定义隶属度函数的范围为[-6,6]。Step 4. Referring to Fig. 2, it is a membership function diagram of input and output, and its input variable adopts a triangular membership function, which has a simple shape, less calculation workload, saves storage space, and has high control sensitivity. The output variable uses the trapezoidal membership function, which can make the fuzzy controller have good control performance on the nonlinear system. Use the fuzzy logic toolbox of Matlab software to complete the design of the required fuzzy logic controller, and edit the previously defined membership functions of E P , C P and ΔU in the fuzzy logic editing window. The two membership functions are all triangles, the output membership function is trapezoidal, and the range of the membership function is defined as [-6, 6].
步骤五、制定模糊控制规则。建立的模糊控制规则如表1所示。Step five, formulate fuzzy control rules. The established fuzzy control rules are shown in Table 1.
①当误差为负大且误差变化为正小时,控制量的变化取负中;① When the error is negative and the error change is positive and small, the change of the control quantity is taken as negative;
②当误差为负大且误差变化为正大或正中时,控制量变化为负小或零等级,控制量不宜增加过大,否则会造成超调,产生正误差;②When the error is negatively large and the error change is positively large or positively medium, the change of the control quantity is negatively small or zero level, and the control quantity should not be increased too much, otherwise it will cause overshoot and positive error;
③当误差为为负中时,控制量变化和误差为负大时是基本相同的,为了尽快消除误差;④当误差为负小且误差变化为负,控制量变化取负大或负中,抑制误差向负方向变化;⑤当误差为负小且误差变化为正,系统的趋势是消除负小误差,控制量变化取正小或正中。③When the error is negative and medium, the control variable change is basically the same as when the error is negative and large, in order to eliminate the error as soon as possible; ④When the error is negative and the error change is negative, the control variable change is negative large or negative, Suppress the change of the error in the negative direction; ⑤When the error is negative and the error change is positive, the trend of the system is to eliminate the negative small error, and the change of the control variable is positive or medium.
表1模糊控制规则表Table 1 Fuzzy control rule table
步骤六、采用重心法解模糊化,在模糊逻辑工具箱中的“Defuzzification”选项中选择“centroid”,系统自动采用重心法完成控制量的解模糊化。Step 6. Defuzzification using the center of gravity method. Select "centroid" in the "Defuzification" option in the fuzzy logic toolbox, and the system will automatically use the center of gravity method to complete the defuzzification of the control quantity.
步骤七、确定模糊控制器参数。如果假设误差的论域设为[-x,+x],而误差的模糊集论域就是{-n,-n+1,…,0,…,n-1,n+1},因此误差的量化因子K为:Step seven, determine the parameters of the fuzzy controller. If it is assumed that the domain of the error is set to [-x,+x], and the fuzzy set domain of the error is {-n, -n+1,...,0,...,n-1,n+1}, so the error The quantization factor K of is:
其中n为误差模糊集的论域最大值,x为误差论域的最大值。同理误差变化的量化因子和输出控制量的比例因子也可以通过上述方法得到。根据加工优化,经过反复调试后得到功率误差量化因子K1=0.045,功率误差变化率量化因子K2=0.034,输出进给倍率解模糊量化因子K3=0.3。Among them, n is the maximum value of the discourse domain of the error fuzzy set, and x is the maximum value of the discourse domain of the error. Similarly, the quantization factor of the error change and the scaling factor of the output control quantity can also be obtained by the above method. According to the processing optimization, after repeated debugging, the power error quantization factor K 1 =0.045, the power error change rate quantization factor K 2 =0.034, and the output feed rate defuzzification quantization factor K 3 =0.3.
步骤八、制作模糊控制查询表。在MATLAB软件的SIMULINK模块中制作简易模糊控制器,并将之前建立的模糊规则加载到工作空间,在系统测试中将输入和输出变量映射到模糊控制器的对应输入输出,运行测试169次迭代后并保存结果,将结果进行格式转换得到相应的模糊控制查询表如表2所示。在Simulink中新建简易模糊控制模型,将原本运算复杂的Fuzzy Logic Controller with Ruleviewer部分换成Lookup Table,将其参数设置为表2建立的模糊规则查询表的数据,这样在进行模糊运算时提高运算的效率,并且其效果也是等同于上述用隶属度函数运算的结果,对于输入大量数据的运算,其运算时间缩减。Step eight, making fuzzy control lookup table. Create a simple fuzzy controller in the SIMULINK module of MATLAB software, and load the previously established fuzzy rules into the workspace. In the system test, the input and output variables are mapped to the corresponding input and output of the fuzzy controller. After running the test for 169 iterations And save the result, convert the result to get the corresponding fuzzy control query table as shown in Table 2. Create a new simple fuzzy control model in Simulink, replace the part of Fuzzy Logic Controller with Ruleviewer with complex calculations with Lookup Table, and set its parameters to the data of the fuzzy rule lookup table established in Table 2, so as to improve the calculation efficiency when performing fuzzy calculations. Efficiency, and its effect is also equivalent to the result of the above-mentioned operation with the membership function. For the operation of inputting a large amount of data, the operation time is reduced.
表2模糊控制查询表Table 2 Fuzzy control query table
步骤九、建立基于模糊控制的在线优化仿真模型,通过编程内置于数控机床中。主要包括三部分:功率模拟模块、模糊控制调控模块和功率反馈输出模块。为了模拟变切深工况下机床的功率变化情况,输入的切深设置为一个分段函数形式,并且输出的功率和一个白噪声信号(White Noises)混合,模拟得到一个波动变化的功率信号。模糊控制调控模块首先将功率发生器模拟的功率信号与给定目标功率值350W作差,将功率误差和功率误差变化率通过模糊量化因子模糊化,功率反馈输出模块将模糊控制器输出的进给倍率反馈到功率发生器中产生优化后的功率信号,该过程完成后再次反馈到模糊控制调控模块,直至功率恒定,同时也输出调控后的进给速度值。该模块在加工过程中属于反馈调节的过程,通过不断反馈在线调节最终实现恒功率约束,使铣削加工平稳进行,缩短加工时间,提高加工效率。Step 9: Establish an online optimization simulation model based on fuzzy control, and build it into the numerical control machine tool through programming. It mainly includes three parts: power simulation module, fuzzy control regulation module and power feedback output module. In order to simulate the power change of the machine tool under the condition of variable depth of cut, the input depth of cut is set as a piecewise function, and the output power is mixed with a white noise signal (White Noises), and the simulation obtains a fluctuating power signal. The fuzzy control regulation module first makes a difference between the power signal simulated by the power generator and the given target power value of 350W, and fuzzifies the power error and power error change rate through the fuzzy quantization factor, and the power feedback output module feeds the output of the fuzzy controller The magnification is fed back to the power generator to generate an optimized power signal. After the process is completed, it is fed back to the fuzzy control module until the power is constant, and the regulated feed speed value is also output. This module belongs to the process of feedback adjustment in the process of processing. Through continuous feedback and online adjustment, the constant power constraint is finally realized, so that the milling process can be carried out smoothly, the processing time can be shortened, and the processing efficiency can be improved.
从图4可以看出,运用上述步骤建立的基于模糊控制的进给速度优化仿真模型进行仿真实验,同时在各个环节设置示波器,便于观察各个环节的结果,可以看出当给定目标功率值为350W时,功率差值较小处的功率经过优化后基本保持不变,功率差值较大出的功率经过优化后也趋近于目标功率值,并且保持相对的稳定,其功率波动误差保持在±10%以内,这说明了优化进给速度后的加工功率实现了恒功率约束,使得加工过程更加稳定,并且优化后的功率普遍大于优化前功率,说明优化后进给速度都大于原始进给速度,进给速度增大则缩短了加工时间,提高了加工效率。It can be seen from Figure 4 that the fuzzy control-based feed speed optimization simulation model established by the above steps is used to carry out simulation experiments, and an oscilloscope is set up in each link to facilitate observation of the results of each link. It can be seen that when the given target power value is At 350W, the power at the small power difference remains basically unchanged after optimization, and the power at the large power difference approaches the target power value after optimization, and remains relatively stable, and its power fluctuation error remains at Within ±10%, this shows that the processing power after the optimized feed rate achieves a constant power constraint, making the processing process more stable, and the power after optimization is generally greater than the power before optimization, indicating that the feed speed after optimization is greater than the original feed speed , The increase of the feed speed shortens the processing time and improves the processing efficiency.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910954545.9A CN110568761A (en) | 2019-10-09 | 2019-10-09 | On-line Optimizing Method of Feed Speed Based on Fuzzy Control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910954545.9A CN110568761A (en) | 2019-10-09 | 2019-10-09 | On-line Optimizing Method of Feed Speed Based on Fuzzy Control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110568761A true CN110568761A (en) | 2019-12-13 |
Family
ID=68784115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910954545.9A Pending CN110568761A (en) | 2019-10-09 | 2019-10-09 | On-line Optimizing Method of Feed Speed Based on Fuzzy Control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110568761A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111930075A (en) * | 2020-07-31 | 2020-11-13 | 深圳吉兰丁智能科技有限公司 | Self-adaptive machining control method and non-volatile readable storage medium |
CN112065359A (en) * | 2020-09-21 | 2020-12-11 | 北京三一智造科技有限公司 | Drilling control method and rotary drilling rig |
CN112835326A (en) * | 2020-12-30 | 2021-05-25 | 天津重型装备工程研究有限公司 | An intelligent method and system for processing large castings and forgings |
CN113433990A (en) * | 2021-08-25 | 2021-09-24 | 深圳市中科先见医疗科技有限公司 | Rapid temperature control method and system based on single chip microcomputer |
CN113761740A (en) * | 2021-09-03 | 2021-12-07 | 中国电力科学研究院有限公司 | Renewable energy hydrogen production power control, efficiency improvement method and system |
CN114859823A (en) * | 2022-04-28 | 2022-08-05 | 江苏西格数据科技有限公司 | Cutting process parameter optimization method, system, computer equipment and storage medium |
CN116511061A (en) * | 2023-04-27 | 2023-08-01 | 东莞市奇迹智造科技有限公司 | Packing control method and system for cross-belt sorter |
CN118829060A (en) * | 2024-07-23 | 2024-10-22 | 江苏贝索斯智能科技有限公司 | A control system and method based on plasma arc flame length detection |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5828574A (en) * | 1997-05-19 | 1998-10-27 | General Electric Company | Adaptive feedrates from geometry modeling for NC machining |
CN101025620A (en) * | 2006-02-24 | 2007-08-29 | 同济大学 | Hierarchical fuzzy control method for numerical control milling process |
CN103197596A (en) * | 2013-03-14 | 2013-07-10 | 天津大学 | Numerical control machining parameter adaptive fuzzy control rule optimization method |
-
2019
- 2019-10-09 CN CN201910954545.9A patent/CN110568761A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5828574A (en) * | 1997-05-19 | 1998-10-27 | General Electric Company | Adaptive feedrates from geometry modeling for NC machining |
CN101025620A (en) * | 2006-02-24 | 2007-08-29 | 同济大学 | Hierarchical fuzzy control method for numerical control milling process |
CN103197596A (en) * | 2013-03-14 | 2013-07-10 | 天津大学 | Numerical control machining parameter adaptive fuzzy control rule optimization method |
Non-Patent Citations (1)
Title |
---|
徐剑 等: "基于开放式数控系统的恒功率自适应控制研究", 《制造技术与机床》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111930075A (en) * | 2020-07-31 | 2020-11-13 | 深圳吉兰丁智能科技有限公司 | Self-adaptive machining control method and non-volatile readable storage medium |
CN112065359A (en) * | 2020-09-21 | 2020-12-11 | 北京三一智造科技有限公司 | Drilling control method and rotary drilling rig |
CN112065359B (en) * | 2020-09-21 | 2023-05-16 | 北京三一智造科技有限公司 | Drilling control method and rotary drilling rig |
CN112835326A (en) * | 2020-12-30 | 2021-05-25 | 天津重型装备工程研究有限公司 | An intelligent method and system for processing large castings and forgings |
CN113433990A (en) * | 2021-08-25 | 2021-09-24 | 深圳市中科先见医疗科技有限公司 | Rapid temperature control method and system based on single chip microcomputer |
CN113761740A (en) * | 2021-09-03 | 2021-12-07 | 中国电力科学研究院有限公司 | Renewable energy hydrogen production power control, efficiency improvement method and system |
CN113761740B (en) * | 2021-09-03 | 2025-03-25 | 中国电力科学研究院有限公司 | Power control and efficiency improvement method and system for hydrogen production from renewable energy |
CN114859823A (en) * | 2022-04-28 | 2022-08-05 | 江苏西格数据科技有限公司 | Cutting process parameter optimization method, system, computer equipment and storage medium |
CN116511061A (en) * | 2023-04-27 | 2023-08-01 | 东莞市奇迹智造科技有限公司 | Packing control method and system for cross-belt sorter |
CN118829060A (en) * | 2024-07-23 | 2024-10-22 | 江苏贝索斯智能科技有限公司 | A control system and method based on plasma arc flame length detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110568761A (en) | On-line Optimizing Method of Feed Speed Based on Fuzzy Control | |
CN109209768B (en) | A constant output power control method for large wind turbines | |
CN108107838A (en) | A kind of numerical control equipment tool wear monitoring method based on cloud knowledge base and machine learning | |
CN100520650C (en) | Fuzzy PID control method and execution apparatus of numerical control machine | |
CN114063445A (en) | A Design Method of Fuzzy Controller | |
CN111474898B (en) | Method for optimizing processing technological parameters of free-form surface | |
Ma | An improved fuzzy PID control algorithm applied in liquid mixing system | |
CN107664948A (en) | Photovoltaic cell MPPT asymmetric Varied scope fuzzy control method | |
Zhang et al. | Research on a Kind of Adaptive Fuzzy Control Method and Its Application in Feeding System of CNC Honing Machine | |
Yao et al. | Machining force control with intelligent compensation | |
Vichuzhanin | Realization of a fuzzy controller with fuzzy dynamic correction | |
CN107491036A (en) | Machine tooling consumption control method and machining tool | |
CN115047753A (en) | Fuzzy algorithm-based adaptive memristor PID controller design method | |
CN114722693A (en) | Optimization method of two-type fuzzy control parameter of water turbine regulating system | |
Lian et al. | Self-organizing fuzzy control of constant cutting force in turning | |
CN117733246B (en) | A method and system for adjusting energy consumption of CNC milling gear ratio and workpiece roughness | |
CN105929691A (en) | Internal mode compensation control method based on fuzzy control | |
Xu et al. | An adaptive fuzzy controller for constant cutting force in end-milling processes | |
Tarng et al. | A new adaptive controller for constant turning force | |
CN113110034A (en) | DCS-based fuzzy PID control system for induced draft fan | |
Fengying et al. | Self-adaptive Fuzzy PID control algorithm used in liquid mixing device | |
Osman et al. | adding fuzzy lookup table type method to the comparable milling machining control design based on MAT LAB/SIMULINK | |
CN110572094A (en) | A Control Method of Improved Double Closed-loop DC Speed Regulation System | |
Zhang et al. | Machining parameters optimization for free-form blade milling based on time-position mapping of process signals | |
Wang et al. | Design and research on fuzzy controller in digital speed control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20191213 |
|
WD01 | Invention patent application deemed withdrawn after publication |