CN113721551A - Numerical control machining method and numerical control machining equipment - Google Patents

Numerical control machining method and numerical control machining equipment Download PDF

Info

Publication number
CN113721551A
CN113721551A CN202010456287.4A CN202010456287A CN113721551A CN 113721551 A CN113721551 A CN 113721551A CN 202010456287 A CN202010456287 A CN 202010456287A CN 113721551 A CN113721551 A CN 113721551A
Authority
CN
China
Prior art keywords
micro
segment
curve
point
continuous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010456287.4A
Other languages
Chinese (zh)
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.)
Symg Shanghai Intelligence System Co ltd
Original Assignee
Symg Shanghai Intelligence System Co ltd
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 Symg Shanghai Intelligence System Co ltd filed Critical Symg Shanghai Intelligence System Co ltd
Priority to CN202010456287.4A priority Critical patent/CN113721551A/en
Publication of CN113721551A publication Critical patent/CN113721551A/en
Pending legal-status Critical Current

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
    • G05B19/4099Surface or curve machining, making 3D objects, e.g. desktop manufacturing
    • 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/41Numerical 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 interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that 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/34Director, elements to supervisory
    • G05B2219/34083Interpolation general

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Numerical Control (AREA)

Abstract

The invention provides a numerical control machining method and numerical control machining equipment, wherein the method comprises the following steps: 1) continuous micro-segment identification: identifying a continuous micro-segment part needing smooth compression according to the length and the vector angle between the programming points of the program segment to be processed; 2) and (3) node vector parameterization: parameterizing a programming point for a continuous micro-segment part needing smooth compression to obtain a node vector parameter corresponding to the programming point; 3) solving the first order tangent vector: constructing an interpolation curve through continuous 4 programming points to calculate a first tangent vector corresponding to the programming points; 4) smooth compression program segment: compressing the programming points into spline curves according to the programming point instruction values of the continuous micro-segments to be smoothly compressed and the corresponding first-order tangent vector values; and checking whether the Euclidean distance from the programming point to the corresponding spline point meets the machining precision or not, and correspondingly adjusting the control point to carry out error control. The numerical control machining method and the numerical control machining equipment are used for smoothing the machining track within the precision range.

Description

Numerical control machining method and numerical control machining equipment
Technical Field
The invention relates to the technical field of numerical control machining, in particular to a numerical control machining method and numerical control machining equipment.
Background
In the numerical control machine tool machining, the free curves and the free curved surfaces have been widely used in the die machining, the automobile part machining and the aviation part machining. However, fast high quality machining of free curves and surfaces has been a difficult point in machining. In the conventional machining of a free curve or a curved surface of a numerical control system, a large number of tiny straight line segments are generally approximated by a large number of tiny line segments by CAM (Computer-aided manufacturing) software, and then the numerical control system machines the large number of tiny straight line segments, which are generated by the CAM software approximating the designed free curve or the curved surface, according to a straight line interpolation method (G01 method).
When the CAM software is used for processing, if the tolerance setting is large (such as +/-0.03), the CAM software adopts a tiny line segment to approach a designed free curve or curved surface, the effect is poor, and then the processing is carried out according to a G01 mode, so that the processed workpiece surface has inclined planes, ripples, stripes and the like, and the surface quality cannot meet the requirements. If the tolerance setting is small (e.g., +/-0.001), the amount of program data generated by the CAM software is very large, which may consume a lot of computer resources. And the length of a tiny line segment for approaching a free-form curved surface or a curve is too small, and the acceleration of each axis is frequently changed due to the adoption of a linear interpolation mode of a numerical control system, so that the vibration of a machine tool is caused, and the surface quality of a machined workpiece is finally influenced.
Chinese patent CN101881952B discloses a method for smooth compression of program segment suitable for numerical control devices, which can avoid the uneven surface of the workpiece caused by linear interpolation at the transition of the program segment, but the processing precision is not precisely controllable.
Therefore, it is desirable to solve the problem that the precision and efficiency of the conventional micro-segment smoothing compression processing method for numerical control machining cannot meet the production requirements.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention aims to provide a numerical control machining method and a numerical control machining device, which are used for solving the problem that the precision and efficiency of the micro-segment smooth compression processing method for numerical control machining in the prior art cannot meet the production requirement.
In order to achieve the above objects and other related objects, the present invention provides a method for digitally processing a communication signal, comprising the steps of: providing a machining program curve P required by numerical control machining equipment0PnSaid machining program curve P0PnComprises at least two micro-segment instruction points PiAnd Pj(ii) a Identifying successive micro-segment portions Pi Pj(ii) a The continuous micro-segment part Pi PjObtaining a target processing curve according to the deviation range: if the continuous micro-segment portion Pi PjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part Pi PjA corresponding target processing curve; if a continuous micro-segment portion Pi PjCan not be smoothly compressed into a spline curve meeting the processing precision, and j is reduced to k until a continuous micro-segment part Pi PkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedi PkCorresponding sub-target processing curves; the remaining micro-segment portion P is then compressed smoothly in the same mannerk PjTo obtain a remaining micro-segment portion Pk PjProcessing curves of the sub-targets corresponding to the instruction points; all the sub-target processing curves are connected in sequence to obtain a continuous micro-segment part Pi PjThe target machining curve of (1); wherein, PiFor the machining program curve P0PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
In an embodiment of the present invention, the continuous micro-segment P is obtainedi PjAfter the target machining curve is obtained, the numerical control machining equipment machines the workpiece according to the target machining curve.
In an embodiment of the invention, the identification of the continuous micro-segment portion Pi PjThe method comprises the following steps: curve P of the machining program0PmUpper adjacent two micro-segment instruction point Pn,Pn+1Length between and a preset micro-segment length threshold dmaxComparing, if the length between the two adjacent instruction points is greater than the threshold d of the micro-segment lengthmaxThen the corresponding two micro-segment instruction points P are setn,Pn-1Set as the break-off point of the continuous micro-segment; three adjacent micro-segment instruction points Pn-1,Pn,Pn+1Formed vector angle Pn-1PnPn+1Comparing the vector angle with a preset angle threshold value, and if the vector angle is larger than the angle threshold value, enabling a programming point P corresponding to the intersection point of the vector anglenSet as the break-off point of the continuous micro-segment; a starting point P0And a disconnection point P adjacent theretonEnd point PmAnd a disconnection point P adjacent thereton+1Or a continuous micro-segment portion between two adjacent disconnection points is identified as the continuous micro-segment portion Pi PjWherein n and m are positive integers, and n is more than i and less than or equal to m or n is more than j and less than or equal to m.
In an embodiment of the present invention, the continuous micro-segment portion P is divided into two portionsi PjThe step of smooth compression into a spline curve satisfying the machining accuracy includes: obtaining and said continuous micro-segment portion Pi PjNode vector parameters corresponding to the micro-segment instruction points on the micro-segment instruction points; through said continuous micro-segment portion Pi PjConstructing an interpolation curve by the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points; according to the continuous micro-segment part Pi PjA micro-segment instruction point, a node vector parameter corresponding to the micro-segment instruction point, and a continuous micro-segment part Pi PjA first tangent vector corresponding to the continuous 4 micro-segment command points on the surface of the substrate, and a continuous micro-segment part Pi PjCompressed into a first order continuous smooth spline curve.
In an embodiment of the present invention, the method for obtaining node vector parameters includes: according to the chord length delta P between two adjacent micro-segment command pointsiVector angle P formed by the instruction points of three adjacent micro-segmentsi-1PiPi+1To obtain and micro-segment instruction point PiCorresponding node vector parameter ui
In one embodiment of the present invention, the continuous micro-segment portion P is passed throughi PjThe step of constructing an interpolation curve for the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points includes: according to successive micro-segment instruction points Pi-2、Pi-1、Pi、Pi+1、Pi+2And the node vector parameter value u corresponding to each instruction pointi-2、ui-1、ui、ui+1、ui+2Constructing 4 micro-segment instruction points P respectively passing throughi-2、Pi-1、PiAnd Pi+1Of a cubic polynomial interpolation curve Qi-2(u) and passing through 4 consecutive instruction points P of said micro-segmenti-1、Pi、Pi+1And Pi+2Of a cubic polynomial interpolation curve Qi-1(u); solving two cubic polynomial interpolation curves Qi-2(u)、Qi-1(u) at the micro-segment instruction point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui) (ii) a The obtained micro-segment command point PiFirst order tangent vector Q'i-2(u)、Q'i-1(u) average value as the micro-segment instruction point PiCorresponding first order tangent vector value Ti
In an embodiment of the present invention, the continuous micro-segment portion Pi PjThe step of compressing into the first order continuous smooth spline curve satisfying the machining accuracy includes: calculating the starting point P of the continuous micro-segment part to be smoothly compressediAnd a termination point PjControl point G of the curve in between1And G2(ii) a Obtaining a curve control point G1And G2Correspondingly fitting a cubic Bezier curve; adjusting the curve control point G according to the machining error1And G2And adjusting and fitting the cubic Bezier curve to obtain the first-order continuous smooth spline curve meeting the processing precision.
In one embodiment of the present invention, the computing microSegment instruction point PiAnd PjThe method of curve control point in between comprises: when the micro-segment instruction point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen the planes are coplanar, calculating and sequentially approaching micro-segment instruction points P according to a least square methodkCurve control point G ofk1And Gk2Wherein the micro-segment instruction point PkFor instruction point P of micro-segmentiAnd PjMicro-segment instruction points in between.
In an embodiment of the present invention, the computation micro-segment instruction point PiAnd PjThe method of curve control point in between comprises: when the micro-segment instruction point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen not coplanar, sequentially calculating instruction points P passing through micro-segmentkCurve control point G ofk1Coefficient parameter alpha and curve control point Gk2The coefficient parameter β of (a); when alpha > 0 and beta < 0, a curve control point G is calculated from the coefficient parameters alpha and beta1And G2(ii) a When alpha is less than or equal to 0 or beta is greater than or equal to 0, making j reduce by 1, if j is>i +1, calculating a curve control point G according to the coefficient parameters alpha and beta1And G2(ii) a If j is i +1, the control point G is directly calculated1And G2
In an embodiment of the present invention, the step of adjusting the curve control point according to the machining error includes: when the micro-segment instruction point PiAnd PjWhen the instruction points are non-adjacent micro-segment instruction points, calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2(ii) a Calculate by Pi、G1、G2、PjThe deviation delta E of the fitted cubic Bezier curve of the control points; judging whether the deviation delta E is smaller than a preset deviation E or not, and if so, taking P as the deviation delta Ei、G1、G2、PjFitting cubic Bezier curves for the control points to serve as the first-order continuous smooth spline curve meeting the machining precision; when the deviation delta E is larger than or equal to the preset deviation E, j is made to be j-1, and then P is recalculatediAnd PjControl point G of the curve in between1And G2
In an embodiment of the present invention, the continuous micro-segment portion Pi PjCompressing into a first-order continuous smooth spline when the instruction point P is a micro-segmentiAnd PjWhen the instruction points are adjacent micro-segment instruction points, namely j ═ i +1, the curve control point G is directly calculated1And G2To obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a continuous micro-segment Pi PjThe corresponding target curve.
In order to achieve the above object, the present invention further provides a numerical control machining apparatus for communication signals, including: a processing program curve providing module suitable for providing a processing program curve P required by the numerical control processing equipment0PnSaid machining program curve P0PnComprises at least two micro-segment instruction points Pi(ii) a A continuous micro-segment recognition module adapted to recognize a continuous micro-segment part PiPj(ii) a A target processing curve module comprising a smoothing compression unit adapted to compress said continuous micro-segment portion PiPjObtaining a target processing curve according to the deviation range: if the continuous micro-segment portion PiPjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part PiPjA corresponding target processing curve; a smooth compression unit adapted to compress the continuous micro-segment portion PiPjWhen the sample curve which can not be smoothly compressed and meets the processing precision is obtained, j is reduced to k until the continuous micro-segment part PiPkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainediPkCorresponding sub-target processing curves; the smoothing compression unit is further adapted to smooth-compress the remaining micro-segment portion P again in the same mannerk PjTo obtain a remaining micro-segment portion Pk PjProcessing curves of the sub-targets corresponding to the instruction points; the target processing curve module is also suitable for connecting all sub-target curves in sequence to obtain a continuous micro-segment part PiPjTarget processing koji ofA wire; wherein, PiFor the machining program curve P0PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
In an embodiment of the invention, the numerical control machining apparatus machines the workpiece according to the target machining curve.
In an embodiment of the present invention, the continuous micro-segment identification module includes: a length comparison unit adapted to compare the machining program curve P0PmUpper adjacent two micro-segment instruction point Pn,Pn+1Length between and a preset micro-segment length threshold dmaxComparing, if the length between the two adjacent instruction points is greater than the threshold d of the micro-segment lengthmaxThen the corresponding two micro-segment instruction points P are setn,Pn-1Set as the break-off point of the continuous micro-segment; an angle comparison unit suitable for comparing the adjacent three micro-segment command points Pn-1,Pn,Pn+1Formed vector angle Pn-1PnPn+1Comparing the vector angle with a preset angle threshold value, and if the vector angle is larger than the angle threshold value, determining a micro-segment instruction point P corresponding to the intersection point of the vector anglenSet as the break-off point of the continuous micro-segment; an identification unit adapted to identify a start/end point and an adjacent break point or a continuous micro-segment portion between two adjacent break points as the continuous micro-segment portion PiPjStarting point P0And a disconnection point P adjacent theretonEnd point PmAnd a disconnection point P adjacent thereton+1Or a continuous micro-segment portion between two adjacent disconnection points is identified as the continuous micro-segment portion PiPjWherein n and m are positive integers, and n is more than i and less than or equal to m or n is more than j and less than or equal to m.
In an embodiment of the invention, the smooth compression unit includes: a node vector parameter component adapted to obtain a vector of parameters associated with said continuous micro-segment portion PiPjNode vector parameters corresponding to the micro-segment instruction points on the micro-segment instruction points; a first order sagittal assembly adapted to pass through said continuous micro-segment portion PiPjConstructing interpolation curve for the upper continuous 4 micro-segment command points to calculate one corresponding to the 4 micro-segment command pointsStep tangent vector; a spline curve generation component for generating a spline curve from the continuous micro-segment portion PiPjA micro-segment instruction point, a node vector parameter corresponding to the micro-segment instruction point, and a continuous micro-segment part PiPjA first tangent vector corresponding to the continuous 4 micro-segment command points on the surface of the substrate, and a continuous micro-segment part PiPjCompressed into a first order continuous smooth spline curve.
In an embodiment of the invention, the node vector parameter component is adapted to be based on a chord length Δ P between two adjacent instruction points of the micro-segmentiVector angle P formed by the instruction points of three adjacent micro-segmentsi-1PiPi+1To obtain and micro-segment instruction point PiCorresponding node vector parameter ui
In an embodiment of the present invention, the first tangent vector component includes: a binomial interpolation curve part suitable for the instruction point P of continuous micro-segmenti-2、Pi-1、Pi、Pi+1、Pi+2And the node vector parameter value u corresponding to each instruction pointi-2、ui-1、ui、ui+1、ui+2Constructing 4 micro-segment instruction points P respectively passing throughi-2、Pi-1、PiAnd Pi+1Of a cubic polynomial interpolation curve Qi-2(u) and passing through 4 consecutive instruction points P of said micro-segmenti-1、Pi、Pi+1And Pi+2Of a cubic polynomial interpolation curve Qi-1(u); a one-order vector cutting component of the micro-segment instruction point, which is suitable for solving the two cubic polynomial interpolation curves Qi-2(u)、Qi-1(u) at the micro-segment instruction point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui) (ii) a A first tangent vector averaging part adapted to average the obtained micro-segment command point PiFirst order tangent vector Q'i-2(u)、Q'i-1(u) average value as the micro-segment instruction point PiCorresponding first order tangent vector value Ti
In an embodiment of the present invention, the spline curve generating component includes: control point calculating unit, and control point calculating methodFor calculating the starting point P of the continuous micro-segment portion to be smoothly compressediAnd a termination point PjControl point G of the curve in between1And G2(ii) a A Bezier curve acquisition unit adapted to acquire and curve control points G1And G2Correspondingly fitting a cubic Bezier curve; a machining error control part adapted to let the control point calculation unit adjust the curve control point G according to a machining error1And G2And adjusting and fitting the cubic Bezier curve to obtain the first-order continuous smooth spline curve meeting the processing precision.
In an embodiment of the present invention, the control point calculating unit includes: a first calculation unit adapted to calculate a micro-segment command point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen the planes are coplanar, calculating and sequentially approaching micro-segment instruction points P according to a least square methodkCurve control point G ofk1And Gk2Wherein the micro-segment instruction point PkFor instruction point P of micro-segmentiAnd PjMicro-segment instruction points in between.
In an embodiment of the present invention, the curve control point calculating unit includes: a control point coefficient calculating unit adapted to calculate a control point coefficient when the micro-segment command point P is detectediAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen not coplanar, sequentially calculating instruction points P passing through micro-segmentkCurve control point G ofk1Coefficient parameter alpha and curve control point Gk2The coefficient parameter β of (a); a second calculation unit adapted to calculate a curve control point G based on the coefficient parameters alpha and beta when alpha > 0 and beta < 01And G2(ii) a A third calculation unit adapted to, when alpha ≦ 0 or beta ≧ 0, the compression unit adapted to self-subtract j by 1, then j by 1, if j is>i +1, calculating a curve control point G according to the coefficient parameters alpha and beta1And G2(ii) a If j is i +1, the control point G is directly calculated1And G2
In an embodiment of the present invention, the machining error control unit includes: a control point mean value calculation unit suitable for micro-segment fingerOrder point PiAnd PjWhen the instruction points are non-adjacent micro-segment instruction points, calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2(ii) a A deviation calculation unit adapted to calculate Pi、G1、G2、PjThe deviation delta E of the fitted cubic Bezier curve of the control points; an adjusting unit adapted to adjust the deviation Delta E by P when the deviation Delta E is smaller than a preset deviation Ei、G1、G2、PjFitting cubic Bezier curves for the control points to serve as the first-order continuous smooth spline curve meeting the machining precision; when the deviation delta E is larger than or equal to the preset deviation E, a fourth curve control point calculating component is adopted, the fourth curve control point calculating component is suitable for enabling j to be j-1, and then P is recalculatediAnd PjControl point G of the curve in between1And G2
In an embodiment of the invention, the smooth compression unit further comprises a fifth curve control point calculating component, and the fifth curve control point calculating component is adapted to calculate the control point P at the micro-segment command point PiAnd PjWhen the instruction points are adjacent micro-segment instruction points, namely j ═ i +1, curve control points are directly calculated to obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a continuous micro-segment Pi PjThe corresponding target curve.
As described above, the numerical control machining method and the numerical control machining apparatus of the present invention have the following advantageous effects: the smooth machining track in the precision range can be improved.
Drawings
FIG. 1 is a flowchart of a numerical control machining method according to an embodiment of the present invention;
FIG. 2A is a continuous micro-segment judgment diagram (I) in an embodiment of the numerical control machining method of the present invention;
FIG. 2B is a continuous micro-segment judgment diagram (II) in another embodiment of the numerical control machining method of the present invention;
FIG. 3 is a flow chart of continuous micro-segment target curve fitting in one embodiment of the numerical control machining method of the present invention;
FIG. 4A is a schematic diagram illustrating a control point calculation in an embodiment of the numerical control machining method of the present invention;
FIG. 4B is a schematic diagram of the calculation of control points in another embodiment of the numerical control machining method of the present invention;
FIG. 5 is a diagram illustrating simulation effects of the numerical control machining method according to an embodiment of the present invention;
FIG. 6A is a machined surface of a workpiece without the use of the present numerically controlled machining method;
FIG. 6B is a machined surface of a workpiece using the numerical control machining method of the present invention;
FIG. 7 is a schematic structural diagram of a CNC machining system according to an embodiment of the present invention.
Description of the element reference numerals
71 processing program curve providing module
72 continuous micro-segment identification module
73 target processing curve module
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, so that the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, the type, quantity and proportion of the components in actual implementation can be changed freely, and the layout of the components can be more complicated.
The numerical control processing method and the numerical control processing equipment are used for providing the micro-segment smooth compression processing method for numerical control processing, which can meet the production requirements in terms of precision and efficiency.
As shown in fig. 1, the method of the present invention comprises the steps of:
step (I), continuous micro-segment identification: and identifying the part of the workpiece needing smooth compression through the length of the line segment to be processed and the vector angle information between the line segments.
And (II) parameterizing a node vector: and (3) parameterizing the programming point by combining the relation between the length and the angle of the continuous micro-segment part needing smooth compression, and acquiring the node vector parameter corresponding to the programming point.
Solving a first-order tangent vector: and solving the first-order tangent vector by adopting a four-point construction method, constructing a cubic polynomial by continuous 4 programming points, and solving the first-order tangent vector of the corresponding point.
Step (four), requiring internal smooth compression program segment with precision: according to the instruction value of the continuous micro-segment programming point to be smoothly compressed and the corresponding first-order tangent vector, a broken line track described by the programming point is compressed into a first-order continuous smooth curve; and checking whether the Euclidean distance between the programming point and the corresponding spline point (the spline curve value corresponding to the node vector parameter value obtained by calculating the programming point) meets the processing precision, and adjusting the control point of the spline curve to carry out error control on the spline curve which does not meet the requirement.
The numerical control processing method of the communication signal comprises the following steps:
step 100, providing a machining program curve P required by the numerical control machining equipment0PnSaid machining program curve P0PnComprises at least two micro-segment instruction points PiAnd Pj
Step 200, identifying a continuous micro-segment part Pi Pj
Step 300, the continuous micro-segment part Pi PjAnd obtaining a target processing curve according to the deviation range.
In particular, if the continuous micro-segment portion Pi PjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part Pi PjCorresponding target processing curve.
If a continuous micro-segment portion Pi PjCan not be smoothly compressed into a spline curve meeting the processing precision, and j is reduced to k until a continuous micro-segment part Pi PkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedi PkThe corresponding sub-target processing curve.
Step 400, the remaining micro-segment P is compressed smoothly in the same wayk PjTo obtain a remaining micro-segment portion PkPjAnd (5) processing curves of the sub-targets corresponding to the instruction points.
Step 500, connecting all sub-target processing curves in sequence to obtain a continuous micro-segment part Pi PjThe target processing curve of (1).
Specifically, wherein, PiFor the machining program curve P0PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
The following embodiments of the numerical control machining method provided by the present invention are described in detail with specific examples, and it should be understood by those skilled in the art that the following embodiments are not intended to limit the scope of the present invention, which is within the scope of the present invention in other similar machining environments, or in other similar apparatuses or similar methods.
In a specific embodiment, the numerical control machining device may be a numerical control lathe, a vertical machining center, a five-axis linkage machine tool, or the like.
Step 100, providing a machining program curve P required by the numerical control machining equipment0PnSaid machining program curve P0PnComprises at least two micro-segment instruction points PiAnd Pj
Specifically, a processing drawing formed by drawing software is adopted. Generally, two-dimensional graphics can be formed by CAD, and three-dimensional graphics can be formed by Pro/E, inventor, solidworks and other software. The curve to be processed is the outline of a two-dimensional workpiece figure or the outline of a cross-sectional figure of a three-dimensional workpiece figure.
The processing program curve is a curve obtained by carrying out micro-line segment differentiation on a curve of a free-form surface to be processed in a drawing by computer aided manufacturing software according to a processing drawing. The micro-segment instruction point is a point at which the machining program curve is subdivided into micro-segments (hereinafter referred to as "micro-segments").
Step 200, identifying a continuous micro-segment part Pi Pj
Wherein the step 200 identifies a continuous micro-segment portion Pi PjThe method comprises the following steps:
step 201 is executed: curve P of the machining program0PmUpper adjacent two micro-segment instruction point Pn,Pn+1Length between and a preset micro-segment length threshold dmaxComparing, if the length between the two adjacent instruction points is greater than the threshold d of the micro-segment lengthmaxThen the corresponding two micro-segment instruction points P are setn,Pn-1Set as the break-off point for the continuous micro-segment.
As shown in fig. 2A, a method of determining a continuous micro segment will be described by way of example. Program segment Pi-1PiAnd Pi+6Pi+7The length is larger than the micro-segment length d of the system settingmax(d in this example)max2mm), program segment PiPi+1、Pi+1Pi+2、Pi+2Pi+3、Pi+ 3Pi+4、Pi+4Pi+5、Pi+5Pi+6And Pi+6Pi+7The lengths of the micro-segments are all less than the length d of the micro-segmentmax. Program segment PiPi+1、Pi+1Pi+2、Pi+2Pi+3、Pi+ 3Pi+4、Pi+4Pi+5And Pi+5Pi+6In addition to the program segment Pi+2Pi+3And Pi+3Pi+4Vector angle of (theta)i+3Greater than the maximum rotation angle theta set by the systemmax(in this example,. theta.max30 °), others are less than θmax. At this time, the program segment P is inferrediPi+1、Pi+1Pi+2、Pi+2Pi+3Is a continuous micro-segment; program segment Pi+3Pi+4、Pi+4Pi+5、Pi+5Pi+6Are continuous micro-segments.
Step 202 is executed: three adjacent micro-segment instruction points Pn-1,Pn,Pn+1Formed vector angle Pn-1PnPn+1Comparing the vector angle with a preset angle threshold value, and if the vector angle is larger than the angle threshold value, enabling a programming point P corresponding to the intersection point of the vector anglenSet as the break-off point for the continuous micro-segment.
As shown in fig. 2B, a program segment Pi-1PiAnd Pi+6Pi+7The length is larger than the micro-segment length d of the system settingmaxProgram segment PiPi+1、Pi+1Pi+2、Pi+2Pi+3、Pi+3Pi+4、Pi+4Pi+5、Pi+5Pi+6And Pi+6Pi+7The lengths of the micro-segments are all less than the length d of the micro-segmentmax. Program segment PiPi+1、Pi+1Pi+2、Pi+2Pi+3、Pi+3Pi+4、Pi+4Pi+5And Pi+5Pi+6In addition to straight line segment Pi+2Pi+3、Pi+3Pi+4Vector angle of (theta)i+3And straight line segment Pi+3Pi+4、Pi+4Pi+5Vector angle of (theta)i+4Greater than the maximum rotation angle theta set by the systemmaxAll others are less than thetamax. At this time, the program segment P is inferrediPi+1、Pi+1Pi+2、Pi+2Pi+3Is a continuous micro-segment; program segment Pi+4Pi+5、Pi+5Pi+6Are continuous micro-segments.
Step 203 is executed: a starting point P0And a disconnection point P adjacent theretonEnd point PmAnd a disconnection point P adjacent thereton+1Or a continuous micro-segment portion between two adjacent disconnection points is identified as the continuous micro-segment portion Pi PjWherein n and m are positiveAn integer, and n is more than i and less than or equal to m or n is more than j and less than or equal to m.
In a CNC program, in an irregular program segment generated by a CAM system, a part needing to be precisely machined often has the characteristic of a program segment with a large length or sharp angle change; the portion that can be continuously and smoothly compressed tends to have a short length and a gentle change in angle.
And identifying continuous micro-segments in the CNC program through the length of the line segments to be machined and the vector angle between the line segments. And judging whether the program segment in the CNC needs to be subjected to smooth compression processing or not through continuous micro-segment identification. The non-continuous micro-segment part is not subjected to smooth compression treatment; and (3) performing smooth compression treatment on the continuous micro-segment part: and processing the continuous micro-segment into a continuous smooth path, wherein the processed path and the original path meet a certain deviation range.
Specifically, according to practical experience, it is preferable that the preset micro-segment length threshold d ismaxIs 0 mm-2 mm. The preset angle threshold value is 0-30 degrees.
Step 300, the continuous micro-segment part Pi PjAnd obtaining a target processing curve according to the deviation range.
In particular, if the continuous micro-segment portion Pi PjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part Pi PjCorresponding target processing curve.
If a continuous micro-segment portion Pi PjCan not be smoothly compressed into a spline curve meeting the processing precision, and j is reduced to k until a continuous micro-segment part Pi PkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedi PkThe corresponding sub-target processing curve.
In particular, the continuous micro-segment portion Pi PjThe step of smooth compression into a spline curve satisfying the machining accuracy includes:
step 310: obtaining and said continuous micro-segment portion Pi PjAnd node vector parameters corresponding to the micro-segment command points.
The method for acquiring the node vector parameters comprises the following steps:
according to the chord length delta P between two adjacent micro-segment command pointsiVector P formed by three adjacent micro-segment command pointsi-1PiPi+1To obtain and micro-segment instruction point PiCorresponding node vector parameter ui
Node vector parameter uiCalculated according to the following formula:
Figure BDA0002509352070000101
wherein
Figure BDA0002509352070000111
Figure BDA0002509352070000112
Wherein u isi(i ═ 1,2,. cndot., n) as parameter value, |. DELTA.P i1,2, n-1 is two adjacent programming points (x)i,yi,zi) And (x)i+1,yi+1,zi+1) inter-Euclidean distance, angle Pi-1PiPi+1Is a vector Pi-1PiAnd PiPi+1The vector angle formed.
Step 320 is executed: through said continuous micro-segment portion Pi PjConstructing an interpolation curve by the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points, wherein the first tangent vector comprises the following steps:
according to successive micro-segment instruction points Pi-2、Pi-1、Pi、Pi+1、Pi+2And the node vector parameter value u corresponding to each instruction pointi-2、ui-1、ui、ui+1、ui+2Constructing 4 micro-segment instruction points P respectively passing throughi-2、Pi-1、PiAnd Pi+1Of a cubic polynomial interpolation curve Qi-2(u) and passing through 4 consecutive instruction points P of said micro-segmenti-1、Pi、Pi+1And Pi+2Of a cubic polynomial interpolation curve Qi-1(u);
Solving two cubic polynomial interpolation curves Qi-2(u)、Qi-1(u) at the micro-segment instruction point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui);
The obtained micro-segment command point PiFirst order tangent vector Q'i-2(u)、Q'i-1(u) average value as the micro-segment instruction point PiCorresponding first order tangent vector value Ti
The CNC machining program contains a large number of G01 instructions describing the shape of a workpiece to be machined, and the program does not contain a first tangent vector value of a programming point, and the first tangent vector of the programming point needs to be determined through the programming point and two points, namely a front point and a rear point. Specifically, in this embodiment, the specific process of solving the first order tangent vector is as follows:
programming point is PiAnd two successive program points P successive theretoi-2、Pi-1、Pi+1、Pi+2Corresponding node vector parameter is ui-2、ui-1、ui、ui+1、ui+2Two cubic polynomial interpolation curves can be constructed to pass through 4 continuous programming points P respectivelyi-2、Pi-1、PiAnd Pi+1And Pi-1、Pi、Pi+1And Pi+2
Qi-2(u)=ai-2+bi-2u+ci-2u2+di-2u3,u∈[ui-2,ui+1]
Qi-1(u)=ai-1+bi-1u+ci-1u2+di-1u3,u∈[ui-1,ui+2]
Two interpolation curves Q are obtainedi-2(u)、Qi-1(u) at a programming point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui) (ii) a Specifically, the above two cubic polynomials correspond to the coefficient a through 4 successive programming pointsi-2、bi-2、ci-2、di-2And ai-1、bi-1、ci-1、di-1The following formula is satisfied:
Figure BDA0002509352070000121
Figure BDA0002509352070000122
will program the point Pi-2、Pi-1、Pi、Pi+1And Pi+2And corresponding node vector parameter value ui-2、ui-1、ui、ui+1And ui+2Substituting the equation to obtain a cubic polynomial curve Qi-2(u) and Qi-1Coefficient a of (u)i-2、bi-2、ci-2、di-2And ai-1、bi-1、ci-1、di-1. Two cubic polynomial curves at the programming point PiThe first order tangent vector of (A) is:
Q'i-2(ui)=bi-2+2ci-2ui+3di-2ui 2
Q'i-1(ui)=bi-1+2ci-1ui+3di-1ui 2
the obtained programming point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui) As the programming point PiCorresponding first order tangent vector value Ti
In order to make the calculated first-order tangent order approximate to the first-order tangent order of the program smooth compression acquisition curve, two cubic polynomials are taken at a programming point PiThe average value of the first-order tangent vectors is taken as the first-order tangent vector of the programming pointIs TiDetermined according to the following formula:
Figure BDA0002509352070000123
the first tangent vector of the two foremost and rearmost programming points of the successive micro-segments is determined by the following formula:
Figure BDA0002509352070000131
step 330: according to the continuous micro-segment part Pi PjA micro-segment instruction point, a node vector parameter corresponding to the micro-segment instruction point, and a continuous micro-segment part Pi PjA first tangent vector corresponding to the continuous 4 micro-segment command points on the surface of the substrate, and a continuous micro-segment part Pi PjCompressed into a first order continuous smooth cubic Bezier curve, represented by P1P2,P2P3,…,Pn-1PnComposed of successive micro-segments, target curves to be synthesized
Figure BDA0002509352070000132
Wherein C ist(u) is a cubic Bezier curve.
The continuous micro-segment part Pi PjThe step of compressing into the first order continuous smooth spline curve satisfying the machining accuracy includes: for program segment P1P2,P2P3,…,Pn-1PnThe formed continuous micro-segment is compressed into a multi-segment cubic Bezier curve C meeting the processing precisiont(u) including control point calculation and machining error control, comprising:
step 331 is executed: calculating the starting point P of the continuous micro-segment part to be smoothly compressediAnd a termination point PjControl point G of the curve in between1And G2
The calculation micro-segment instruction point PiAnd PjThe method of curve control point in between comprises:
when the micro-segment instruction point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen the planes are coplanar, calculating and sequentially approaching micro-segment instruction points P according to a least square methodkCurve control point G ofk1And Gk2Wherein the micro-segment instruction point PkFor instruction point P of micro-segmentiAnd PjMicro-segment instruction points in between.
For example, assume a micro-segment instruction point is PiAnd PjThe corresponding first order tangent vector is TiAnd TjCurve Ct(u) is the curve S (u) at the programming point PiAnd PjThe curve segment between, PkK e (i j) is at the programming point PiAnd PjThe programming point in between.
The starting point P of the instruction point passing through the micro segment can be calculated according to the following stepsiEnd point PjAnd an intermediate point PkOf the cubic Beizer curve ofk1And Gk2
Calculating the plane pi and the passing PkAnd parallel to TjPoint of intersection P of straight lines ofd
② calculating straight line Pi PjAnd through PdAnd parallel to TiPoint of intersection P of straight lines ofc
Thirdly, calculating the control points G of the other 2 Beizer curvesk1And Gk2
Figure BDA0002509352070000141
Figure BDA0002509352070000142
The calculation micro-segment instruction point PiAnd PjThe method of curve control point in between comprises:
when the micro-segment instruction point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen not coplanar, sequentially calculating instruction points P passing through micro-segmentkCurve control point G ofk1Coefficient parameter alpha and curve control point Gk2The coefficient parameter β of (a);
when alpha > 0 and beta < 0, a curve control point G is calculated from the coefficient parameters alpha and beta1And G2
For example, the starting point P of the instruction point passing through the micro segment can be calculated according to the following stepsiEnd point PjAnd an intermediate point P k2 other control points of the cubic Beizer curve:
uniformization of chord length parameter ui~ujIs composed of
Figure BDA0002509352070000143
Solving the unknown numbers alpha and beta by using a least square method according to the following formula:
(3s2tTi)α+(3t2sTj)β=Pk-(s3+3s2t)Pi-(t3+3t2s)Pj
s(s-2t)(Tk×Ti)α+t(2s-t)(Tk×Tj)β=2st(Tk×(Pi-Pj))
wherein, TkTo program point PkThe corresponding first order tangent vector, s and t, is determined as follows:
Figure BDA0002509352070000144
Figure BDA0002509352070000145
checking whether alpha is more than 0 and beta is less than 0, if so, calculating:
Gk1=Pi+αTi
Gk2=Pj+βTj
when alpha is less than or equal to 0 or beta is greater than or equal to 0, making j reduce by 1, if j is>i +1, calculating a curve control point G according to the coefficient parameters alpha and beta1And G2(ii) a If j is i +1, the control point G is directly calculated1And G2.
The step of adjusting the curve control points according to the machining error comprises:
when the micro-segment instruction point PiAnd PjWhen the instruction points are non-adjacent micro-segment instruction points, calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2
Figure BDA0002509352070000151
Figure BDA0002509352070000152
Wherein k isiA system number value corresponding to the starting point of the curve segment; k is a radical ofjAnd the system number value corresponding to the end point of the curve segment is obtained.
Calculate by Pi、G1、G2、PjThe deviation delta E of the fitted cubic Bezier curve of the control points;
judging whether the deviation delta E is smaller than a preset deviation E or not;
the deviation can be determined, for example, according to the following formula:
Figure BDA0002509352070000153
wherein the content of the first and second substances,
Figure BDA0002509352070000154
is ukThe corresponding programming point instruction value;
Figure BDA0002509352070000155
is ukAt spline curve Ct(u) function value of (u).
When the deviation Delta E is smaller than the preset deviation E, the value is calculated by Pi、G1、G2、PjFitting cubic Bezier curves for the control points to serve as the first-order continuous smooth spline curve meeting the machining precision;
when the deviation delta E is larger than or equal to the preset deviation E, j is made to be j-1, and then P is recalculatediAnd PjControl point G of the curve in between1And G2
For example, the method of solving the control points may be as follows:
establishing a quadratic equation to be recorded as: alpha2+ B α + C ═ 0 where:
A=16-|Ti+Tj|2
B=12(Pj-Pi)·(Ti+Tj)
C=-36|Pj-Pi|2
and solving parameter coefficients according to a root equation:
Figure BDA0002509352070000156
the control points can be found:
Figure BDA0002509352070000161
Figure BDA0002509352070000162
step 332: obtaining a curve control point G1And G2Correspondingly fitting a cubic Bezier curve;
step 333: adjusting the curve control point G according to the machining error1And G2And adjusting and fitting the cubic Bezier curve to obtain the first-order continuous smooth spline curve meeting the processing precision.
Step 400, the remaining micro-segment P is compressed smoothly in the same wayk PjTo obtain the remaining micro-segment partPkPjAnd (5) processing curves of the sub-targets corresponding to the instruction points.
Specifically, the remaining micro-segment portion P is smoothly compressed in a manner that repeats step 300k PjTo obtain a remaining micro-segment portion Pk PjAnd (5) processing curves of the sub-targets corresponding to the instruction points.
In particular, if the continuous micro-segment portion Pk PjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part Pk PjA corresponding target processing curve;
if a continuous micro-segment portion Pk PjCan not be compressed smoothly into a spline curve meeting the processing precision, and j is reduced to f until a continuous micro-segment part Pk PfCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedk PfCorresponding sub-target processing curves;
the remaining micro-segment portion P is then compressed smoothly in the same mannerf PjTo obtain a remaining micro-segment portion Pf PjAnd (5) processing curves of the sub-targets corresponding to the instruction points.
Step 500, connecting all sub-target processing curves in sequence to obtain a continuous micro-segment part PiPjThe target processing curve of (1).
Specifically, wherein, PiFor the machining program curve P0PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
The continuous micro-segment part Pi PjCompressing into a first-order continuous smooth spline when the instruction point P is a micro-segmentiAnd PjWhen the instruction points are adjacent micro-segment instruction points, namely j ═ i +1, the curve control point G is directly calculated1And G2To obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a continuous micro-segment Pi PjThe corresponding target curve.
The method comprises the following steps:
step (I), continuous micro-segment identification: and identifying the part of the workpiece needing smooth compression through the length of the line segment to be processed and the vector angle information between the line segments.
And (II) parameterizing a node vector: and (3) parameterizing the programming point by combining the relation between the length and the angle of the continuous micro-segment part needing smooth compression, and acquiring the node vector parameter corresponding to the programming point.
Solving a first-order tangent vector: and solving the first-order tangent vector by adopting a four-point construction method, constructing a cubic polynomial by continuous 4 programming points, and solving the first-order tangent vector of the corresponding point.
Step (four), requiring internal smooth compression program segment with precision: according to the instruction value of the continuous micro-segment programming point to be smoothly compressed and the corresponding first-order tangent vector, a broken line track described by the programming point is compressed into a first-order continuous smooth curve; and checking whether the Euclidean distance between the programming point and the corresponding spline point (the spline curve value corresponding to the node vector parameter value obtained by calculating the programming point) meets the processing precision, and adjusting the control point of the spline curve to carry out error control on the spline curve which does not meet the requirement.
In the step (I) of the method, the specific process of continuous micro-segment identification is as follows:
identifying successive micro-segment portions Pi Pj
The continuous micro-segment part Pi PjObtaining a target processing curve according to the deviation range:
if the continuous micro-segment portion Pi PjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part Pi PjCorresponding target processing curve.
If a continuous micro-segment portion Pi PjCan not be smoothly compressed into a spline curve meeting the processing precision, and j is reduced to k until a continuous micro-segment part Pi PkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedi PkThe corresponding sub-target processing curve.
In the step (II) of the method, the specific process of node vector parameterization is as follows:
will P1P2,P2P3,…,Pn-1PnThe composition of continuous micro-segment is fit-synthesized by a plurality of segments of cubic Beizer curve Ct(u) a target curve S (u), Ct(u) is the target curve S (u) at the programming point PiAnd PjThe third Beizer curve in between. Need to be aligned to the programming point Pi(namely, the instruction points of the micro-segment) are parameterized, and each programming point P is obtained according to the length relation and the angle relation between the programming pointsiCorresponding node vector parameter value uiParameterization is performed according to the following formula:
as shown in FIG. 3, in the step (IV), the cubic Bezier curve C is obtained according to the deviation rangetThe specific process of (u) is as follows:
reading in continuous micro-segment Pi(i is more than or equal to 1 and less than or equal to n) and corresponding first-order tangent vector Ti(1≤i≤n);
② i is 1, j is n;
(iii) judging whether j is i +1, i.e. judging Pi、PjIf j > i +1, i.e. Pi、PjNot adjacent programming points (i.e. non-adjacent micro-segment instruction points), the following steps are entered:
fourthly, judging Pi、Pj、Ti、TjOr coplanar. If coplanar, calculating to approximate to P in sequence according to least square methodk(i < k < j) curve control point Gk1And Gk2(ii) a If not, the following steps are carried out:
calculating the approaching point P in turnk(i < k < j) curve control point Gk1And Gk2If the coefficient parameters alpha and beta do not satisfy the conditions that alpha is greater than 0 and beta is less than 0, j is made to be j-1, and the process returns to the step (iv); otherwise, the following steps are carried out:
calculating control point Gk1And Gk2Mean value G of1And G2If the deviation requirement E is satisfied, Pi、PjThe straight line segment between is represented by Pi、G1、G2And PjCubic Beizer curve substitution for 4 control points; let i be j, j be n, returnReturning to the step IV; otherwise, let j equal to j-1, return to step c.
The specific process of the control point calculation in the step (IV) of the invention is as follows:
1. if j is i +1, a spline curve is directly simulated, and the method for solving the control points is as follows:
establishing a quadratic equation to be recorded as: alpha2+ B α + C ═ 0 where:
A=16-|Ti+Tj|2
B=12(Pj-Pi)·(Ti+Tj)
C=-36|Pj-Pi|2
and solving parameter coefficients according to a root equation:
Figure BDA0002509352070000181
the control points can be found:
Figure BDA0002509352070000182
Figure BDA0002509352070000183
2. if j > i + 1:
assume a programming point of PiAnd PjThe corresponding first order tangent vector is TiAnd TjCurve Ct(u) is the curve S (u) at the programming point PiAnd PjThe curve segment between, PkK e (i j) is at the programming point PiAnd PjThe programming point in between.
Calculating a starting point P passing or approaching the programmed pointiEnd point PjAnd a middle programming point PkThe specific course of the other 2 control points of the cubic Beizer curve for k e (i j) is as follows:
1)Tjin the process of Pi、Pj、TiWithin a defined plane pi
As shown in fig. 4A, the solving process is as follows:
a) calculating the pi and P of the planekAnd parallel to TjPoint of intersection P of straight lines ofd
b) Calculating straight line Pi PjAnd through PdAnd parallel to TiPoint of intersection P of straight lines ofc
c) Calculate the control points G of the other 2 Beizer curvesk1And Gk2
Figure BDA0002509352070000191
Figure BDA0002509352070000192
2)TjIs not at Pi、Pj、TiWithin a defined plane pi
As shown in fig. 4B, the solving process is as follows:
a) uniform chord length parameter ui~ujIs composed of
Figure BDA0002509352070000195
b) Solving the unknowns α and β with a least squares method according to:
(3s2tTi)α+(3t2sTj)β=Pk-(s3+3s2t)Pi-(t3+3t2s)Pj
s(s-2t)(Tk×Ti)α+t(2s-t)(Tk×Tj)β=2st(Tk×(Pi-Pj))
wherein, TkTo program point PkThe corresponding first order tangent vector, s and t, is determined as follows:
Figure BDA0002509352070000193
Figure BDA0002509352070000194
c) checking whether alpha is greater than 0 and beta is less than 0, if yes, calculating
Gk1=Pi+αTi
Gk2=Pj+βTj
If not, let j subtract 1, return to step c to recalculate the curve control point.
In the step (four), if j is larger than i +1, whether the machining error meets the requirement needs to be further judged. The specific process of machining error calculation is as follows:
according to the obtained control point Gk1And Gk2The average value is obtained according to the following formula
Figure BDA0002509352070000201
Figure BDA0002509352070000202
Wherein k isiA system number value corresponding to the starting point of the curve segment; k is a radical ofjAnd the system number value corresponding to the end point of the curve segment is obtained.
Candidate cubic Bezier curve Ct(u) by control point by Pi、G1、G2And PjAs defined. The deviation calculation of the fitted curve is determined according to the following formula:
Figure BDA0002509352070000203
wherein the content of the first and second substances,
Figure BDA0002509352070000204
is ukThe corresponding system instruction value;
Figure BDA0002509352070000205
is uk at spline CtAnd (u) the corresponding spline curve.
If the deviation is within the preset range E, the control point P is usedi、G1、G2And PjDefined cubic Bezier curve Ct(u) instead of Pi、PjA straight line segment in between; if the requirement is not met, the step c is returned to for recalculating the curve control point by changing j to j-1.
In the step (IV) of the invention, the smooth compression program section in the precision requirement range is as follows: according to the instruction value P corresponding to the programming point of the continuous micro-segmentiNode vector parameter value uiAnd a first order tangent vector value TiA 1 is to P1P2,P2P3,…,Pn-1PnThe composition of continuous micro-segment is fit-synthesized by a plurality of segments of cubic Beizer curve Ct(u) a target curve S (u), Ct(u) is the target curve S (u) at the programming point PiAnd PjA cubic Beizer curve in between, wherein point P is to be programmediAnd PjThe continuous micro-segment between the two is compressed into a curve Ct(u) comprises the steps of:
step (four-one) of calculating a programming point PiAnd PjControl point G of the curve in between1And G2To obtain a fitted curve;
step (four two) according to curve control point G1And G2And performing machining error control to adjust the fitting curve.
Wherein, in the step (IV), the program point P is calculatediAnd PjThe control points of the curve in between to obtain the fitting curve comprises the following steps:
step (four one for one) of judging a programming point PiAnd PjWhether it is a non-adjacent programming point;
step (four or two) if programming point PiAnd PjFor non-adjacent programming points, the programming point P is notedkTo program point PiAnd PjThe programming point between, judge Pi、Pj、Ti、TjIf coplanar, calculating approximate programming point P according to least square methodkCurve control point G ofk1And Gk2
For example, assume a program point of PiAnd PjThe corresponding first order tangent vector is TiAnd TjCurve Ct(u) is the curve S (u) at the programming point PiAnd PjThe curve segment between, PkK e (i j) is at the programming point PiAnd PjThe programming point in between.
The starting point P for the programmed point can be calculated as followsiEnd point PjAnd an intermediate programming point PkOf the cubic Beizer curve ofk1And Gk2
Calculating the plane pi and the passing PkAnd parallel to TjPoint of intersection P of straight lines ofd
② calculating straight line Pi PjAnd through PdAnd parallel to TiPoint of intersection P of straight lines ofc
Thirdly, calculating the control points G of the other 2 Beizer curvesk1And Gk2
Figure BDA0002509352070000211
Figure BDA0002509352070000212
Wherein, in step (four or two), if Pi、Pj、Ti、TjIf not, calculating approximate programming point PkCurve control point G of, k e (i j)k1And Gk2The coefficient parameters α and β.
For example, the starting point P for the programmed point can be calculated as followsiEnd point PjAnd an intermediate programming point P k2 other control points of the cubic Beizer curve:
uniformization of chord length parameter ui~ujIs composed of
Figure BDA0002509352070000213
Solving the unknown numbers alpha and beta by using a least square method according to the following formula:
(3s2tTi)α+(3t2sTj)β=Pk-(s3+3s2t)Pi-(t3+3t2s)Pj
s(s-2t)(Tk×Ti)α+t(2s-t)(Tk×Tj)β=2st(Tk×(Pi-Pj))
wherein, TkTo program point PkThe corresponding first order tangent vector, s and t, is determined as follows:
Figure BDA0002509352070000214
Figure BDA0002509352070000215
checking whether alpha is more than 0 and beta is less than 0, if so, calculating:
Gk1=Pi+αTi
Gk2=Pj+βTj
if not, let j subtract 1 and go back to step (four one) to recalculate the curve control point.
Wherein, in the step (IV), the control of the machining error according to the curve control point is carried out at a programming point PiAnd PjThe method is carried out under the condition of non-adjacent programming points and comprises the following steps:
step (four two one) of calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2
Step (four two) calculation with Pi、G1、G2、PjFitting a curve C to the control pointsi(u) a deviation Δ E;
step (four, two and three) of judging whether the deviation delta E is smaller than the preset deviation E, if so, the deviation delta E is determined to be Pi、G1、G2、PjFitting a curve C to the control pointsi(u) as a programming point PiAnd PjTarget curve in between.
Wherein, in the step (four two one), the average value G1And G2For example, it can be obtained according to the following formula:
Figure BDA0002509352070000221
Figure BDA0002509352070000222
wherein k isiA system number value corresponding to the starting point of the curve segment; k is a radical ofjAnd the system number value corresponding to the end point of the curve segment is obtained.
In step (four, two), the deviation can be determined according to the following formula:
Figure BDA0002509352070000223
wherein the content of the first and second substances,
Figure BDA0002509352070000224
is ukThe corresponding programming point instruction value;
Figure BDA0002509352070000225
is ukAt spline curve Ct(u) function value of (u).
In the step (forty-two-three), if the result of determining whether the deviation Δ E is smaller than the preset deviation E is no, j is made to be j-1, and the process returns to the step (forty-one) to recalculate the curve control point.
Wherein, in step (four one for one)) In, if the point P is programmediAnd PjFor adjacent programming points, the curve control points are directly calculated to obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a programming point PiAnd PjTarget curve in between.
For example, the method of solving the control points may be as follows:
establishing a quadratic equation to be recorded as: alpha2+ B α + C ═ 0 where:
A=16-|Ti+Tj|2
B=12(Pj-Pi)·(Ti+Tj)
C=-36|Pj-Pi|2
and solving parameter coefficients according to a root equation:
Figure BDA0002509352070000231
the control points can be found:
Figure BDA0002509352070000232
Figure BDA0002509352070000233
fig. 5 shows the simulation effect of the method of the invention, as shown in fig. 5, the path curve obtained according to the method of the invention is smoother compared to the original machining path.
In order to further verify the effect of the method of the present invention in actual numerical control machining, the method of the present invention was applied to program segment processing in numerical control machining, and the results of machining using the method of the present invention and the results of machining not using the method of the present invention are shown in fig. 6A and 6B.
As can be seen from a comparison of fig. 6A and 6B, the machined surface obtained by using the method of the present invention has almost no asperities and is significantly smoother.
The method of the invention has the following beneficial effects and advantages:
1. high efficiency: the algorithm is integrated in the machine tool, so that the time consumed by CAM software for providing smaller tolerance data is avoided, and the generation efficiency of the whole part is improved;
2. the accuracy is as follows: the algorithm can restore the design prototype of the workpiece in the CAM software on line according to the point information provided by the CAM software;
3. stability: the algorithm of the invention fits a large number of micro-segments into a curve, effectively reduces the vibration of the machine tool through curve interpolation, and improves the stability of the machine tool.
While this invention has been described in terms of a preferred embodiment, there are alterations, permutations, and various substitute equivalents, which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and systems of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and various substitute equivalents as fall within the true spirit and scope of the present invention.
As shown in fig. 7, in an embodiment, the numerical control machining system of communication signals of the present invention includes a machining program curve providing module 71, a continuous micro-segment identifying module 72, and a target machining curve module 73.
The machining program curve providing module 71 is adapted to provide a machining program curve P required by the numerical control machining apparatus0PnSaid machining program curve P0PnComprises at least two micro-segment instruction points Pi
The continuous micro-segment recognition module 72 is adapted to recognize the continuous micro-segment part PiPj
The target processing curve module 73 comprises a smoothing and compression unit adapted to compress the continuous micro-segment portion PiPjObtaining a target processing curve according to the deviation range: if the continuous micro-segment portion PiPjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part PiPjA corresponding target processing curve; smooth compressionUnit adapted to be in a continuous micro-segment part PiPjWhen the sample curve which can not be smoothly compressed and meets the processing precision is obtained, j is reduced to k until the continuous micro-segment part PiPkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainediPkCorresponding sub-target processing curves; the smoothing compression unit is further adapted to smooth-compress the remaining micro-segment portion P again in the same mannerkPjTo obtain a remaining micro-segment portion Pk PjAnd (5) processing curves of the sub-targets corresponding to the instruction points.
The target processing curve module 73 is further adapted to sequentially connect all sub-target curves to obtain a continuous micro-segment portion PiPjThe target processing curve of (1).
Wherein, PiFor the machining program curve P0PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
Specifically, the numerical control machining equipment machines the workpiece according to the target machining curve.
The continuous micro-segment recognition module 72 includes: a length comparison unit adapted to compare the machining program curve P0PmUpper adjacent two micro-segment instruction point Pn,Pn+1Length between and a preset micro-segment length threshold dmaxComparing, if the length between the two adjacent instruction points is greater than the threshold d of the micro-segment lengthmaxThen the corresponding two micro-segment instruction points P are setn,Pn-1Set as the break-off point of the continuous micro-segment;
an angle comparison unit suitable for comparing the adjacent three micro-segment command points Pn-1,Pn,Pn+1Formed vector angle Pn-1PnPn+1Comparing the vector angle with a preset angle threshold value, and if the vector angle is larger than the angle threshold value, determining a micro-segment instruction point P corresponding to the intersection point of the vector anglenSet as the break-off point of the continuous micro-segment;
an identification unit adapted to identify as said start/end point and an adjacent breakpoint or a continuous micro-segment portion between two adjacent breakpoint pointsContinuous micro-segment part PiPjStarting point P0And a disconnection point P adjacent theretonEnd point PmAnd a disconnection point P adjacent thereton+1Or a continuous micro-segment portion between two adjacent disconnection points is identified as the continuous micro-segment portion Pi PjWherein n and m are positive integers, and n is more than i and less than or equal to m or n is more than j and less than or equal to m.
Specifically, the smooth compression unit includes: a node vector parameter component adapted to obtain a vector of parameters associated with said continuous micro-segment portion Pi PjNode vector parameters corresponding to the micro-segment instruction points on the micro-segment instruction points; a first order sagittal assembly adapted to pass through said continuous micro-segment portion Pi PjConstructing an interpolation curve by the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points; a spline curve generation component for generating a spline curve from the continuous micro-segment portion Pi PjA micro-segment instruction point, a node vector parameter corresponding to the micro-segment instruction point, and a continuous micro-segment part Pi PjA first tangent vector corresponding to the continuous 4 micro-segment command points on the surface of the substrate, and a continuous micro-segment part Pi PjCompressed into a first order continuous smooth spline curve.
In particular, the node vector parameter component is suitable for being used for adjusting the chord length delta P between two adjacent micro-segment instruction pointsiVector angle P formed by the instruction points of three adjacent micro-segmentsi-1PiPi+1To obtain and micro-segment instruction point PiCorresponding node vector parameter ui
Specifically, the first order tangent vector assembly includes: a binomial interpolation curve part suitable for the instruction point P of continuous micro-segmenti-2、Pi-1、Pi、Pi+1、Pi+2And the node vector parameter value u corresponding to each instruction pointi-2、ui-1、ui、ui+1、ui+2Constructing 4 micro-segment instruction points P respectively passing throughi-2、Pi-1、PiAnd Pi+1Of a cubic polynomial interpolation curve Qi-2(u) and passing through 4 consecutive instruction points P of said micro-segmenti-1、Pi、Pi+1And Pi+2Of a cubic polynomial interpolation curve Qi-1(u); a one-order vector cutting component of the micro-segment instruction point, which is suitable for solving the two cubic polynomial interpolation curves Qi-2(u)、Qi-1(u) at the micro-segment instruction point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui) (ii) a A first tangent vector averaging part adapted to average the obtained micro-segment command point PiFirst order tangent vector Q'i-2(u)、Q'i-1(u) average value as the micro-segment instruction point PiCorresponding first order tangent vector value Ti
Specifically, the spline curve generation component includes: a control point calculation unit adapted to calculate a starting point P of a continuous micro-segment portion to be smoothly compressediAnd a termination point PjControl point G of the curve in between1And G2(ii) a A Bezier curve acquisition unit adapted to acquire and curve control points G1And G2Correspondingly fitting a cubic Bezier curve; a machining error control part adapted to let the control point calculation unit adjust the curve control point G according to a machining error1And G2And adjusting and fitting the cubic Bezier curve to obtain the first-order continuous smooth spline curve meeting the processing precision.
The control point calculation unit includes: a first calculation unit adapted to calculate a micro-segment command point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen the planes are coplanar, calculating and sequentially approaching micro-segment instruction points P according to a least square methodkCurve control point G ofk1And Gk2Wherein the micro-segment instruction point PkFor instruction point P of micro-segmentiAnd PjMicro-segment instruction points in between.
The curve control point calculation unit includes: a control point coefficient calculating unit adapted to calculate a control point coefficient when the micro-segment command point P is detectediAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen not coplanar, sequentially calculating instruction points P passing through micro-segmentkCurve control point G ofk1Coefficient parameter alpha and curve control point Gk2The coefficient parameter β of (a); a second calculation unit adapted to calculate a curve control point G based on the coefficient parameters alpha and beta when alpha > 0 and beta < 01And G2(ii) a A third calculation unit adapted to, when alpha ≦ 0 or beta ≧ 0, the compression unit adapted to self-subtract j by 1, then j by 1, if j is>i +1, calculating a curve control point G according to the coefficient parameters alpha and beta1And G2(ii) a If j is i +1, the control point G is directly calculated1And G2
The machining error control means includes: a control point mean value calculation unit suitable for calculating the mean value of the micro-segment instruction point PiAnd PjWhen the instruction points are non-adjacent micro-segment instruction points, calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2(ii) a A deviation calculation unit adapted to calculate Pi、G1、G2、PjThe deviation delta E of the fitted cubic Bezier curve of the control points; an adjusting unit adapted to adjust the deviation Delta E by P when the deviation Delta E is smaller than a preset deviation Ei、G1、G2、PjFitting cubic Bezier curves for the control points to serve as the first-order continuous smooth spline curve meeting the machining precision; when the deviation delta E is larger than or equal to the preset deviation E, a fourth curve control point calculating component is adopted, the fourth curve control point calculating component is suitable for enabling j to be j-1, and then P is recalculatediAnd PjControl point G of the curve in between1And G2
The smooth compression unit further includes a fifth curve control point calculation section adapted to calculate a fifth curve control point at the micro-segment command point PiAnd PjWhen the instruction points are adjacent micro-segment instruction points, namely j ═ i +1, curve control points are directly calculated to obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a continuous micro-segment Pi PjThe corresponding target curve.
It should be noted that the structures and principles of the processing program curve providing module 71, the continuous micro-segment identifying module 72 and the target processing curve module 73 correspond to the steps in the numerical control processing method of the communication signal one by one, and therefore, the description thereof is omitted.
It should be noted that the division of the modules of the above system is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the x module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the x module may be called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Specific Integrated circuits (ASICs), or one or more Microprocessors (MPUs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In an embodiment of the present invention, the present invention further includes a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements any of the above numerical control processing methods for communication signals.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
In summary, the numerical control machining method and the numerical control machining equipment of the invention are used for providing the micro-segment smooth compression processing method for numerical control machining, which can meet the production requirements in terms of both precision and efficiency. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (22)

1. A numerical control machining method is characterized by comprising the following steps:
providing a machining program curve P required by numerical control machining equipment0 PnSaid machining program curve P0 PnComprises at least two micro-segment instruction points PiAnd Pj
Identifying successive micro-segment portions Pi Pj
The continuous micro-segment part Pi PjObtaining a target processing curve according to the deviation range:
if the continuous micro-segment portion Pi PjCan be smoothly compressed into spline curves meeting the processing precision, i.e. form continuous micro-segmentsPart Pi PjA corresponding target processing curve;
if a continuous micro-segment portion Pi PjCan not be smoothly compressed into a spline curve meeting the processing precision, and j is reduced to k until a continuous micro-segment part Pi PkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedi PkCorresponding sub-target processing curves;
the remaining micro-segment portion P is then compressed smoothly in the same mannerk PjTo obtain a remaining micro-segment portion Pk PjProcessing curves of the sub-targets corresponding to the instruction points;
all the sub-target processing curves are connected in sequence to obtain a continuous micro-segment part Pi PjThe target machining curve of (1);
wherein, PiFor the machining program curve P0 PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
2. The numerical control machining method according to claim 1, characterized in that the continuous micro-segment portion P is obtainedi PjAfter the target machining curve is obtained, the numerical control machining equipment machines the workpiece according to the target machining curve.
3. The numerical control machining method according to claim 1, characterized in that the identification of the continuous micro-segment portion P is carried outi PjThe method comprises the following steps:
curve P of the machining program0 PmUpper adjacent two micro-segment instruction point Pn,Pn+1Length between and a preset micro-segment length threshold dmaxComparing, if the length between the two adjacent instruction points is greater than the threshold d of the micro-segment lengthmaxThen the corresponding two micro-segment instruction points P are setn,Pn-1Set as the break-off point of the continuous micro-segment;
three adjacent micro-segment instruction points Pn-1,Pn,Pn+1Formed vector angle Pn-1PnPn+1Comparing the vector angle with a preset angle threshold value, and if the vector angle is larger than the angle threshold value, enabling a programming point P corresponding to the intersection point of the vector anglenSet as the break-off point of the continuous micro-segment;
a starting point P0And a disconnection point P adjacent theretonEnd point PmAnd a disconnection point P adjacent thereton+1Or a continuous micro-segment portion between two adjacent disconnection points is identified as the continuous micro-segment portion Pi PjWherein n and m are positive integers, and n is more than i and less than or equal to m or n is more than j and less than or equal to m.
4. The numerical control machining method according to claim 1, characterized in that the continuous micro-segment portion P is divided intoi PjThe step of smooth compression into a spline curve satisfying the machining accuracy includes:
obtaining and said continuous micro-segment portion Pi PjNode vector parameters corresponding to the micro-segment instruction points on the micro-segment instruction points;
through said continuous micro-segment portion Pi PjConstructing an interpolation curve by the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points;
according to the continuous micro-segment part Pi PjA micro-segment instruction point, a node vector parameter corresponding to the micro-segment instruction point, and a continuous micro-segment part Pi PjA first tangent vector corresponding to the continuous 4 micro-segment command points on the surface of the substrate, and a continuous micro-segment part Pi PjCompressed into a first order continuous smooth spline curve.
5. The numerical control machining method according to claim 4, wherein the method of acquiring the node vector parameters includes:
according to the chord length delta P between two adjacent micro-segment command pointsiVector angle P formed by the instruction points of three adjacent micro-segmentsi- 1PiPi+1To obtain and micro-segment instruction point PiCorresponding node vector parameter ui
6. The numerical control machining method according to claim 4, characterized in that the continuous micro-segment portion P is passed throughi PjThe step of constructing an interpolation curve for the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points includes:
according to successive micro-segment instruction points Pi-2、Pi-1、Pi、Pi+1、Pi+2And the node vector parameter value u corresponding to each instruction pointi-2、ui-1、ui、ui+1、ui+2Constructing 4 micro-segment instruction points P respectively passing throughi-2、Pi-1、PiAnd Pi+1Of a cubic polynomial interpolation curve Qi-2(u) and passing through 4 consecutive instruction points P of said micro-segmenti-1、Pi、Pi+1And Pi+2Of a cubic polynomial interpolation curve Qi-1(u);
Solving two cubic polynomial interpolation curves Qi-2(u)、Qi-1(u) at the micro-segment instruction point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui);
The obtained micro-segment command point PiFirst order tangent vector Q'i-2(u)、Q'i-1(u) average value as the micro-segment instruction point PiCorresponding first order tangent vector value Ti
7. The numerical control machining method according to claim 4, characterized in that the continuous micro-segment portion P is formed by cutting a continuous micro-segmenti PjThe step of compressing into the first order continuous smooth spline curve satisfying the machining accuracy includes:
calculating the starting point P of the continuous micro-segment part to be smoothly compressediAnd a termination point PjControl point G of the curve in between1And G2
Obtaining a curve control point G1And G2Correspondingly fitting a cubic Bezier curve;
according to the processing errorSetting the curve control point G1And G2And adjusting and fitting the cubic Bezier curve to obtain the first-order continuous smooth spline curve meeting the processing precision.
8. The numerical control machining method according to claim 7, characterized in that the calculation micro-segment command point PiAnd PjThe method of curve control point in between comprises:
when the micro-segment instruction point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen the planes are coplanar, calculating and sequentially approaching micro-segment instruction points P according to a least square methodkCurve control point G ofk1And Gk2Wherein the micro-segment instruction point PkFor instruction point P of micro-segmentiAnd PjMicro-segment instruction points in between.
9. The numerical control machining method according to claim 7, characterized in that the calculation micro-segment command point PiAnd PjThe method of curve control point in between comprises:
when the micro-segment instruction point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen not coplanar, sequentially calculating instruction points P passing through micro-segmentkCurve control point G ofk1Coefficient parameter alpha and curve control point Gk2The coefficient parameter β of (a);
when alpha > 0 and beta < 0, a curve control point G is calculated from the coefficient parameters alpha and beta1And G2
When alpha is less than or equal to 0 or beta is greater than or equal to 0, making j reduce by 1, if j is>i +1, calculating a curve control point G according to the coefficient parameters alpha and beta1And G2(ii) a If j is i +1, the control point G is directly calculated1And G2
10. The numerical control machining method according to claim 7, wherein the step of adjusting the curve control points according to the machining error includes:
when the micro-segment instruction point PiAnd PjWhen the instruction points are non-adjacent micro-segment instruction points, calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2
Calculate by Pi、G1、G2、PjThe deviation delta E of the fitted cubic Bezier curve of the control points;
judging whether the deviation Delta E is smaller than a preset deviation E or not,
when the deviation Delta E is smaller than the preset deviation E, the value is calculated by Pi、G1、G2、PjFitting cubic Bezier curves for the control points to serve as the first-order continuous smooth spline curve meeting the machining precision;
when the deviation delta E is larger than or equal to the preset deviation E, j is made to be j-1, and then P is recalculatediAnd PjControl point G of the curve in between1And G2
11. The numerical control machining method according to claim 1, characterized in that the continuous micro-segment portion P is formed by cutting a continuous micro-segmenti PjCompressing into a first-order continuous smooth spline when the instruction point P is a micro-segmentiAnd PjWhen the instruction points are adjacent micro-segment instruction points, namely j ═ i +1, the curve control point G is directly calculated1And G2To obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a continuous micro-segment Pi PjThe corresponding target curve.
12. A numerical control machining apparatus, comprising:
a processing program curve providing module suitable for providing a processing program curve P required by the numerical control processing equipment0 PnSaid machining program curve P0 PnComprises at least two micro-segment instruction points Pi
A continuous micro-segment recognition module adapted to recognize a continuous micro-segment part Pi Pj
Target processing curve module including flatA sliding compression unit adapted to compress the continuous micro-segment portion PiPjObtaining a target processing curve according to the deviation range: if the continuous micro-segment portion Pi PjCan be smoothly compressed into a spline curve meeting the processing precision, i.e. form a continuous micro-segment part Pi PjA corresponding target processing curve;
a smooth compression unit adapted to compress the continuous micro-segment portion Pi PjWhen the sample curve which can not be smoothly compressed and meets the processing precision is obtained, j is reduced to k until the continuous micro-segment part Pi PkCan be smoothly compressed into a spline curve meeting the processing precision, and then the continuous micro-segment part P is obtainedi PkCorresponding sub-target processing curves;
the smoothing compression unit is further adapted to smooth-compress the remaining micro-segment portion P again in the same mannerk PjTo obtain a remaining micro-segment portion Pk PjProcessing curves of the sub-targets corresponding to the instruction points;
the target processing curve module is also suitable for connecting all sub-target curves in sequence to obtain a continuous micro-segment part Pi PjThe target machining curve of (1);
wherein, PiFor the machining program curve P0 PnAnd k is more than or equal to i and j is more than or equal to m at any micro-segment instruction point, and the j is a positive integer.
13. The numerical control machining apparatus according to claim 12, wherein the numerical control machining apparatus machines the workpiece in accordance with the target machining curve.
14. The numerical control machining apparatus according to claim 12, wherein the continuous micro-segment recognition module includes:
a length comparison unit adapted to compare the machining program curve P0 PmUpper adjacent two micro-segment instruction point Pn,Pn+1Length between and a preset micro-segment length threshold dmaxComparing, if the length between the instruction points of the two adjacent micro-segments is larger than the micro-segmentLength threshold dmaxThen the corresponding two micro-segment instruction points P are setn,Pn-1Set as the break-off point of the continuous micro-segment;
an angle comparison unit suitable for comparing the adjacent three micro-segment command points Pn-1,Pn,Pn+1Formed vector angle Pn-1PnPn+1Comparing the vector angle with a preset angle threshold value, and if the vector angle is larger than the angle threshold value, determining a micro-segment instruction point P corresponding to the intersection point of the vector anglenSet as the break-off point of the continuous micro-segment;
an identification unit adapted to identify a start/end point and an adjacent break point or a continuous micro-segment portion between two adjacent break points as the continuous micro-segment portion Pi PjStarting point P0And a disconnection point P adjacent theretonEnd point PmAnd a disconnection point P adjacent thereton+1Or a continuous micro-segment portion between two adjacent disconnection points is identified as the continuous micro-segment portion Pi PjWherein n and m are positive integers, and n is more than i and less than or equal to m or n is more than j and less than or equal to m.
15. The numerical control machining apparatus according to claim 12, wherein the smooth compression unit includes:
a node vector parameter component adapted to obtain a vector of parameters associated with said continuous micro-segment portion Pi PjNode vector parameters corresponding to the micro-segment instruction points on the micro-segment instruction points;
a first order sagittal assembly adapted to pass through said continuous micro-segment portion Pi PjConstructing an interpolation curve by the upper continuous 4 micro-segment command points to calculate a first tangent vector corresponding to the 4 micro-segment command points;
a spline curve generation component for generating a spline curve from the continuous micro-segment portion Pi PjA micro-segment instruction point, a node vector parameter corresponding to the micro-segment instruction point, and a continuous micro-segment part Pi PjA first tangent vector corresponding to the continuous 4 micro-segment command points on the surface of the substrate, and a continuous micro-segment part Pi PjCompressed into a first order continuous smooth spline curve.
16. The numerical control machining apparatus according to claim 15, wherein the nodal vector parameter assembly is adapted to be dependent on a chord length Δ P between two adjacent instruction points of the micro-segmentiVector angle P formed by the instruction points of three adjacent micro-segmentsi-1PiPi+1To obtain and micro-segment instruction point PiCorresponding node vector parameter ui
17. The digitally controlled machining device of claim 15, wherein the first tangent assembly includes:
a binomial interpolation curve part suitable for the instruction point P of continuous micro-segmenti-2、Pi-1、Pi、Pi+1、Pi+2And the node vector parameter value u corresponding to each instruction pointi-2、ui-1、ui、ui+1、ui+2Constructing 4 micro-segment instruction points P respectively passing throughi-2、Pi-1、PiAnd Pi+1Of a cubic polynomial interpolation curve Qi-2(u) and passing through 4 consecutive instruction points P of said micro-segmenti-1、Pi、Pi+1And Pi+2Of a cubic polynomial interpolation curve Qi-1(u);
A one-order vector cutting component of the micro-segment instruction point, which is suitable for solving the two cubic polynomial interpolation curves Qi-2(u)、Qi-1(u) at the micro-segment instruction point PiFirst order tangent vector Q'i-2(ui)、Q'i-1(ui);
A first tangent vector averaging part adapted to average the obtained micro-segment command point PiFirst order tangent vector Q'i-2(u)、Q'i-1(u) average value as the micro-segment instruction point PiCorresponding first order tangent vector value Ti
18. The numerically controlled machining apparatus according to claim 15, wherein the spline curve generating assembly includes:
control point calculating unit, and control point calculating methodFor calculating the starting point P of the continuous micro-segment portion to be smoothly compressediAnd a termination point PjControl point G of the curve in between1And G2
A Bezier curve acquisition unit adapted to acquire and curve control points G1And G2Correspondingly fitting a cubic Bezier curve;
a machining error control part adapted to let the control point calculation unit adjust the curve control point G according to a machining error1And G2And adjusting and fitting the cubic Bezier curve to obtain the first-order continuous smooth spline curve meeting the processing precision.
19. The numerical control machining apparatus according to claim 18, characterized in that the control point calculation unit includes:
a first calculation unit adapted to calculate a micro-segment command point PiAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen the planes are coplanar, calculating and sequentially approaching micro-segment instruction points P according to a least square methodkCurve control point G ofk1And Gk2Wherein the micro-segment instruction point PkFor instruction point P of micro-segmentiAnd PjMicro-segment instruction points in between.
20. The numerical control machining apparatus according to claim 18, characterized in that the curve control point calculation unit includes:
a control point coefficient calculating unit adapted to calculate a control point coefficient when the micro-segment command point P is detectediAnd PjIs a non-adjacent micro-segment instruction point, and Pi、Pj、Ti、TjWhen not coplanar, sequentially calculating instruction points P passing through micro-segmentkCurve control point G ofk1Coefficient parameter alpha and curve control point Gk2The coefficient parameter β of (a);
a second calculation unit adapted to calculate a curve control point G based on the coefficient parameters alpha and beta when alpha > 0 and beta < 01And G2
A third calculating means adapted to calculate when alpha is less than or equal to 0 or beta is more than or equal toAt 0, the compression unit is adapted to self-subtract j by 1, and then self-subtract j by 1 if j is>i +1, calculating a curve control point G according to the coefficient parameters alpha and beta1And G2(ii) a If j is i +1, the control point G is directly calculated1And G2
21. The numerical control machining apparatus according to any one of claims 18, wherein the machining error control means includes:
a control point mean value calculation unit suitable for calculating the mean value of the micro-segment instruction point PiAnd PjWhen the instruction points are non-adjacent micro-segment instruction points, calculating the obtained curve control point Gk1And Gk2Mean value G of1And G2
A deviation calculation unit adapted to calculate Pi、G1、G2、PjThe deviation delta E of the fitted cubic Bezier curve of the control points;
an adjusting unit adapted to adjust the deviation Delta E by P when the deviation Delta E is smaller than a preset deviation Ei、G1、G2、PjFitting cubic Bezier curves for the control points to serve as the first-order continuous smooth spline curve meeting the machining precision;
when the deviation delta E is larger than or equal to the preset deviation E, a fourth curve control point calculating component is adopted, the fourth curve control point calculating component is suitable for enabling j to be j-1, and then P is recalculatediAnd PjControl point G of the curve in between1And G2
22. The numerical control machining apparatus according to claim 12, characterized in that the smooth compression unit further includes a fifth curve control point calculation section adapted to calculate a micro-segment command point P at the micro-segment command point PiAnd PjWhen the instruction points are adjacent micro-segment instruction points, namely j ═ i +1, curve control points are directly calculated to obtain a fitting curve Ct(u) and fitting the curve Ct(u) as a continuous micro-segment Pi PjThe corresponding target curve.
CN202010456287.4A 2020-05-26 2020-05-26 Numerical control machining method and numerical control machining equipment Pending CN113721551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010456287.4A CN113721551A (en) 2020-05-26 2020-05-26 Numerical control machining method and numerical control machining equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010456287.4A CN113721551A (en) 2020-05-26 2020-05-26 Numerical control machining method and numerical control machining equipment

