CN110069041B - Workpiece machining method and system based on-machine measurement - Google Patents

Workpiece machining method and system based on-machine measurement Download PDF

Info

Publication number
CN110069041B
CN110069041B CN201810068753.4A CN201810068753A CN110069041B CN 110069041 B CN110069041 B CN 110069041B CN 201810068753 A CN201810068753 A CN 201810068753A CN 110069041 B CN110069041 B CN 110069041B
Authority
CN
China
Prior art keywords
data
workpiece
geometric
processing
registration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810068753.4A
Other languages
Chinese (zh)
Other versions
CN110069041A (en
Inventor
王爱民
李董霞
葛艳
任鹏灏
王小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201810068753.4A priority Critical patent/CN110069041B/en
Publication of CN110069041A publication Critical patent/CN110069041A/en
Application granted granted Critical
Publication of CN110069041B publication Critical patent/CN110069041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4097Numerical 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 using design data to control NC machines, e.g. CAD/CAM
    • 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/32Operator till task planning
    • G05B2219/32153Exchange data between user, cad, caq, nc, capp

Abstract

The invention provides a workpiece processing method and a workpiece processing system based on-machine measurement, wherein the workpiece processing method comprises the following steps: measuring the geometric data of the processing surface of the workpiece in an on-machine measuring mode, registering and adjusting the geometric data according to the geometric data and a preset ideal workpiece model to obtain the geometric registration data of the processing surface, compensating and correcting a numerical control processing program of the workpiece according to the geometric registration data, and processing the workpiece by using a numerical control processing program after compensation and correction. According to the scheme provided by the invention, the workpiece can be subjected to self-adaptive machining based on the workpiece geometric dimension data measured on machine, and the qualification rate and the machining efficiency of the machined workpiece are improved.

Description

Workpiece machining method and system based on-machine measurement
Technical Field
The invention relates to the field of numerical control machining, in particular to a workpiece machining method and system based on-machine measurement.
Background
Currently, there are a large number of large, complex and difficult to machine parts in the aerospace, automotive, marine, etc. fields. In the processing process of the parts, the qualification rate and the processing efficiency of the parts are lower due to factors such as processing deformation, inaccurate clamping, cutter abrasion, uneven allowance, equipment load change and the like. With the rapid development of the digital measurement technology, the three-dimensional digital information of the processing state of a workpiece (namely a part) can be obtained by adopting a certain on-machine measurement technology, and the processing strategy can be adaptively changed by a machine tool according to the measured processing state of the workpiece through the adaptive processing technology.
In the prior art, the qualification rate and the processing efficiency of the workpiece are not only related to the processing state of the workpiece, but also often related to the geometric dimension of the workpiece, but the qualification rate and the processing efficiency of the workpiece are low because the geometric dimension of the workpiece is not considered in the conventional workpiece processing method.
Disclosure of Invention
The embodiment of the invention provides a workpiece processing method and system based on-machine measurement, which can be used for carrying out self-adaptive processing on a workpiece based on geometric size data of the workpiece measured on-machine, and improving the qualification rate and the processing efficiency of the workpiece.
In a first aspect, an embodiment of the present invention provides a workpiece processing method based on-machine measurement, including:
measuring the geometric data of the processing surface of the workpiece by using an on-machine measuring mode;
according to the geometric data and a preset ideal workpiece model, carrying out registration adjustment on the geometric data to obtain geometric registration data of the machining surface;
according to the geometric registration data, compensating and correcting a numerical control machining program of the workpiece;
and processing the workpiece by using the compensated and corrected numerical control processing procedure.
Optionally, the measuring the geometric data of the processing surface of the workpiece by using an on-machine measurement mode includes:
and measuring the geometric data of the processing surface of the workpiece by using a contact on-machine measuring mode and/or a non-contact on-machine measuring mode.
Optionally, the registering and adjusting the geometric data according to the geometric data and a preset ideal workpiece model to obtain geometric registration data of the machining surface includes:
dispersing the preset ideal workpiece model into point cloud data based on an STL format, and extracting coordinate data of a triangular control vertex in a corresponding STL file;
based on a principal component analysis method, respectively calculating covariance matrixes of the extracted control vertexes and actually measured point clouds corresponding to the geometric data according to the following formula;
Figure BDA0001557481470000021
solving the covariance matrix, and carrying out initial registration adjustment on the geometric data according to a solving result to obtain initial registration data;
based on an iterative closest point algorithm, rigid body transformations R and T which enable the f value to be minimum and are under the following constraint conditions are calculated;
Figure BDA0001557481470000022
performing registration adjustment on the initial registration data by using the R and the T to obtain the geometric registration data;
wherein n is the number of the control vertexes or the actually measured point clouds, xiIs the abscissa of the control vertex or the measured point cloud,
Figure BDA0001557481470000023
is the mean, y, of the abscissas of the control vertices or the measured point cloudiIs the ordinate of the control vertex or the measured point cloud,
Figure BDA0001557481470000024
is the mean value of the vertical coordinates, p, of the control vertex or the measured point cloudiAs coordinate data of said control vertices, qiAnd initial registration data corresponding to the actually measured point cloud.
Optionally, if the geometric data of the processing surface of the workpiece is measured in a contact-type on-machine measurement manner, where the geometric data is coordinate data of a feature point on the processing surface, the performing compensation and correction on the numerical control processing program of the workpiece according to the geometric registration data includes:
according to the geometric registration data, carrying out inverse calculation on a NURBS curve by using a NURBS reconstruction theory, and carrying out forward calculation on the NURBS curve to obtain coordinate data of points on the NURBS curve corresponding to the cutter location point;
and correcting the coordinate data of the tool location point in the tool path file by using an inverse deformation method according to the coordinate data of the point corresponding to the tool location point on the NURBS curve and the coordinate data of the tool location point in the tool path file, and generating an NC code with compensation.
Optionally, if the geometric data of the processing surface of the workpiece is measured in a non-contact on-machine measurement manner, the performing compensation and correction on the numerical control processing program of the workpiece according to the geometric registration data includes:
according to the geometric registration data, carrying out NURBS curved surface reconstruction on the machined profile by using an inverse deformation method, and calculating a tool path by using the reconstructed NURBS curved surface;
and correcting the corresponding tool path file according to the calculated tool position track to generate an NC code with compensation.
In a second aspect, an embodiment of the present invention further provides an on-machine measurement based workpiece processing system, including:
the data measurement module is used for measuring the geometric data of the processing surface of the workpiece in an on-machine measurement mode;
the registration adjustment module is used for carrying out registration adjustment on the geometric data according to the geometric data and a preset ideal workpiece model to obtain geometric registration data of the machining surface;
the compensation correction module is used for compensating and correcting the numerical control machining program of the workpiece according to the geometric registration data;
and the numerical control processing module is used for processing the workpiece by using the compensated and corrected numerical control processing program.
Optionally, the data measurement module is specifically configured to:
and measuring the geometric data of the processing surface of the workpiece by using a contact on-machine measuring mode and/or a non-contact on-machine measuring mode.
Optionally, the registration adjustment module includes:
the extraction unit is used for dispersing the preset ideal workpiece model into point cloud data based on the STL format and extracting coordinate data of a triangular control vertex in a corresponding STL file;
the first calculation unit is used for calculating covariance matrixes of the extracted control vertexes and the actually measured point clouds corresponding to the geometric data respectively according to the following formulas based on a principal component analysis method;
Figure BDA0001557481470000031
the first registration unit is used for solving the covariance matrix and carrying out initial registration adjustment on the geometric data according to a solving result to obtain initial registration data;
a second calculation unit for calculating rigid body transformations R and T that minimize the f-value, based on an iterative closest point algorithm, of the following constraint conditions;
Figure BDA0001557481470000041
a second registration unit, configured to perform registration adjustment on the initial registration data by using the R and the T to obtain the geometric registration data;
wherein n is the number of the control vertexes or the actually measured point clouds, xiIs the abscissa of the control vertex or the measured point cloud,
Figure BDA0001557481470000042
is the mean, y, of the abscissas of the control vertices or the measured point cloudiIs the ordinate of the control vertex or the measured point cloud,
Figure BDA0001557481470000043
is the mean value of the vertical coordinates, p, of the control vertex or the measured point cloudiAs coordinate data of said control vertices, qiIs a stand forAnd initial registration data corresponding to the actually measured point cloud.
Optionally, if the geometric data of the processing surface of the workpiece is measured in a contact-type on-machine measurement manner, the geometric data is coordinate data of a feature point on the processing surface, and the compensation correction module includes:
the third calculation unit is used for carrying out inverse calculation on the NURBS curve by utilizing a NURBS reconstruction theory according to the geometric registration data and carrying out forward calculation on the NURBS curve to obtain coordinate data of points corresponding to the tool location points on the NURBS curve;
and the first correcting unit is used for correcting the coordinate data of the tool location point in the tool path file by using an inverse deformation method according to the coordinate data of the point corresponding to the tool location point on the NURBS curve and the coordinate data of the tool location point in the tool path file, and generating an NC code with compensation.
Optionally, if the geometric data of the processing surface of the workpiece is measured by using a non-contact on-machine measurement method, the compensation correction module includes:
the fourth calculation unit is used for carrying out NURBS curved surface reconstruction on the machined profile by using an inverse deformation method according to the geometric registration data and calculating a tool path by using the reconstructed NURBS curved surface;
and the second correcting unit is used for correcting the corresponding tool path file according to the calculated tool position track and generating an NC code with compensation.
According to the workpiece processing method provided by the embodiment of the invention, the geometric data of the processing surface of the workpiece is measured in an on-machine measurement mode, the geometric data of the processing surface is used for compensating and correcting the numerical control processing program, and the workpiece is processed by the numerical control processing program after compensation and correction, so that the workpiece can be subjected to self-adaptive processing based on the geometric size data of the workpiece measured on-machine, and the qualified rate and the processing efficiency of the processed workpiece are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a method of workpiece processing based on-machine measurements according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a contact on-machine measurement according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a non-contact on-machine measurement according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a reverse deformation method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an on-machine metrology based workpiece processing system according to an embodiment of the present invention;
fig. 6 is a process flow diagram of an on-machine metrology based workpiece processing system in accordance with an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a workpiece processing method based on-machine measurement, including the following steps:
step 101: and measuring the geometric data of the processing surface of the workpiece by using an on-machine measuring mode.
In the embodiment of the present invention, the method for measuring the geometric data of the processing surface of the workpiece by using the on-machine measurement method may specifically be: and measuring the geometric data of the processing surface of the workpiece by using a contact on-machine measuring mode and/or a non-contact on-machine measuring mode. In the contact-type on-machine measurement, for example, a machine tool stylus is used for measurement, and geometric data of a characteristic point on a machining surface is measured, for example, referring to fig. 2, when the machining surface is a sinking window, the geometric data of the characteristic point on the sinking window can be measured by using the machine tool stylus. Non-contact on-machine measurement is, for example, measurement using a three-dimensional laser scanner, which measures the geometric data of the machining surface, such as the sagging window, as shown in fig. 3, when the machining surface is the sagging window, the geometric data of the sagging window can be directly measured using the three-dimensional laser scanner.
It should be noted that the geometric data referred to herein is specifically three-dimensional coordinate data of feature points or actually measured point clouds on the processing surface. According to the processing requirement, the geometric data of the processing surface of a workpiece can be measured by using a contact-type on-machine measuring mode and a non-contact-type on-machine measuring mode simultaneously.
Step 102: and carrying out registration adjustment on the geometric data according to the geometric data and a preset ideal workpiece model to obtain geometric registration data of the machined surface.
The preset ideal workpiece model is, for example, a preset ideal CAD model. When the collected geometric data of the machining surface of the workpiece is subjected to registration adjustment, registration analysis under the constraint of allowance and tolerance can be performed on the basis of the measured data and the discrete cloud point data of the preset ideal CAD model, and the machining benchmark adjustment is completed.
Step 103: and according to the geometric registration data, compensating and correcting the numerical control machining program of the workpiece.
Specifically, when geometric data of a machined surface is measured in a contact-type on-machine measurement mode, error compensation can be performed based on a tool path file method, that is, NURBS (non-uniform Rational B-Spline) reconstruction of a machined surface is performed based on actually measured characteristic point data, the size and direction of errors of corresponding tool positions in a tool path file are calculated, coordinate data of corresponding tool positions in the tool path file are modified and post-processed, and an NC code with compensation is generated. When the geometric data of the processing surface is measured by using a non-contact on-machine measuring mode, error compensation can be carried out based on processing profile reconstruction, namely, firstly, the measured point cloud data is subjected to preprocessing such as filtering and simplification, then, the processing profile is reconstructed based on an inverse deformation method, and finally, the numerical control processing program is recalculated based on the reconstructed processing profile.
Step 104: and processing the workpiece by using the compensated and corrected numerical control processing procedure.
According to the workpiece processing method provided by the embodiment of the invention, the geometric data of the processing surface of the workpiece is measured in an on-machine measurement mode, the geometric data of the processing surface is used for compensating and correcting the numerical control processing program, and the workpiece is processed by the numerical control processing program after compensation and correction, so that the workpiece can be subjected to self-adaptive processing based on the geometric size data of the workpiece measured on-machine, and the qualified rate and the processing efficiency of the processed workpiece are improved.
In the embodiment of the invention, according to the geometric data of the machined surface obtained by measurement and the preset ideal workpiece model, the registration adjustment is carried out on the geometric data, and the process of obtaining the corresponding geometric registration data can be as follows:
firstly, discretely presetting an ideal workpiece model as point cloud data based on an STL format, and extracting coordinate data of a triangular control vertex in a corresponding STL file;
secondly, on the basis of a principal component analysis method, respectively calculating covariance matrixes of the extracted control vertexes and actually-measured point clouds (or characteristic points during contact measurement) corresponding to the geometric data according to the following formulas;
Figure BDA0001557481470000071
wherein n is the number of control vertexes or actually measured point clouds, xiTo control the abscissa of the apex or measured point cloud,
Figure BDA0001557481470000072
to control the mean, y, of the abscissas of the vertex or measured point cloudiTo control the vertical coordinate of the vertex or measured point cloud,
Figure BDA0001557481470000073
the mean value of the vertical coordinates of the control vertex or the measured point cloud.
It should be noted that, in the covariance matrix C,
Figure BDA0001557481470000074
Figure BDA0001557481470000075
Figure BDA0001557481470000076
Figure BDA0001557481470000077
Figure BDA0001557481470000078
and
Figure BDA0001557481470000079
and (7) corresponding.
Thirdly, solving the covariance matrix, and carrying out initial registration adjustment on the geometric data according to a solving result to obtain initial registration data;
it should be noted that the solution result of solving the covariance matrix is three eigenvectors corresponding to the covariance matrix. In this way, when the initial registration adjustment is performed on the geometric data according to the solving result, the coordinate system 1 can be reconstructed based on three eigenvectors obtained by solving the covariance matrix corresponding to the control vertex, and the coordinate system 2 can be reconstructed based on three eigenvectors obtained by solving the covariance matrix corresponding to the actually measured point cloud; then calculating a rigid body transformation matrix of the coordinate system 2 relative to the coordinate system 1; and finally, transforming the geometric data according to the calculated rigid body transformation matrix to finish the initial registration adjustment process.
Then, based on an iterative closest point algorithm (PCA), rigid body transformations R and T which minimize the f value of the following constraint conditions are calculated;
Figure BDA00015574814700000710
wherein n is the number of control vertexes or actually measured point clouds, piTo control the coordinate data (x) of the verticesi,yi,zi),qiInitial registration data (x) corresponding to the measured point cloudi,yi,zi)。
And finally, performing registration adjustment on the initial registration data by utilizing R and T to obtain geometric registration data.
Therefore, by means of the initial registration process and the accurate registration process, the adjustment of the processing reference can be completed, and the accuracy of the subsequent error calculation process is improved.
In the embodiment of the present invention, for the geometric data of the processing surface measured by using the contact on-machine measurement method, the geometric data is coordinate data of a feature point on the processing surface, and according to the corresponding geometric registration data, the process of performing compensation and correction on the numerical control processing program of the workpiece may be:
firstly, according to the geometric registration data, carrying out inverse calculation on a NURBS curve by using a NURBS reconstruction theory, and carrying out forward calculation on the NURBS curve to obtain coordinate data of points on the NURBS curve corresponding to the cutter location point;
and then, according to the coordinate data of the point corresponding to the tool position point on the NURBS curve and the coordinate data of the tool position point in the tool path file, correcting the coordinate data of the tool position point in the tool path file by using an inverse deformation method, and generating an NC code with compensation.
When NURBS curve back calculation is carried out by using NURBS reconstruction theory, if the geometric registration data of the actually measured characteristic points are recorded as qi(i ═ 0,1, ·, m), where m is the number of measured feature points, then the node vector u corresponding to the respective NURBS curve can be determined first, where u is0=u1=…=uk=0,un+1=un+2=…=un+k+1The remaining interior node vectors may be determined using the cumulative chord length method, where the formula is:
Figure BDA0001557481470000081
Figure BDA0001557481470000082
wherein n is m + k-1, which represents the number of control vertices of the NURBS curve, and k represents NURBSThe number of curves (which may be, for example, 3), | Δ qi-1|=|qi-qi-1|,
Figure BDA0001557481470000083
And ui+k+1And (7) corresponding.
Then, solving the coordinate data of the control vertex according to the following formula;
Figure BDA0001557481470000084
wherein p (u) represents the symbol of the above formula, djCoordinate data representing the jth control vertex, Ni,k(u) represents a k-th order B-spline basis function, defined by the DeBoolean-Corx recursion equation, as follows:
Figure BDA0001557481470000091
when the NURBS curve is positively solved, firstly, the coordinate data of the tool location points in the tool path file can be extracted, and then the node vectors corresponding to the tool location points on the NURBS curve are solved according to the following formula;
Figure BDA0001557481470000092
Figure BDA0001557481470000093
where n denotes the number of control vertices of the NURBS curve, k denotes the number of times of the NURBS curve, ljIndicating the distance from the jth control vertex to the jth-1 control vertex.
Finally, the node vector U ═ U corresponding to the known knife location point0,u1,···,ui+k+1]Control vertex diOn the premise of (i ═ 0,1, ·, n) and the times k, solving the coordinate data of the points corresponding to the tool bit points on the NURBS curve according to the following formula;
Figure BDA0001557481470000094
it should be noted that, in the inverse deformation method, as shown in fig. 4, if the ideal curved surface is a horizontal curved surface and the deformed curved surface is an upward convex surface, the compensation curved surface is a downward convex surface.
In the embodiment of the present invention, for the geometric data of the processing surface measured by the non-contact on-machine measurement method, the geometric data is coordinate data of the processing surface (i.e. measured point cloud thereon), and according to the corresponding geometric registration data, the process of compensating and correcting the numerical control processing program of the workpiece may be:
firstly, carrying out NURBS curved surface reconstruction on a machined profile by using an inverse deformation method according to geometric registration data, and calculating a tool path by using the reconstructed NURBS curved surface;
and then, according to the calculated tool path, correcting the corresponding tool path file to generate an NC code with compensation.
When the NURBS curved surface is reconstructed on the processing molded surface by utilizing an inverse deformation method according to the geometric registration data, firstly, (m +1) x (n +1) control vertexes d in the reconstructed NURBS curved surface can be given according to the geometric registration data of the actually measured point cloud and based on the characteristic extraction of the processing regioni,j(i 0,1, m, j 0,1, n) and then given the order k and l of the node vectors U and V in the two parameter directions determined on the basis of the surface shape point, where U is [ U ], [ n ]0,u1,···,ui+k+1],V=[v0,v1,···,vi+l+1]And the reconstructed NURBS surface is defined as:
Figure BDA0001557481470000101
given any set of parameter values (u, v) within the surface definition domain, the process of finding the corresponding point coordinate data p (u, v) on the NURBS surface may be:
firstly, executing a Boolean recursion algorithm on m +1 control vertexes along the direction of the v parameter by using the v parameter value,
Figure BDA0001557481470000102
coordinate data of control vertexes, which are used as intermediate vertexes and can form an intermediate polygon along the u parameter direction;
and then, executing a Boolean recursion algorithm on the intermediate polygon by using the u parameter value pair, and obtaining a point which is the point coordinate data p (u, v) corresponding to the parameter value (u, v) on the NURBS curved surface.
It should be noted that, the specific process of the NURBS surface reconstruction may refer to the above-mentioned process of inverse summation and forward calculation of the NURBS curve, so as to modify the coordinate data of the tool location point in the tool path file based on the coordinate data of the point corresponding to the tool location point on the NURBS surface, and generate the NC code with compensation.
The above embodiments describe the workpiece processing method based on-machine measurement according to the present invention, and the workpiece processing system based on-machine measurement according to the present invention will be described with reference to the embodiments and the accompanying drawings.
Referring to fig. 5, an embodiment of the present invention further provides an on-machine measurement based workpiece processing system, including:
a data measuring module 51 for measuring geometrical data of the machined surface of the workpiece by means of on-machine measurement;
a registration adjustment module 52, configured to perform registration adjustment on the geometric data according to the geometric data and a preset ideal workpiece model, so as to obtain geometric registration data of the machining surface;
a compensation correction module 53, configured to perform compensation correction on the numerical control machining program of the workpiece according to the geometric registration data;
and the numerical control processing module 54 is used for processing the workpiece by using the compensated and corrected numerical control processing program.
According to the workpiece processing system provided by the embodiment of the invention, the geometric data of the processing surface of the workpiece is measured in an on-machine measurement mode, the geometric data of the processing surface is used for compensating and correcting the numerical control processing program, and the workpiece is processed by the numerical control processing program after compensation and correction, so that the workpiece can be subjected to self-adaptive processing based on the geometric size data of the workpiece measured on-machine, and the qualified rate and the processing efficiency of the processed workpiece are improved.
It should be noted that the data measurement module 51, the registration adjustment module 52, the compensation correction module 53, and the compensation correction module 54 according to the embodiment of the present invention may form a closed-loop workpiece geometry adaptive processing system. Referring to fig. 6, the data measuring module may measure the geometric data of the machined surface by using a machine tool measuring head through contact on-machine measurement and/or by using a three-dimensional laser scanner through non-contact on-machine measurement; the registration adjustment module can perform reference registration analysis and registration analysis under multiple constraints on the basis of contact-type on-machine measurement by utilizing a data set of actually-measured characteristic points and a preset ideal workpiece model to solve machining errors and adjust the measured geometric data, and/or perform reference registration analysis and registration analysis under multiple constraints on the basis of non-contact-type on-machine measurement by utilizing actually-measured point cloud data and the preset ideal workpiece model to solve the machining errors and adjust the measured geometric data; the compensation correction module can calculate the number and coordinate data of the tool positions by using an ideal tool path file, carries out NURBS curve reconstruction according to geometric registration data, modifies the coordinate data of the tool positions in the tool path file until all the tool positions are compensated, obtains compensated NC codes after post-processing, and/or carries out pretreatment on the geometric registration data of the actually measured point cloud, extracts characteristic point data of a processing area, redesigns a processing profile based on point cloud reconstruction, calculates the tool position track by using the reconstructed NURBS curve, and generates compensated NC codes; the compensation correction module can input the original NC code or the NC code with compensation into a numerical control machine tool to carry out numerical control machining on the workpiece.
Optionally, the data measurement module is specifically configured to:
and measuring the geometric data of the processing surface of the workpiece by using a contact on-machine measuring mode and/or a non-contact on-machine measuring mode.
Optionally, the registration adjustment module includes:
the extraction unit is used for dispersing the preset ideal workpiece model into point cloud data based on the STL format and extracting coordinate data of a triangular control vertex in a corresponding STL file;
the first calculation unit is used for calculating covariance matrixes of the extracted control vertexes and the actually measured point clouds corresponding to the geometric data respectively according to the following formulas based on a principal component analysis method;
Figure BDA0001557481470000121
the first registration unit is used for solving the covariance matrix and carrying out initial registration adjustment on the geometric data according to a solving result to obtain initial registration data;
a second calculation unit for calculating rigid body transformations R and T that minimize the f-value, based on an iterative closest point algorithm, of the following constraint conditions;
Figure BDA0001557481470000122
a second registration unit, configured to perform registration adjustment on the initial registration data by using the R and the T to obtain the geometric registration data;
wherein n is the number of the control vertexes or the actually measured point clouds, xiIs the abscissa of the control vertex or the measured point cloud,
Figure BDA0001557481470000123
is the mean, y, of the abscissas of the control vertices or the measured point cloudiIs the ordinate of the control vertex or the measured point cloud,
Figure BDA0001557481470000124
is the mean value of the vertical coordinates, p, of the control vertex or the measured point cloudiAs coordinate data of said control vertices, qiAnd initial registration data corresponding to the actually measured point cloud.
Optionally, if the geometric data of the processing surface of the workpiece is measured in a contact-type on-machine measurement manner, the geometric data is coordinate data of a feature point on the processing surface, and the compensation correction module includes:
the third calculation unit is used for carrying out inverse calculation on the NURBS curve by utilizing a NURBS reconstruction theory according to the geometric registration data and carrying out forward calculation on the NURBS curve to obtain coordinate data of points corresponding to the tool location points on the NURBS curve;
and the first correcting unit is used for correcting the coordinate data of the tool location point in the tool path file by using an inverse deformation method according to the coordinate data of the point corresponding to the tool location point on the NURBS curve and the coordinate data of the tool location point in the tool path file, and generating an NC code with compensation.
Optionally, if the geometric data of the processing surface of the workpiece is measured by using a non-contact on-machine measurement method, the compensation correction module includes:
the fourth calculation unit is used for carrying out NURBS curved surface reconstruction on the machined profile by using an inverse deformation method according to the geometric registration data and calculating a tool path by using the reconstructed NURBS curved surface;
and the second correcting unit is used for correcting the corresponding tool path file according to the calculated tool position track and generating an NC code with compensation.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A workpiece processing method based on-machine measurement, which is characterized by comprising the following steps:
measuring the geometric data of the processing surface of the workpiece by using an on-machine measuring mode;
according to the geometric data and a preset ideal workpiece model, carrying out registration adjustment on the geometric data to obtain geometric registration data of the machining surface;
according to the geometric registration data, compensating and correcting a numerical control machining program of the workpiece;
processing the workpiece by using the compensated and corrected numerical control processing program;
wherein, according to the geometric data and a preset ideal workpiece model, the registration adjustment is performed on the geometric data to obtain geometric registration data of the processing surface, and the method comprises the following steps:
dispersing the preset ideal workpiece model into point cloud data based on an STL format, and extracting coordinate data of a triangular control vertex in a corresponding STL file;
based on a principal component analysis method, respectively calculating covariance matrixes of the extracted control vertexes and actually measured point clouds corresponding to the geometric data according to the following formula;
Figure FDA0002622957470000011
solving the covariance matrix, and carrying out initial registration adjustment on the geometric data according to a solving result to obtain initial registration data;
based on an iterative closest point algorithm, rigid body transformations R and T which enable the f value to be minimum and are under the following constraint conditions are calculated;
Figure FDA0002622957470000012
performing registration adjustment on the initial registration data by using the R and the T to obtain the geometric registration data;
wherein n is the number of the control vertexes or the actually measured point clouds, xiIs the abscissa of the control vertex or the measured point cloud,
Figure FDA0002622957470000013
is the mean, y, of the abscissas of the control vertices or the measured point cloudiIs the ordinate of the control vertex or the measured point cloud,
Figure FDA0002622957470000014
is the control jackMean value of the ordinate, p, of a point or of the measured point cloudiAs coordinate data of said control vertices, qiAnd initial registration data corresponding to the actually measured point cloud.
2. The method of claim 1, wherein said measuring the geometric data of the work surface of the workpiece by on-machine measurement comprises:
and measuring the geometric data of the processing surface of the workpiece by using a contact on-machine measuring mode and/or a non-contact on-machine measuring mode.
3. The workpiece processing method of claim 2, wherein if the geometric data of the processing surface of the workpiece is measured by contact-type on-machine measurement, the geometric data is coordinate data of a feature point on the processing surface, and the compensation modification of the numerical control processing program of the workpiece according to the geometric registration data comprises:
according to the geometric registration data, carrying out inverse calculation on a NURBS curve by using a NURBS reconstruction theory, and carrying out forward calculation on the NURBS curve to obtain coordinate data of points on the NURBS curve corresponding to the cutter location point;
and correcting the coordinate data of the tool location point in the tool path file by using an inverse deformation method according to the coordinate data of the point corresponding to the tool location point on the NURBS curve and the coordinate data of the tool location point in the tool path file, and generating an NC code with compensation.
4. The workpiece processing method of claim 2, wherein if the geometric data of the processing surface of the workpiece is measured by non-contact on-machine measurement, the performing compensation modification on the numerical control processing program of the workpiece according to the geometric registration data comprises:
according to the geometric registration data, carrying out NURBS curved surface reconstruction on the machined profile by using an inverse deformation method, and calculating a tool path by using the reconstructed NURBS curved surface;
and correcting the corresponding tool path file according to the calculated tool position track to generate an NC code with compensation.
5. An on-machine measurement based workpiece processing system, comprising:
the data measurement module is used for measuring the geometric data of the processing surface of the workpiece in an on-machine measurement mode;
the registration adjustment module is used for carrying out registration adjustment on the geometric data according to the geometric data and a preset ideal workpiece model to obtain geometric registration data of the machining surface;
the compensation correction module is used for compensating and correcting the numerical control machining program of the workpiece according to the geometric registration data;
the numerical control processing module is used for processing the workpiece by using the compensated and corrected numerical control processing program;
wherein the registration adjustment module comprises:
the extraction unit is used for dispersing the preset ideal workpiece model into point cloud data based on the STL format and extracting coordinate data of a triangular control vertex in a corresponding STL file;
the first calculation unit is used for calculating covariance matrixes of the extracted control vertexes and the actually measured point clouds corresponding to the geometric data respectively according to the following formulas based on a principal component analysis method;
Figure FDA0002622957470000031
the first registration unit is used for solving the covariance matrix and carrying out initial registration adjustment on the geometric data according to a solving result to obtain initial registration data;
a second calculation unit for calculating rigid body transformations R and T that minimize the f-value, based on an iterative closest point algorithm, of the following constraint conditions;
Figure FDA0002622957470000032
a second registration unit, configured to perform registration adjustment on the initial registration data by using the R and the T to obtain the geometric registration data;
wherein n is the number of the control vertexes or the actually measured point clouds, xiIs the abscissa of the control vertex or the measured point cloud,
Figure FDA0002622957470000033
is the mean, y, of the abscissas of the control vertices or the measured point cloudiIs the ordinate of the control vertex or the measured point cloud,
Figure FDA0002622957470000034
is the mean value of the vertical coordinates, p, of the control vertex or the measured point cloudiAs coordinate data of said control vertices, qiAnd initial registration data corresponding to the actually measured point cloud.
6. The workpiece processing system of claim 5, wherein the data measurement module is specifically configured to:
and measuring the geometric data of the processing surface of the workpiece by using a contact on-machine measuring mode and/or a non-contact on-machine measuring mode.
7. The workpiece processing system of claim 5, wherein if the geometric data of the processing surface of the workpiece is measured by contact-type on-machine measurement, the geometric data is coordinate data of a feature point on the processing surface, and the compensation modification module comprises:
the third calculation unit is used for carrying out inverse calculation on the NURBS curve by utilizing a NURBS reconstruction theory according to the geometric registration data and carrying out forward calculation on the NURBS curve to obtain coordinate data of points corresponding to the tool location points on the NURBS curve;
and the first correcting unit is used for correcting the coordinate data of the tool location point in the tool path file by using an inverse deformation method according to the coordinate data of the point corresponding to the tool location point on the NURBS curve and the coordinate data of the tool location point in the tool path file, and generating an NC code with compensation.
8. The workpiece processing system of claim 5, wherein the compensation correction module comprises, if the geometric data of the processing surface of the workpiece is measured by non-contact on-machine measurement, the compensation correction module:
the fourth calculation unit is used for carrying out NURBS curved surface reconstruction on the machined profile by using an inverse deformation method according to the geometric registration data and calculating a tool path by using the reconstructed NURBS curved surface;
and the second correcting unit is used for correcting the corresponding tool path file according to the calculated tool position track and generating an NC code with compensation.
CN201810068753.4A 2018-01-24 2018-01-24 Workpiece machining method and system based on-machine measurement Active CN110069041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810068753.4A CN110069041B (en) 2018-01-24 2018-01-24 Workpiece machining method and system based on-machine measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810068753.4A CN110069041B (en) 2018-01-24 2018-01-24 Workpiece machining method and system based on-machine measurement

