WO2023051072A1 - Intelligent debugging method and system based on optimization compensation - Google Patents

Intelligent debugging method and system based on optimization compensation Download PDF

Info

Publication number
WO2023051072A1
WO2023051072A1 PCT/CN2022/112944 CN2022112944W WO2023051072A1 WO 2023051072 A1 WO2023051072 A1 WO 2023051072A1 CN 2022112944 W CN2022112944 W CN 2022112944W WO 2023051072 A1 WO2023051072 A1 WO 2023051072A1
Authority
WO
WIPO (PCT)
Prior art keywords
machine
numerical control
control machine
intelligent
measurement data
Prior art date
Application number
PCT/CN2022/112944
Other languages
French (fr)
Chinese (zh)
Inventor
潘磊
邢璐
田野
Original Assignee
杭州数途信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州数途信息科技有限公司 filed Critical 杭州数途信息科技有限公司
Publication of WO2023051072A1 publication Critical patent/WO2023051072A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35349Display part, programmed locus and tool path, traject, dynamic locus

Definitions

  • the invention relates to the technical field of numerical control machining, in particular to an intelligent adjustment method and system based on optimal compensation.
  • design drawings - DFM process dismantling - NPI processing verification - mass production The DFM process dismantling includes dismantling a part into multiple processing procedures, the processing description, equipment requirements, process drawings, tool fixture information, SIP inspection standards, and program overview of each process; when entering the NPI processing verification stage, it is necessary to select Fix the machine table, fixtures, tools, and carry out production verification. "Machine adjustment" is the core link of production verification. What it needs to do is to adjust the tool compensation value and coordinate system compensation value used in part processing to make all dimensions meet the quality standards.
  • the basic process of "adjusting the machine” is: when each machine produces and processes the first piece of material, the production technicians will rely on visual observation and work experience to manually adjust the tool compensation and coordinates used for processing The compensation value is used to produce finished parts, and then the parts are sent to the offline equipment for inspection and measurement to see if all dimensions meet the standards. If the standard is met, the adjustment machine will pass. If it does not meet the standard, change the material, process and adjust the machine again, and send it for inspection until all dimensions of a finished product are qualified. It is generally necessary to repeatedly adjust the machine to meet the product size requirements. Since each size may be related, one knife or one coordinate system will participate in the processing of multiple sizes.
  • the size of a problem may be adjusted to meet the standard, while another related size has a problem. Therefore, in the existing "machine adjustment" process, the necessary condition is "sufficient quantity and rich technical experience" production technicians. Only by ensuring this condition can the production verification phase be completed as scheduled, and the technical verification can be passed as scheduled, thereby ensuring the smooth acquisition of mass production orders.
  • the reality is that it is becoming more and more difficult to recruit production technicians, and the corresponding labor costs are also increasing, which has become a major pain point for manufacturing companies.
  • the time-consuming process of "machine adjustment” is not only the time for adjusting the tool compensation and coordinate system compensation for reprocessing, but also in the inspection process of the product after each machine adjustment and production.
  • the inspection of the adjustment results of the factory is mostly carried out outside the machine, that is, after a piece of parts is produced, it must be taken to the laboratory, using professional testing equipment, and outputting a test report.
  • the ratio gap between testing equipment and production equipment is huge, reaching 1.5:100.
  • a piece of material just may need to wait several hours, even longer.
  • the present invention proposes an intelligent adjustment method and system based on optimal compensation.
  • One embodiment of the present invention discloses an intelligent machine tuning method based on optimal compensation, which is used for intelligent machine tuning of at least one numerical control machine, including the following steps:
  • S4 Send the optimized compensation value back to the numerical control machine, so that the numerical control machine performs machine adjustment according to the optimized compensation value.
  • step S1 further includes: correcting the actual measurement data of the processed part collected by the numerical control machine by using the point deformation of the standard block.
  • using standard block point deformation to correct the actual measurement data collected by the CNC machine specifically includes: providing standard blocks corresponding to the dimensions of the processed parts to be measured, and each standard block is provided with a plurality of Calibration point, obtain the reference value of each calibration point of the standard block corresponding to each size to be measured; when receiving the actual measurement data of the processed parts collected by the numerical control machine, also receive each The actual measurement data of the processed parts collected by the numerical control machine is corrected according to the reference value and the calibration value of each calibration point of the standard block corresponding to each size to be measured.
  • receiving the actual measurement data of the processed parts collected by the numerical control machine in step S1 specifically includes: receiving the actual measurement data of the processed parts collected by the numerical control machine by establishing a handshake protocol with the numerical control machine.
  • receiving the actual measurement data of the processed parts collected by the numerical control machine by establishing a handshake agreement with the numerical control machine specifically includes:
  • A1 Establish a long link with the CNC machine to notify the CNC machine to enter the collection state when receiving data;
  • A2 Receive the feature number transmitted by the CNC machine in the form of macro variables and a corresponding point measurement data collected;
  • A3 Reset the macro variable, and judge whether the CNC machine has collected all the points, if yes, complete the reception, if not, notify the CNC machine to enter the measurement and reporting of the next point, and return Step A2.
  • step S2 further includes: judging according to the measurement model parameters whether the obtained measurement data in a standard format is up to standard, and if not, sending an alarm signal to the numerical control machine, so that the numerical control machine suspends processing Component.
  • step S3 specifically includes: the weighted optimization problem model based on the trust region established according to the measurement data in the standard format and the measurement model parameters is expressed as follows:
  • using the trust region reflection method to solve the above optimization problem model to obtain the optimal compensation value of the numerical control machine specifically includes:
  • Construct function f(x) and calculate X and ⁇ by minimizing f(x) on trust region N through trial steps s, where trust region N is the neighborhood of function f(x) at point x.
  • minimizing f(x) on the trust region N through the trial step s specifically includes:
  • B1 Construct a two-dimensional trust region subproblem: Among them, g is the gradient of the function f at the current point x, H is the Hessian matrix, D is the diagonal scaling matrix, s is the trial step, and ⁇ is the radius of the trust region;
  • step S4 Before sending the optimized compensation value back to the numerically controlled machine in step S4, it is judged whether the optimized compensated value exceeds a preset threshold, and if so, an intervention signal is sent to the numerically controlled machine, so that The numerical control machine suspends processing parts; if not, the optimized compensation value is sent back to the numerical control machine.
  • step S4 Before sending the optimized compensation value back to the CNC machine in step S4, it is judged whether the optimized compensation value exceeds a preset threshold, and if so, the standard block is used again to collect the data collected by the CNC machine. The actual measurement data of the processed part is corrected; if the threshold is still exceeded after correction, an intervention signal is sent to the CNC machine to make the CNC machine suspend processing the part; if the preset threshold is not exceeded, the optimized The compensation value is sent back to the numerical control machine.
  • Another embodiment of the present invention discloses an intelligent adjustment system based on optimization compensation, which is used for intelligent adjustment of at least one numerical control machine, and is characterized in that it includes: a processor and a storage medium, and the storage medium A computer program is stored in the computer, and the processor is configured to run the computer program to execute the above-mentioned intelligent tuning method.
  • the beneficial effect of the present invention lies in: the intelligent adjustment method and system based on optimization compensation proposed by the present invention, wherein by receiving the actual measurement data and measurement model parameters of the machined parts of the CNC machine, adopting the method based on trust
  • the weighted optimization problem model of the domain solves the optimal compensation value of the CNC machine to guide the machine adjustment of the CNC machine, making the machine adjustment a standardized process.
  • the tool compensation or coordinate compensation value can no longer only rely on empirical calculations.
  • the entire process of machine adjustment and compensation does not require professional manual participation, and only ordinary operators need to perform processing, loading, unloading and processing operations. As a result, the factory has completely solved the problem of difficulty in recruiting workers for biotechnology and high cost.
  • the algorithm and measurement method used in the intelligent tuning method make the accuracy and precision of the tuning compensation parameters reach the best, and the tuning effect is beyond the reach of excellent biotechnology. At the same time, this kind of accuracy and precision will not be different due to different equipment and environments, and it is extremely stable.
  • the intelligent adjustment system has increased the efficiency of machine adjustment by more than half; in the past, machine adjustment and material preparation had to be repeated 6 times or more. After using the machine adjustment method and system, it can be done in one go. In the past, with manual participation, repeated adjustments needed to go back and forth to the laboratory or offline testing equipment for judgment.
  • the detection of the adjustment result is carried out in the machine, and the actual data of the machined parts collected by the CNC machine is measured with a standard block.
  • the measurement data is corrected, saving the adjustment time.
  • the actual measurement data of the processed parts collected by the CNC machine is received by establishing a handshake protocol based on system macro variables with the CNC machine, so that the measurement can be carried out inside the machine, saving the adjustment time.
  • Fig. 1 is the flow chart of the intelligent adjustment method based on optimal compensation of the preferred embodiment of the present invention
  • Fig. 3 is the flow chart of the intelligent tuning machine method of the specific embodiment of the present invention.
  • FIG. 5 is a schematic diagram of correcting the result value of workpiece measurement.
  • the preferred embodiment of the present invention discloses an intelligent adjustment method based on optimization compensation, which is used for intelligent adjustment of at least one numerical control machine, so that the adjustment process is smoother, and the adjustment compensation data reaches the target at one time.
  • the target process is: after the machining of the CNC machine is completed, the probe is used to measure the size points in the machine.
  • the system collects the measurement points in real time to calculate each size value of the part.
  • the system page visually displays the size measurement results of the processed parts and automatically calculates all
  • the optimal value of the tool compensation and coordinate system compensation involved in the processing, the compensation value can be written back to the machine with one click of the compensation button, and the CNC machine can be processed and measured again to produce products of various sizes that meet the standards.
  • This adjustment process is not limited by the CNC machine system, and is applicable to all types of CNC machines.
  • Each process contains a series of inspection dimensions; (7)
  • Each dimension has a set of tolerance standards, a set of processing tool information, and a set of processing coordinate system information . Both tool and coordinate system information have actual influence information, such as the tool length or tool radius will affect the processing of this dimension, and the influence coefficient will be recorded, that is, the coefficient relationship between tool/coordinate system compensation and size. For different sizes, under different tool cutting methods, the ratio of coefficients affected by different tool compensations.
  • the schematic diagram of the standard block is shown in Figure 2, there is one standard block in each of the X and Y directions, and the size of the "marking point" of the standard block is measured and calibrated by three coordinates in advance (marked in the figure Reference value).
  • the standard block After the standard block is installed, measure the standard block with the built-in probe. After finding the origin, the machine measures the coordinate values (ie, the calibration value) of all "calibration points" in the standard block. In this way, the error value between the in-machine detection value and the three-coordinate detection value of each calibration point can be calculated, as shown in Table 1. For example, taking the length from A1 to A2 as an example, its theoretical diameter is
  • 24mm.
  • Table 1 The reference value, calibration value and corresponding error of each calibration point of the standard block
  • receiving the actual measurement data of the processed parts collected by the CNC machine is specifically: receiving the actual measurement data of the processed parts collected by the CNC machine by establishing an interactive handshake protocol with the CNC machine, further specifically including the following steps:
  • the system realizes the real-time reception of measurement data points. After point conversion is calculated into part size, it is compared with the dimensional tolerance specified in the quality standard document in the system, and a report on whether each size meets the standard is output.
  • the information contained in the report includes the measurement time of a part, the code of the part piece, the serial number of the part processing and testing machine, the standard value and tolerance of the part size, the actual value of the part size, the judgment of whether the size meets the standard, and the size deviation value.
  • the point measurement value is collected in real time. Real-time judgment whether the measurement size is qualified or not.
  • the above-mentioned system display results not only include the final calculated size result value, but also include the "standard determination” (OK or NG) and the deviation value.
  • the machine will be notified, causing the CNC machine to stop and generate an alarm to notify the on-site personnel that the processing measurement of this equipment has not passed and needs to be compensated. In order to avoid the next substandard processed product.
  • the actual physical quantity known to be measured is recorded as C ⁇ R n , the compensation coefficient z ⁇ R k ⁇ n , the standard value S ⁇ R n , the unknown tolerance ⁇ R n and the compensation value X ⁇ R k (where n and k are both positive integers, representing the dimension of the space, and R represents the real number space, for example, R n represents the n-dimensional real number space). So there are equations:
  • the unknowns are the compensation value X and the tolerance ⁇ , so the number of unknowns is k+n, and the number of equations is n, so it can be known that the number of unknowns is greater than the number of effective equations, so the problem is transformed into underdetermined System of equations solving problems.
  • lsp, usp ⁇ R n+k are the upper bound and lower bound of the unknown quantity respectively.
  • E ⁇ R n ⁇ (n+k) is the weight.
  • g is the gradient of f at the current point x
  • H is the Hessian matrix (symmetric matrix of the second derivative)
  • D is the diagonal scaling matrix
  • is the radius of the trust region, which is a positive scalar
  • Such second-order algorithms usually involve calculating all the eigenvalues of H, and applying Newton's method to the following characteristic equations
  • Equation (7) can provide an exact solution to Equation (6); the eigenvalues of H are generally calculated using eigenvalue decomposition, and the optimal iterative format for solving Equation (6) requires calculating the eigenvalue decomposition of H, and applying these eigenvalues and ⁇ calculates the iterative direction, which involves a theorem for solving quadratic programming problems with constraints:
  • s * is the global minimum solution of formula (6) if and only if s * is feasible and there exists ⁇ 0 such that:
  • ⁇ 0 and ⁇ 1 is a single characteristic root is considered below, other cases can be analyzed similarly.
  • the intelligent machine tuning system has already carried out a collection of corresponding tool compensation and coordinate system compensation according to the standard documents of the currently processed parts. And store the data to prepare for the compensation value to be written into the machine.
  • S4 Send the optimized compensation value back to the CNC machine, so that the CNC machine can adjust the machine according to the optimized compensation value.
  • the initial value of tool compensation (including radius tool compensation wear and length tool compensation wear) of each tool position and the initial value of each coordinate axis will be collected. Calculate the compensation difference through an algorithm. Finally, the compensation value is written back by adding the compensation difference to the initial value.
  • the system creatively performs fool-proof and error-proof processing, and sets a threshold range. Once the compensation value is found to exceed the threshold, it will not be able to make up for it, and a prompt will be issued to inform that compensation of all sizes that meet the standard is required this time. The value may cause the danger of machine processing, prompting manual intervention to solve it.
  • the absolute value of the compensation value is 0.1 as the limit.
  • the preferred embodiment of the present invention also discloses an intelligent machine adjustment system based on optimization compensation, which is used to perform intelligent machine adjustment on at least one numerical control machine, including: a processor and a storage medium, and the computer program is stored in the storage medium , the processor is configured to run the computer program to execute the above-mentioned intelligent tuning method.
  • the machine tuning scheme of the preferred embodiment of the present invention is a set of "automation and intelligence" integration, and a higher degree of scheme: first, the automatic and real-time reading of measurement data is realized by "in-machine measurement”; In this process, the possibility of machine processing defective products during laboratory measurement and waiting time is avoided. Secondly, a complete model is also established for the measurement data and parameters, and the problem of geometric calculation is transformed into an "optimization problem", in which various optimization algorithms are used to solve the problem. This solution has greatly improved the reliability of ensuring the accuracy of all size adjustments.
  • precision testing equipment In the process of machine production and processing, precision testing equipment will be used to conduct product quality testing inside the machine, outside the machine, or both at the same time, and obtain the test results of each process and each size of the product.
  • the intelligent tuning system will obtain various testing data in real time by interacting with testing equipment. And calculate the test data to determine whether each size meets the standard or not. If all dimensions meet the standard, the product has passed the quality verification and can be delivered. If there is a size out of tolerance, the system will calculate the best tool compensation or the best coordinate system compensation for machining of this size through the optimization algorithm. At the same time, the intelligent adjustment system will directly communicate with the processing equipment, and write the best adjustment data into the equipment to complete the adjustment.
  • Modus generates a measurement program.
  • This module is the pre-work for the intelligent machine tuning system to start working. Since the machine tuning platform needs to collect measurement content, here, the generation process of the measurement program will be introduced first.
  • Modus is the supporting software system for Renishaw's measuring probes. Its work content is "input the part processing drawing, mark the measurement size, mark the measurement point, and generate the corresponding measurement program". Therefore, the first step can cooperate with software such as Modus to output the NC program of the measurement point.
  • This step itself does not require the intervention of the machine tuning platform, but the process of running the measurement NC program in the machine needs to establish a handshake with the acquisition program of the intelligent machine tuning system.
  • C2 Import the measurement model and quality parameters into the IMIQ system, and import the basic data into the intelligent adjustment system for subsequent compensation calculations.
  • the imported data content includes: project, part, process, process method, quality standard.
  • FIG. 4 it is a frame diagram of an intelligent machine tuning system according to a specific embodiment of the present invention.
  • the system adopts a B/S-based hybrid computing architecture. Users can complete all operations of the system based on the browser.
  • the system computing is completed through the central high-performance server cluster (providing a high-availability mechanism and linear expansion) and cooperating with the hardware and software of the edge computing.
  • the CNC machine connects the equipment to the computing network through a network cable or wireless router.
  • the central server is responsible for communicating with all CNC machines. After the measurement data is collected, the parameters are calculated and the results are fed back to the CNC machine.
  • the intelligent machine adjustment system of this specific embodiment includes a controlled CNC machine 10 and a corresponding probe 11, a measurement CAM server (Modus) 20, an access switch 30, a client 40, an edge computing server 50,
  • the specific applications of wireless AP 60 and intelligent terminal 70 are as follows:
  • DMIS data service refers to the background service that can support the calculation of dimensions or tolerances defined in the commonly used ⁇ Dimension Measurement Interface Standard>, such as Renishaw's modus service , internal DMIS data service) into standard measurement data (supports different standards.
  • the internal standard is used in the communication protocol. Because it is more concise and has better performance. But it can also be converted into industry-wide standards, such as QIF).

