CN103268081A - Precision error control based orbit segment transfer processing algorithm for numerical control machine tool - Google Patents

Precision error control based orbit segment transfer processing algorithm for numerical control machine tool Download PDF

Info

Publication number
CN103268081A
CN103268081A CN 201310095678 CN201310095678A CN103268081A CN 103268081 A CN103268081 A CN 103268081A CN 201310095678 CN201310095678 CN 201310095678 CN 201310095678 A CN201310095678 A CN 201310095678A CN 103268081 A CN103268081 A CN 103268081A
Authority
CN
China
Prior art keywords
delta
error
orbit segment
alpha
angle
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
CN 201310095678
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.)
Kunshan Tianda Jingyi Numerical Control Science & Technology Development Co Ltd
Original Assignee
Kunshan Tianda Jingyi Numerical Control Science & Technology Development 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 Kunshan Tianda Jingyi Numerical Control Science & Technology Development Co Ltd filed Critical Kunshan Tianda Jingyi Numerical Control Science & Technology Development Co Ltd
Priority to CN 201310095678 priority Critical patent/CN103268081A/en
Publication of CN103268081A publication Critical patent/CN103268081A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

The invention provides a precision error control based orbit segment transfer processing algorithm for numerical control machine tool; elaboration and analysis are performed aiming at the current two transfer processing methods of connecting the orbit segment with a straight line and connecting the orbit segment with an arc and the error situation; for the error of the transfer processing of the orbit segment and the straight line, the change relation of the generated error and an interpolation surplus and an included angle is analyzed according to the difference of the velocity vector included angle; the transfer processing method and the error calculation of the orbit segment and the arc are elaborated based on two aspects of whether the orbit segment and the arc are on the same plane and the included angle of the orbit segment and the tangent line of the arc. Compared with the prior art, the analysis for the transfer processing method and the error are more complete; furthermore, the analysis for various transfer situations is more detailed and more thorough, and therefore, the higher transfer precision and the higher transfer velocity can be obtained.

Description