Publications (2)

Publication Number Publication Date
CN110069041A CN110069041A (en) 2019-07-30
CN110069041B true CN110069041B (en) 2020-09-29

Family

ID=67365492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810068753.4A Active CN110069041B (en) 2018-01-24 2018-01-24 Workpiece machining method and system based on-machine measurement

Country Status (1)

Country Link
CN (1) CN110069041B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110426991B (en) * 2019-07-30 2021-10-08 苏州行远志成自动化科技有限公司 Composite position error compensation method and device
CN110480075B (en) * 2019-08-26 2021-07-02 上海拓璞数控科技股份有限公司 Workpiece curved surface contour compensation system and method based on point cloud data and medium
CN110794767B (en) * 2019-11-14 2023-07-04 昌河飞机工业(集团)有限责任公司 On-machine measurement and compensation processing method for helicopter moving parts
CN111754464B (en) * 2020-06-03 2022-04-19 北京汉飞航空科技有限公司 Part accurate alignment method combining PD-like algorithm with ICP algorithm
CN111820545A (en) * 2020-06-22 2020-10-27 浙江理工大学 Method for automatically generating sole glue spraying track by combining offline and online scanning
CN112731864B (en) * 2020-12-21 2022-01-21 北京理工大学 Machine tool machining error compensation method and device and part machining machine tool
CN112633776A (en) * 2021-01-06 2021-04-09 郑州旭飞光电科技有限公司 Grinding amount correction method, system, storage medium and electronic equipment
CN112947307A (en) * 2021-01-22 2021-06-11 青岛黄海学院 Control method for surface appearance of high-speed cutting workpiece
CN113814795B (en) * 2021-10-28 2023-02-10 徐州徐工挖掘机械有限公司 Workpiece processing data measuring, correcting and checking method and system based on dual-channel on-machine measurement

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7089082B1 (en) * 2005-04-25 2006-08-08 The Protomold Company, Inc. Automated multi-customer molding
WO2009141720A1 (en) * 2008-05-22 2009-11-26 Micronic Laser Systems Ab Method and apparatus for overlay compensation between subsequently patterned layers on workpiece
CN101645170A (en) * 2009-09-03 2010-02-10 北京信息科技大学 Precise registration method of multilook point cloud
US7734097B1 (en) * 2006-08-01 2010-06-08 Mitsubishi Electric Research Laboratories, Inc. Detecting objects in images with covariance matrices
CN102798362A (en) * 2012-06-20 2012-11-28 北京航空航天大学 Point cloud data-based method for estimating working allowance of casting
CN104143210A (en) * 2014-07-31 2014-11-12 哈尔滨工程大学 Multi-scale normal feature point cloud registering method
CN105373078A (en) * 2015-11-26 2016-03-02 江西昌河航空工业有限公司 Micro-scale positioning method for machining forging and casting blank
CN105739440A (en) * 2016-04-29 2016-07-06 南京航空航天大学 Adaptive machining method of wide-chord hollow fan blade
CN107067472A (en) * 2016-09-29 2017-08-18 北京理工大学 A kind of geometric error characterizing method reconstructed based on nurbs surface

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7089082B1 (en) * 2005-04-25 2006-08-08 The Protomold Company, Inc. Automated multi-customer molding
US7734097B1 (en) * 2006-08-01 2010-06-08 Mitsubishi Electric Research Laboratories, Inc. Detecting objects in images with covariance matrices
WO2009141720A1 (en) * 2008-05-22 2009-11-26 Micronic Laser Systems Ab Method and apparatus for overlay compensation between subsequently patterned layers on workpiece
CN101645170A (en) * 2009-09-03 2010-02-10 北京信息科技大学 Precise registration method of multilook point cloud
CN102798362A (en) * 2012-06-20 2012-11-28 北京航空航天大学 Point cloud data-based method for estimating working allowance of casting
CN104143210A (en) * 2014-07-31 2014-11-12 哈尔滨工程大学 Multi-scale normal feature point cloud registering method
CN105373078A (en) * 2015-11-26 2016-03-02 江西昌河航空工业有限公司 Micro-scale positioning method for machining forging and casting blank
CN105739440A (en) * 2016-04-29 2016-07-06 南京航空航天大学 Adaptive machining method of wide-chord hollow fan blade
CN107067472A (en) * 2016-09-29 2017-08-18 北京理工大学 A kind of geometric error characterizing method reconstructed based on nurbs surface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
三维测量点云与CAD模型配准算法研究;宋鹏飞;《中国优秀硕士学位论文全文数据库信息科技辑》;20160915(第9期);全文 *
基于点云与CAD模型配准对齐的毛坯加工定位技术;李振华,何小磊,余维;《制造业自动化》;20170130(第1期);全文 *