Publications (1)

Publication Number Publication Date
CN113721551A true CN113721551A (en) 2021-11-30

Family

ID=78672023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010456287.4A Pending CN113721551A (en) 2020-05-26 2020-05-26 Numerical control machining method and numerical control machining equipment

Country Status (1)

Country Link
CN (1) CN113721551A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10240329A (en) * 1997-02-26 1998-09-11 Mitsubishi Electric Corp Curve fine-segmentation method and numerical controller provided with spline interpolation function
CN102566494A (en) * 2010-12-09 2012-07-11 中国科学院沈阳计算技术研究所有限公司 Five-axis numerical control interpolation method based on smooth compression of tool vectors
CN103699056A (en) * 2013-12-02 2014-04-02 嘉兴学院 Real-time smooth transition interpolation method of small high-speed and high-accuracy numerical control machining line segment
CN104007705A (en) * 2014-05-05 2014-08-27 上海交通大学 Prospective interpolation system for compressing and smoothening small segment paths
CN104865898A (en) * 2014-02-26 2015-08-26 温州博纳激光科技有限公司 Method and equipment for processing micro path segment in numerical control machine tool
CN108153245A (en) * 2017-12-26 2018-06-12 深圳市汇川技术股份有限公司 Smooth trajectory forwarding method and system
CN108170094A (en) * 2017-12-12 2018-06-15 烟台大学 A kind of method of cutter path smooth compression
CN109521731A (en) * 2017-09-19 2019-03-26 沈阳高精数控智能技术股份有限公司 A kind of continuous B é zier cutter path smoothing algorithm of G2 based on tolerance range

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10240329A (en) * 1997-02-26 1998-09-11 Mitsubishi Electric Corp Curve fine-segmentation method and numerical controller provided with spline interpolation function
CN102566494A (en) * 2010-12-09 2012-07-11 中国科学院沈阳计算技术研究所有限公司 Five-axis numerical control interpolation method based on smooth compression of tool vectors
CN103699056A (en) * 2013-12-02 2014-04-02 嘉兴学院 Real-time smooth transition interpolation method of small high-speed and high-accuracy numerical control machining line segment
CN104865898A (en) * 2014-02-26 2015-08-26 温州博纳激光科技有限公司 Method and equipment for processing micro path segment in numerical control machine tool
CN104007705A (en) * 2014-05-05 2014-08-27 上海交通大学 Prospective interpolation system for compressing and smoothening small segment paths
CN109521731A (en) * 2017-09-19 2019-03-26 沈阳高精数控智能技术股份有限公司 A kind of continuous B é zier cutter path smoothing algorithm of G2 based on tolerance range
CN108170094A (en) * 2017-12-12 2018-06-15 烟台大学 A kind of method of cutter path smooth compression
CN108153245A (en) * 2017-12-26 2018-06-12 深圳市汇川技术股份有限公司 Smooth trajectory forwarding method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周建刚;沈丽娟;: "数控加工中的平滑压缩插补算法分析", 科技展望, no. 34, pages 119 *
张晓辉;于东;洪海涛;孙维堂;张富彦;: "数控加工中的平滑压缩插补算法研究", 机械工程学报, no. 05, pages 156 - 162 *