A kind of orbit segment switching Processing Algorithm based on trueness error control for numerically-controlled machine
Technical field
The present invention relates to a kind of orbit segment switching Processing Algorithm based on trueness error control for numerically-controlled machine, belong to the computer numerical control technology field.
Background technology
Because what moulding no matter any workpiece be, finally all is made up of a section orbit segment (circular arc, straight line), just has transit point between the orbit segment, produce the problem of switching transition method and switching precision thus.For guaranteeing workpiece accuracy, having the scholar to propose will carry out acceleration and deceleration between each orbit segment handles, be every section all experience accelerate, at the uniform velocity, these three processes of slowing down, so just cause the frequent start-stop of lathe, speed of feed slow excessively, problem such as desired speed can't guarantee, crudy is undesirable.The adjacent smooth-path section that has the scholar will not have flex point is done as a wholely to carry out interpolation, but in fact, it is a kind of special circumstances that the no flex point between the adjacent track section connects, and angle therebetween can be 0 °~180 °.There is the scholar to propose under the situation that guarantees the tie point precision, the realization track is processed continuously, it mainly is that the mini line segment during for big obtuse angle connects at switching place, and for the connection situation between circular arc, the straight line, how the speed when being connected to acute angle between straight line is handled does not relate to.
Because restrictions such as cycle of interpolation operation, precision, often there is trueness error in the junction between orbit segment, and namely orbit segment remains surplus at last and can't satisfy the required distance of last interpolation cycle.There is the scholar to pass through to change interpolation cycle according to last surplus, thereby change step-length and make it to arrive last final on trajectory, reach the purpose of evading site error, but owing to need carry out the modification of interpolation cycle, and it is often as system's reference clock, after changing, can cause the change of system time benchmark, have certain immesurable factor.There is the scholar then to connect according to different orbit segments: straight line and straight line, straight line and circular arc, on according to existing forwarding method basis, thereby it is carried out the constraint of error analysis acquisition speed, but be primarily aimed at the error analysis that connects between straight line, too conservative for the error analysis of acute angle connection simultaneously, cause the speed of asking for too small.
Above-mentioned analysis mainly is to guarantee to carry out finding the solution according to the switching speed of accuracy constraint under the immovable situation of original movement locus for the processing of switching place as can be known.It is the connection processing method that mainly adopts at present, but mainly be to handle at the connection between the straight-line segment up to now, and for handling straight line and being connected of circular arc shorter mention, while is also comparatively rare for the correlative study that straight line is connected to acute angle, can not carry out deep analysis and research, and often at be that little line segment connects and handles, handle then not necessarily very suitable for the connection of big orbit segment.
Current CNC processing technology, the final movement locus of carrying out mainly is to be made of straight line and circular arc, and a transit point must be arranged between orbit segment, because the factor of operational precision and velocity process, tend to occur the phenomenon that the remaining surplus of orbit segment is not equal to last interpolation cycle required separation distance, the processing of so just need transferring on the basis that guarantees profile errors.By analyzing as can be known, finding the solution with the line style of current orbit segment of transit point is irrelevant, but determined by the line style of next orbit segment.
Summary of the invention
The invention provides a kind of orbit segment switching Processing Algorithm based on trueness error control, purpose be at current mainly be the research handled of the continuous smooth transition switching of mini line segment and for the present situation of the less consideration of other situation, the present invention has elaborated the forward processing method of various orbit segment switching types, and the obtaining of constraint speed that be solved to of profile errors provide foundation, and carried out simulating, verifying.Be more complete with respect to existing algorithm for the analysis of its forward processing method and error.
For achieving the above object, first kind of technical scheme that the present invention adopts is: a kind of orbit segment switching Processing Algorithm based on trueness error control for numerically-controlled machine, comprise workpiece to be processed is placed on the workbench of described numerically-controlled machine, the operate portions of described numerically-controlled machine is carried out process operation to described processing work
The first step: ask transit point
In the interpolation operation of described numerically-controlled machine, the publicity of step pitch is:
ΔL=VT;
In the formula, Δ L represents step pitch; T represents interpolation cycle, and V represents the movement velocity of the operate portions of described numerically-controlled machine;
If arc P SeP EeSome P SeTangent line be P qP SeP sCoordinate be (x s, y s, z s), P SeCoordinate be (x Se, y Se, z Se), P eCoordinate be (x e, y e, z e), P EeCoordinate be (x Eey Ee, z Ee), arc P SeP EeThe coordinate of center of circle O be (x o, y o, z o), arc P SeP EeRadius be R; P wherein s, P Se, P EeCoordinate figure be known, need ask for P now eCoordinate figure, P wherein sP eDistance be Δ L;
One, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are in same space plane;
Expression formula by face can be learnt: when
(x s-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y s-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z s-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (201);
The time, represent that namely described current orbit segment and arc track section are on same plane;
(1) works as P sP SeWith P SeThe angle of O is during greater than 90 °; When the last interpolation cycle of described current orbit segment, the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, need the final position of described last interpolation cycle is transformed in next coupled arc track section, namely with a P sBeing the center of circle, serves as that distance is drawn circle with Δ L, with described arc track section arc P SeP EeThe intersection point that intersects is described transit point P eThen can obtain formula (202) according to geometric relationship:
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (202);
(x e-x O) 2+(y e-y O) 2+(z e-z O) 2=R 2
And some P eIn plane P SeOP EeIn, then get formula (203):
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (203):
Can obtain two groups of solution of equations by finding the solution, again because of described transit point Pe at described arc track section P SeP EeBetween, then also have constraint condition: (x Se-x e) (x e-x Ee)<0, thus unique solution obtained, and then can determine described transit point P eCoordinate figure;
(2) work as P sP SeWith P SeThe angle of O is during less than 90 °, when the last interpolation cycle of described current orbit segment, and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, along track P sP SeExtend to P eMake P sP eLength equal Δ L, described some P eBe transit point; Then can obtain formula (204) according to geometric relationship:
x e - x se x s - x se = y e - y se y s - y se = z e - z se z s - z se
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (204);
Can obtain two groups of solution of equations by finding the solution, satisfy constraint condition simultaneously again: (x e-x o) 2+ (y e-y o) 2+ (z e-z o) 2>R 2Thereby, obtain unique solution, and then can determine described transit point P eCoordinate figure;
Two, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are not in same space plane; Define described current orbit segment P sP SeProjection line at the face at described arc track section place is P S 'P Se
Expression formula by face can be learnt: when
(x s-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y s-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)] (205);
+(z s-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]≠0
The time, represent that namely described current orbit segment and arc track section are on same plane;
(1) works as P S 'P SeWith P SeThe angle of O is during greater than 90 °, the last interpolation cycle of described current orbit segment, the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, need the final position of described last interpolation cycle is transformed in next coupled arc track section, namely with a P sBeing the center of circle, serves as that distance is drawn circle with Δ L, with described arc track section arc P SeP EeThe intersection point that intersects is described transit point P eThen can obtain formula (206) according to geometric relationship:
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2
(x e-x O) 2+(y e-y O) 2+(z e-z O) 2=R 2 (206);
And some P eIn plane P SeOP EeIn, then get formula (207):
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (207);
Can obtain two groups of solution of equations by finding the solution, again because of described transit point P eAt described arc track section P SeP EeBetween, then also have constraint condition: (x Se-x e) (x e-x Ee)<0, thus unique solution obtained, and then can determine described transit point P eCoordinate figure;
(2) work as P S 'P SeWith P SeThe angle of O is during less than 90 °, when the last interpolation cycle of described current orbit segment, and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, along P S 'P SeExtend to P eMake P S 'P eLength equal Δ L, described some P eBe transit point;
Straight line P sP SeVector be:
n=(x s-x se,y s-y se,z s-z se)=(M,N,P) (208);
The equation on the plane at described arc track section place is:
(x-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (209);
Abbreviation is:
AX+By+Cz+D=0 (210);
The normal line vector on the plane at described arc track section place is:
m=(A,B,C) (211);
Described straight line P sP SeAngle with the plane at described arc track section place
Figure BSA00000868392300041
For:
Figure BSA00000868392300042
If through a P s, P Se, P eThe plane, and it is perpendicular to the plane at described arc track section place, then its plane equation is:
(x-x se)(BP-NC)+(y-y se)(-AP+MC)
+(z-z se)(AN-MB)=0 (213);
Described through a P s, P Se, P eThe normal on plane be:
P n=(U,V,W) (214);
Abbreviation is:
Ux+Vy+Wz+E=0 (215);
Can obtain according to geometric relationship:
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (216);
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (217);
Ux e+Vy e+Wz e+E=0 (218);
(x e-x se)(BP-NC)-(y e-y se)(-AP+MC)
+(z e-z se)(AN-MB)=0 (219);
Can obtain two groups of solution of equations by solving simultaneous equation, satisfy constraint condition: min[(x simultaneously again e-x Se) 2+ (y e-y Se) 2+ (z e-z Se) 2], thereby obtain unique solution, and then can determine described transit point P eCoordinate figure;
Second step: switching error analysis
One, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are in same space plane;
(1) ∠ P sP Se0>90 °
Arc P SeP eWith respect to arc P SeP Ee, its length is short, and it is equal to line segment P SeP eLength
(1) as ∠ P sP SeP q∈ [0 ° 90 °] namely is equivalent to described current orbit segment P sP SeWith described line segment P SeP eBetween velocity angle α when being acute angle,
The last interpolated point P of described current orbit segment sWith described transit point P eBetween distance, delta L be:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 220 ) ;
The last interpolated point P of described current orbit segment sAnd P SeBetween distance, delta L 1For:
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 221 ) ;
The cosine of described angle α:
cos α = ( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 222 ) ;
According to the cosine law as can be known:
cos α = ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 223 ) :
And then obtain:
ΔL 2 = ΔL 1 cos ( π - α ) + ΔL 1 2 cos ( π - α ) 2 - ( ΔL 1 2 - Δ L 2 ) - - - ( 224 ) :
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 225 ) :
Bring the calculated value of formula (220), formula (221), formula (222), formula (223) and formula (224) into described error formula (225) simultaneously; According to described error formula (225) as can be known, error only with Δ L 1, Δ L is relevant with angle α; That is: when
Figure BSA00000868392300066
The time, along with Δ L 1Increase and error increases, when The time, then along with Δ L 1The increase error reduce;
(2) as ∠ P sP SeP q∈ [90 ° 180 °],
1, as described current orbit segment P sP SeWith described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 226 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 227 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 228 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 229 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 230 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 234 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 235 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
2, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (236);
3, as described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 237 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 238 ) ;
Error formula is:
e=ΔL 1 (239);
(2) ∠ P sP Se0<90 °
As ∠ P sOP Ee〉=∠ P SeOP EeThe time, ∠ P then sP SeP q∈ [0 ° 90 °]
Described transit point P eTo described arc track section P SeP EeThe distance and described arc P of center of circle O SeP Ee'sThe difference of radius is namely:
e = ( x e - x O ) 2 + ( y e - y O ) 2 + ( z e - z O ) 2 - R - - - ( 240 )
As ∠ P sOP Ee<∠ P SeOP EeThe time, ∠ P then sP SeP q∈ [90 ° 180 °], error formula is:
e=ΔL-ΔL 1 (241);
Two, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are not in same space plane;
(1) ∠ P s' P Se0>90 °
Arc P SeP eWith respect to arc P SeP Ee, its length is short, and it is equal to line segment P SeP eLength
(1) as ∠ P s' P SeP q∈ [0 ° 90 °], namely be equivalent to described current orbit segment P sP SeWith described line segment P SeP eBetween velocity angle α when being acute angle,
The last interpolated point P of described current orbit segment sWith described transit point P eBetween distance, delta L be:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 242 ) ;
The last interpolated point P of described current orbit segment sAnd P SeBetween distance, delta L 1For:
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 243 ) ;
The cosine of described angle α:
cos α = ( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 244 ) ;
According to the cosine law as can be known:
cos α = ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 245 ) :
And then obtain:
ΔL 2 = Δ L 1 cos ( π - α ) + ΔL 1 2 cos ( π - α ) 2 - ( ΔL 1 2 - Δ L 2 ) - - - ( 246 ) :
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 247 ) :
Bring the calculated value of formula (242), formula (243), formula (244), formula (245) and formula (246) into described error formula (247) simultaneously; According to described error formula (247) as can be known, error only with Δ L 1, Δ L is relevant with angle α; That is: when
Figure BSA00000868392300093
The time, along with Δ L 1Increase and error increases, when
Figure BSA00000868392300094
The time, then along with Δ L 1The increase error reduce;
(2) as ∠ P s' P SeP q∈ [90 ° 180 °],
1, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 248 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 249 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 250 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 251 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 252 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 253 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 254 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
2, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (255);
3, as described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 256 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 257 ) ;
Error formula is:
e=ΔL 1 (258);
(2) ∠ P s' P Se0<90 °
(1) as ∠ P s' P Sep q∈ [0 ° 90 °], there are two kinds in error:
e 1 = ( x e - x O ) 2 + ( y e - y O ) 2 + ( z e - z O ) 2 - R - - - ( 259 )
e 2As follows:
1, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 260 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 261 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 262 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 263 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 264 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 265 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 266 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
2, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (267);
3, as described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 268 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 269 ) ;
Error formula is:
e=ΔL 1 (270);
Then obtain max (e 1e 2);
(1) as ∠ P s' P SeP q∈ [90 ° 180 °], there are two kinds in error:
e 1 = ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 271 )
e 2As follows:
1, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ l]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 272 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 273 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 274 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 275 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 276 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 277 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 278 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
2, as described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is: e=Δ L 1(279);
3, as described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 280 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 281 ) ;
Error formula is: e=Δ L 1(282);
Then obtain max (e 1e 2);
(3) when the plane perpendicular to described arc track section place, the plane at described current orbit segment place, then: Δ L 1=Δ L (283).
Description of drawings
Accompanying drawing 1 is that current orbit segment is connected with straight line;
Accompanying drawing 2 is that current orbit segment is connected (on a plane) and angle greater than 90 ° with circular arc;
Accompanying drawing 3 is that current orbit segment is connected (on a plane) and angle less than 90 ° with circular arc;
Accompanying drawing 4 is that current orbit segment is connected (not on a plane) and angle greater than 90 ° with circular arc;
Accompanying drawing 5 is that current orbit segment is connected (not on a plane) and angle greater than 90 ° with circular arc;
Accompanying drawing 6 is the three-dimensional switching method synoptic diagram that prolongs;
Accompanying drawing 7 is connected with straight-line segment and the error analysis of velocity angle when being acute angle;
Graph of errors when accompanying drawing 8 different residue interpolation surpluses and angle;
When accompanying drawing 9 velocity angles are 60 °, the error curve diagram of different residue interpolation surpluses;
Accompanying drawing 10 is connected with straight-line segment and the error analysis of velocity angle when being the obtuse angle;
Graph of errors when accompanying drawing 11 different residue interpolation surpluses and angle;
Accompanying drawing 12 orbit segment angles are [45 ° 90 °], and surplus is less than Δ L 1Error analysis during ctg α;
Error analysis when accompanying drawing 13 orbit segment angles are [0 ° 45 °];
Accompanying drawing 14 ∠ p sP SeSwitching error analysis in the time of 0>90 °;
Accompanying drawing 15 ∠ P sP SeSwitching error analysis in the time of 0<90 °;
Accompanying drawing 16 current orbit segments be connected with circular arc and angle greater than 90 ° error analysis;
Accompanying drawing 17 current orbit segments be connected with circular arc and angle less than 90 ° error analysis;
Accompanying drawing 18 forwarding method plane errors are analyzed;
Accompanying drawing 19 processing work X-Y schemes;
Accompanying drawing 20B point transit point track.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described:
Embodiment: a kind of orbit segment switching Processing Algorithm based on trueness error control for numerically-controlled machine
Current orbit segment can be divided into two classes with being connected of next orbit segment: 1, link to each other with straight-line segment; 2, link to each other with arc section.
When namely linking to each other with straight line for first kind of situation, as the current orbit segment of Fig. 1 with shown in straight line is connected, in interpolation operation, thus because interpolation cycle has determined that with the movement velocity combination distance of walking is step pitch Δ L=VT at every turn, T represents interpolation cycle, and V represents movement velocity.Because it is the phenomenon of its integral multiple that interpolation cycle and the actual distance that will walk of present segment often might occur non-, so can appear at last interpolation cycle of current orbit segment the time, P sP SeDistance situation less than Δ L might appear.Under these circumstances, if do not change direction but carry out moving interpolation according to the working direction of theory, then can arrive P E1Thereby, produced and cut, and this situation is absolute prohibition.Its disposal route is to guarantee under the prerequisite of machining precision, and the final position of this interpolation cycle is transformed in the coupled next line segment, namely with P sBe the center of circle, Δ L is distance, draws circular arc, with line segment P SeP EeJoining P eFluctuation can not occur with regard to assurance speed like this, make it smooth variation, improve actual travelling speed and the efficient of processing.But but can be owing to not arriving theoretical terminal point P SeThereby generation error.
Obtaining of transit point:
Current orbit segment links to each other with circular arc
1, two orbit segments are in the same space plane
Expression formula by face can be learnt: when
(x s-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y s-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)] (2-3)
+(z s-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0
The time, expression circular arc and current orbit segment are on the same plane, because the singularity of circular arc, when two orbit segments are in meeting in the same plane, according to working as orbit segment P shown in Figure 2 sP SeWith P SeThere are following two kinds of connected modes in the angle relation of O, and corresponding forward processing method also is different.
Situation 1: as shown in Figure 2: ∠ OP SeP q=90 ° (2-4)
Be line segment P qP SeTangent with circular arc, then as orbit segment P sP SeWith P SeThe O angle is during greater than 90 ° (concrete determination methods see below 3.2.2 trifle described), as orbit segment P sP SeThe remaining distance of last interpolation cycle is Δ L 1, if carry out moving interpolation along its former direction, then reach P Le, can produce and cut, therefore with p sBeing the center of circle, is radius with Δ L, intersects at P with circular arc e
Obtaining of transit point position: P sets up an office s, P Se, P e, P Ee, the coordinate of O is as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e), (x Ee, y Ee, z Ee), (x o, y o, z o), arc radius is R, according to relevant geometric relationship as can be known:
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (2-5)
(x e-x O) 2+(y e-y O) 2+(z e-z O) 2=R 2
And some P eIn plane P SeOP EeIn, then:
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z xe-z o)] (2-6)
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0
Find the solution this quadratic equation group and can obtain P eCoordinate figure x E1, y E1, z E1, x E2, y E2, z E2, simultaneously again owing to will satisfy:
(x se-x e)(x e-x ee)<0 (2-7)
So can obtain unique solution.
Situation 2: as shown in Figure 3, ∠ P qP SeO=90 ° is line segment P xP SeTangent with circular arc, then as line segment P sP SeWith P SeThe O angle is during less than 90 °, as orbit segment P sP SeThe remaining distance of last interpolation cycle is Δ L 1, if according to the method described above, with P sBeing the center of circle, is radius with Δ L, intersects at P with circular arc Le, then over-cutting can occur, and this is to allow anything but to occur, so should take in this case to carry out moving interpolation along former trajectory direction.
Obtaining of transit point position: P sets up an office s, P Se, P e, P Ee, the coordinate of O is as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e), (x Ee, y Ee, z Ee), (x o, y o, z o), arc radius is R, known P s, P Se, P Ee, the O coordinate figure need be asked for P now e, P wherein sP eDistance known, be set at Δ L, then can learn according to geometric formula
x e - x se x s - x se = y e - y se y s - y se = z e - z se z s - z se - - - ( 2 - 8 )
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2
Separate this quadratic equation group and can obtain P eCoordinate figure x E1, y E1, z E1, x E2, y E2, z E2, satisfy formula (2-9) again simultaneously, so can obtain unique solution.
(x e-x o) 2+(y e-y o) 2+(z e-z o) 2>R 2 (2-9)
2, two orbit segments are not in the same space plane
(x s-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
Namely-(y s-y Se) [(x Se-xo) (z Se-z Ee)-(x Se-x Ee) (z Se-z o)] (2-10)
+(z s-z se)[(z se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]≠0
The time, expression present segment and circular arc be not on same plane, and be similar on same plane to two orbit segments, and it is according to being P according to the projection of present segment on the circular arc plane shown in figure below s' P SeWith P SeO angle relation is divided into two kinds of connected modes.
Situation 1: as shown in Figure 4: ∠ p qP SeO=90 °, i.e. line segment P qP SeTangent with circular arc, the projection of present segment on the circular arc plane is P s' P SeWith p SeThe O angle is during greater than 90 °, current orbit segment P sp SeThe remaining distance of last interpolation cycle is Δ L1, if carry out moving interpolation along rectilinear direction, then reaches P Le, can produce and cut, therefore with p sBeing the center of circle, is radius with Δ L, intersects at P with circular arc eP sets up an office s, p Se, P e, P Ee, the coordinate of O is as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e), (x Ee, y Ee, z Ee), (x o, y o, z o), arc radius is R, known P s, p Se, P Ee, the O coordinate figure need be asked for P now e, P wherein sP eDistance known, be set at
According to relevant geometric relationship as can be known:
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (2-11)
(x e-x O) 2+(y e-y O) 2+(z e-z o) 2=R 2
And some P e, in plane P SeOP EeIn, then
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)] (2-12)
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0
Above-mentioned quadratic equation group found the solution to obtain P eCoordinate figure x E1, y E1, z E1, x E2, y E2, z E2, simultaneously again owing to need to satisfy: (x Se-x e) (x e-x Ee)<0 (2-13);
So can obtain unique solution.
Situation 2: as shown in Figure 5, ∠ P qP SeO=90 °, i.e. line segment p qP SeTangent with circular arc, when the projection P of current orbit segment at arc surface s' P SeWith p SeThe O angle is during less than 90 °, current orbit segment P sP SeThe remaining distance of last interpolation cycle is Δ L 1, if according to the method described above, with P sBeing the center of circle, is radius with Δ L, intersects at P with circular arc Le2, or move along former orbit segment direction, then arrive P Le1, this dual mode all over-cutting can occur, and this allows to occur anything but.Therefore ought should not take above-mentioned switching method in this case.
As shown in Figure 6, this forwarding method be according to current orbit segment with and at circular arc plane projection straight line p s' P SeIn the plane that constitutes, change original direction of motion, make it to arrive p s' P SeExtended line on p SeThe point.
Obtaining of transit point position: P sets up an office s, P Se, P e, P Ee, the coordinate of O is as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e), (x Ee, y Ee, z Ee), (x o, y o, z o), arc radius is R, known P s, P Se, P Ee, the O coordinate figure.
Straight line P sP SeVector:
n=(x s-x se,y s-y se,z s-z se)=(M,N,P) (2-14)
The equation on circular arc plane is:
(x-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)] (2-15)
+(z-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0
Can be reduced to: Ax+By+Cz+D=0 (2-16)
The normal line vector on circular arc plane: m=(A, B, C) (2-17)
Then straight line and circular arc plane included angle:
Figure BSA00000868392300171
If through a P s, P Se, P eThe plane, and it is perpendicular to the circular arc plane, then its plane equation is:
(x-x se)(BP-NC)+(y-y se)(-AP+MC) (2-19)
+(z-z se)(AN-MB)=0
And its normal line vector: P n=(U, V, W) (2-20)
And then be reduced to: Ux+Vy+Wz+E=0 (2-21)
Then as shown in Figure 6:
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)] (2-22)
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (2-23)
Ux e+Vy e+Wz e+E=0 (2-24)
(x e-x se)(BP-NC)-(y e-y se)(-AP+MC) (2-25)
+(z e-z se)(AN-MB)=0
Solving simultaneous equation can obtain P eCoordinate figure x E1, y E1, z E1, x E2, y E2, z E2, simultaneously again owing to require: min[(x e-x Se) 2+ (y e-y Se) 2+ (z e-z Se) 2], so can obtain unique solution.
The analysis of switching Algorithm Error
The switching error analysis that current orbit segment links to each other with straight-line segment
According to the velocity angle of two orbit segments can acute angle, the two kinds of situations in obtuse angle.
The velocity angle is acute angle, namely angle α ∈ as shown in Figure 7 (0 ° 90 °], P s, P Se, P eCoordinate as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e), then
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 2 - 26 )
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 2 - 27 )
Article two, included angle of straight line cosine:
cos α = ( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 2 - 28 )
According to the cosine law as can be known:
cos α = ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 2 - 29 )
And then obtain:
ΔL 2 = ΔL 1 cos ( π - α ) + ΔL 1 2 cos ( π - α ) 2 - ( ΔL 1 2 - Δ L 2 ) - - - ( 2 - 30 )
As shown in Figure 7, its error is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 2 - 31 )
Bring following formula into error formula simultaneously.Have this to learn, error only with Δ L 1, Δ L, relevant with two sections path velocity vector angle α.
As can be seen from Figure 8, along with the increase of angle, error increases, simultaneously Δ L 1With the ratio of Δ L not simultaneously, its amplification curve also is different.By analyzing as can be known, when
Figure BSA00000868392300187
The time, along with Δ L 1Increase and error increases, when
Figure BSA00000868392300188
The time, then along with Δ L 1The increase error reduce, specifically as shown in Figure 9
Angle α ∈ between two orbit segments [45 ° 90 °], and Δ L 1∈ [ctg α Δ L], P s, P Se, P eCoordinate as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e),
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 2 - 32 )
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 2 - 33 )
Article two, included angle of straight line cosine:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 2 - 34 )
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 2 - 35 )
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 2 - 36 )
Error is as shown in Figure 10:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 2 - 37 )
Can be learnt that by Figure 11 along with the increase of orbit segment angle, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 2 - 38 )
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing.As 50 ° the time,
ΔL 1 = ΔL 2 sin α 2 = ΔL 2 sin 50 2 = 1.18 ΔL - - - ( 2 - 39 )
So, have monotone increasing.And during for 70/80 °, because
ΔL 1 = ΔL 2 sin α 2 = ΔL 2 sin 70 2 = 0.8717 ΔL > ΔLctgα = 0.3640 ΔL - - - ( 2 - 40 )
ΔL 1 = ΔL 2 sin α 2 = ΔL 2 sin 80 2 = 0.7779 ΔL > ΔLctgα = 0 . 1763 ΔL - - - ( 2 - 41 )
Has maximum value.
Angle α ∈ between 2 o'clock [45 ° 90 °], and Δ l 1∈ [0ctg α],
If P s, P Se, P eCoordinate as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e), error is as shown in Figure 12:
e=ΔL 1 (2-42)
Angle α ∈ between 2 o'clock (0 ° 45 °]
If P s, P Se, P eCoordinate as follows: (x s, y s, z s), (x Se, y Se, z Se), (x e, y e, z e),
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 2 - 43 )
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 2 - 44 )
Error is as shown in Figure 13:
e=ΔL 1 (2-45)
For the acute angle switching, change owing to have bigger vector acceleration, should guarantee that motor is in its acceleration range, otherwise can exceed the ability of motor self, cause bigger trajectory error.Simultaneously because the existence of its switching line segment, make not so little, relatively large of acute angle, so guarantee the workpiece of wedge angle for needs, this algorithm is inapplicable.
The switching error analysis that current orbit segment links to each other with circular arc
1, present segment and circular arc are on same plane
∠ P sP Se0>90 ° is the left side of tangent line
It is consistent that error analysis and line segment directly connect, its angular range [0 ° 180 °].
As shown in Figure 14: because the value of its line segment is smaller for circle, can wait be all with circular arc general.So, under these circumstances, as ∠ P sp SeP qDuring ∈ [0 ° 90 °], it can be equal to next orbit segment is straight-line segment, and the angle of velocity is the situation of acute angle.Then find the solution can be identical with it for error.
As ∠ P sP SeP qDuring ∈ [90 ° 180 °], its error is found the solution, and can be equal to next orbit segment be straight-line segment, and the angle of its velocity is the situation at obtuse angle.Specific algorithm can be with reference to above.
∠ P sP SeP qThe judgement of corner dimension can be according to ∠ P sOP EeWith ∠ P SeOP EeSize draw, as ∠ P sOP Ee≤ ∠ P SeOP EeThe time, then represent ∠ P sP SeP q∈ [90 ° 180 °], otherwise ∠ P then sP SeP q∈ [0 ° 90 °].
∠ P sP Se0<90 ° is the right side of tangent line
Angular range [0 ° 180 °].As ∠ P sOP Ee〉=∠ P SeOP EeThe time, then represent ∠ P sP SeP q∈ [0 ° 90 °]
Can know its error by inference by Figure 15 is: actual interpolated point to the difference of the distance in the center of circle and arc radius namely:
e = ( x e - x O ) 2 + ( y e - y O ) 2 + ( z e - z O ) 2 - R - - - ( 2 - 46 )
As ∠ P sOP Ee<∠ P SeOP EeThe time, then represent ∠ P sP SeP q∈ [90 ° 180 °]
Can know its error by inference by figure is distance between actual interpolated point and the present segment theoretical end point, that is:
e=ΔL-ΔL 1 (2-47)
2, current orbit segment and circular arc be not in same plane
Current orbit segment is connected with circular arc and angle is ∠ P greater than 90 ° s' P Se0>90 °
Then connect between error analysis and the line segment consistent, angular range [0 ° 180 °].
Since its line segment with respect to the circle for, very little, can wait be all with circular arc general, so, under these circumstances, ∠ P s' P SeP qThe angular range determination methods is with identical when the same plane, namely according to ∠ P s' OP EeWith ∠ P SeOP EeMagnitude relationship judge and to obtain.
As ∠ P s' P SeP q∈ [0 ° 90 °], then can be equal to next orbit segment is that straight-line segment and both velocity angles are the situation of acute angle, its error can be obtained according to the computing method of above introducing.
As ∠ P s' P SeP q∈ [90 ° 180 °], then can be equal to next orbit segment is that straight-line segment and both velocity angles are the situation at obtuse angle, its error can be obtained according to the computing method of above introducing.
Current orbit segment is connected with circular arc and angle is ∠ P less than 90 ° s' P Se0<90 °, angular range [0 ° 180 °].When its projection line and tangent line angle are that [0 ° 90 °] are ∠ P s' P SeP q∈ [0 ° 90 °].
As ∠ P s' P SeP q∈ [0 ° 90 °], as Figure 17, Figure 18 as can be known, this forwarding method produces error and has two kinds, a, on the circular arc plane, actual interpolated point and the center of circle directly apart from the difference of arc radius.B, owing to be the forwarding method that the solid that adopts prolongs, rather than directly along the direction of present segment, certain included angle is arranged, its value size and Δ L, Δ L 1, Relevant, and the variation of this angle should be in the allowed band of motor self.
Finding the solution for situation a of error is
e 1 = ( x e - x O ) 2 + ( y e - y O ) 2 + ( z e - z O ) 2 - R - - - ( 2 - 48 )
And for situation b, then ask for e according to the content of trifle above 2, being equivalent to next orbit segment is straight line, and the situation of angle when being the obtuse angle, then obtains max (e 1e 2).
When its projection line and tangent line angle are that [90 ° 180 °] are ∠ P s' P SeP q∈ [90 ° 180 °].
As above two figure as can be known, this forwarding method produces error and has two kinds, a, on the circular arc plane, error between actual interpolated point and the mathematical point is the distance between Pe and the Pse, b, owing to be that the solid that adopts prolongs, rather than directly along the direction of present segment, certain included angle is arranged, value size and Δ L, Δ L 1, Relevant, and the variation of this angle should be in the allowed band of motor self.
Finding the solution for situation a of error is
e 1 = ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 2 - 49 )
And for b, then ask for e according to the content of trifle above 2, then obtain max (e 1e 2).
∠ P s' P SeP qThe judgement of corner dimension can be according to ∠ P s' OP EeWith ∠ P SeOP EeSize draw, as ∠ P s' OP Ee<∠ P SeOP EeThe time, then represent ∠ P s' P SeP q∈ [90 ° 180 °], otherwise ∠ P then s' P SeP q∈ [0 ° 90 °].
Also has a limiting case simultaneously: when the plane of present segment perpendicular to the circular arc place, then in this case, can only carry out forced deceleration, thereby make Δ L 1=Δ L (2-50)
The processing checking
Following Figure 19 is equipped with the workpiece drawing of processing above the 8-axes 5-linkage digital control system TDNC-H8 of independent research for the five-axis machine tool TDNC-W200 in seminar, it is to be made of jointly circular arc, straight line, the algorithm that article is set forth is processed checking in the TDNC-H8 of independent research Five Axis CNC System, its interpolation cycle is 2ms, and permissible error is 3 μ m.Material Processing is: the 6082-T651 aluminium sheet.Process tool is: ADL aluminum end milling cutter, 55 ° of helix angles, 3 swords, the place of production: Taiwan.Specification: φ 3.0X9CX10DX80L-3F.The correlation parameter of processing: speed of feed: 25mm/s, the speed of mainshaft: 1500r/min, cutting depth: 1mm.Shown in following two forms of each key point coordinate and radius parameter:
Table 2-1 processing work key point parameter
Figure BSA00000868392300221
Table 2-2 processing work correlation parameter
Figure BSA00000868392300222
Its theoretical error at each point, substantial measurement errors (error is the numerical value of the influence acquisition that the removal tool radius causes when measuring herein, the point of a knife locus of points error when namely carrying out dry running by the measurement cutter) and switching speed are shown in following table 2-3.Wherein A is initial and terminating point.
Table 2-3 transit point error
Be example with the B point, its concrete synoptic diagram is: its angle is less than 45 °, so error: e=L1=2.8 μ m, L=5.96 μ m, switching key point B1, B, shown in the following form of B2 three point coordinate values:
Table 2-4P BPoint transit point coordinate
Figure 20 is B point transit point track
As can be known from the results, the application of this algorithm can obtain than higher in the past switching precision and switching speed.
Beneficial effect: the two kinds of forward processing methods and the error condition that connect, be connected with circular arc at current orbit segment and straight line elaborate and analyze: for the error of the switching processing of the straight-line segment different error of its generation and the variation relations of interpolation surplus and angle analyzed according to its velocity angle.For whether calculating then proposition foundation on same plane with forward processing method and the error of circular arc, set forth with circular arc tangential line angle two aspects.More complete for the analysis of its forward processing method and error with respect to existing document.And because detailed more and deep for various transit case analyses, thereby can obtain than higher in the past switching precision and switching speed.
Above-described embodiment only is explanation technical conceive of the present invention and characteristics, and its purpose is to allow the personage who is familiar with this technology can understand content of the present invention and enforcement according to this, can not limit protection scope of the present invention with this.All equivalences that spirit essence is done according to the present invention change or modify, and all should be encompassed within protection scope of the present invention.

Claims (1)

1. orbit segment switching Processing Algorithm based on trueness error control that is used for numerically-controlled machine, comprise workpiece to be processed is placed on the workbench of described numerically-controlled machine, the operate portions of described numerically-controlled machine is carried out process operation to described processing work, it is characterized in that:
The first step: ask transit point
In the interpolation operation of described numerically-controlled machine, the publicity of step pitch is:
ΔL=VT;
In the formula, Δ L represents step pitch; T represents interpolation cycle, and V represents the movement velocity of the operate portions of described numerically-controlled machine;
If arc P SeP EeSome P SeTangent line be P qP SeThe coordinate of Ps is (x s, y s, z s), P SeCoordinate be (x Se, y Se, z Se), P eCoordinate be (x e, y e, z e), P EeCoordinate be (x Ee, y Ee, z Ee), arc P SeP EeThe coordinate of center of circle O be (x o, y o, z o), arc P SeP EeRadius be R; P wherein s, P Se, P EeCoordinate figure be known, need ask for P now eCoordinate figure, P wherein sP eDistance be Δ L;
One, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are in same space plane;
Expression formula by face can be learnt: when
(x s-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y s-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z s-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (201);
The time, represent that namely described current orbit segment and arc track section are on same plane;
(1) works as P sP SeWith P SeThe angle of O is during greater than 90 °; When the last interpolation cycle of described current orbit segment, the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, need the final position of described last interpolation cycle is transformed in next coupled arc track section, namely with a P sBeing the center of circle, serves as that distance is drawn circle with Δ L, with described arc track section arc P SeP EeThe intersection point that intersects is described transit point Pe; Then can obtain formula (202) according to geometric relationship:
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (202);
(x e-x O) 2+(y e-y O) 2+(z e-z O) 2=R 2
And some Pe is in plane P SeOP SeIn, then get formula (203):
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (203):
Can obtain two groups of solution of equations by finding the solution, again because of described transit point P eAt described arc track section P SeP EeBetween, then also have constraint condition: (x Se-x e) (x e-x Ee)<0, thus unique solution obtained, and then can determine the coordinate figure of described transit point Pe;
(2) work as P sP SeWith P SeThe angle of O is during less than 90 °, when the last interpolation cycle of described current orbit segment, and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, along track P sP SeExtend to P eMake P sP eLength equal Δ L, described some P eBe transit point; Then can obtain formula (204) according to geometric relationship:
x e - x se x s - x se = y e - y se y s - y se = z e - z se z s - z se
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (204);
Can obtain two groups of solution of equations by finding the solution, satisfy constraint condition simultaneously again: (x e-x o) 2+ (y e-y o) 2+ (z e-z o) 2>R 2Thereby, obtain unique solution, and then can determine described transit point P eCoordinate figure;
Two, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are not in same space plane; Define described current orbit segment P sP SeProjection line at the face at described arc track section place is P S 'P Se
Expression formula by face can be learnt: when
(x s-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y s-y se)[(z se-x o)(z se-z ee)-(x se-x ee)(z se-z o)] (205);
+(z s-z se)[(x se-x o)(y se-y ee)-(z se-x ee)(y se-y o)]≠0
The time, represent that namely described current orbit segment and arc track section are on same plane;
(1) works as P S 'P SeWith P SeThe angle of O is during greater than 90 °, the last interpolation cycle of described current orbit segment, the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, need the final position of described last interpolation cycle is transformed in next coupled arc track section, namely with a P sBeing the center of circle, serves as that distance is drawn circle with Δ L, with described arc track section arc P SeP EeThe intersection point that intersects is described transit point P eThen can obtain formula (206) according to geometric relationship:
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2
(x e-x O) 2+(y e-y O) 2+(z e-z O) 2=R 2 (206);
And some P eIn plane P SeOP EeIn, then get formula (207):
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (207);
Can obtain two groups of solution of equations by finding the solution, again because of described transit point P eAt described arc track section P SeP EeBetween, then also have constraint condition: (x Se-x e) (x e-x Ee)<0, thus unique solution obtained, and then can determine described transit point P eCoordinate figure;
(2) work as P S 'P SeWith P SeThe angle of O is during less than 90 °, when the last interpolation cycle of described current orbit segment, and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1Less than Δ L, along P S 'P SeExtend to P eMake P S 'P eLength equal Δ L, described some P eBe transit point;
Straight line P sP SeVector be:
n=(x s-x se,y s-y se,z s-z se)=(M,N,P) (208);
The equation on the plane at described arc track section place is:
(x-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z-z se)[(x se-x o)(y se-y ee)-(z se-x ee)(y se-y o)]=0 (209);
Abbreviation is:
Ax+By+Cz+D=0 (210);
The normal line vector on the plane at described arc track section place is:
m=(A,B,C) (211);
Described straight line P sP SeAngle with the plane at described arc track section place
Figure FSA00000868392200031
For:
Figure FSA00000868392200032
If through a P s, P Se, P eThe plane, and it is perpendicular to the plane at described arc track section place, then its plane equation is:
(x-x se)(BP-NC)+(y-y se)(-AP+MC)
+(z-z se)(AN-MB)=0 (213);
Described through a P s, P Se, P eThe normal on plane be:
P n=(U,V,W) (214);
Abbreviation is:
Ux+Vy+Wz+E=0 (215);
Can obtain according to geometric relationship:
(x e-x se)[(y se-y o)(z se-z ee)-(y se-y ee)(z se-z o)]
-(y e-y se)[(x se-x o)(z se-z ee)-(x se-x ee)(z se-z o)]
+(z e-z se)[(x se-x o)(y se-y ee)-(x se-x ee)(y se-y o)]=0 (216);
(x e-x s) 2+(y e-y s) 2+(z e-z s) 2=ΔL 2 (217);
Ux e+Vy e+Wz e+E=0 (218);
(x e-x se)(BP-NC)-(y e-y se)(-AP+MC)
+(z e-z se)(AN-MB)=0 (219);
Can obtain two groups of solution of equations by solving simultaneous equation, satisfy constraint condition: min[(x simultaneously again e-x Se) 2+ (y e-y Se) 2+ (z e-z Se) 2], thereby obtain unique solution, and then can determine described transit point P eCoordinate figure;
Second step: switching error analysis
One, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are in same space plane;
(1) ∠ P sP Se0>90 °
Arc P SeP eWith respect to arc P SeP Ee, its length is short, and it is equal to line segment P SeP eLength
(1) as ∠ P sP SeP q∈ [0 ° 90 °] namely is equivalent to described current orbit segment P sP SeWith described line segment P SeP eBetween velocity angle α when being acute angle,
The last interpolated point P of described current orbit segment sWith described transit point P eBetween distance, delta L be:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 220 ) ;
The last interpolated point P of described current orbit segment sAnd P SeBetween distance, delta L 1For:
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 221 ) ;
The cosine of described angle α:
cos α = ( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 222 ) ;
According to the cosine law as can be known:
cos α = ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 223 ) :
And then obtain:
ΔL 2 = ΔL 1 cos ( π - α ) + ΔL 1 2 cos ( π - α ) 2 - ( ΔL 1 2 - Δ L 2 ) - - - ( 224 ) :
Error formula is:
e = ΔL 1 Δ L 2 sin α ΔL - - - ( 225 ) :
Bring the calculated value of formula (220), formula (221), formula (222), formula (223) and formula (224) into described error formula (225) simultaneously; According to described error formula (225) as can be known, error only with Δ L 1, Δ L is relevant with angle α; That is: when The time, along with Δ L 1Increase and error increases, when
Figure FSA00000868392200053
The time, then along with Δ L 1The increase error reduce;
(2) as ∠ P sP SeP q∈ [90 ° 180 °],
Figure FSA00000868392200054
As described current orbit segment P sP SeWith described line segment P SeP eBetween angle a ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 226 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 227 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 228 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 229 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 230 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 234 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 235 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
Figure FSA00000868392200062
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (236);
As described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 237 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 238 ) ;
Error formula is:
e=ΔL 1 (239);
(2) ∠ P sP Se0<90 °
As ∠ P sOp Ee〉=∠ P SeOP EeThe time, ∠ P then sP SeP q∈ [0 ° 90 °]
Described transit point P eTo described arc track section P SeP EeThe distance and described arc P of center of circle O SeP Ee'sThe difference of radius is namely:
e = ( x e - x O ) 2 + ( y e - y O ) 2 + ( z e - z O ) 2 - R - - - ( 240 )
As ∠ P sOP Ee<∠ P SeOP EeThe time, ∠ P then sP SeP q∈ [90 ° 180 °], error formula is:
e=ΔL-ΔL 1 (241);
Two, be connected with an arc track section when described current orbit segment, and described current orbit segment and arc track section are not in same space plane;
(1) ∠ P S 'P Se0>90 °
Arc P SeP eWith respect to arc P SeP Ee, its length is short, and it is equal to line segment P SeP eLength
(1) as ∠ P s' P SeP q∈ [0 ° 90 °], namely be equivalent to described current orbit segment P sP SeWith described line segment P SeP eBetween velocity angle α when being acute angle,
The last interpolated point P of described current orbit segment sWith described transit point P eBetween distance, delta L be:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 242 ) ;
The last interpolated point P of described current orbit segment sAnd P SeBetween distance, delta l 1For:
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 243 ) ;
The cosine of described angle α:
cos α = ( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 244 ) ;
According to the cosine law as can be known:
cos α = ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 245 ) :
And then obtain:
ΔL 2 = Δ L 1 cos ( π - α ) + ΔL 1 2 cos ( π - α ) 2 - ( ΔL 1 2 - Δ L 2 ) - - - ( 246 ) :
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 247 ) :
Bring the calculated value of formula (242), formula (243), formula (244), formula (245) and formula (246) into described error formula (247) simultaneously; According to described error formula (247) as can be known, error only with Δ l 1, Δ L is relevant with angle α; That is: when
Figure FSA00000868392200077
The time, along with Δ L 1Increase and error increases, when
Figure FSA00000868392200078
The time, then along with Δ L 1The increase error reduce;
(2) as ∠ P S 'P SeP q∈ [90 ° 180 °],
Figure FSA00000868392200079
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 248 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 249 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 250 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 251 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 252 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 253 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 254 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
Figure FSA00000868392200088
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (255);
Figure FSA00000868392200089
As described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 256 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 257 ) ;
Error formula is:
e=ΔL 1 (258);
(2) ∠ P S 'P Se0<90 °
(1) as ∠ P S 'P SeP q∈ [0 ° 90 °], there are two kinds in error:
e 1 = ( x e - x O ) 2 + ( y e - y O ) 2 + ( z e - z O ) 2 - R - - - ( 259 )
e 2As follows:
Figure FSA00000868392200092
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 260 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 261 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 262 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 263 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 264 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 265 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 266 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
Figure FSA00000868392200101
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point p SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (267);
Figure FSA00000868392200102
As described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 268 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 269 ) ;
Error formula is:
e=ΔL 1 (270);
Then obtain max (e 1e 2);
(1) as ∠ P S 'P SeP q∈ [90 ° 180 °], there are two kinds in error:
e 1 = ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 271 )
e 2As follows:
Figure FSA00000868392200106
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [ctg α Δ L]:
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 272 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 273 ) ;
The cosine of described angle α:
cos ( π - α ) =
( x se - x s ) · ( x e - x se ) + ( y se - y s ) · ( y e - y se ) + ( z se - z s ) · ( z e - z se ) ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 + ( x e - x se ) 2 + ( y e - y se ) 2 + ( z e - z se ) 2 - - - ( 274 ) ;
Then according to the cosine law as can be known:
cos α = - ΔL 1 2 + ΔL 2 2 - ΔL 2 2 ΔL 1 ΔL 2 - - - ( 275 ) ;
And then obtain:
ΔL 2 = ΔL 1 cos ( α ) + ΔL 1 2 cos ( α ) 2 - ( ΔL 1 2 - ΔL 2 ) - - - ( 276 ) ;
Error formula is:
e = ΔL 1 ΔL 2 sin α ΔL - - - ( 277 ) ;
Along with the increase of angle α, error is reducing, for Δ L 1,
ΔL 1 = ΔL 2 sin α 2 ∈ [ ctgαΔL ] - - - ( 278 ) ;
When its not in this scope, error is along with Δ L 1Increase and have the trend of monotone increasing;
As described current orbit segment and described line segment P SeP eBetween angle α ∈ [45 ° 90 °], and the last interpolated point P of described current orbit segment sWith distal point P SeBetween distance, delta L 1During ∈ [0ctg α],
Error formula is:
e=ΔL 1 (279);
Figure FSA00000868392200115
As described current orbit segment and described line segment P SeP eBetween angle α ∈ (0 ° 45 °],
ΔL = ( x e - x s ) 2 + ( y e - y s ) 2 + ( z e - z s ) 2 - - - ( 280 ) ;
ΔL 1 = ( x se - x s ) 2 + ( y se - y s ) 2 + ( z se - z s ) 2 - - - ( 281 ) ;
Error formula is:
e=ΔL 1 (282);
Then obtain max (e 1e 2);
(3) when the plane perpendicular to described arc track section place, the plane at described current orbit segment place, then:
ΔL 1=ΔL (283)。
CN 201310095678 2013-03-25 2013-03-25 Precision error control based orbit segment transfer processing algorithm for numerical control machine tool Pending CN103268081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310095678 CN103268081A (en) 2013-03-25 2013-03-25 Precision error control based orbit segment transfer processing algorithm for numerical control machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310095678 CN103268081A (en) 2013-03-25 2013-03-25 Precision error control based orbit segment transfer processing algorithm for numerical control machine tool

Publications (1)

Publication Number Publication Date
CN103268081A true CN103268081A (en) 2013-08-28

Family

ID=49011717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310095678 Pending CN103268081A (en) 2013-03-25 2013-03-25 Precision error control based orbit segment transfer processing algorithm for numerical control machine tool

Country Status (1)

Country Link
CN (1) CN103268081A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616849A (en) * 2013-12-06 2014-03-05 北京配天大富精密机械有限公司 Tool path planning method and device and workpiece machining method and device
WO2017113416A1 (en) * 2015-12-31 2017-07-06 深圳配天智能技术研究院有限公司 Smooth transition method for processing trajectories and processing device
CN106959663A (en) * 2016-01-11 2017-07-18 上海铼钠克数控科技股份有限公司 The paths planning method and device of angle motion
CN107463149A (en) * 2017-06-20 2017-12-12 成都飞机工业(集团)有限责任公司 Numerical control cutting sharpener rail data corner decision method
CN107544430A (en) * 2017-09-20 2018-01-05 华中科技大学 A kind of profile errors evaluation method of three axis numerically controlled machine
CN107806825A (en) * 2017-09-29 2018-03-16 西安交通大学 The line lathe space geometry error measure discrimination method of three face five based on plane grating
CN107966953A (en) * 2017-11-24 2018-04-27 上海维宏电子科技股份有限公司 For the method for line segment processing of turning back in numerical control processing track
CN109602076A (en) * 2018-11-14 2019-04-12 湖南大学 A kind of loudspeaker nozzle based on the wide optimization of knife and cutter movement interference bypassing method
CN109634219A (en) * 2018-12-24 2019-04-16 杭州澳星科技有限公司 A kind of plane double shaft collaboration cutting method of effective protection motor
CN110488758A (en) * 2019-08-09 2019-11-22 南京埃斯顿自动化股份有限公司 A kind of track transition method based on PLCopen specification
TWI744880B (en) * 2019-05-13 2021-11-01 日商芝浦機械股份有限公司 Computer program, method of processing workpiece using computer program, and processing device of workpiece using computer program

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616849B (en) * 2013-12-06 2018-10-09 北京配天技术有限公司 A kind of cutter path planing method, device, Work piece processing method, device
WO2015081892A1 (en) * 2013-12-06 2015-06-11 北京配天技术有限公司 Method and device for planning cutter path, and method and device for machining workpiece
CN103616849A (en) * 2013-12-06 2014-03-05 北京配天大富精密机械有限公司 Tool path planning method and device and workpiece machining method and device
US10133260B2 (en) 2013-12-06 2018-11-20 Shenzhen A&E Intelligent Technology Institute Co., Ltd. Methods and apparatuses for cutter path planning and for workpiece machining
WO2017113416A1 (en) * 2015-12-31 2017-07-06 深圳配天智能技术研究院有限公司 Smooth transition method for processing trajectories and processing device
CN106959663A (en) * 2016-01-11 2017-07-18 上海铼钠克数控科技股份有限公司 The paths planning method and device of angle motion
CN106959663B (en) * 2016-01-11 2019-03-12 上海铼钠克数控科技股份有限公司 The paths planning method and device of angle movement
CN107463149A (en) * 2017-06-20 2017-12-12 成都飞机工业(集团)有限责任公司 Numerical control cutting sharpener rail data corner decision method
CN107544430A (en) * 2017-09-20 2018-01-05 华中科技大学 A kind of profile errors evaluation method of three axis numerically controlled machine
CN107544430B (en) * 2017-09-20 2020-02-14 华中科技大学 Contour error estimation method of three-axis numerical control machine tool
CN107806825A (en) * 2017-09-29 2018-03-16 西安交通大学 The line lathe space geometry error measure discrimination method of three face five based on plane grating
CN107806825B (en) * 2017-09-29 2019-04-09 西安交通大学 Three faces, five line lathe space geometry error measure discrimination method based on plane grating
CN107966953A (en) * 2017-11-24 2018-04-27 上海维宏电子科技股份有限公司 For the method for line segment processing of turning back in numerical control processing track
CN107966953B (en) * 2017-11-24 2020-04-03 上海维宏电子科技股份有限公司 Method for processing turn-back line segment in numerical control machining track
CN109602076A (en) * 2018-11-14 2019-04-12 湖南大学 A kind of loudspeaker nozzle based on the wide optimization of knife and cutter movement interference bypassing method
CN109634219A (en) * 2018-12-24 2019-04-16 杭州澳星科技有限公司 A kind of plane double shaft collaboration cutting method of effective protection motor
TWI744880B (en) * 2019-05-13 2021-11-01 日商芝浦機械股份有限公司 Computer program, method of processing workpiece using computer program, and processing device of workpiece using computer program
CN110488758A (en) * 2019-08-09 2019-11-22 南京埃斯顿自动化股份有限公司 A kind of track transition method based on PLCopen specification

