원시데이터 수집 시스템
선정목록으로

A General Direct Arc Interpolation Method

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Zefan Cai — Shunde Polytechnic Foshan, China South China University of Technology Guangzhou, China
  2. Daoping Huang — Automation College South China University of Technology Guangzhou, China
DOI
10.2991/lemcs-15.2015.156
저널
Advances in intelligent systems research/Advances in Intelligent Systems Research
발행년도
2015
발행기관
Atlantis Press
피인용수
0
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.2991/lemcs-15.2015.156
토픽
Tribology and Lubrication Engineering
OpenAlex ID
W1257687406

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
LLM(gemma-4-26b-a4b-it) 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Circular interpolation methods are mostly introduced based on CNC machines, and point by point judgment methods are used to determine the end of the arcs, but these methods are less common and less efficient.This paper introduces a universal direct arc interpolation method.Using this method, all the points on an arc can be conveniently calculated in a time, without continuous judgment in the whole fitting procedure.This method is highly efficient and has no need to worry if the arc can reach the right end.The circular interpolation control method can be applied to CNC systems, such as CNC machine, multi-dof manipulator, etc..

본문 17,056자

본문 펼치기
# A General Direct Arc Interpolation Method Zefan Cai Shunde Polytechnic Foshan, China South China University of Technology Guangzhou, China Email: 12266423@qq.com Abstract—Circular interpolation methods are mostly introduced based on CNC machines, and point by point judgment methods are used to determine the end of the arcs, but these methods are less common and less efficient. This paper introduces a universal direct arc interpolation method. Using this method, all the points on an arc can be conveniently calculated in a time, without continuous judgment in the whole fitting procedure. This method is highly efficient and has no need to worry if the arc can reach the right end. The circular interpolation control method can be applied to CNC systems, such as CNC machine, multi-dof manipulator, etc.. _Keywords-arc; direct interpolation; fitting; normal vector;_ _numerical control technology_ I. INTRODUCTION In the numerical control system, especially in CNC machines system, the interpolation method usually adopts point by point judgment methods.[1-5] In these methods, the circle center is generally considered as the origin of a coordinate system, and the interpolation is processed according to the start point and the end point.[1,2] This method is suitable for the application of CNC machine systems, but not suitable for more general numerical control system, such as multi-dof robot. More general method is to obtain the arc crossing all the three setting points. Reference [6] does not use point by point interpolation method, but only the two dimension situations are discussed, and the arc in different quadrant is obtained independently. Reference [7] and [8] used the sampling circular interpolation method, but it still depends on different quadrants. The interpolation equation of each quadrant is different, and the equation in clockwise and anticlockwise situations is also different, which is inconvenient for programming. In this paper, a simple direct circular interpolation method is introduced, which does not depend on quadrants. All the points can be obtained in a time if three points are known which aren't in a line. The circular interpolation problem based on three points in space is to obtain the arc which will cross all the three setting points (x1, y1,z1), (x2,y2,z2) and (x3,y3,z3). From the mathematical knowledge, it can be known that as long as three points are non collinear and concurrent, in other words, the three points can be the three vertices of a triangle, that the circumcircle of the three points can be determined. After the circumcircle is obtained, the arc is easy to obtain. [9]  _x_ 3  _y_ 1  _z_ 2  _x_ 2  _y_ 3  _z_ 1  _x_ 3  _y_ 2  _z_ 1 . 3 1 2 2 3 1 3 2 1 Daoping Huang Automation College South China University of Technology Guangzhou, China audhuang@scut.edu.cn The method to obtain the circumcircle is to calculate the center and radius first, and then calculate each point on the circle. II. CIRCLE CENTER AND RADIUS If the radius of the circle determined by the three points is r and the center is (x, y, z), the relation between the radium and center is as follow: _r_ 2   _x_ 1  _x_  2   _y_ 1  _y_  2   _z_ 1  _z_  2 . (1) _r_ 2   _x_ 2  _x_  2   _y_ 2  _y_  2   _z_ 2  _z_  2 . (2) _r_ 2   _x_ 3  _x_  2   _y_ 3  _y_  2   _z_ 3  _z_  2 . (3) According to (1) and (2), it can be got  _x_ 2  _x_ 1   2  _y_ 2  _y_ 1   2  _z_ 2  _z_ 1   _x_ 1   2  _y_ 2  _y_ 1   2  _z_ 2  2  _x_ 2  _x_ 1   2  _y_ 2  _y_ 1   2 _x_ 2  _x_ 1   2  _y_ 2  _y_ 1   2  _z_ 2  _z_  _x_ 12  _y_ 12  _z_ 12  _x_ 22  _y_ 22  _z_ 22  0 . (4) Equation (4) can be rewritten as follow 12  _y_ 12  _z_ 12  _x_ 22  _y_ 22  _z_ 22 _x_ 12  _y_ 12  _z_ 12  _x_ 22  _y_ 22  _z_ 0 _A x_ 2  _B_ 2 _y_  _C_ 2 _z_  _D_ 2  0 . (5) According to (1) and (3), it can be got  _x_ 3  _x_ 1   2  _y_ 3  _y_ 1   2  _z_ 3  _z_ 1   _x_ 1   2  _y_ 3  _y_ 1   2  _z_ 3  2  _x_ 3  _x_ 1   2  _y_ 3  _y_ 1   2 _x_ 3  _x_ 1   2  _y_ 3  _y_ 1   2  _z_ 3  _z_  _x_ 12  _y_ 12  _z_ 12  _x_ 32  _y_ 32  _z_ 32  0 . (6) Equation (6) can be rewritten as follow 12  _y_ 12  _z_ 12  _x_ 32  _y_ 32  _z_ 32 _x_ 12  _y_ 12  _z_ 12  _x_ 32  _y_ 32  _z_ 0 _A x_ 3  _B_ 3 _y_  _C_ 3 _z_  _D_ 3  0 . (7) Any three points (x1, y1 , z1), (x2 , y2 , z2) and (x3 , y3 , z3), which aren’t in the same line, can determine a plane, if (x, y, z) is a random point of the plane, then the plane equation is [9] _x_ _y_ _z_ _x_ 1 _y_ 1 _z_ 1 _x_ 2 _y_ 2 _z_ 2 _x_ 3 _y_ 3 _z_ 3 1 1 1 2 _y_ 2 _z_ 2 3 _y_ 3 _z_ 3 1 1  0 1 1  3 3 3 . (8) Equation (8) can be expressed as _A x_ 1  _B y_ 1  _C z_ 1  _D_ 1  0 . (9) where _A_ 1  _y_ 1  _z_ 2  _y_ 1  _z_ 3  _z_ 1  _y_ 2  _z_ 1  _y_ 3  _y_ 2  _z_ 3  _y_ 3  _z_ 2, _B_ 1  _x_ 1  _z_ 2  _x_ 1  _z_ 3  _z_ 1  _x_ 2  _z_ 1  _x_ 3  _x_ 2  _z_ 3  _x_ 3  _z_ 2, _C_ 1  _x_ 1  _y_ 2  _x_ 1  _y_ 3  _y_ 1  _x_ 2  _y_ 1  _x_ 3  _x_ 2  _y_ 3  _x_ 3  _y_ 2,  _x_ 1  _y_ 2  _z_ 3  _x_ 1  _y_ 3  _z_ 2  _x_ 2  _y_ 1  _D_ 1  _x_ 1  _y_ 2  _z_ 3  _x_ 1  _y_ 3  _z_ 2  _x_ 2  _y_ 1  _z_ 3 1 1 2 3 1 3 2 2 1 3 _x_ 3  _y_ 1  _z_ 2  _x_ 2  _y_ 3  _z_ 1  _x_ 3  _y_ 2  _z_ 1 Equation (5), (7) and (9) can be expressed as equation set in matrix manner which is  _A_ 1 _B_ 1 _C_ 1  _x_  _D_ 1   _A_ 2 _B_ 2 _C_ 2  _y_   _D_ 2    _A_ 3 _B_ 3 _C_ 3  _z_  _D_ 3  _A_ 1 _B_ 1 _C_ 1  _x_  _D_ 1 _A_ 2 _B_ 2 _C_ 2  _y_   _D_ 2 _A_ 3 _B_ 3 _C_ 3  _z_  _D_ 3 1 1 1   1 2 _B_ 2 _C_ 2  _y_   _D_ 2 3 _B_ 3 _C_ 3  _z_  _D_ 3 0  3 3 3   3  . (10) The solution of (10) is  _x_ 0   _A_ 1 _B_ 1 _C_ 1   1  _D_ 1   _y_ 0    _A_ 2 _B_ 2 _C_ 2   _D_ 2   _z_ 0   _A_ 3 _B_ 3 _C_ 3   _D_ 3  . (11) (x0,y0,z0) is the center coordinate of the circle. The radius r is 0   _A_ 1 _B_ 1 _C_ 1   1  _D_ 1 0    _A_ 2 _B_ 2 _C_ 2   _D_ 2 0   _A_ 3 _B_ 3 _C_ 3   _D_ 3 _x_ 0   _A_ 1 _B_ 1 _C_ 1   1  _D_ 1 _y_ 0    _A_ 2 _B_ 2 _C_ 2   _D_ 2 _z_ 0   _A_ 3 _B_ 3 _C_ 3   _D_ 3 _r_  <u></u> _x_ 1  _x_ 0 <u></u> 2  <u></u> _y_ 1  _y_ 0 <u></u> 2  <u></u> _z_ 1  _z_ 0 <u></u> 2 . (12) For example, if (x1, y1, z1) = (-1, 2, 3), (x2, y2, z2) = (2, 4, 4) and (x3, y3, z3) = (3, -6, 6), then (x0, y0, z0) = (2.6325, -0.9759, 5.0542) and r = 5.1255. III. CIRCLE FITTING The normal vector n of the plane can be obtained by the plane equation. The vector from (x0,y0,z0) to (x1, y1,z1) can be denoted as V1. Then the vertical vector V2 of vector V1 can be obtained with n and V1. [10] If (x, y, z) is a random point of the circle which needs to be fitted, the vector from (x0,y0,z0) to (x, y, z) is V, and the angle between V and V1 is <sup></sup>, then (x, y, z) is  _x_  _x_ 0   _y_   _y_   cos  _V_  sin  _V_   0  1 2  _z_  _z_   0  . (13)  _x_  _x_ 0   _y_   _y_   cos  _V_  sin  _V_   0  1  _z_  _z_   0  0    cos  _V_  sin  _V_ 0  1 2  _V_  sin  1 0 If <sup></sup> increases from <sup>0</sup> to <sup>360</sup> in a certain increment, such as <sup>0.1</sup>, then a series of points will be obtained. The circle will be fitted by connecting all these points in order. The circle in Fig. 1 is fitted in this way. Figure 1. A circle fitted by three points IV. ARC FITTING When a circle needs to be fitting, it's no need to care about which are the starting point and end point. A circle can be fitted with (13) as long as the variation of <sup></sup> is 360 . But when an arc is fitted, it is very important to find out the starting point and end point. For example, if we want to obtain an arc crossing the three points in Fig. 1, there are three scenarios—1  2  3, 1  3  2 and 2  1  3. For a specific interpolation problem, the order of the three points is clear, put the first point as a starting point, the last point as the end point. In the program, the choice of the starting point is easy, but it is difficult to choose the end point. Fitting accuracy depends on the choice of the end point. Furthermore, if the choice is wrong, it is possibly unable to finish the fitting. There are several methods to determine the end point. Reference [2] introduces three methods to judge the end point. They are distance judging method, angle judging method and matching judging method. All the three methods are point by point judging method. In these methods, the difference between the current point and the end point is calculated continuously during the whole fitting process. It can achieve the final judgment based on the three methods, but the efficiency is very low. Reference [3] studies five methods to determine the end point, respectively, the sign of the difference between the current interpolation point and the end point, distance judging method (a), distance judging method (b), coordinate distance judging method, combination of the distance judging method and the change of sign. Although there are differences in the various methods, but they are still point by point methods. This paper introduces a direct arc interpolation method. Using this method, all the points on an arc can be conveniently calculated in a time, without continuous judgment in the whole fitting process. This method is highly efficient and has no need to worry if the arc interpolation can finish. In order to facilitate the problem, take the unit circle as an example. One of the dimensions is set to 0. The starting point is A = (x1, y1,z1) = (0, 1, 0), the middle point is B = (x2, y2, z2), the ending point is C = (x3, y3, z3) and the circle center is O = (x0,y0,z0) = (0, 0, 0). According to (13), this starting point is on Y-axis, which are shown in Fig. 2 and Fig. 3. Figure 2. Circle crossing three points and sign of angle (1) Figure 3. Circle crossing three points and sign of angle (2) As shown in Fig. 2, the angle between the vector OA and the Y-axis is <sup>0</sup>, the angle between the vector OB and OA is  1,the angle between the vector OA and OC is  2, the sign of the anticlockwise angle is +, while the sign of the clockwise angle is -.  1 is  _x_ _x_  _y_ _y_  _z_ _z_ ##  1 2 1 2 1 2  / 1  arccos  <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u>  _x_  _y_  _z_ _x_  _y_  _z_  1 1 1 2 2 2  _x_ _x_  _y_ _y_  _z_ _z_  ##  1 2 1 2 1 2  /   arccos    <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u>   _x_  _y_  _z_ _x_  _y_  _z_   1 1 1 2 2 2  . (14) _x_ _x_  _y_ _y_  _z_ _z_ 1 2 1 2 1  1  arccos  <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u>  _x_  _y_  _z_ _x_  _y_  _z_ 1 1 1 2 2  2 is  _x_ _x_  _y_ _y_  _z_ _z_ ##  1 3 1 3 1 3  / 2  arccos  <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u>  _x_  _y_  _z_ _x_  _y_  _z_  1 1 1 3 3 3  _x_ _x_  _y_ _y_  _z_ _z_  ##  1 3 1 3 1 3  /   2  arccos  <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u>   _x_  _y_  _z_ _x_  _y_  _z_   1 1 1 3 3 3  . (15) All the position relations of the point B and C are listed in Table 1. TABLE I. T HE POSITION RELATION OF MIDDLE POINT AND END P OINT AND INTERPOLATION RESULT <u>Position of B</u> <u>Position of C</u> <u>Interpolation Result</u> <u>1st quadrant; Front</u> <u>1st quadrant; Back</u> <u>Correct</u> <u>1st quadrant; Back</u> <u>1st quadrant; Front</u> <u>Correct</u> <u>1st quadrant</u> <u>2nd quadrant</u> <u>Correct</u> <u>1st quadrant</u> <u>3rd quadrant</u> <u>Correct</u> <u>1st quadrant</u> <u>4th quadrant</u> <u>Correct</u> <u>2nd quadrant</u> <u>1st quadrant</u> <u>Correct</u> <u>2nd quadrant; Front</u> <u>2nd quadrant; Back</u> <u>Correct</u> <u>2nd quadrant; Back</u> <u>2nd quadrant; Front</u> <u>Correct</u> <u>2nd quadrant</u> <u>3rd quadrant</u> <u>Correct</u> <u>2nd quadrant</u> <u>4th quadrant</u> <u>Correct</u> <u>3rd quadrant</u> <u>1st quadrant</u> <u>Correct</u> <u>3rd quadrant</u> <u>2nd quadrant</u> <u>Correct</u> <u>3rd quadrant; Front</u> <u>3rd quadrant; Back</u> <u>Correct</u> <u>3rd quadrant; Back</u> <u>3rd quadrant; Front</u> <u>Correct</u> <u>3rd quadrant</u> <u>4th quadrant</u> <u>Correct</u> <u>4th quadrant</u> <u>1st quadrant</u> <u>Correct</u> <u>4th quadrant</u> <u>2nd quadrant</u> <u>Correct</u> <u>4th quadrant</u> <u>3rd quadrant</u> <u>Correct</u> <u>4th quadrant; Front</u> <u>4th quadrant; Back</u> <u>Correct</u> <u>4th quadrant; Back</u> <u>4th quadrant; Front</u> <u>Correct</u> <u>When the middle point and the ending point are in the</u> same quadrant, from the starting point, in a anticlockwise direction, the point reached first is defined as the front point and another is defined as the back point. In order to facilitate comparison,  1 and  2 are always set to positive values. When their values are negative, add <sup>360</sup> to the values and make them positive. As shown in Fig. 2 and Fig. 3, when the positions of B and C are different, the interpolating arc is different. In Fig. 2, the interpolating arc is from A to C in anticlockwise direction, while in Fig. 3, the arc is from A to C in clockwise direction. In interpolation, the starting angle is defined as  _s_, its value is M is a random point in the arc. The angle between vector OM and OA is <sup></sup> . When <sup></sup> grows from  _s_ to  _e_ in a certain increment, such as <sup>0.1</sup>, a series of M will be obtained with (13). Then the required arc will be fitted by connecting adjacent points with short lines in order. V. SIMULATION VERIFICATION AND CONCLUSION The method is verified by simulation in MATLAB. The simulation result shows that all the 20 cases listed in Table 1 can be correctly interpolated. Six cases are shown in Fig. 4 to Fig. 9, where “o” represents the starting point, “*” represents the middle point, “+” represents the end point, and the solid line represents the actual fitting arc. From Fig. 4 to Fig. 9, it can be seen that all the fitting arc starts from the starting points, then cross the middle point, and at last reach the end point. Figure 4. Arc Interpolation (a) Arc Interpolation (b) _x_ _x_  _y_ _y_  _z_ _z_ 1 3 1 3 1  2  arccos  <u>2</u> <u>2</u> <u>2</u> <u>2</u> <u>2</u>  _x_  _y_  _z_ _x_  _y_  _z_ 1 1 1 3 3     0, 2 1   360,  2  1 . (16)     0, 2 1  _s_      0, 2 1 _s_   360,  2  1  2  1 the end angle is defined as  _e_, its value is  _e_  2 . (17) Figure 5. Arc Interpolation (c) Figure 6. Arc Interpolation (d) Figure 7. Arc Interpolation (e) Figure 8. Arc Interpolation (f) Through theoretical analysis and simulation verification, it is proved that the circular interpolation method introduced in this paper is effective. It avoids judging the end point continuously in the whole interpolating procedure, and improves the fitting speed. This method can be applied to the circular interpolation in the numerical control system, especially effective in the embedded system. REFERENCE [1] Li Enlin. Principle and application of numerical control technology, National Defence Industry Press, 2006. [2] Lin Benjie, Shi Chuan, Zhang Hui, Ye Peiqing. “Study on Endpoint Discrimination Methods of Circular Interpolation”, Manufacturing Technology & Machine Tool, vol. 4, 2007, pp. 8689. [3] Wang Min. “Research on Comparation between 2 Algorithms of Arc Interpolation & 5 Methods of End-point Discrimination”, Modular Machine Tool & Automatic Manufacturing Technique, vol. 3, 1996, pp. 5-10. [4] Chen Fei. “Discussion on End-point Judgment of Circular Interpolation of Point by Point Comparison Method”, Equipment Manutacturing Technology, vol. 11, 2014, pp. 177, 178, 188. [5] Wang Wenxi. “Research on End-point Judgment of Point-by-point Interpolation”, Journal of Qingdao University, vol. 12(1), 1999, pp. 86-90. [6] Shuai Qi. “Circular and Elliptical Interpolation Algorithm Based on Least Deviation of the Interpolation Function”, Science & Technology Vision, 2014, pp. 237, 267. [7] Zhou Hui. “The new calculation way on circular interpolation of the data sampling kind method”, Modular Machine Tool & Automatic Manufacturing Technique, vol. 2, 2004, pp. 38, 39, 42. [8] Li Li, Feng Zhiyong. “Improvement &Realization of the Circle Interpolation Algorithm in CNC System”, Modular Machine Tool & Automatic Manufacturing Technique, vol. 11, 2014, pp. 177, 178, 188. [9] Department of Applied Mathematics of Tongji University. Linear algebra, Higher Education Press, 2003. [10] Mei Li. “Plane equation of two intersecting lines generated in space”, Journal of Nanyang Teachers College, vol. 12(12), 2013, pp. 16-19.

섹션 본문

섹션 본문이 없습니다.

참고문헌 3건

  1. The new calculation way on circular interpolation of the data sampling kind method Modular Machine Tool & Automatic Manufacturing Technique · Chinese Mechanical Engineering Society · 2004
  2. Improvement &Realization of the Circle Interpolation Algorithm in CNC System Modular Machine Tool & Automatic Manufacturing Technique · Chinese Mechanical Engineering Society · 2009
  3. Study on End-point Discrimination Methods of Circular Interpolation Manufacturing Technology & Machine Tool · Chinese Mechanical Engineering Society · 2007