Abstract

An intelligent debugging method and system based on optimization compensation, which method and system are used for performing intelligent debugging on at least one numerical control machine (10). The method comprises the following steps: S1, acquiring a measurement model parameter of a numerical control machine (10), and receiving actual measurement data of a machined part that is collected by the numerical control machine (10); S2, according to the measurement model parameter, converting, into measurement data in a standard format, the actual measurement data of the machined part that is collected by the numerical control machine (10); S3, according to the measurement data in the standard format and the measurement model parameter, establishing a weighted optimization problem model based on a trust region, and solving the optimization problem model to obtain an optimization compensation value of the numerical control machine (10); and S4, returning the optimization compensation value to the numerical control machine (10), such that the numerical control machine (10) performs debugging according to the optimization compensation value. By means of the intelligent debugging method and system based on optimization compensation, the problem in the prior art that is caused by a possible correlation between sizes during "debugging" is solved.

Description

基于优化补偿的智能调机方法及系统Intelligent adjustment method and system based on optimal compensation 技术领域technical field
本发明涉及数控加工技术领域,尤其涉及一种基于优化补偿的智能调机方法及系统。The invention relates to the technical field of numerical control machining, in particular to an intelligent adjustment method and system based on optimal compensation.
背景技术Background technique
在CNC金属加工行业,将一个零件按照设计图纸最终加工成型的过程需要分解成多个阶段:设计图纸——DFM工艺拆解——NPI加工验证——量产。其中DFM工艺拆解包含将一个零件拆解为多个加工工序,每个工序的加工描述、设备要求、工序图纸、刀具夹具信息、SIP检验标准、程序概述;进入到NPI加工验证阶段则需要选定机台、夹治具、刀具、进行生产验证。“调机”作为生产验证的核心环节,其要做的就是通过调整零件加工时使用的刀具补偿值和坐标系补偿值,使得所有尺寸都达到质量标准。而“调机”的成功与否是由上下游各条件作用共同影响,包括:工艺拆解的合理性、质量管控的可实践性、生产所使用的设备的性能稳定性、夹治具的装配规范性、刀具选用和切割程序的方法优劣性等等,这些所有条件的组合共同影响了调机结果。因而,“调机”是整个生产验证阶段完成快慢的根本决定因素,各相关工作进程的结果验证,都是靠“调机”结果来反映。“调机”越快通过,企业越快可以接到量产订单,越快可以完成产品交付。In the CNC metal processing industry, the final processing of a part according to the design drawings needs to be decomposed into multiple stages: design drawings - DFM process dismantling - NPI processing verification - mass production. The DFM process dismantling includes dismantling a part into multiple processing procedures, the processing description, equipment requirements, process drawings, tool fixture information, SIP inspection standards, and program overview of each process; when entering the NPI processing verification stage, it is necessary to select Fix the machine table, fixtures, tools, and carry out production verification. "Machine adjustment" is the core link of production verification. What it needs to do is to adjust the tool compensation value and coordinate system compensation value used in part processing to make all dimensions meet the quality standards. The success of "tuning" is affected by various upstream and downstream conditions, including: the rationality of process dismantling, the practicability of quality control, the performance stability of equipment used in production, and the assembly of fixtures. The combination of standardization, tool selection and method of cutting procedures, etc., all affect the tuning results. Therefore, "tuning" is the fundamental determinant of the completion speed of the entire production verification stage, and the verification of the results of each related work process is reflected by the results of "tuning". The faster the "tuning" is passed, the sooner the company can receive mass production orders and complete product delivery.
在现有的CNC金属加工领域,“调机”的基本进程是:每一台机生产加工第一片料时,生产技术人员会依靠肉眼观察,工作经验,手动调整加工使用的刀具补偿和坐标系补偿值,产出成品零件,再将零件送去线下设备检验测量,看是否能所有尺寸达标。若达标,调机通过。若不达标,换料再次加工调机、送检,直至一片成品所有尺寸合格。产品尺寸达标一般需要进行多次反复调机,由于各尺寸之间都可能有关联性,一把刀或一个坐标系会参与多个尺寸的加工,若进行“头痛医头,脚痛医脚”的补偿,结果可能某处问题尺寸经过调整可达标,而另一处相关尺寸出现问题。因此,在现有的“调机”流程中,必要条件就是“满足数量的并且技术经验丰富”的生产技术人员。只有保证这个条件,才可能使得生产验证阶段如期完成,才可能如期通过技术验证,进而保证顺利获取量产订单。而现实是,当下生产技术人员的招工越来越困难,相应的人力成本也越来越大,成为了制造企业一大痛点。In the existing CNC metal processing field, the basic process of "adjusting the machine" is: when each machine produces and processes the first piece of material, the production technicians will rely on visual observation and work experience to manually adjust the tool compensation and coordinates used for processing The compensation value is used to produce finished parts, and then the parts are sent to the offline equipment for inspection and measurement to see if all dimensions meet the standards. If the standard is met, the adjustment machine will pass. If it does not meet the standard, change the material, process and adjust the machine again, and send it for inspection until all dimensions of a finished product are qualified. It is generally necessary to repeatedly adjust the machine to meet the product size requirements. Since each size may be related, one knife or one coordinate system will participate in the processing of multiple sizes. As a result, the size of a problem may be adjusted to meet the standard, while another related size has a problem. Therefore, in the existing "machine adjustment" process, the necessary condition is "sufficient quantity and rich technical experience" production technicians. Only by ensuring this condition can the production verification phase be completed as scheduled, and the technical verification can be passed as scheduled, thereby ensuring the smooth acquisition of mass production orders. The reality is that it is becoming more and more difficult to recruit production technicians, and the corresponding labor costs are also increasing, which has become a major pain point for manufacturing companies.
如果企业能够保证生产技术人员到位,正常进行调机验证,接下来面对的便是“效率受阻”的难点。“调机”的过程耗时不仅仅是一次次调整刀补、坐标系补偿重新加工的时间,还出现在每次调机生产结束后对产品的检测过程上。当下工厂对调机结果的检测多在机外进行,即生产出一片零件后,要拿去实验室,使用专业检测设备,输出检测报告。而检测设备和生产设备之间的比例差距极大,达到了1.5:100。这样,自然产生了大量排队等待检测时间,一片料就可能需要等待数小时,甚至更久。如此一来,一台CNC加工设备通过调机可能花费数天,完成上百台设备的调机,也需要两个月的时间。“调机”耗费的时长,亦是工厂设备可用时间的损耗,提升“调机”效率,最大程度加快生产验证阶段,就能最大程度释放设备可用时间,进 而转化为产能。If the enterprise can ensure that the production technicians are in place and carry out the verification of machine adjustment normally, the next thing they will face is the difficulty of "impeded efficiency". The time-consuming process of "machine adjustment" is not only the time for adjusting the tool compensation and coordinate system compensation for reprocessing, but also in the inspection process of the product after each machine adjustment and production. At present, the inspection of the adjustment results of the factory is mostly carried out outside the machine, that is, after a piece of parts is produced, it must be taken to the laboratory, using professional testing equipment, and outputting a test report. The ratio gap between testing equipment and production equipment is huge, reaching 1.5:100. Like this, naturally produced a large amount of queuing to wait for detection time, a piece of material just may need to wait several hours, even longer. In this way, it may take several days for a CNC processing equipment to be adjusted, and it will take two months to complete the adjustment of hundreds of equipment. The time spent on "adjustment" is also the loss of available time for factory equipment. Improving the efficiency of "adjustment" and speeding up the production verification stage to the greatest extent can release the available time of equipment to the greatest extent, and then convert it into production capacity.
当下调机除了面对人员、效率问题,随之还产生了“物料浪费”的问题。调机失败生产出来的零件,往往不能进行二次加工,形成了一片废料。那么调机的一次达成率越高,物料损耗也就越少。随之带来的良品率数据也会越好。同时,除了上面所说在生产能力验证阶段需要调机,批量生产的过程中也需要调机。比如每日,每台机在做第一片料的时候,在更新了机内夹治具的时候,在换刀之后,都需要对随之而来生产的料进行一次调机检测,保障量产的良品率。因此,“调机”的场景贯穿着CNC金属加工的每个环节,解决“调机”问题将带来生产能力的巨大提升。In addition to the personnel and efficiency problems faced by the lowering machine, the problem of "material waste" also occurred. The parts produced by the failure of machine adjustment often cannot be processed twice, forming a piece of waste. Then the higher the one-time completion rate of machine adjustment, the less material loss. The resulting yield data will be better. At the same time, in addition to the need to adjust the machine during the production capacity verification stage mentioned above, it also needs to be adjusted during the mass production process. For example, every day, when each machine is making the first piece of material, when the clamping fixture inside the machine is updated, and after the tool is changed, it is necessary to carry out a machine adjustment test on the subsequent material to ensure the quantity Yield rate of production. Therefore, the scene of "adjustment" runs through every link of CNC metal processing, and solving the problem of "adjustment" will bring about a huge increase in production capacity.
以上背景技术内容的公开仅用于辅助理解本发明的构思及技术方案,其并不必然属于本专利申请的现有技术,在没有明确的证据表明上述内容在本专利申请的申请日已经公开的情况下,上述背景技术不应当用于评价本申请的新颖性和创造性。The disclosure of the above background technical content is only used to assist in understanding the concept and technical solution of the present invention, and it does not necessarily belong to the prior art of this patent application. If there is no clear evidence that the above content has been disclosed on the filing date of this patent application In some cases, the above background technology should not be used to evaluate the novelty and inventiveness of this application.
发明内容Contents of the invention
为解决上述“调机”时各尺寸之间可能有的关联性所造成的问题,本发明提出一种基于优化补偿的智能调机方法及系统。In order to solve the problems caused by the possible correlation between the various dimensions during the above "adjustment", the present invention proposes an intelligent adjustment method and system based on optimal compensation.
为了达到上述目的,本发明采用以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
本发明的一个实施例公开了一种基于优化补偿的智能调机方法,用于对至少一台数控机台进行智能调机,包括以下步骤:One embodiment of the present invention discloses an intelligent machine tuning method based on optimal compensation, which is used for intelligent machine tuning of at least one numerical control machine, including the following steps:
S1:获取所述数控机台的测量模型参数,并接收所述数控机台采集的加工零件的实际测量数据;S1: Obtain the measurement model parameters of the CNC machine, and receive the actual measurement data of the processed parts collected by the CNC machine;
S2:根据所述测量模型参数将所述数控机台采集到的加工零件的实际测量数据转换为标准格式的测量数据;S2: Convert the actual measurement data of the processed parts collected by the CNC machine into measurement data in a standard format according to the measurement model parameters;
S3:根据标准格式的测量数据和测量模型参数建立基于信赖域的加权优化问题模型,并对该优化问题模型进行求解,得到所述数控机台的优化补偿值;S3: Establish a weighted optimization problem model based on the trust region according to the measurement data and measurement model parameters in a standard format, and solve the optimization problem model to obtain the optimal compensation value of the numerical control machine;
S4:将所述优化补偿值回传给所述数控机台,以使得所述数控机台根据所述优化补偿值进行调机。S4: Send the optimized compensation value back to the numerical control machine, so that the numerical control machine performs machine adjustment according to the optimized compensation value.
优选地,步骤S1中获取的测量模型参数包括所述数控机台的加工零件的各待测尺寸的类型、标准值和公差标准、所述数控机台的刀补系数。Preferably, the measurement model parameters obtained in step S1 include the type, standard value and tolerance standard of each dimension to be measured of the machined part of the CNC machine, and the tool compensation coefficient of the CNC machine.
优选地,步骤S1中还包括:采用标准块点位形变对所述数控机台采集的加工零件的实际测量数据进行校正。Preferably, step S1 further includes: correcting the actual measurement data of the processed part collected by the numerical control machine by using the point deformation of the standard block.
优选地,采用标准块点位形变对所述数控机台采集的实际测量数据进行校正具体包括:提供待测量的加工零件的各待测尺寸对应的标准块,每个标准块上设有多个标定点,获取各待测尺寸对应的标准块的每个标定点的基准值;在接收所述数控机台采集的加工零件的实际测量数据时,还接收各待测尺寸对应的标准块的每个标定点的标定值,根据各待测尺寸对应的标准块的每个标定点的基准值和标定值对所述数控机台采集的加工零件的实际测量数据进行校正。Preferably, using standard block point deformation to correct the actual measurement data collected by the CNC machine specifically includes: providing standard blocks corresponding to the dimensions of the processed parts to be measured, and each standard block is provided with a plurality of Calibration point, obtain the reference value of each calibration point of the standard block corresponding to each size to be measured; when receiving the actual measurement data of the processed parts collected by the numerical control machine, also receive each The actual measurement data of the processed parts collected by the numerical control machine is corrected according to the reference value and the calibration value of each calibration point of the standard block corresponding to each size to be measured.
优选地,步骤S1中在接收所述数控机台采集的加工零件的实际测量数据具体为:通过与所述数控机台建立握手协议来接收所述数控机台采集的加工零件的实际测量数据。Preferably, receiving the actual measurement data of the processed parts collected by the numerical control machine in step S1 specifically includes: receiving the actual measurement data of the processed parts collected by the numerical control machine by establishing a handshake protocol with the numerical control machine.
优选地,通过与所述数控机台建立握手协议来接收所述数控机台采集的加工零件的实际测量数据具体包括:Preferably, receiving the actual measurement data of the processed parts collected by the numerical control machine by establishing a handshake agreement with the numerical control machine specifically includes:
A1:与所述数控机台建立长链接,以在接收数据开始时通知所述数控机台进入采集状态;A1: Establish a long link with the CNC machine to notify the CNC machine to enter the collection state when receiving data;
A2:接收所述数控机台以宏变量形式传输的特征编号和对应采集到的一个点位测量数据;A2: Receive the feature number transmitted by the CNC machine in the form of macro variables and a corresponding point measurement data collected;
A3:重置宏变量,并判断所述数控机台是否采集完所有点位,如果是,则完成接收,如果否,则通知所述数控机台进入下一个点位的测量和上报,并返回步骤A2。A3: Reset the macro variable, and judge whether the CNC machine has collected all the points, if yes, complete the reception, if not, notify the CNC machine to enter the measurement and reporting of the next point, and return Step A2.
优选地,步骤S2中还包括:根据所述测量模型参数判断得到的标准格式的测量数据是否达标,如果不达标,则发送报警信号给所述数控机台,以使得所述数控机台暂停加工零件。Preferably, step S2 further includes: judging according to the measurement model parameters whether the obtained measurement data in a standard format is up to standard, and if not, sending an alarm signal to the numerical control machine, so that the numerical control machine suspends processing Component.
优选地,步骤S3具体包括:根据标准格式的测量数据和测量模型参数建立的基于信赖域的加权优化问题模型表示如下:Preferably, step S3 specifically includes: the weighted optimization problem model based on the trust region established according to the measurement data in the standard format and the measurement model parameters is expressed as follows:
Figure PCTCN2022112944-appb-000001
Figure PCTCN2022112944-appb-000001
s.t.lsp≤x≤usps.t.lsp≤x≤usp
Ax=bAx=b
并采用信赖域反射法对上述优化问题模型进行求解以得到所述数控机台的优化补偿值;And using the trust region reflection method to solve the above-mentioned optimization problem model to obtain the optimal compensation value of the numerical control machine;
其中,A=[z,I] T∈R n×(n+k),x=[X,ε]∈R n+k,b=C-S∈R n,C∈R n为标准格式的测量数据,S∈R n为测量模型参数中包含的加工零件的各待测尺寸的标准值,z∈R k×n为测量模型参数中包含的数控机台的刀补系数,ε∈R n为待求解的数控机台的公差,X∈R k为待求解的数控机台的补偿值,I为单位矩阵,E∈R n×(n+k)为权重,lsp,usp∈R n+k分别为未知量x的上限和下限。 Among them, A=[z,I] TR n×(n+k) , x=[X,ε]∈R n+k , b=CS∈R n , C∈R n is the measurement data in the standard format , S∈R n is the standard value of each dimension of the processed part included in the measurement model parameters, z∈R k×n is the tool compensation coefficient of the CNC machine included in the measurement model parameters, ε∈R n is the The tolerance of the CNC machine to be solved, X∈R k is the compensation value of the CNC machine to be solved, I is the unit matrix, E∈R n×(n+k) is the weight, lsp, usp∈R n+k are respectively are the upper and lower bounds of the unknown quantity x.
优选地,采用信赖域反射法对上述优化问题模型进行求解以得到所述数控机台的优化补偿值具体包括:Preferably, using the trust region reflection method to solve the above optimization problem model to obtain the optimal compensation value of the numerical control machine specifically includes:
构建函数f(x),并通过试探步s在信赖域N上最小化f(x)以计算得到X和ε,其中信赖域N是函数f(x)在点x的邻域。Construct function f(x), and calculate X and ε by minimizing f(x) on trust region N through trial steps s, where trust region N is the neighborhood of function f(x) at point x.
优选地,通过试探步s在信赖域N上最小化f(x)具体包括:Preferably, minimizing f(x) on the trust region N through the trial step s specifically includes:
B1:构造二维信赖域子问题:
Figure PCTCN2022112944-appb-000002
其中,g是函数f在当前点x处的梯度,H是Hessian矩阵,D是对角缩放矩阵,s是试探步,Δ是信赖域半径;
B1: Construct a two-dimensional trust region subproblem:
Figure PCTCN2022112944-appb-000002
Among them, g is the gradient of the function f at the current point x, H is the Hessian matrix, D is the diagonal scaling matrix, s is the trial step, and Δ is the radius of the trust region;
B2:求解二维信赖域子问题,以确定试探步s;B2: Solve the two-dimensional trust region subproblem to determine the trial step s;
B3:判断f(x+s)是否小于f(x),如果是,则使得x=x+s,并返回步骤B1;如果否,当前点保持不变,减小信赖域半径Δ,并返回步骤B1;B3: Determine whether f(x+s) is smaller than f(x), if yes, make x=x+s, and return to step B1; if not, keep the current point unchanged, reduce the trust region radius Δ, and return Step B1;
B4:重复步骤B1~B3,直至二维信赖域子问题收敛,得到优化问题f(x)的解。B4: Repeat steps B1-B3 until the two-dimensional trust region subproblem converges, and the solution to the optimization problem f(x) is obtained.
优选地,步骤B2中在求解二维信赖域子问题时,将二维信赖域子问题限制在二维子空间K内进行求解,二维子空间K根据下述预条件共轭梯度法确定:将二维子空间K定义为由k 1和k 2确定的线性空间,其中k 1是梯度g的方向,k 2满足H·k 2=-g或
Figure PCTCN2022112944-appb-000003
的条件。
Preferably, when solving the two-dimensional trust region subproblem in step B2, the two-dimensional trust region subproblem is limited to the two-dimensional subspace K for solution, and the two-dimensional subspace K is determined according to the following preconditioned conjugate gradient method: Define the two-dimensional subspace K as a linear space determined by k 1 and k 2 , where k 1 is the direction of the gradient g, and k 2 satisfies H·k 2 =-g or
Figure PCTCN2022112944-appb-000003
conditions of.
优选地,采用信赖域反射法对上述优化问题模型进行求解以得到所述数控机台的优化补偿值之后还包括:根据求解优化问题模型得到的所述数控机台的优化补偿值和所述测量模型参数对所述数控机台的优化补偿值进行修正。Preferably, after using the trust region reflection method to solve the above optimization problem model to obtain the optimal compensation value of the CNC machine, it also includes: the optimal compensation value of the CNC machine obtained according to the optimization problem model and the measurement The model parameters correct the optimal compensation value of the numerical control machine.
优选地,步骤S4中将所述优化补偿值回传给所述数控机台之前,判断所述优化补偿值是否超过预设阈值,如果是,则发送干预信号给所述数控机台,以使得所述数控机台暂停加工零件;如果否,则将所述优化补偿值回传给所述数控机台。Preferably, before sending the optimized compensation value back to the numerically controlled machine in step S4, it is judged whether the optimized compensated value exceeds a preset threshold, and if so, an intervention signal is sent to the numerically controlled machine, so that The numerical control machine suspends processing parts; if not, the optimized compensation value is sent back to the numerical control machine.
优选地,步骤S4中将所述优化补偿值回传给所述数控机台之前,判断所述优化补偿值是否超过预设阈值,如果是,则再次采用标准块对所述数控机台采集的加工零件的实际测量数据进行校正;如果校正后仍然超过阈值,则发送干预信号给所述数控机台,以使得所述数控机台暂停加工零件;如果未超过预设阈值,则将所述优化补偿值回传给所述数控机台。Preferably, before sending the optimized compensation value back to the CNC machine in step S4, it is judged whether the optimized compensation value exceeds a preset threshold, and if so, the standard block is used again to collect the data collected by the CNC machine. The actual measurement data of the processed part is corrected; if the threshold is still exceeded after correction, an intervention signal is sent to the CNC machine to make the CNC machine suspend processing the part; if the preset threshold is not exceeded, the optimized The compensation value is sent back to the numerical control machine.
本发明的另一实施例公开了一种基于优化补偿的智能调机系统,用于对至少一台数控机台进行智能调机,其特征在于,包括:处理器和存储介质,所述存储介质中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述的智能调机方法。Another embodiment of the present invention discloses an intelligent adjustment system based on optimization compensation, which is used for intelligent adjustment of at least one numerical control machine, and is characterized in that it includes: a processor and a storage medium, and the storage medium A computer program is stored in the computer, and the processor is configured to run the computer program to execute the above-mentioned intelligent tuning method.
与现有技术相比,本发明的有益效果在于:本发明提出的基于优化补偿的智能调机方法及系统,其中通过接收数控机台的加工零件的实际测量数据和测量模型参数,采用基于信赖域的加权的优化问题模型求解数控机台的优化补偿值,以指导数控机台进行调机,使得调机成了标准化的流程。其中的刀补或者坐标补偿值不再只能依靠经验计算,整个调机补偿的过程,可以无需专业人工的参与,只需普通操作工进行加工上下料和加工操作。从而使得工厂对于生技招工难,成本大的问题得到了彻底解决。而且,智能调机方法中所使用的算法和测量方法,使得调机补偿参数的准确性和精确性达到了最佳,调机效果是优秀生技都无法做到的。同时,这种准确性和精确性不会因为设备、环境的不同而有所区别,极其稳定。另外,智能调机系统使得调机效率提升一半以上;曾经调机做料需要反复6次及以上,使用该调机方法及系统后,可以做到一次完成。曾经的反复调机在人工参与下,需要来回实验室或线下检测设备处进行判断,耗时花费包括“线下检测时间”、“人工判断时间”、“反复加工时间”、“等待检测设备时间(考虑到检测设备数量远少于生产设备,约为1.5:100,加工完的零件要进行线下检测,需要排队等待设备空闲时间)”,而机内调机时间只有“两次作料加工时间”和“一次机内测量程序运行时间”。在新品验证爬坡阶段,使用智能调机方法及系统能使原先调机时长减少一半。同时,由于大部分尺寸的测量转移到了数控机台内,把问题提前在机内测量暴露出来并解决,这样也大大降低了实验室测量仪的需求压力。Compared with the prior art, the beneficial effect of the present invention lies in: the intelligent adjustment method and system based on optimization compensation proposed by the present invention, wherein by receiving the actual measurement data and measurement model parameters of the machined parts of the CNC machine, adopting the method based on trust The weighted optimization problem model of the domain solves the optimal compensation value of the CNC machine to guide the machine adjustment of the CNC machine, making the machine adjustment a standardized process. Among them, the tool compensation or coordinate compensation value can no longer only rely on empirical calculations. The entire process of machine adjustment and compensation does not require professional manual participation, and only ordinary operators need to perform processing, loading, unloading and processing operations. As a result, the factory has completely solved the problem of difficulty in recruiting workers for biotechnology and high cost. Moreover, the algorithm and measurement method used in the intelligent tuning method make the accuracy and precision of the tuning compensation parameters reach the best, and the tuning effect is beyond the reach of excellent biotechnology. At the same time, this kind of accuracy and precision will not be different due to different equipment and environments, and it is extremely stable. In addition, the intelligent adjustment system has increased the efficiency of machine adjustment by more than half; in the past, machine adjustment and material preparation had to be repeated 6 times or more. After using the machine adjustment method and system, it can be done in one go. In the past, with manual participation, repeated adjustments needed to go back and forth to the laboratory or offline testing equipment for judgment. The time-consuming costs included "offline testing time", "manual judgment time", "repeated processing time", "waiting for testing equipment Time (considering that the number of testing equipment is far less than that of production equipment, about 1.5:100, the processed parts need to be tested offline, and you need to wait in line for the idle time of the equipment)", while the machine adjustment time is only "two batches of material processing Time" and "Run time of one internal measurement program". In the climbing stage of new product verification, using the intelligent tuning method and system can reduce the original tuning time by half. At the same time, since most of the size measurement is transferred to the CNC machine, the problem is exposed and solved in the machine measurement in advance, which also greatly reduces the pressure on the demand for laboratory measuring instruments.
在进一步的方案中,在通过接收数控机台的加工零件的实际测量数据和测量模型参数,实现对调机结果的检测在机内进行,并用标准块对所述数控机台采集的加工零件的实际测量数据进行校正,节省了调机时间。In a further solution, by receiving the actual measurement data and measurement model parameters of the machined parts of the CNC machine, the detection of the adjustment result is carried out in the machine, and the actual data of the machined parts collected by the CNC machine is measured with a standard block. The measurement data is corrected, saving the adjustment time.
在进一步的方案中,通过与数控机台建立基于系统宏变量的握手协议来接收数控机台采集的加工零件的实际测量数据,使得测量得以能在机内进行,节约了调机时间。通过建立上述握手协议,可以在不影响数控机台的正常加工,握手效率高,占用数控机台的宏变量少,握手次数少但是又能够保证数据交互稳妥,不出现丢数据或错采集接收。In a further solution, the actual measurement data of the processed parts collected by the CNC machine is received by establishing a handshake protocol based on system macro variables with the CNC machine, so that the measurement can be carried out inside the machine, saving the adjustment time. By establishing the above-mentioned handshake protocol, the normal processing of the CNC machine can not be affected, the handshake efficiency is high, the macro variables occupying the CNC machine are small, the number of handshakes is small, but the data interaction can be guaranteed to be stable, and there will be no data loss or wrong collection and reception.
附图说明Description of drawings
图1是本发明优选实施例的基于优化补偿的智能调机方法流程图;Fig. 1 is the flow chart of the intelligent adjustment method based on optimal compensation of the preferred embodiment of the present invention;
图2是本发明一具体实施例的标准块的示意图;Fig. 2 is the schematic diagram of the standard block of a specific embodiment of the present invention;
图3是本发明具体实施例的智能调机方法的流程图;Fig. 3 is the flow chart of the intelligent tuning machine method of the specific embodiment of the present invention;
图4是本发明具体实施例的智能调机系统的框架图;Fig. 4 is the frame diagram of the intelligent tuning machine system of the specific embodiment of the present invention;
图5是对工件测量的结果值进行修正的示意图。FIG. 5 is a schematic diagram of correcting the result value of workpiece measurement.
具体实施方式Detailed ways
下面对照附图并结合优选的实施方式对本发明作进一步说明。The present invention will be further described below with reference to the accompanying drawings and in combination with preferred embodiments.
本发明优选实施例公开了一种基于优化补偿的智能调机方法,用于对至少一台数控机台进行智能调机,使得调机流程更加顺畅,使调机补偿数据一次性达到目标,其目标流程为:数控机台加工完成后,在机台内使用探头进行尺寸点位测量,系统实时采集测量点计算出零件每个尺寸值,系统页面可视化展示加工零件的尺寸测量结果,自动计算所有参与加工的刀补和坐标系补偿最优值,一键补偿按键即可将补偿值写回机台,数控机台再次加工测量就可产出各尺寸达标产品。此调机过程不受数控机台系统限制,适用于所有类型的数控机台。The preferred embodiment of the present invention discloses an intelligent adjustment method based on optimization compensation, which is used for intelligent adjustment of at least one numerical control machine, so that the adjustment process is smoother, and the adjustment compensation data reaches the target at one time. The target process is: after the machining of the CNC machine is completed, the probe is used to measure the size points in the machine. The system collects the measurement points in real time to calculate each size value of the part. The system page visually displays the size measurement results of the processed parts and automatically calculates all The optimal value of the tool compensation and coordinate system compensation involved in the processing, the compensation value can be written back to the machine with one click of the compensation button, and the CNC machine can be processed and measured again to produce products of various sizes that meet the standards. This adjustment process is not limited by the CNC machine system, and is applicable to all types of CNC machines.
如图1所示,该智能调机方法具体包括以下步骤:As shown in Figure 1, the intelligent tuning method specifically includes the following steps:
S1:获取数控机台的测量模型参数,并接收数控机台采集的加工零件的实际测量数据;S1: Obtain the measurement model parameters of the CNC machine, and receive the actual measurement data of the processed parts collected by the CNC machine;
其中,获取的测量模型参数包括所述数控机台的加工零件的各待测尺寸的类型、标准值和公差标准、所述数控机台的刀补系数等。Wherein, the acquired measurement model parameters include the type, standard value and tolerance standard of each dimension to be measured of the machined parts of the CNC machine, the tool compensation coefficient of the CNC machine, and the like.
在一个零件开始加工验证调机的过程中,需要每一台数控机台都通过调机。即保证每台数控机台都有能力生产满足质量需求的零件,或者在每日生产的首片料时,也需要进行调机验证工作。调机工作的基础,是工艺、编程部门已经确定了加工零件的图纸版本,制定了工艺方法(如工序拆分、加工NC程序、加工刀具、加工夹具、加工设备性能需求等),并已经确定了质量检测要求,如检测的尺寸,及其公差标准。如一个长度尺寸,标准是0.83cm,若做到上线0.09cm和下线0.05cm范围内就算达标,即生产出来的尺寸在0.78cm到0.92cm便判定为合格。When a part starts to be processed, verified and adjusted, each CNC machine needs to pass the adjustment. That is to ensure that each CNC machine is capable of producing parts that meet the quality requirements, or when the first piece of material is produced every day, machine adjustment verification is also required. The basis of the machine adjustment work is that the process and programming departments have determined the drawing version of the processed parts, formulated the process methods (such as process splitting, processing NC programs, processing tools, processing fixtures, processing equipment performance requirements, etc.), and have determined Quality inspection requirements, such as the size of the inspection, and its tolerance standards. For example, for a length dimension, the standard is 0.83cm. If the upper line is within the range of 0.09cm and the lower line is 0.05cm, the standard is met, that is, the produced size is 0.78cm to 0.92cm, and it is judged as qualified.
具体地,开始调机前,需要存储以下数据内容:(1)加工的项目;(2)为项目所分配的加工设备;(3)项目下的零件;(4)零件的各个图纸版本;(5)每个图纸版本下的多工序;(6)每个工序下包含了一系列检测尺寸;(7)每一个尺寸都拥有一套公差标准、一套加工刀具信息、一套加工坐标系信息。刀具和坐标系信息中都拥有实际影响信息,如是刀具长度,还 是刀具半径会影响该尺寸的加工,并且会记录影响系数,即刀具/坐标系补偿和尺寸的系数关系。如不同尺寸,在不同刀具切割方法下,受到其不同刀补影响的系数比例。(7)每一个尺寸有存在多点位尺寸。即从不同点位出发,测量的值有所不同。如厚度尺寸、半径尺寸等,会有多点位数据进行展示。Specifically, before starting machine adjustment, the following data content needs to be stored: (1) processed items; (2) processing equipment allocated for the items; (3) parts under the items; (4) each drawing version of the parts; 5) Multiple processes under each drawing version; (6) Each process contains a series of inspection dimensions; (7) Each dimension has a set of tolerance standards, a set of processing tool information, and a set of processing coordinate system information . Both tool and coordinate system information have actual influence information, such as the tool length or tool radius will affect the processing of this dimension, and the influence coefficient will be recorded, that is, the coefficient relationship between tool/coordinate system compensation and size. For different sizes, under different tool cutting methods, the ratio of coefficients affected by different tool compensations. (7) There are multi-point sizes for each size. That is, starting from different points, the measured values are different. Such as thickness size, radius size, etc., there will be multi-point data for display.
数控机台使用探针硬件装备,使用“测量NC程序”,探测加工零件内的一些列点位值;通过零件图纸,获取这些点位置和零件各尺寸的关系,并通过点位值计算出所有尺寸值。在测量过程中,往往存在一些误差问题:热变形导致的误差、毛刺导致的误差、形变导致的误差等等。在本实施例中,在接收到数控机台采集的加工零件的实际测量数据之后,还采用标准块点位形变对数控机台采集的加工零件的实际测量数据进行校正以解决上述误差问题。The NC machine is equipped with probe hardware and uses the "measurement NC program" to detect a series of point values in the processed parts; through the part drawings, the relationship between these point positions and the dimensions of the parts is obtained, and all points are calculated through the point values. size value. In the measurement process, there are often some error problems: errors caused by thermal deformation, errors caused by burrs, errors caused by deformation, etc. In this embodiment, after receiving the actual measurement data of the processed parts collected by the CNC machine, the point deformation of the standard block is also used to correct the actual measurement data of the processed parts collected by the CNC machine to solve the above error problem.
在一个具体的实施例中,标准块的示意图如图2所示,X和Y方向各有1个标准块,标准块“标定点”尺寸提前由三坐标进行测量标定(图示中已标注出基准值)。标准块安装之后,用机内测头对标准块进行测量,找到原点后,机内测出标准块内所有“标定点”的坐标值(即标定值)。如此,便可算出每个标定点在机内检测值和三坐标检测值的误差值,如表1所示。例如,采用A1到A2点的长度作为案例,其理论直径为|A2-A1|=24mm。A1点在线测量坐标为-118.0,此位置在标准块上最相近的“标定点”为表1中的9号点,值为-117.0,其误差为0.009。因此取此标定点的误差值对A1点进行修正,修正后的A1坐标为-118.0-0.009=-118.009。同理对A2点坐标进行修正-142.0-0.011=-142.011。A1、A2点修正后,圆的直径|A2-A1|=24.002mm。在后续进行补偿计算取值时,取进行过标准块补偿的坐标值进行下一步计算。In a specific embodiment, the schematic diagram of the standard block is shown in Figure 2, there is one standard block in each of the X and Y directions, and the size of the "marking point" of the standard block is measured and calibrated by three coordinates in advance (marked in the figure Reference value). After the standard block is installed, measure the standard block with the built-in probe. After finding the origin, the machine measures the coordinate values (ie, the calibration value) of all "calibration points" in the standard block. In this way, the error value between the in-machine detection value and the three-coordinate detection value of each calibration point can be calculated, as shown in Table 1. For example, taking the length from A1 to A2 as an example, its theoretical diameter is |A2-A1|=24mm. The online measurement coordinate of point A1 is -118.0, and the closest "calibration point" at this position on the standard block is point No. 9 in Table 1, with a value of -117.0 and an error of 0.009. Therefore, take the error value of this calibration point to correct the A1 point, and the corrected A1 coordinate is -118.0-0.009=-118.009. Similarly, the coordinates of point A2 are corrected -142.0-0.011=-142.011. After point A1 and A2 are corrected, the diameter of the circle |A2-A1|=24.002mm. In the subsequent compensation calculation and value acquisition, the coordinate values that have been compensated by the standard block are taken for the next calculation.
表1标准块的每个标定点的基准值、标定值和相应的误差Table 1 The reference value, calibration value and corresponding error of each calibration point of the standard block
Figure PCTCN2022112944-appb-000004
Figure PCTCN2022112944-appb-000004
Figure PCTCN2022112944-appb-000005
Figure PCTCN2022112944-appb-000005
Figure PCTCN2022112944-appb-000006
Figure PCTCN2022112944-appb-000006
其中,在接收数控机台采集的加工零件的实际测量数据具体为:通过与数控机台建立进行交互的握手协议来接收数控机台采集的加工零件的实际测量数据,进一步具体包括以下步骤:Wherein, receiving the actual measurement data of the processed parts collected by the CNC machine is specifically: receiving the actual measurement data of the processed parts collected by the CNC machine by establishing an interactive handshake protocol with the CNC machine, further specifically including the following steps:
A1:与数控机台建立长链接,以在接收数据开始时通知数控机台进入采集状态;A1: Establish a long link with the CNC machine to notify the CNC machine to enter the collection state when receiving data;
A2:接收数控机台以宏变量形式传输的特征编号和对应采集到的一个点位测量数据;也即,数控机台在每获取测量的一个点位结果,就将该点位结果和约定好的特征编号通过宏变量 形式传输到智能调机系统中;其中,采用了五个系统宏变量进行信息交互,分别为“程序名”、“尺寸号”、“X值”、“Y值”、“Z值”。A2: Receive the feature number transmitted by the CNC machine in the form of macro variables and the corresponding point measurement data collected; that is, every time the CNC machine obtains a measurement point result, the point result and the agreed The feature number of the system is transmitted to the intelligent tuning system in the form of macro variables; among them, five system macro variables are used for information interaction, which are "program name", "size number", "X value", "Y value", "Z value".
A3:重置宏变量,并判断数控机台是否采集完所有点位,如果是,则完成接收,则通知数控机台进入下一个点位的测量和上报,并返回步骤A2。即当所有测量点位数据都测量完成时,数控机台发出结束信号,智能调机系统获取结束信号,结束一轮数据的接收,并将采集点位数据全部结果计提上报到智能调机系统的服务端,数据接收完成后,服务端将完成后续的尺寸计算、尺寸判定和补偿计算工作。A3: Reset the macro variable, and judge whether the CNC machine has collected all the points. If so, complete the reception, then notify the CNC machine to start the measurement and reporting of the next point, and return to step A2. That is, when all the measurement point data are measured, the CNC machine sends an end signal, and the intelligent machine adjustment system obtains the end signal, ends a round of data reception, and reports all the results of the collected point data to the intelligent machine adjustment system After receiving the data, the server will complete the subsequent size calculation, size judgment and compensation calculation.
通过建立上述握手协议,可以在不影响数控机台的正常加工,握手效率高,占用数控机台的宏变量少,握手次数少但是又能够保证数据交互稳妥,不出现丢数据或错采集接收。By establishing the above-mentioned handshake protocol, the normal processing of the CNC machine can not be affected, the handshake efficiency is high, the macro variables occupying the CNC machine are small, the number of handshakes is small, but the data interaction can be guaranteed to be stable, and there will be no data loss or wrong collection and reception.
S2:根据测量模型参数将数控机台采集到的加工零件的实际测量数据转换为标准格式的测量数据;S2: Convert the actual measurement data of the processed parts collected by the CNC machine into measurement data in a standard format according to the measurement model parameters;
在零件图纸中找到测量点位和检测尺寸的关系,通过形位几何公式,计算尺寸的结果值。此部分操作可在智能检测调机系统内部完成,也可以依赖市场已存在的检测系统对接来完成。如计算“圆度”、“同轴度”、“平行度”、“垂直度”、“对称度”等类型尺寸值,可将需要测量的尺寸在图纸中标出,系统引导选择计算所需要的测量点位。如此,检测程序只要将这些点位的(x,y,z)坐标测出,系统就可使用已建立的几何计算模型自动完成尺寸结果计算,并在系统中显示出来。Find the relationship between the measurement point and the detection size in the part drawing, and calculate the result value of the size through the shape and geometry formula. This part of the operation can be completed within the intelligent detection and adjustment system, or it can be completed by relying on the docking of existing detection systems in the market. For example, to calculate the dimensional values of "circularity", "coaxiality", "parallelism", "perpendicularity", "symmetry", etc., the dimensions to be measured can be marked on the drawing, and the system guides the selection of the required calculation. Measure point. In this way, as long as the inspection program measures the (x, y, z) coordinates of these points, the system can use the established geometric calculation model to automatically complete the calculation of the size results and display them in the system.
其中,在将实际测量数据转换为标准格式的测量数据之后,还根据测量模型参数判断得到的标准格式的测量数据是否达标,如果不达标,则发送报警信号给所述数控机台,以使得数控机台暂停加工零件。Wherein, after the actual measurement data is converted into the measurement data in the standard format, it is also judged according to the measurement model parameters whether the obtained measurement data in the standard format is up to the standard, and if it is not up to the standard, an alarm signal is sent to the numerical control machine, so that the numerical control The machine pauses to process parts.
具体地,通过自定义握手协议,系统实现对测量数据点位的实时接收。点位转化计算为零件尺寸之后,与系统内的质量标准文档中规定的尺寸公差进行比较,输出每个尺寸达标与否的报告。报告包含信息包括,一个零件测量时间、零件片编码、零件加工检测机台序列号、零件尺寸的标准值和公差、零件尺寸的实际值,尺寸达标与否判断、尺寸偏差值。根据测量程序,实时采集点位测量值。实时判定测量尺寸是否合格。Specifically, through the custom handshake protocol, the system realizes the real-time reception of measurement data points. After point conversion is calculated into part size, it is compared with the dimensional tolerance specified in the quality standard document in the system, and a report on whether each size meets the standard is output. The information contained in the report includes the measurement time of a part, the code of the part piece, the serial number of the part processing and testing machine, the standard value and tolerance of the part size, the actual value of the part size, the judgment of whether the size meets the standard, and the size deviation value. According to the measurement program, the point measurement value is collected in real time. Real-time judgment whether the measurement size is qualified or not.
因此,上述的系统显示结果不仅包含最终计算出的尺寸结果值,同时包括“达标判定”(OK或者NG),包含偏差值。通过查看最最终采集结果,能立刻知道整片零件测量了多少尺寸,是否全部通过,有多少尺寸未达标,每个尺寸偏差是多少,偏差超过一定范围的尺寸又是哪些。若有尺寸未达标,除了在系统检测结果中展示,还会通知机台,使得数控机台停机并产生报警,通知现场人员,此台设备加工测量没有通过,需要进行补偿。以免出现下一片不达标加工产品。Therefore, the above-mentioned system display results not only include the final calculated size result value, but also include the "standard determination" (OK or NG) and the deviation value. By looking at the final collection results, you can immediately know how many dimensions have been measured for the entire piece, whether they all pass, how many dimensions are not up to standard, what is the deviation of each dimension, and which dimensions have deviations exceeding a certain range. If there is a size that does not meet the standard, in addition to displaying it in the system test results, the machine will be notified, causing the CNC machine to stop and generate an alarm to notify the on-site personnel that the processing measurement of this equipment has not passed and needs to be compensated. In order to avoid the next substandard processed product.
S3:根据标准格式的测量数据和测量模型参数建立基于信赖域的加权的优化问题模型,并对该优化问题求解,得到数控机台的优化补偿值;S3: Establish a weighted optimization problem model based on the trust region according to the measurement data and measurement model parameters in the standard format, and solve the optimization problem to obtain the optimal compensation value of the CNC machine;
在尺寸不达标的情况下,系统需要计算出和不达标尺寸加工相关的刀具和坐标轴的补偿值,使得机台下次加工过程中,采用了刀补和坐标系补偿后,生产出尺寸达标的零件。在计算补偿 值的过程中,由于尺寸之间存在相关性,同时,一个刀补或一个坐标轴的改变可能会影响多个尺寸,因为补偿值的计算不能简单通过单个尺寸的不等式计算。本实施例中将尺寸、标准值、公差、补偿系统、未知补偿变量、补偿变量的补偿系数首创构成了一组欠定方程组,并考虑到不同尺寸达到公差标准重要性的不同,加入了加权求解的方法,最终将此方程组转化为约束最优化问题,进行求解。在这种补偿值算法的帮助下,能够帮助调机获取最优方案,将每个尺寸做到最好的值,而不仅仅是达标。具体补偿算法如下述的详细阐释。In the case that the size does not meet the standard, the system needs to calculate the compensation value of the tool and the coordinate axis related to the processing of the non-standard size, so that in the next machining process of the machine, after the tool compensation and coordinate system compensation are used, the produced size meets the standard parts. In the process of calculating the compensation value, due to the correlation between the dimensions, at the same time, a tool offset or a change of a coordinate axis may affect multiple dimensions, because the calculation of the compensation value cannot be simply calculated through the inequality of a single dimension. In this embodiment, dimensions, standard values, tolerances, compensation systems, unknown compensation variables, and compensation coefficients of compensation variables are first created to form a set of underdetermined equations, and considering the importance of different sizes to achieve tolerance standards, weighted The solution method finally converts this system of equations into a constrained optimization problem and solves it. With the help of this compensation value algorithm, it can help the machine to obtain the optimal solution, and achieve the best value for each size, not just reach the standard. The specific compensation algorithm is explained in detail as follows.
S31:构建模型。S31: Build a model.
在数控机台补偿中,实际的测量值应当在标准值加上刀补值(补偿值)的公差范围之内,所以实际测量值应该等于标准值加上刀补系数乘以刀补加上浮动公差。其中刀补系数和标准值由系统给定已在步骤S1中获取,测量值由现场数控机台测量给出,需要求出补偿值和公差。因此在补偿算法中,已知测量的实际物理量记为C∈R n,补偿系数z∈R k×n,标准值S∈R n,未知量公差ε∈R n和补偿值X∈R k(其中n、k均为正整数,表示空间的维度,R表示实数空间,例如R n表示n维实数空间)。因此有方程组: In CNC machine compensation, the actual measured value should be within the tolerance range of the standard value plus the tool compensation value (compensation value), so the actual measured value should be equal to the standard value plus the tool compensation coefficient multiplied by the tool compensation plus floating tolerance. Among them, the tool compensation coefficient and the standard value are given by the system and obtained in step S1, and the measured value is given by the on-site numerical control machine measurement, and the compensation value and tolerance need to be obtained. Therefore, in the compensation algorithm, the actual physical quantity known to be measured is recorded as C∈R n , the compensation coefficient z∈R k×n , the standard value S∈R n , the unknown tolerance ε∈R n and the compensation value X∈R k ( Where n and k are both positive integers, representing the dimension of the space, and R represents the real number space, for example, R n represents the n-dimensional real number space). So there are equations:
C=S+z TX+ε             (1) C=S+z T X+ε (1)
其中未知量为补偿值X和公差ε,所以未知数的个数是k+n,而方程的数量是n个,因此可知未知量的个数大于有效方程组的个数,故问题转化为欠定方程组求解问题。The unknowns are the compensation value X and the tolerance ε, so the number of unknowns is k+n, and the number of equations is n, so it can be known that the number of unknowns is greater than the number of effective equations, so the problem is transformed into underdetermined System of equations solving problems.
进一步地,化简方程组到标准格式令,x=[X,ε]∈R n+k,A=[z,I] T∈R n×(n+k),b=C-S∈R n,由于实际情况中对补偿值和公差有范围要求,本发明将原问题等价于求解带约束的欠定方程组: Further, simplify the equation system to the standard form, x=[X,ε]∈R n+k , A=[z,I] T ∈ R n×(n+k) , b=CS∈R n , Since there are range requirements for the compensation value and tolerance in the actual situation, the present invention equates the original problem to solving the underdetermined equations with constraints:
Figure PCTCN2022112944-appb-000007
Figure PCTCN2022112944-appb-000007
其中lsp,usp∈R n+k分别为未知量的上界和下界。 Among them, lsp, usp∈R n+k are the upper bound and lower bound of the unknown quantity respectively.
若方程组(2)存在可行解,其解必然是下列约束优化问题的最优解:If there is a feasible solution to the equation group (2), its solution must be the optimal solution of the following constrained optimization problem:
Figure PCTCN2022112944-appb-000008
Figure PCTCN2022112944-appb-000008
s.t.lsp≤x≤usps.t.lsp≤x≤usp
                                                     (3)实际中,对于可行解往往有更多的要求,例如求最小二范数解或者加权解。因此本发明中将问题建模为带权的优化问题求解:(3) In practice, there are often more requirements for feasible solutions, such as finding the least square norm solution or weighted solution. Therefore, in the present invention, the problem is modeled as a weighted optimization problem solution:
Figure PCTCN2022112944-appb-000009
Figure PCTCN2022112944-appb-000009
s.t.lsp≤x≤usps.t.lsp≤x≤usp
Ax=b                         (4)Ax=b (4)
这里E∈R n×(n+k)是权重。 Here E∈R n×(n+k) is the weight.
S32:模型求解:上述二次规划问题求解可以采用内点法或者信赖域反射最小二乘方法求解,实验中由于数值很小,内点法求解经常会出现误差,故而采用信赖域反射最小二乘方法求解。S32: Model solution: The above quadratic programming problem can be solved by interior point method or trust region reflective least squares method. In the experiment, due to the small value, the solution of interior point method often has errors, so the trust region reflective least squares method is used. method to solve.
S33:信赖域反射法:S33: Trust Region Reflection Method:
考虑无约束最小化问题,最小化f(x):R n→R。假设现在位于n维空间中的点x处,需要寻找函数值更小的点。基本思路是用较简单的函数q来逼近f,该函数需能充分反映函数f在点x的邻域N中的行为。此邻域N就是信赖域N。试探步s是通过在信赖域N上进行最小化(或近似最小化)来计算的。以下是信赖域子问题: Consider the unconstrained minimization problem, minimizing f(x): R n → R. Assuming that you are now at point x in n-dimensional space, you need to find a point with a smaller function value. The basic idea is to approximate f with a simpler function q, which needs to fully reflect the behavior of function f in the neighborhood N of point x. This neighborhood N is the trust region N. The trial steps s are computed by minimizing (or approximately minimizing) over the trust region N. The following are trust region subproblems:
min s{q(s),s∈N}                 (5) min s {q(s),s∈N} (5)
如果f(x+s)<f(x),当前点更新为x+s;否则,当前点保持不变,信赖域N缩小,算法再次计算试探步。If f(x+s)<f(x), the current point is updated to x+s; otherwise, the current point remains unchanged, the trust region N shrinks, and the algorithm calculates the trial step again.
在定义特定信赖域方法以最小化f(x)的过程中,关键问题是如何选择和计算逼近q(在当前点x上定义)、如何选择和修改信赖域N,以及如何准确求解信赖域子问题。在标准信赖域方法中,二次逼近q由f在x处的泰勒逼近的前两项定义;邻域N通常是球形或椭圆形。以数学语言表述,信赖域子问题通常写作In the process of defining a specific trust region method to minimize f(x), the key issues are how to choose and compute the approximation q (defined at the current point x), how to choose and modify the trust region N, and how to exactly solve the trust region sub question. In standard trust region methods, the quadratic approximation q is defined by the first terms of the Taylor approximation of f at x; the neighborhood N is usually spherical or elliptical. Expressed in mathematical language, the trust region subproblem is usually written as
Figure PCTCN2022112944-appb-000010
Figure PCTCN2022112944-appb-000010
其中,g是f在当前点x处的梯度,H是Hessian矩阵(二阶导数的对称矩阵),D是对角缩放矩阵,Δ是信赖域半径,是一个正标量,||.||是2-范数。此类2阶算法(涉及求Hessian矩阵以及求逆的算法,在大规模求解时耗时耗力且计算复杂)通常涉及计算H的所有特征值,并将牛顿法应用于以下特征方程Among them, g is the gradient of f at the current point x, H is the Hessian matrix (symmetric matrix of the second derivative), D is the diagonal scaling matrix, Δ is the radius of the trust region, which is a positive scalar, ||.||is 2-norm. Such second-order algorithms (algorithms involving finding the Hessian matrix and inversion, which are time-consuming, labor-intensive and computationally complex in large-scale solutions) usually involve calculating all the eigenvalues of H, and applying Newton's method to the following characteristic equations
Figure PCTCN2022112944-appb-000011
Figure PCTCN2022112944-appb-000011
公式(7)可以提供公式(6)的精确解;H的特征值一般是用特征值分解计算,而求解公式(6)的优化迭代格式需要计算H的特征值分解,以及应用这些特征值和Δ计算迭代方向,这里涉及到一个求解带约束的二次规划问题的定理:Equation (7) can provide an exact solution to Equation (6); the eigenvalues of H are generally calculated using eigenvalue decomposition, and the optimal iterative format for solving Equation (6) requires calculating the eigenvalue decomposition of H, and applying these eigenvalues and Δ calculates the iterative direction, which involves a theorem for solving quadratic programming problems with constraints:
s *是公式(6)的全局最小解当且仅当s *是可行的且存在λ≥0使得: s * is the global minimum solution of formula (6) if and only if s * is feasible and there exists λ≥0 such that:
(H+λI)s *=-g (H+λI)s * =-g
λ(Δ-||s *||)=0 λ(Δ-||s * ||)=0
(H+λI)≥0(H+λI)≥0
根据上述定理,可以知道迭代格式s(λ)=-(H+λI) -1g是关于λ的一族向量,可以通过计算最优的λ *找到最优的s *According to the above theorem, it can be known that the iterative format s(λ)=-(H+λI) -1 g is a family of vectors about λ, and the optimal s * can be found by calculating the optimal λ * .
设H有特征值分解H=QΛQ T,其中Q=[q 1,q 2,…,q n]是正交矩阵,Λ=Diag(λ 12,…,λ n)是对角矩阵,λ 1≤λ 2≤…≤λ n是H的特征值。为了方便,以下仅考虑λ 1≤0且λ 1是单特征根的情形,其他情形可类似分析。显然,H+λI有特征值分解H+λI=Q(Λ+ λI)Q T。对λ>-λ 1≥0,可直接写出s(λ)的表达式: Suppose H has eigenvalue decomposition H=QΛQ T , where Q=[q 1 ,q 2 ,…,q n ] is an orthogonal matrix, Λ=Diag(λ 12 ,…,λ n ) is a diagonal matrix , λ 1 ≤λ 2 ≤…≤λ n are the eigenvalues of H. For convenience, only the case where λ 1 ≤ 0 and λ 1 is a single characteristic root is considered below, other cases can be analyzed similarly. Obviously, H+λI has an eigenvalue decomposition H+λI=Q(Λ+λI)Q T . For λ>-λ 1 ≥0, the expression of s(λ) can be written directly:
Figure PCTCN2022112944-appb-000012
Figure PCTCN2022112944-appb-000012
这正是s(λ)的正交分解,由正交性可容易求出This is exactly the orthogonal decomposition of s(λ), and it can be easily obtained from the orthogonality
Figure PCTCN2022112944-appb-000013
Figure PCTCN2022112944-appb-000013
根据上式式可知当λ>-λ 1
Figure PCTCN2022112944-appb-000014
时,||s(λ)|| 2是关于λ的严格减函数,且有
According to the above formula, it can be seen that when λ>-λ 1 and
Figure PCTCN2022112944-appb-000014
When , ||s(λ)|| 2 is a strictly decreasing function of λ, and there is
Figure PCTCN2022112944-appb-000015
Figure PCTCN2022112944-appb-000015
根据连续函数介值定理,由互补松弛性质知道||s(λ)||=Δ(等价于公式(7))的解必存在且唯一,因此可以通过牛顿法计算公式(7)一元方程的根得到λ *,进而计算得到s *According to the intermediate value theorem of continuous functions, it is known from the complementary relaxation properties that the solution of ||s(λ)||=Δ (equivalent to formula (7)) must exist and be unique, so the unary equation of formula (7) can be calculated by Newton’s method The root of λ * is obtained, and then calculated to obtain s * .
但是,求解H的特征值要耗费与H的几个分解成比例的时间。因此,对于信赖域问题,本发明中采取另一种方法,这种方法是将信赖域子问题限制在二维子空间K内进行近似求解,一旦计算出二维子空间K,即使需要完整的特征值/特征向量信息,求解公式(6)的工作量也不大,所以主要工作已转移到子空间的确定上。However, solving the eigenvalues of H takes time proportional to several decompositions of H. Therefore, for the trust region problem, another method is adopted in the present invention. This method is to limit the trust region subproblem within the two-dimensional subspace K for approximate solution. Once the two-dimensional subspace K is calculated, even if a complete For the eigenvalue/eigenvector information, the workload of solving formula (6) is not large, so the main work has been transferred to the determination of the subspace.
二维子空间K是借助下述预条件共轭梯度法确定的。求解器将K定义为由k 1和k 2确定的线性空间,其中k 1是梯度g的方向,k 2是近似牛顿方向(即H·k 2=-g的解)或是负曲率的方向
Figure PCTCN2022112944-appb-000016
以此种方式选择K的思路是强制全局收敛(通过最陡下降方向或负曲率方向)并实现快速局部收敛(通过牛顿步,如果它存在)。
The two-dimensional subspace K is determined by means of the following preconditioned conjugate gradient method. The solver defines K as the linear space determined by k 1 and k 2 , where k 1 is the direction of the gradient g and k 2 is the approximate Newton direction (i.e. the solution of H k 2 = -g) or the direction of negative curvature
Figure PCTCN2022112944-appb-000016
The idea of choosing K in this way is to force global convergence (via the direction of steepest descent or negative curvature) and achieve fast local convergence (via Newton steps, if it exists).
基于上述分析,可以给出基于信赖域的无约束最小化的框架:Based on the above analysis, the framework of unconstrained minimization based on trust region can be given:
B1:构造二维信赖域子问题。B1: Construct a two-dimensional trust region subproblem.
B2:求解公式(6)以确定试探步s。B2: Solve equation (6) to determine the trial step s.
B3:如果f(x+s)<f(x),则x=x+s。B3: If f(x+s)<f(x), then x=x+s.
B4:调整信赖域半径Δ。B4: Adjust the trust region radius Δ.
信赖域半径Δ根据标准规则进行调整。具体来说,它会在试探步不被接受(即f(x+s)≥f(x))时减小。重复B1~B4这四个步骤,直到算法收敛,就得到了优化问题f(x)的解(补偿值X和公差ε)。The trust region radius Δ is adjusted according to standard rules. Specifically, it decreases when a trial step is not accepted (i.e. f(x+s) ≥ f(x)). Repeat the four steps B1 to B4 until the algorithm converges, and then the solution of the optimization problem f(x) (compensation value X and tolerance ε) is obtained.
在上述补偿算法中,可知补偿值是由尺寸标准值、公差区间、补偿系数、尺寸关系所决定,因此,本发明通过建模的方式,设计一组线性方程组,由未知量补偿值和公差作为变量,结合上述相应的参数构成一组欠定方程组。然后根据变量之间的重要程度,设计最优的加权求解算法,将欠定方程组的求解转化为约束最优化问题求解。以上算法帮助求解了最佳补偿差值,但此补偿差值并不是最终写入机台的刀补值或者坐标系补偿值。考虑到补偿可能分次完成,或者考虑到机台此次加工本身已经使用了一定补偿的情况,因为需要考虑获取此次采集本身所使用的原始刀补和原始坐标系补偿值,再和此次计算补偿差值进行加总,才是生产达标尺寸零件所 需的机台补偿值。因此,在握手接收数据的过程开始时,智能调机系统已经根据当下加工零件的标准文档,进行了一次相应刀补和坐标系补偿的采集。并将数据存储下来,为最终要写入机台的补偿值做准备。In the above-mentioned compensation algorithm, it can be seen that the compensation value is determined by the standard value of the size, the tolerance interval, the compensation coefficient, and the size relationship. Therefore, the present invention designs a set of linear equations by modeling, and the compensation value of the unknown quantity and the tolerance As a variable, a set of underdetermined equations is formed by combining the above corresponding parameters. Then, according to the importance of the variables, an optimal weighted algorithm is designed to convert the solution of the underdetermined equations into a constrained optimization problem. The above algorithm helps to solve the best compensation difference, but this compensation difference is not the tool compensation value or coordinate system compensation value that is finally written into the machine. Considering that the compensation may be completed in batches, or considering that the machining itself has already used a certain amount of compensation, it is necessary to consider obtaining the original tool compensation and original coordinate system compensation values used in this collection itself, and then combine it with this time Compensation differences are calculated and summed up, which is the machine compensation value required to produce standard-sized parts. Therefore, at the beginning of the process of handshaking and receiving data, the intelligent machine tuning system has already carried out a collection of corresponding tool compensation and coordinate system compensation according to the standard documents of the currently processed parts. And store the data to prepare for the compensation value to be written into the machine.
S4:将优化补偿值回传给数控机台,以使得数控机台根据优化补偿值进行调机。S4: Send the optimized compensation value back to the CNC machine, so that the CNC machine can adjust the machine according to the optimized compensation value.
在测量时,将采集每个刀位的刀补(包含半径刀补磨耗、长度刀补磨耗)初始值,以及每个坐标轴的初始值。通过算法,计算出补偿差值。最后,通过初始值加上补偿差值的方式对补偿值进行回写。并且,在补偿回写过程中,系统创造性地进行了防呆防错处理,设置了阈值区间,一旦发现补偿值超过阈值,将无法补回,并发出提示,告知此次需要所有尺寸达标的补偿值可能产生机台加工危险,提示人工干预,进行解决。例如,补偿值的绝对值0.1为界限,一旦判定计算补偿值合并原始机台采集补偿值累加超过此值,则无法直接通过系统补偿回写机台。安全范围可以根据场景要求进行自定义设置。若所有补偿值都在安全范围内,则一键回写,方便快捷。按此过程操作,调机总共只需要两次加工和测量,第一次测量帮助计算出该台设备的各个补偿参数,第二次加工即可完成一片全部尺寸达标的零件生产。During measurement, the initial value of tool compensation (including radius tool compensation wear and length tool compensation wear) of each tool position and the initial value of each coordinate axis will be collected. Calculate the compensation difference through an algorithm. Finally, the compensation value is written back by adding the compensation difference to the initial value. In addition, during the write-back process of compensation, the system creatively performs fool-proof and error-proof processing, and sets a threshold range. Once the compensation value is found to exceed the threshold, it will not be able to make up for it, and a prompt will be issued to inform that compensation of all sizes that meet the standard is required this time. The value may cause the danger of machine processing, prompting manual intervention to solve it. For example, the absolute value of the compensation value is 0.1 as the limit. Once it is determined that the calculated compensation value combined with the original machine acquisition compensation value exceeds this value, it cannot be directly written back to the machine through system compensation. The security scope can be customized according to the scene requirements. If all compensation values are within the safe range, it can be written back with one key, which is convenient and quick. According to this process, the adjustment of the machine only needs two processing and measurement in total. The first measurement helps to calculate the compensation parameters of the equipment, and the second processing can complete the production of a part with all dimensions up to standard.
本发明优选实施例还公开了一种基于优化补偿的智能调机系统,用于对至少一台数控机台进行智能调机,包括:处理器和存储介质,所述存储介质中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述的智能调机方法。The preferred embodiment of the present invention also discloses an intelligent machine adjustment system based on optimization compensation, which is used to perform intelligent machine adjustment on at least one numerical control machine, including: a processor and a storage medium, and the computer program is stored in the storage medium , the processor is configured to run the computer program to execute the above-mentioned intelligent tuning method.
从补偿方案上来说,目前,除依靠技术人员经验调机,一些大型企也出现一些半自动的机床调参方案,基本处理流程为:将被测工件拿到测量室通过三坐标等测量仪器进行测量,并选择其中的一部分测量结果手工录入到excel文档,或者带有算法的系统。Excel文档或系统中,会建立基于经验的“几何公式”,通过这些公式可以相对快速及统一地计算出调参的结果。这种计算方案在一定程度上解决了标准化的问题。但在“效率”和“准确性”方面还有很大的提升空间。本发明优选实施例的调机方案是一套集“自动化和智能化”一体,并程度更高的方案:首先,用“机内测量”的实现了测量数据的自动和实时的读取;在这一过程中,避免了实验室测量及等待时间中机台加工次品的可能性。其次,也为测量数据和参数建立了完整的模型,并将几何计算的问题转化成了一个“优化问题”,其中使用了多种优化算法对该问题进行求解。此解在保障所有尺寸调机精准度上可靠性有极大地提升。In terms of compensation schemes, at present, in addition to relying on the experience of technicians to adjust the machine, some large-scale enterprises also have some semi-automatic machine tool parameter adjustment schemes. The basic processing flow is: take the workpiece to be measured to the measurement room for measurement by three-coordinate and other measuring instruments , and select a part of the measurement results to manually enter into an excel file, or a system with an algorithm. In Excel documents or systems, experience-based "geometric formulas" will be established, through which the results of parameter adjustment can be calculated relatively quickly and uniformly. This calculation scheme solves the problem of standardization to a certain extent. But there is still a lot of room for improvement in terms of "efficiency" and "accuracy". The machine tuning scheme of the preferred embodiment of the present invention is a set of "automation and intelligence" integration, and a higher degree of scheme: first, the automatic and real-time reading of measurement data is realized by "in-machine measurement"; In this process, the possibility of machine processing defective products during laboratory measurement and waiting time is avoided. Secondly, a complete model is also established for the measurement data and parameters, and the problem of geometric calculation is transformed into an "optimization problem", in which various optimization algorithms are used to solve the problem. This solution has greatly improved the reliability of ensuring the accuracy of all size adjustments.
机器生产加工流程中,将采用精密检测设备在机内、或机外、或二者同时进行产品质量检测,获取产品各工序各尺寸检测结果值。智能调机系统将通过和检测设备交互,实时获取各类检测数据。并对检测数据进行计算,判定各尺寸达标与否。若尺寸全部达标,则产品通过质量验证,可交付。若存在尺寸超差,系统将通过优化算法,计算出用于该尺寸加工的最佳刀补或最佳坐标系补偿。同时,智能调机系统将直接与加工设备通信,将最佳调机数据写入设备,完成调机。相比过去人工凭借经验反复调试错、反复整补偿方案,最终实现全部尺寸质检达标的流程,智能调机系统将调机效率提升了80%,一次计算出最优结果,保证所有尺寸通过检测, 并通过系统与检测设备、与加工设备直接交互的方式,优化了检测加工流程,防止了人工误操作。另外,产品质量达标与否不仅与标准工艺相关,还和加工设备的性能特征,调机人员的经验深浅有较大关系,使用智能调机系统进行调机操作之后,对设备和调机人员的依赖将消失,再一次提升了效率,降低了调机成本。In the process of machine production and processing, precision testing equipment will be used to conduct product quality testing inside the machine, outside the machine, or both at the same time, and obtain the test results of each process and each size of the product. The intelligent tuning system will obtain various testing data in real time by interacting with testing equipment. And calculate the test data to determine whether each size meets the standard or not. If all dimensions meet the standard, the product has passed the quality verification and can be delivered. If there is a size out of tolerance, the system will calculate the best tool compensation or the best coordinate system compensation for machining of this size through the optimization algorithm. At the same time, the intelligent adjustment system will directly communicate with the processing equipment, and write the best adjustment data into the equipment to complete the adjustment. Compared with the previous manual process of repeatedly debugging errors and repeatedly adjusting compensation schemes based on experience, and finally achieving the quality inspection of all dimensions, the intelligent adjustment system improves the adjustment efficiency by 80%, calculates the optimal result at one time, and ensures that all dimensions pass the inspection. , and through direct interaction between the system and testing equipment, and processing equipment, the testing and processing process is optimized and manual misoperation is prevented. In addition, whether the product quality meets the standard is not only related to the standard process, but also has a lot to do with the performance characteristics of the processing equipment and the experience of the adjustment personnel. After using the intelligent adjustment system for adjustment operation, the quality of equipment and adjustment personnel Dependence will disappear, which once again improves efficiency and reduces the cost of machine adjustment.
下述结合具体实施例对本发明的基于优化补偿的智能调机方法及系统做进一步的说明。The method and system for intelligent machine adjustment based on optimization compensation of the present invention will be further described below in conjunction with specific embodiments.
如图3所示,是本发明具体实施例的智能调机方法流程图,具体包括以下步骤:As shown in Figure 3, it is a flow chart of an intelligent machine tuning method according to a specific embodiment of the present invention, which specifically includes the following steps:
C1:Modus生成测量程序。此模块为智能调机系统开始工作的前置工作,由于调机平台需要采集测量内容,在此,先介绍测量程序的生成过程。Modus为雷尼绍测量探针配套的软件系统,其工作内容为“传入零件加工图制,标出测量尺寸,标出测量点位,生成相应的测量程序”。因此,第一步工作可以配合Modus此一类软件,进行测量点位的NC程序输出。此步骤本身随无需调机平台介入,但此测量NC程序在机内运行的过程需要和智能调机系统的采集程序建立握手。C1: Modus generates a measurement program. This module is the pre-work for the intelligent machine tuning system to start working. Since the machine tuning platform needs to collect measurement content, here, the generation process of the measurement program will be introduced first. Modus is the supporting software system for Renishaw's measuring probes. Its work content is "input the part processing drawing, mark the measurement size, mark the measurement point, and generate the corresponding measurement program". Therefore, the first step can cooperate with software such as Modus to output the NC program of the measurement point. This step itself does not require the intervention of the machine tuning platform, but the process of running the measurement NC program in the machine needs to establish a handshake with the acquisition program of the intelligent machine tuning system.
C2:将测量模型和质量参数导入IMIQ系统,在智能调机系统内导入基础数据,用于随后的补偿计算。导入数据内容包括:项目、零件、工序、工艺方法、质量标准。C2: Import the measurement model and quality parameters into the IMIQ system, and import the basic data into the intelligent adjustment system for subsequent compensation calculations. The imported data content includes: project, part, process, process method, quality standard.
C3:随后是“接收”,包含“接收零件测量点”和“接收传感器或测量块数据”。这一部分无需人工介入,机台加工过程中会自动启动测量程序,而采集程序则是以服务的形式常驻运行在边缘采集硬件上,并在机台自动测量过程中通过特定的协议采集测量数据和相应时间点的测量块数据并进行存储和上报.。C3: followed by "Receive", which contains "Receive part measurement point" and "Receive sensor or measurement block data". This part does not require manual intervention. The measurement program will be automatically started during the machining process of the machine, and the acquisition program is resident and running on the edge acquisition hardware in the form of a service, and the measurement data is collected through a specific protocol during the automatic measurement process of the machine. And the measurement block data at the corresponding time point are stored and reported.
C4:采集到的所有数据,在这一步会进行第一步计算转换,将点位数据转换为尺寸数据。首先是将整片零件的所有点位数据进行存储,再和Modus进行接口传输。借助Modus已有的点位和尺寸关系,进行尺寸的计算。当然,在采集原始点位值的时候,智能调机系统会考虑标准块点位形变对原始点进行加工(通过计算测量块的形变系数来计算各个测量点位的坐标偏移),再用于计算。C4: For all the collected data, in this step, the first step of calculation conversion will be performed, and the point data will be converted into size data. The first is to store all the point data of the entire part, and then interface with Modus for transmission. Calculate the size with the help of the existing point position and size relationship of Modus. Of course, when collecting the original point value, the intelligent adjustment system will consider the point deformation of the standard block to process the original point (by calculating the deformation coefficient of the measurement block to calculate the coordinate offset of each measurement point), and then use calculate.
C5:优化求解机台参数为调机平台算法得出。C5: Optimizing and solving the machine parameters is obtained by the machine tuning platform algorithm.
C6:最后便是补偿值回写部分。为了防呆防错,智能调机系统自身会有一套检查机制,过滤掉大于安全阈值的补偿结果。随后,需要人工确认补偿,写回机台。C6: The last part is the compensation value write-back part. In order to prevent fools and mistakes, the intelligent machine adjustment system itself will have a set of inspection mechanisms to filter out compensation results that are greater than the safety threshold. Subsequently, it is necessary to manually confirm the compensation and write it back to the machine.
如图4所示,是本发明具体实施例的智能调机系统的框架图,该系统采用了基于B/S的混合计算架构。用户可以基于浏览器完成系统的所有的操作。系统计算是通过中央的高性能服务器集群(提供高可用的机制并可以线性扩展)并配合边缘计算的软硬件共同完成。As shown in FIG. 4 , it is a frame diagram of an intelligent machine tuning system according to a specific embodiment of the present invention. The system adopts a B/S-based hybrid computing architecture. Users can complete all operations of the system based on the browser. The system computing is completed through the central high-performance server cluster (providing a high-availability mechanism and linear expansion) and cooperating with the hardware and software of the edge computing.
目前设备有两种接入方式:There are currently two access methods for the device:
1)轻量级的接入。数控机台通过一条网线或者无线路由器将设备接入到计算网络。中央服务器负责和所有数控机台进行通讯。采集测量数据之后进行参数的计算并将结果反馈到数控机台。1) Lightweight access. The CNC machine connects the equipment to the computing network through a network cable or wireless router. The central server is responsible for communicating with all CNC machines. After the measurement data is collected, the parameters are calculated and the results are fed back to the CNC machine.
2)更智能的接入方案。适合面向测量点位比较多,测量精度要求比较高的场景。会在机台侧部署相应的Edge(边缘控制器)和机台直连。Edge负责和数控机台的测量程序进行通讯并 实施采集各组传感器的数据。所有的数据先在Edge进行汇总和简单计算(主要包含和零件测量的meta数据进行匹配,校验和数据补全等逻辑)后再发送到中央服务器进行后续的处理。2) A smarter access solution. It is suitable for scenes with many measurement points and high measurement accuracy requirements. The corresponding Edge (edge controller) will be deployed on the machine side and directly connected to the machine. Edge is responsible for communicating with the measurement program of the CNC machine and implementing the data collection of each group of sensors. All the data is aggregated and simply calculated on the Edge (mainly including matching with the meta data of the part measurement, verification and data completion, etc.) and then sent to the central server for subsequent processing.
如图4,本具体实施例的智能调机系统包括被控的数控机台10和对应的测头11、测量CAM服务器(Modus)20、接入交换机30、客户端40、边缘计算服务器50、无线AP 60和智能终端70,其具体应用如下:As shown in Figure 4, the intelligent machine adjustment system of this specific embodiment includes a controlled CNC machine 10 and a corresponding probe 11, a measurement CAM server (Modus) 20, an access switch 30, a client 40, an edge computing server 50, The specific applications of wireless AP 60 and intelligent terminal 70 are as follows:
1)人工根据测量标准文件、测量点位2D图判断哪些尺寸可在数控机台的机内测量,生成机内测量点位文件并上传到系统。1) Manually judge which dimensions can be measured in the CNC machine according to the measurement standard file and the 2D map of the measurement point, generate the in-machine measurement point file and upload it to the system.
2)用Modus软件打开对应夹位3D图,根据机内测量点位文件在3D图上标记对应的测量点位,生成测量CNC程序。2) Use the Modus software to open the 3D map of the corresponding clamping position, mark the corresponding measurement point on the 3D map according to the measurement point file in the machine, and generate the measurement CNC program.
3)外接的边缘计算服务器盒子(包含处理器、IO模块、预留的传感器接口等等)和机床直连。并通过特定的握手协议高速接收机台上采集的测量点数据。3) The external edge computing server box (including processors, IO modules, reserved sensor interfaces, etc.) is directly connected to the machine tool. And the measurement point data collected on the high-speed receiver station through a specific handshake protocol.
4)温度造成的热变形对工件测量结果影响会比较大。为了进一步提升测量精度。在数控机台内放置了相应的标准块,对工件进行机内测量的同时也会采集标准块的测量数据。并利用相关的经验公式对工件测量的结果值进行修正,如图5所示。4) The thermal deformation caused by temperature will have a greater impact on the measurement results of the workpiece. In order to further improve the measurement accuracy. The corresponding standard blocks are placed in the CNC machine, and the measurement data of the standard blocks will be collected while the workpiece is measured in the machine. And use the relevant empirical formula to correct the result value of the workpiece measurement, as shown in Figure 5.
5)所有的工件测量点数据采集完成后,会通过DMIS数据服务(DMIS数据服务是指能够支持常用<尺寸测量接口标准>中定义的尺寸或者公差计算的后台服务,例如雷尼绍的modus服务、内部的DMIS数据服务)加工成标准的测量数据(支持不同的标准。目前在通讯协议上使用的是内部的标准。因为更简洁,性能更好。但也可以转换成行业通用的标准,例如QIF)。5) After the data collection of all workpiece measurement points is completed, it will pass through the DMIS data service (DMIS data service refers to the background service that can support the calculation of dimensions or tolerances defined in the commonly used <Dimension Measurement Interface Standard>, such as Renishaw's modus service , internal DMIS data service) into standard measurement data (supports different standards. At present, the internal standard is used in the communication protocol. Because it is more concise and has better performance. But it can also be converted into industry-wide standards, such as QIF).
6)将3)、4)、5)的结果数据汇总和规整之后会被填入预先建立的加工数据模型中。并利用各类优化算法计算出各类调机参数的最优值具体算法公式在下方详述。6) After the result data of 3), 4) and 5) are summarized and organized, they will be filled into the pre-established processing data model. And use various optimization algorithms to calculate the optimal values of various tuning parameters. The specific algorithm formulas are detailed below.
7)调机参数能够会自动写回CNC机台以影响下一次的加工。回写也做了防呆防错(根据人工设置的规则)的处理。7) The adjustment parameters may be automatically written back to the CNC machine to affect the next processing. The write-back has also been dealt with fool-proof and error-proof (according to the rules set manually).
8)利用实验室的三坐标测量仪器进行的离线测试的模型也可以导入(人工、自动)导入到本发明的系统并同样利用本发明的优化算法给出调机参数的最优值。8) The model of the off-line test carried out by the three-coordinate measuring instrument in the laboratory can also be imported (manually, automatically) into the system of the present invention and the optimization algorithm of the present invention is also used to give the optimal value of the tuning parameters.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的技术人员来说,在不脱离本发明构思的前提下,还可以做出若干等同替代或明显变型,而且性能或用途相同,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art to which the present invention belongs, several equivalent substitutions or obvious modifications can be made without departing from the concept of the present invention, and those with the same performance or use should be deemed to belong to the protection scope of the present invention.

Claims (15)

  1. 一种基于优化补偿的智能调机方法,用于对至少一台数控机台进行智能调机,其特征在于,包括以下步骤:An intelligent adjustment method based on optimal compensation, which is used for intelligent adjustment of at least one numerical control machine, is characterized in that it includes the following steps:
    S1:获取所述数控机台的测量模型参数,并接收所述数控机台采集的加工零件的实际测量数据;S1: Obtain the measurement model parameters of the CNC machine, and receive the actual measurement data of the processed parts collected by the CNC machine;
    S2:根据所述测量模型参数将所述数控机台采集到的加工零件的实际测量数据转换为标准格式的测量数据;S2: Convert the actual measurement data of the processed parts collected by the CNC machine into measurement data in a standard format according to the measurement model parameters;
    S3:根据标准格式的测量数据和测量模型参数建立基于信赖域的加权优化问题模型,并对该优化问题模型进行求解,得到所述数控机台的优化补偿值;S3: Establish a weighted optimization problem model based on the trust region according to the measurement data and measurement model parameters in a standard format, and solve the optimization problem model to obtain the optimal compensation value of the numerical control machine;
    S4:将所述优化补偿值回传给所述数控机台,以使得所述数控机台根据所述优化补偿值进行调机。S4: Send the optimized compensation value back to the numerical control machine, so that the numerical control machine performs machine adjustment according to the optimized compensation value.
  2. 根据权利要求1所述的智能调机方法,其特征在于,步骤S1中获取的测量模型参数包括所述数控机台的加工零件的各待测尺寸的类型、标准值和公差标准、所述数控机台的刀补系数。The intelligent adjustment method according to claim 1, characterized in that the measurement model parameters obtained in step S1 include the types, standard values and tolerance standards of the dimensions to be measured of the machined parts of the numerical control machine, the numerical control Tool compensation coefficient of the machine.
  3. 根据权利要求1所述的智能调机方法,其特征在于,步骤S1中还包括:采用标准块点位形变对所述数控机台采集的加工零件的实际测量数据进行校正。The intelligent adjustment method according to claim 1, characterized in that step S1 further comprises: correcting the actual measurement data of the processed parts collected by the numerical control machine by using point deformation of the standard block.
  4. 根据权利要求3所述的智能调机方法,其特征在于,采用标准块点位形变对所述数控机台采集的实际测量数据进行校正具体包括:提供待测量的加工零件的各待测尺寸对应的标准块,每个标准块上设有多个标定点,获取各待测尺寸对应的标准块的每个标定点的基准值;在接收所述数控机台采集的加工零件的实际测量数据时,还接收各待测尺寸对应的标准块的每个标定点的标定值,根据各待测尺寸对应的标准块的每个标定点的基准值和标定值对所述数控机台采集的加工零件的实际测量数据进行校正。The intelligent adjustment method according to claim 3, wherein the correction of the actual measurement data collected by the numerical control machine by using the point deformation of the standard block specifically includes: providing the corresponding dimensions of the processed parts to be measured Each standard block is provided with a plurality of calibration points, and the reference value of each calibration point of the standard block corresponding to each size to be measured is obtained; when receiving the actual measurement data of the processed parts collected by the numerical control machine , and also receive the calibration value of each calibration point of the standard block corresponding to each size to be measured, and process the parts collected by the CNC machine according to the reference value and calibration value of each calibration point of the standard block corresponding to each size to be measured The actual measured data is corrected.
  5. 根据权利要求1所述的智能调机方法,其特征在于,步骤S1中在接收所述数控机台采集的加工零件的实际测量数据具体为:通过与所述数控机台建立握手协议来接收所述数控机台采集的加工零件的实际测量数据。The intelligent machine tuning method according to claim 1, wherein in step S1, receiving the actual measurement data of the processed parts collected by the numerical control machine is specifically: receiving the data by establishing a handshake agreement with the numerical control machine The actual measurement data of the processed parts collected by the numerical control machine.
  6. 根据权利要求5所述的智能调机方法,其特征在于,通过与所述数控机台建立握手协议来接收所述数控机台采集的加工零件的实际测量数据具体包括:The intelligent adjustment method according to claim 5, characterized in that, receiving the actual measurement data of the processed parts collected by the numerical control machine by establishing a handshake agreement with the numerical control machine specifically includes:
    A1:与所述数控机台建立长链接,以在接收数据开始时通知所述数控机台进入采集状态;A1: Establish a long link with the CNC machine to notify the CNC machine to enter the collection state when receiving data;
    A2:接收所述数控机台以宏变量形式传输的特征编号和对应采集到的一个点位测量数据;A2: Receive the feature number transmitted by the CNC machine in the form of macro variables and a corresponding point measurement data collected;
    A3:重置宏变量,并判断所述数控机台是否采集完所有点位,如果是,则完成接收,如 果否,则通知所述数控机台进入下一个点位的测量和上报,并返回步骤A2。A3: Reset the macro variable, and judge whether the CNC machine has collected all the points, if yes, complete the reception, if not, notify the CNC machine to enter the measurement and reporting of the next point, and return Step A2.
  7. 根据权利要求1所述的智能调机方法,其特征在于,步骤S2中还包括:根据所述测量模型参数判断得到的标准格式的测量数据是否达标,如果不达标,则发送报警信号给所述数控机台,以使得所述数控机台暂停加工零件。The method for intelligent machine adjustment according to claim 1, characterized in that step S2 further includes: judging whether the measured data in a standard format obtained according to the measurement model parameters is up to standard, and if not up to standard, sending an alarm signal to the A numerically controlled machine, such that the numerically controlled machine stops processing parts.
  8. 根据权利要求1至7任一项所述的智能调机方法,其特征在于,步骤S3具体包括:根据标准格式的测量数据和测量模型参数建立的基于信赖域的加权优化问题模型表示如下:According to the intelligent tuning method according to any one of claims 1 to 7, it is characterized in that step S3 specifically includes: the weighted optimization problem model based on the trust region established according to the measurement data in the standard format and the measurement model parameters is expressed as follows:
    Figure PCTCN2022112944-appb-100001
    Figure PCTCN2022112944-appb-100001
    s.t.lsp≤x≤usps.t.lsp≤x≤usp
    Ax=bAx=b
    并采用信赖域反射法对上述优化问题模型进行求解以得到所述数控机台的优化补偿值;And using the trust region reflection method to solve the above-mentioned optimization problem model to obtain the optimal compensation value of the numerical control machine;
    其中,A=[z,I] T∈R n×(n+k),x=[X,ε]∈R n+k,b=C-S∈R n,C∈R n为标准格式的测量数据,S∈R n为测量模型参数中包含的加工零件的各待测尺寸的标准值,z∈R k×n为测量模型参数中包含的数控机台的刀补系数,ε∈R n为待求解的数控机台的公差,X∈R k为待求解的数控机台的补偿值,I为单位矩阵,E∈R n×(n+k)为权重,lsp,usp∈R n+k分别为未知量x的上限和下限。 Among them, A=[z,I] TR n×(n+k) , x=[X,ε]∈R n+k , b=CS∈R n , C∈R n is the measurement data in the standard format , S∈R n is the standard value of each dimension of the processed part included in the measurement model parameters, z∈R k×n is the tool compensation coefficient of the CNC machine included in the measurement model parameters, ε∈R n is the The tolerance of the CNC machine to be solved, X∈R k is the compensation value of the CNC machine to be solved, I is the unit matrix, E∈R n×(n+k) is the weight, lsp, usp∈R n+k are respectively are the upper and lower bounds of the unknown quantity x.
  9. 根据权利要求8所述的智能调机方法,其特征在于,采用信赖域反射法对上述优化问题模型进行求解以得到所述数控机台的优化补偿值具体包括:The intelligent machine tuning method according to claim 8, characterized in that, using the trust region reflection method to solve the above-mentioned optimization problem model to obtain the optimal compensation value of the numerical control machine specifically includes:
    构建函数f(x),并通过试探步s在信赖域N上最小化f(x)以计算得到X和ε,其中信赖域N是函数f(x)在点x的邻域。Construct function f(x), and calculate X and ε by minimizing f(x) on trust region N through trial steps s, where trust region N is the neighborhood of function f(x) at point x.
  10. 根据权利要求9所述的智能调机方法,其特征在于,通过试探步s在信赖域N上最小化f(x)具体包括:The intelligent tuning method according to claim 9, wherein minimizing f(x) on the trust domain N through the trial step s specifically includes:
    B1:构造二维信赖域子问题:
    Figure PCTCN2022112944-appb-100002
    其中,g是函数f在当前点x处的梯度,H是Hessian矩阵,D是对角缩放矩阵,s是试探步,Δ是信赖域半径;
    B1: Construct a two-dimensional trust region subproblem:
    Figure PCTCN2022112944-appb-100002
    Among them, g is the gradient of the function f at the current point x, H is the Hessian matrix, D is the diagonal scaling matrix, s is the trial step, and Δ is the radius of the trust region;
    B2:求解二维信赖域子问题,以确定试探步s;B2: Solve the two-dimensional trust region subproblem to determine the trial step s;
    B3:判断f(x+s)是否小于f(x),如果是,则使得x=x+s,并返回步骤B1;如果否,当前点保持不变,减小信赖域半径Δ,并返回步骤B1;B3: Determine whether f(x+s) is smaller than f(x), if yes, make x=x+s, and return to step B1; if not, keep the current point unchanged, reduce the trust region radius Δ, and return Step B1;
    B4:重复步骤B1~B3,直至二维信赖域子问题收敛,得到优化问题f(x)的解。B4: Repeat steps B1-B3 until the two-dimensional trust region subproblem converges, and the solution to the optimization problem f(x) is obtained.
  11. 根据权利要求10所述的智能调机方法,其特征在于,步骤B2中在求解二维信赖域子问题时,将二维信赖域子问题限制在二维子空间K内进行求解,二维子空间K根据下述预条件共轭梯度法确定:将二维子空间K定义为由k 1和k 2确定的线性空间,其中k 1是梯度g的方向,k 2满足H·k 2=-g或
    Figure PCTCN2022112944-appb-100003
    的条件。
    The intelligent tuning method according to claim 10, characterized in that, in step B2, when solving the two-dimensional trust region subproblem, the two-dimensional trust region subproblem is limited to the two-dimensional subspace K for solving, and the two-dimensional subspace The space K is determined according to the following preconditioned conjugate gradient method: the two-dimensional subspace K is defined as a linear space determined by k 1 and k 2 , where k 1 is the direction of the gradient g, and k 2 satisfies H·k 2 =- g or
    Figure PCTCN2022112944-appb-100003
    conditions of.
  12. 根据权利要求8所述的智能调机方法,其特征在于,采用信赖域反射法对上述优化问题模型进行求解以得到所述数控机台的优化补偿值之后还包括:根据求解优化问题模型得到的所述数控机台的优化补偿值和所述测量模型参数对所述数控机台的优化补偿值进行修正。The intelligent tuning method according to claim 8, characterized in that, after solving the above-mentioned optimization problem model to obtain the optimal compensation value of the numerical control machine by adopting the trust region reflection method, it also includes: obtaining according to the solution optimization problem model The optimized compensation value of the numerical control machine and the measurement model parameters correct the optimal compensation value of the numerical control machine.
  13. 根据权利要求1所述的智能调机方法,其特征在于,步骤S4中将所述优化补偿值回传给所述数控机台之前,判断所述优化补偿值是否超过预设阈值,如果是,则发送干预信号给所述数控机台,以使得所述数控机台暂停加工零件;如果否,则将所述优化补偿值回传给所述数控机台。The intelligent machine tuning method according to claim 1, characterized in that before sending the optimized compensation value back to the numerical control machine in step S4, it is judged whether the optimized compensation value exceeds a preset threshold, and if so, Then send an intervention signal to the numerical control machine, so that the numerical control machine stops processing parts; if not, then send the optimized compensation value back to the numerical control machine.
  14. 根据权利要求1所述的智能调机方法,其特征在于,步骤S4中将所述优化补偿值回传给所述数控机台之前,判断所述优化补偿值是否超过预设阈值,如果是,则再次采用标准块对所述数控机台采集的加工零件的实际测量数据进行校正;如果校正后仍然超过阈值,则发送干预信号给所述数控机台,以使得所述数控机台暂停加工零件;如果未超过预设阈值,则将所述优化补偿值回传给所述数控机台。The intelligent machine tuning method according to claim 1, characterized in that before sending the optimized compensation value back to the numerical control machine in step S4, it is judged whether the optimized compensation value exceeds a preset threshold, and if so, Then use the standard block again to correct the actual measurement data of the processed parts collected by the CNC machine; if the correction still exceeds the threshold, send an intervention signal to the CNC machine so that the CNC machine suspends processing the parts ; If the preset threshold value is not exceeded, the optimized compensation value is sent back to the numerical control machine.
  15. 一种基于优化补偿的智能调机系统,用于对至少一台数控机台进行智能调机,其特征在于,包括:处理器和存储介质,所述存储介质中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行权利要求1至14任一项所述的智能调机方法。An intelligent machine tuning system based on optimal compensation, used for intelligent machine tuning of at least one numerical control machine, is characterized in that it includes: a processor and a storage medium, and a computer program is stored in the storage medium, and the processing The device is configured to run the computer program to execute the intelligent tuning method according to any one of claims 1 to 14.