Similar Documents

Publication Publication Date Title
Calleja et al. Highly accurate 5-axis flank CNC machining with conical tools
Huang et al. The pre-processing of data points for curve fitting in reverse engineering
Zhang et al. Curve fitting and optimal interpolation on CNC machines based on quadratic B-splines
Lasemi et al. Recent development in CNC machining of freeform surfaces: A state-of-the-art review
Lin et al. A generic uniform scallop tool path generation method for five-axis machining of freeform surface
CN108073138B (en) Elliptical arc smooth compression interpolation algorithm suitable for high-speed high-precision machining
Dan et al. An algorithm of NURBS surface fitting for reverse engineering
CN108594764B (en) Equal-residual-height tool contact point track generation method for triangular mesh model
Min et al. Six-dimensional B-spline fitting method for five-axis tool paths
Li et al. Tool path optimization in postprocessor of five-axis machine tools
Van Dang et al. Enhanced vector flow of significant directions for five-axis machining of STL surfaces
CN113721551A (en) Numerical control machining method and numerical control machining equipment
CN109991921B (en) Smooth B spline track direct generation method
Wang et al. A simple point cloud data reduction method based on Akima spline interpolation for digital copying manufacture
CN113467376B (en) Multi-axis track compression method for multiple processing scenes
CN114019911B (en) Curve fitting method based on speed planning
Yan et al. THREE-AXIS TOOL-PATH B-SPLINE FITTING BASED ON PREPROCESSING, LEAST SQUARE APPROXIMATION AND ENERGY MINIMIZATION AND ITS QUALITY EVALUATION.
Li et al. Design and implementation of an integral design CAD system for plastic profile extrusion die
Msaddek et al. Simulation of machining errors of Bspline and Cspline
Kim et al. Segmentation of the measured point data in reverse engineering
CN114970247A (en) Automatic modeling method of high-fidelity finite element model for leaf disc structure
Hu et al. B-spline tool offset of a free-form curve in the shoe last high-speed machining CNC system
CN108628255B (en) Instruction point correction smoothing processing method
Jichun et al. Parameter u and arc S modeling of B-spline for NC machining with CL points preprocessing algorithm
Moodleah et al. Adaptive Slicing of Point Cloud Directly with Discrete Interpolable-Area Error Profile in Additive Manufacturing

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