Figure 1 DXF file interface program flow diagram
(a)
(b)
Table 2 Compensating parts of circular arc contour Tool Arc direction Tool path Arc radius Inner contour Circumference rb Inverse r+b Outer contour Cylindrical r+b Inverse rb Linear contour For linear contours The direction of the direction of the normal translation distance b, the known line ends A (xa, ya), B (xb, yb), available linear equation y = kx + c where k = yb-ya, c = xbya-xayb Xb-xa xb-xa The linear equation after translation is y=kx+c', c' can be calculated by the following formula: c'=cf(1+k2)? (1) The sign is based on the inside and outside of the machining direction and contour. Features to choose. Let the angle between the vector and the X axis be a, and Table 1 is the value under different conditions. Arc contour contour compensation is simpler than a straight line and only involves the increase or decrease of the arc radius r. The first thing to do is to determine the arc direction. From the DXF file we can obtain the starting and ending coordinates of the arc, the radius of the arc, and the starting and ending angles, so that the tangents at the starting and ending points of the arc can be obtained. The cross-product of the starting and ending tangent vectors is determined The direction of the arc. The judgment rule is: the cross product is positive, and the reverse circle: the cross product is negative and smooth. After determining the arc direction, use Table 2 to perform tool path compensation. After processing, the tool trajectory is automatically compensated. However, when the two entities intersect to form a sharp corner, it is necessary to perform transition processing on the sharp corner to avoid the interference generated by the tool at the corner or the discontinuity of the tool path. We used the arc transition method to pretreat the sharp corners and solved this problem. According to the final tool trajectory, after the post-processing can generate NC code. 4 Conclusion DXF files exported by AutoCAD provide the foundation for CAD/CAM integration of EDM milling. Based on the DXF file structure, this paper develops the interface software for extracting entity information, and proposes two methods to determine the processing direction. Both of them can effectively judge the rotation of the plane figure. According to the machining direction and the inside and outside characteristics of the contour, the tool trajectory can be calculated. This lays the foundation for the generation of the final numerical control code. Using the method described in this article, tool trajectories can be quickly and reliably obtained. However, the tool trajectory obtained in accordance with this method is a theoretical trajectory and does not consider the loss of the tool during machining. To realize the integration of CAD/CAM for EDM milling and achieve better process results, the dynamic compensation of tool wear in the machining process must also be resolved.
3D Printing Auto Production Line
3D Printing Auto Production Line,3D Printed Solid Sand Mold,Resin Sand Molds For Casting,Small Build Volume 3D Printer
Guangdong Fenghua Zhuoli Technology Co., Ltd , https://www.fhzl3dprinter.com