PCT/CN2022/112944 2021-09-30 2022-08-17 Intelligent debugging method and system based on optimization compensation WO2023051072A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111157672.XA CN113589755B (en) 2021-09-30 2021-09-30 Intelligent debugging method and system based on optimized compensation
CN202111157672.X 2021-09-30

Publications (1)

Publication Number Publication Date
WO2023051072A1 true WO2023051072A1 (en) 2023-04-06

Family

ID=78242681

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112944 WO2023051072A1 (en) 2021-09-30 2022-08-17 Intelligent debugging method and system based on optimization compensation

Country Status (2)

Country Link
CN (1) CN113589755B (en)
WO (1) WO2023051072A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117215276A (en) * 2023-11-09 2023-12-12 蓝思系统集成有限公司 Numerical control production equipment data analysis control method, device, system and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113589755B (en) * 2021-09-30 2021-12-28 杭州数途信息科技有限公司 Intelligent debugging method and system based on optimized compensation
CN114997110B (en) * 2022-08-01 2022-11-25 赫比(苏州)通讯科技有限公司 Automatic debugging method and device and computer readable storage medium
TWI823689B (en) * 2022-11-29 2023-11-21 友達光電股份有限公司 Feature analysis method and system for feature analysis and optimized recommendation
CN116184929B (en) * 2023-04-27 2023-07-25 湖南隆深氢能科技有限公司 Intelligent control method and system applied to cutting equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120003623A1 (en) * 2010-06-30 2012-01-05 Rockwell Automation Technologies, Inc. Nonlinear model predictive control of a batch reaction system
CN109047947A (en) * 2018-09-06 2018-12-21 中南大学 A kind of numerically controlled tooth grinding machine bed machined parameters modification method considering space geometry error
CN109976265A (en) * 2017-12-27 2019-07-05 富泰华精密电子(郑州)有限公司 Tool parameters control device, method and storage equipment
CN110426956A (en) * 2019-07-30 2019-11-08 中国矿业大学 A kind of batch process optimal compensation control strategy of Kernel-based methods migration models
CN111381556A (en) * 2018-12-29 2020-07-07 鸿富锦精密电子(成都)有限公司 Processing equipment error correction method and system
CN113589755A (en) * 2021-09-30 2021-11-02 杭州数途信息科技有限公司 Intelligent debugging method and system based on optimized compensation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103591874B (en) * 2013-11-11 2016-08-17 西安工业大学 The method realizing polar coordinate gear measuring center Zero calibration with calibrated bolck
CN205870138U (en) * 2016-07-08 2017-01-11 深圳市三维机电设备有限公司 Automatic accent machine of machining center and on -line measuring system
CN108655820A (en) * 2018-04-04 2018-10-16 路达(厦门)工业有限公司 A kind of scaling method of digital control processing basis coordinates system
CN109176168B (en) * 2018-10-15 2019-10-11 基准精密工业(惠州)有限公司 Tool sharpening tune machine device and method
CN111381562B (en) * 2018-12-29 2023-08-15 鸿富锦精密电子(成都)有限公司 Error correction method and system for arc corner processing equipment
CN111624944B (en) * 2020-06-16 2023-09-08 富联裕展科技(深圳)有限公司 Cutter control device and method
CN112612250B (en) * 2020-11-18 2021-11-09 深圳市裕展精密科技有限公司 Tool feedback control device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120003623A1 (en) * 2010-06-30 2012-01-05 Rockwell Automation Technologies, Inc. Nonlinear model predictive control of a batch reaction system
CN109976265A (en) * 2017-12-27 2019-07-05 富泰华精密电子(郑州)有限公司 Tool parameters control device, method and storage equipment
CN109047947A (en) * 2018-09-06 2018-12-21 中南大学 A kind of numerically controlled tooth grinding machine bed machined parameters modification method considering space geometry error
CN111381556A (en) * 2018-12-29 2020-07-07 鸿富锦精密电子(成都)有限公司 Processing equipment error correction method and system
CN110426956A (en) * 2019-07-30 2019-11-08 中国矿业大学 A kind of batch process optimal compensation control strategy of Kernel-based methods migration models
CN113589755A (en) * 2021-09-30 2021-11-02 杭州数途信息科技有限公司 Intelligent debugging method and system based on optimized compensation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117215276A (en) * 2023-11-09 2023-12-12 蓝思系统集成有限公司 Numerical control production equipment data analysis control method, device, system and storage medium

Also Published As

Publication number Publication date
CN113589755B (en) 2021-12-28
CN113589755A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
WO2023051072A1 (en) Intelligent debugging method and system based on optimization compensation
CN106020147B (en) A kind of assembly precision systematic analytic method of complex precise engineering goods
CN104700200B (en) A kind of product multivariate quality monitoring method towards digitlization workshop
WO2023051070A1 (en) Intelligent machine adjustment method and system based on handshake protocol
Grigoriev et al. The problems of metrological support for the preparation of production in machine construction
US20230066703A1 (en) Method for estimating structural vibration in real time
CN111931340A (en) Tolerance management system and management method
CN108356603B (en) Method and system for compensating thermal deformation error of spindle of five-axis numerical control machine tool
CN111859708A (en) Modeling method based on airplane structural part digital twin model
Tao et al. A review of digital twin intelligent assembly technology and application for complex mechanical products
Fan et al. A data-driven machining error analysis method for finish machining of assembly interfaces of large-scale components
Zhu et al. Optimal design of measurement point layout for workpiece localization
Semere et al. Skin model based tolerance and variations analysis
Gu et al. Study on the dimensional metrology and alignment method for the 1/32 CFETR VV mock-up
CN115755775A (en) Characteristic tool path dynamic generation system and method based on CAM cloud service architecture
Zhao An integrated process planning system for machining and inspection
Zahid et al. Assessment and comparison of multivariate process capability indices in ceramic industry
EP4121829A1 (en) Morphic manufacturing
CN113936823A (en) Method, system and device for acquiring scale coefficient of off-stack detector and storage medium
Liu et al. Pre-joining process planning model for a batch of skin–stringer panels based on statistical clearances
Muelaner Unsettled Technology Domains in Industrial Metrology
CN111399440B (en) Numerical control machine tool precision decoupling test system and method
Nikolayev et al. Calibration algorithm automation for data measuring channels of electrical power systems
Semere et al. Skin Model Based Tolerance Analysis
Ko et al. Accommodating Casting and Fixturing Errors by Adjusting the Machining Coordinate Frame

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22874467

Country of ref document: EP

Kind code of ref document: A1