喜歡就充值下載吧。。。資源目錄里展示的全都有,,下載后全都有請(qǐng)放心下載,原稿可自行編輯修改=====================【QQ:1304139763可咨詢交流】喜歡就充值下載吧。。
喜歡就充值下載吧。。。資源目錄里展示的全都有,,下載后全都有請(qǐng)放心下載,原稿可自行編輯修改=====================【QQ:1304139763可咨詢交流】喜歡就充值下載吧。。
喜歡就充值下載吧。。。資源目錄里展示的全都有,,下載后全都有請(qǐng)放心下載,原稿可自行編輯修改=====================【QQ:1304139763可咨詢交流】喜歡就充值下載吧。。
Description and Smoothing of NC Motion Path Based on the Cubic Trigonometric Interpolation spline Jianming Tao1,a , Aiping Song 1,b and Danping Yi 1,c 1College of Mechanical Engineering, Yangzhou University, Yangzhou 225127, China , , Keywords: Spline Curve; Interpolation; Adjustable Shape; Trajectory Description; Smooth Path Abstract. In order to better describe the complex motion path of NC machining and realize the smooth transition between path segments, a kind of cubic trigonometric interpolation spline curve was put forward based on a set of special basis function. The spline curve which with adjustable shape satisfies the 1C continuity and it can accurately describe some common engineering curves such as straight line, circular arc and free curve. According to the given information of control points, different shapes of interpolation spline curve can be gotten by changing the adjustment coefficients. Through selecting proper control points and shape adjustment coefficients near the corner, insert the spline curve can realize the smooth transition at the corner of adjacent NC motion path segments, which can ensure the stability of motion path and the continuous of feed speed. Meanwhile, it also can reduce the impact to NC machine. Introduction High-speed NC machining is the important way to improve efficiency and quality of parts machining. During the high-speed operation process of machine tool, it needs to ensure the stability of machine tool movements to avoid generating larger impacts which will affect the quality of parts machining, meanwhile to protect the machine tool feeding system 1. In actual machining process, NC motion paths often consist of a number of straight lines and circular arcs. At present, to deal with the speed at the corner of adjacent NC machining path segments, the main method is to slow down the speed to zero at the end of the current processing segment, and then accelerate to command speed in the starting position of the next processing segment. Using this way to get through each corner with zero speed can avoid larger impacts to NC machine. However, this way will cause frequent start and stop of speed during the machining process, and it will seriously affect the improvement of parts machining efficiency 2. Therefore, it needs to study new motion control method at the corner, which can make the transfer speed does not drop to zero, and reach the purpose of realizing the high-speed smooth transition between two adjacent path segments. Thus to improve the machining efficiency and limit the impact loads. In dealing with the speed at the corner of adjacent machining path segments, literatures 3,4 proposed to add circular arc or quadratic curve for corner transition, in order to make the speed does not drop to zero. To a certain extent, this method improved the machining efficiency and reduced the impacts to machine tools. But it lacks the control of acceleration and the error control is not strict; when the corner is larger, the improvement of transfer speed will be limited, so this method does not well meet the needs of high-speed machining. Literature 5 put forward a speed control method with look-ahead; this method limited the impacts formed by the change of velocity vector at the corner; through the limited speed dropping at the corner to pursue the maximum machining efficiency. But it needs a large amount of pre-computation and it requires higher numerical control system. Literature 6 proposed a vector method to realize the smooth transition between two path segments. Through the anticipatory analysis of the motion parameters, this method can improve the transfer speed when the corner is larger; but when the corner is smaller, the transfer speed is still not smooth enough. Applied Mechanics and Materials Vols. 365-366 (2013) pp 515-521 Online available since 2013/Aug/16 at (2013) Trans Tech Publications, Switzerland doi:10.4028/ All rights reserved. No part of contents of this paper may be reproduced or transmitted in any form or by any means without the written permission of TTP, . (ID: 58.241.131.203, Yangzhou University, Yangzhou, China-27/02/14,06:23:35) On the basis of cubic Hermite interpolation function7,8, this paper puts forward a kind of adjustable shape cubic trigonometric polynomial interpolation spline curve, which can be used to describe the NC machining paths, such as straight line, circular arc and free curve segments, and it has properties of simple calculation, flexible structure, etc. The spline can also be used to describe the smooth transition curves at the corner and realize the high-speed smooth transition between NC machining path segments, which meets the needs of modern numerical control system for high-speed, stability and flexibility. Cubic Trigonometric Interpolation Spline Curve Basis Function of Spline. For any given value of variables and k , parameter u satisfies 0 1u ; the following formula is called a set of cubic trigonometric spline basis function. ( ) ( ) ( ) ( ) ( ) ( ) ( ) 3 3 2 0,3 3 3 2 1,3 3 3 2 2,3 3,3 2 2 2 2 2( ) (1 ) ( ) (1 ) 2 2 2 2 2 2 2 2( ) 1 (1 ) (1 ) 1 ( 1) 1 1 1 2 2 2 2 2 2 2 2( ) 1 1 1 ( B u C S S S B u k C k S k S C k S k B u k k C k k S S k C kS k B = + + + = + + + + + + + + + + + = + + + + + + 3 3 22 2 2 2)u kC k S k S kC = + + (1) In formula: S is stand for ( )sin 2u , C is stand for ( )cos 2u . Interpolation Spline Curve. Suppose that the group of given control points are iq ( 0,1, ni = , ), then the spline curve segments can be defined as: ( ) ( )3 ,3 0 i i j j j P u q B u+ = = , 0 1u , 0,1, 3i n= , . (2) The curve ( )P u which is composed of all small curve segments ( )iP u is called the cubic trigonometric interpolation spline curve. From expression (2), it is easy to know that the whole curve ( )P u formed by 2n segments of small curves. To number i segment curve ( )iP u exists: ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 1 2 1 1 2 1 3 2 0 , 0 1 , 1 i i i i i i i i i i i i i i P q P q q k q q P q P q q k q q + + + + + + + + = = = = . (3) And to number 1i + segment curve ( )1iP u+ exists: ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 1 1 1 2 1 3 2 1 2 1 3 2 4 3 0 , 0 1 , 1 i i i i i i i i i i i i i i P q P q q k q q P q P q q k q q + + + + + + + + + + + + + + = = = = . (4) Comparing formula (3) with (4), it can be obviously found that the adjacent curves ( )iP u and ( )1iP u+ have the following connections: ( ) ( ) ( ) ( ) ( ) ( ) 1 1 1 2 1 3 2 1 0 1 0 i i i i i i i i i P P q P P q q k q q + + + + + + + = = = = . (5) According to formulas (3), (4) and (5), a theorem can be gotten, that is the spline curve ( )P u interpolates the group of given control points from 0q to 2nq and it also satisfies 1C continuity. Spread out the spline curve expression (2) into a polynomial form, then can get: 516 Machine Design and Manufacturing Engineering II ( ) 3 3 2 3 3 2 1 3 2 2 2 2 2 2(1 ) ( ) (1 ) 2 2 2 2 2 2 2 2( 1) (1 ) (1 ) ( 1) ( 1) ( 1) ( 1) 1 2 2 2 2( 1) ( i i i u C S S S k C k S k S C k S k k k C k k + + = + + + + + + + + + + + + + + + + + + + P q q q 3 2 3 3 2 3 2 2 2 21) ( 1) 2 2 2 2 i S S k C kS k kC k S k S kC + + + + + + + q ; (6) 3 3 2 3 3 2 1 3 2 2 2 2 2 2(1 ) ( ) (1 ) 2 2 2 2 2 2 2 2( 1) (1 ) (1 ) ( 1) ( 1) ( 1) ( 1) 1 2 2 2 2( 1) ( 1) i i i X x C S S S x k C k S k S C k S k x k k C k k + + = + + + + + + + + + + + + + + + + + + + 3 2 3 3 2 3 3 3 2 3 3 2 1 2 2 2 2( 1) 2 2 2 2 2 2 2 2 2(1 ) ( ) (1 ) 2 2 2 2 2 2( 1) (1 ) (1 ) ( 1) ( 1) i i i S S k C kS k x kC k S k S kC Y y C S S S y k C k S k S C + + + + + + + + = + + + + + + + + + + + + 3 3 2 2 3 3 2 3 2 2( 1) ( 1) 1 2 2 2 2 2 2 2 2( 1) ( 1) ( 1) 2 2 2 2 i i k S k y k k C k k S S k C kS k y kC k S k S kC + + + + + + + + + + + + + + + . (7) In formulas (7) and (8): S is stand for ( )sin 2u , C is stand for ( )cos 2u , 0 1u . (a) (b) Fig. 1 Adjustable shape interpolation spline curve From above can know, any four given control points completely determine a segment of adjustable shape cubic trigonometric interpolation spline curve. The curve interpolates the first two control points, and the latter two control points are used to calculate the endpoint slopes of the curve segment. Setting iq , 1iq + , 2iq + , 3iq + respectively as A , B , C , D four assured points, adopting AutoLISP programming in the AutoCAD can draw a segment of adjustable shape cubic trigonometric interpolation spline curve, as shown in Fig. 1. Changing the value of and k can realize the shape adjustment of the curve segment. The four curves in Fig. 1(a) respectively corresponding to the spline curve segments when k takes a certain value of 0.5, 0 = , 0.5, 1 and 1.5; while the four curves in Fig. 1(b) respectively corresponding to the spline curve segments when takes a certain value of 1, 0.3k = , 0.5, 0.6 and 0.7. Fig. 2 Ring interpolation spline Fig. 3 Straight line interpolation spline Furthermore, ring form interpolation spline curve can be generated when the control points are reused. As shown in Fig. 2, when the control points sequence is (B, B, C , D), i.e. point B is reused, then through programming can generate the ring spline curve segments. The three ring curves in Fig. Applied Mechanics and Materials Vols. 365-366 517 2 respectively corresponding to the spline curve segments when k takes a certain value of 1 , 1 = , 0, and 1. Keeping the three points A, B, C locate in one straight line, then the starting point vector of the ring spline is in the same direction with AB , and the end point vector is in the same direction with BD. This feature can be well used to deal with the corner smooth transition between adjacent path segments in NC machining. Engineering Application of the Cubic Trigonometric Interpolation Spline Curve Compared with the traditional Ferguson curve, Bezier curve and B-spline curve, the adjustable shape cubic trigonometric interpolation spline curve has better properties. It not only has the properties of interpolation and shape adjustable, but also because the expression of the spline curve contains trigonometric polynomial, by choosing proper control points and shape adjustment coefficients, the spline curve can accurately describe the common engineering curves such as straight line, circular arc and free curve, etc. Therefore, the spline curve can be used to describe the complex NC motion paths; meanwhile, through selecting proper control points near the corner of adjacent machining path segments and shape adjustment coefficients, it can generate the ring form or circular arc spline curve which can realize the high-speed smooth transition around the corner. Straight Line Description of NC Motion Path. Suppose the two endpoints of a line segment are B and C , taking the four control points as sequence as (B,C ,B,C ), then a straight line from B to C can be constructed as shown in Fig. 3. Analyze formula (7), when 2 2 i i i i x x y y + + = = , 3 1 3 1 i i i i x x y y + + + + = = , 0 = and 1k = , formula (7) turns into the linear parameter equation: ( ) ( ) 3 1 1 3 1 1 i i i i i i X x x C x Y y y C y + + + + = + = + . (8) In formula: C is stand for ( )cos 2u , 0 1u . Circular Arc Description of NC Motion Path. Using the spline curve by taking four special control points and shape adjustment coefficients can accurately describe the circular arc. Suppose the two endpoints of a circular arc segment are A and B, taking four continuous control points as ( ),0A a , ( )0,B a , ( ), 2C a a and ( )2,D a a , shape adjustment coefficients as 1 = , 1k = , then a circular arc from A to B can be constructed. Put the above four control points coordinates and shape adjustment coefficients into formula (7), the parametric equation of circular arc can be gotten: X a C Y a S = = i i . (9) In formula: S is stand for ( )sin 2u , C is stand for ( )cos 2u , 0 1u . Fig. 4 shows the circular arc segment with center angle of 90, which corresponding to the change of parameter u from 0 to 1. When using the spline curve to describe circular arc with center angle less than 90, it can be done through the control of the value of parameter u ; and when to describe circular arc with center angle more than 90, using a few circular arc segments joining together to realize. Free Curve Description of NC Motion Path. Using this cubic trigonometric interpolation spline can easily describe the free curve. From above we know that n given control points can construct 3n segments of spline curves. As shown in Fig. 5, through ( A, B, C , D, E , F , G , H , I , J ) ten control points can generate a segment of free curve which formed by seven segments of small spline curves. And the whole free curve satisfies 1C continuity, which ensures the smoothness of the spline curve. 518 Machine Design and Manufacturing Engineering II Fig. 4 Circular arc interpolation spline Fig. 5 Free curve interpolation spline Planning of NC Motion Path. Fig. 6 shows a part of the current commonly used motion path in NC machining. The moving path of tool center is A B C D . During the motion path, points B and C are sharp turning points. When the corner angle formed by adjacent machining path segments is larger, it will cause oversized changes of movement velocity vector, which will be easier to cause larger impacts to NC machine tools. This phenomenon is especially more obvious under the circumstance of high-speed machining. According to the properties of the spline curve, inserting the spline at the corner of adjacent machining path segments, can generate the trajectories of corner transition and realize the smooth transfer between machining path segments, so as to achieve the purpose of smoothing corner transition speed. Fig. 6 NC motion path before smoothing Fig. 7 NC motion path after smoothing Fig. 7 shows the described NC motion path based on the adjustable sharp cubic trigonometric interpolation spline curve. Among them, points 1C and 2C are the intersections of tool outer contour line with segments BC and CD when the tool center is at point C . Segments AB , 1BC , and 2C D are straight lines, insert a ring form spline transition curve outside the corner point B and circular arc spline transition curve inside the corner point C . Such planned NC machining motion path is smooth, and there is no speed drop and rise during the corner transition, which can guarantee the smooth transfer around the corner, and easy to realize the high-speed smooth machining between NC motion path segments. Smoothing of External Corner. As shown in Fig. 8, in order to smooth transfer the machining segments between ml and nl , a ring form spline curve is inserted at the external corner point B, which is generated by the four control points with sequence as ( B , B , 1B , 2B ) and shape adjustment coefficient as 1k = . Among them, point 1B is on the extension cord of segment ml and point 2B is on the segment nl . Selecting the control points as this way can ensure that the starting point vector of the spline transfer curve is in the same direction with segment ml , and the end point vector is in the same direction with segment nl , which can realize the external corner smooth transition between NC motion path segments. Change the value of shape adjustment coefficient can generate different sizes of spline curves, so through choosing proper value of can control the change of acceleration during the corner movement process. Applied Mechanics and Materials Vols. 365-366 519 Fig. 8 External corner smooth transition Fig. 9 Internal corner smooth transition Smoothing of Internal Corner. As shown in Fig. 9, a circular arc spline curve is inserted at the internal corner point C to smooth transfer the segments between nl and ol . The four continuous control points are ( 1C , 2C , 3C , 4C ) and shape adjustment coefficient 1k = . Among them, points 1C and 2C are the intersections of tool outer contour line with segments nl and ol when the tool center is at point C ; point 3C is on the extension cord of segment nl , point 4C is on the segment ol , and their coordinates are determined by points 1C and 2C . Similarly, the starting point vector of this curve is in the same direction with segment nl and the end point vector is in the same direction with segment ol , which can realize the internal corner smooth transition of NC motion path segments. Change the value of shape adjustment coefficient can change the size of the transfer curves, so through choosing proper value of can control the change of acceleration during the corner movement process, meanwhile, it also can control the machining error. Conclusion This paper gives out a set of special basis function, and the constructed curve based on it is called cubic trigonometric interpolation spline curve which satisfies 1C continuity. The curve has the following advantages: 1) Changing one control point only affects four segment curves which are related to it, and has no effects to other parts of the whole curve, so the curve has good property of locality. 2) Each segment of spline has two shape adjustment coefficients and k , and the shape of the curve can be easily controlled by changing the values of and k , so the curve has the property of shape adjustable. 3) Selecting proper control points and shape adjustment coefficients, the spline can precisely describe some common engineering curves such as straight line, circular arc and free curve, so the spline has the flexibility of curve structuring. 4) The spline using the form of polynomial expression to avoid the rational form, so it needs fewer amounts of calculation and storage space. Therefore, using this spline to describe the complex NC motion paths has obvious advantages, and it also can be used to deal with the corner smooth transition between adjacent NC motion path segments. By inserting the adjustable sharp spline at the corner can easily realize the high-speed smooth transition between NC path segments, which can meet the needs of modern numerical control system for high-speed, stability and flexibility. References 1 Erkorkmaz K, Altinatas Y. High speed CNC system design. Part I: Jerk limited trajectory generation and quintic spline interpolation J. International Journal of Machine Tools and Manufacture, Vol. 41, p. 1323 -1345, 2001. 2 YE Pei-qing, ZHAO Shen-liang. Study on control algorithm for micro-line continuous interpolation J.China Mechanical Engineering, Vol. 15, p. 1354 1356, 2004. (In Chinese) 3 ZHANG De-li, ZHOU Lai-shui. Adaptive Algorithm for Feedrate Smoothing of High Speed Machining J. Acta Aeronautica Et Astronautica Sinica, Vol. 27, p. 125-130, 2006. (In Chinese) 520 Machine Design and Manufacturing Engineering II 4 LV Qiang, ZHANG Hui, YANG Kai-ming, el al. Study on the Method of Increasing Turning Velocity During CNC Continuous MachiningJ. Manufacturing Technology & Machine Tool, Vol. 7, p. 79-83, 2008. (In Chinese) 5 Hu Jun, Xiao Ling-jian, Wang, Yu-han, el a1. An optimal feed rate model and solution algorithm for high speed machine of small line blocks with 1ook-ahead J. International Journal of Advanced Manufacturing Technology, Vol. 28, p. 930-935, 2006. 6 HE Bo, LUO Lei, HU Jun, e