Similar Documents

Publication Publication Date Title
CN103268081A (en) Precision error control based orbit segment transfer processing algorithm for numerical control machine tool
CN109702567A (en) A kind of grinding track method for solving of radius end mill Circular Nose Cutting Edge rake face
TWI453078B (en) A five axis flank milling system for machining curved surface and a toolpath planning method thereof
CN104102171A (en) Ball-end cutter multi-axis machining cutter axis vector optimization method
Fromentin et al. Geometrical analysis of thread milling—part 2: calculation of uncut chip thickness
CN104007696B (en) Aircraft structural component cavity complex corner residual region tool path generation method
CN104462775B (en) A kind of Five-axis NC Machining Center Milling Force computational methods
CN109909806A (en) A kind of method of hoisting machine people milling stable region
CN104731014A (en) Oval vibration auxiliary cutting micro-groove feature modeling method
CN102222138B (en) Method for obtaining shortest lines based on section line division of curved surface
CN103279066A (en) Track section adapting processing algorithm for numerically controlled machine tool on basis of precision error control
CN102629120B (en) Nonlinear error processing method for using angle head toolholder to carry out numerical control processing
Sun et al. A new plunge milling tool path generation method for radial depth control using medial axis transform
CN108255134A (en) A kind of difficult-to-machine material high-speed turning prediction of Turning Force with Artificial method for considering chamfered edge geometry
Hu et al. Research on curved surface forming of nomex honeycomb material based on ultrasonic NC cutting
Sun et al. Improving cutter life and cutting efficiency of five-axis plunge milling by simulation and tool path regeneration
CN103454977B (en) The straight burr system of aircraft structure curved surface in small, broken bits
CN109828529B (en) Method for realizing saw blade elliptical cutting control in numerical control system and corresponding system
CN105759717A (en) Cutter path overcut prevention method used for five-axis numerical control processing
Rauch et al. Rough pocket milling with trochoidal and plunging strategies
Dong et al. A novel approach to modeling of multi-axis plunge milling and its application on the simulation of complex part plunging
CN107831731A (en) A kind of outer turning NC milling knife rail optimization method of die cavity of cutting forces simulation pre-adaptation
CN102621934A (en) Method for machining negative angle profiles on three-axis numerical control machine tool by utilizing T-shaped cutter
CN106650012B (en) A kind of blade contact method of discrimination of square end mill five-axis robot
CN102566508B (en) Method for computing tool track touch line in numerical control machining of plane contour of aircraft complicated structure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130828