Also Published As

Publication number Publication date
CN110069041A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN110069041B (en) Workpiece machining method and system based on-machine measurement
CN107127755B (en) Real-time acquisition device of three-dimensional point cloud and robot polishing track planning method
CN108908327B (en) Robot positioning error grading compensation method
Bi et al. Adaptive machining for curved contour on deformed large skin based on on-machine measurement and isometric mapping
CN103777570B (en) Mismachining tolerance quick detection compensation method based on nurbs surface
CN108803487B (en) Point position contour error prediction method for side milling surface of part
ElMaraghy et al. Integrated inspection and machining for maximum conformance to design tolerances
Radvar-Esfahlan et al. Nonrigid geometric metrology using generalized numerical inspection fixtures
CN109683552B (en) Numerical control machining path generation method on complex point cloud model guided by base curve
CN110837715B (en) Complex curved surface machining error compensation method based on reverse engineering technology
CN110103071B (en) Digital locating machining method for deformed complex part
CN109101741B (en) Complex surface detection self-adaptive sampling method based on triangular mesh simplification
Biermann et al. Using NC-path deformation for compensating tool deflections in micromilling of hardened steel
CN111085902B (en) Workpiece polishing system for visual online detection and correction
CN111400830A (en) Machining and calibrating method and device for three-dimensional blank workpiece
Zhang et al. 3D curvature grinding path planning based on point cloud data
Ye et al. Geometric parameter optimization in multi-axis machining
Lv et al. WPMAVM: Weighted plus-and-minus allowance variance minimization algorithm for solving matching distortion
CN114018155A (en) Method and system for detecting precision of chemical milling laser engraving profile
Zhongwei et al. Methodology of NURBS surface fitting based on off-line software compensation for errors of a CMM
Barari et al. Evaluation of geometric deviations in sculptured surfaces using probability density estimation
CN109725595A (en) Compensation method, processing method and the workpiece of the machining path of workpiece
CN115641418A (en) Radar cover sub-region self-adaptive modification method based on point cloud information
CN114549521A (en) Carbon tube array honeycomb surface shape precision calculation method based on G code processing guidance
CN115056213A (en) Robot track self-adaptive correction method for large complex component

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant