# Most popular automatic programming of EDM milling

2022-09-26
• Detail

Automatic programming system of EDM milling based on graphic exchange file

the flow chart of interface program is shown in Figure 1. 2 automatic discrimination of machining direction after obtaining the geometric information of the part, the tool path can be generated by compensating the tool radius (cylindrical tool). During tool radius compensation, the offset direction of the tool center is determined by the internal and external characteristics of the contour and the machining direction (the rotation direction of the machining closed loop). The internal and external characteristics of the contour are set during machining, and the machining direction must be determined according to the contour map and the tool feeding direction. Therefore, the discrimination of machining direction is the basis of solving tool compensation. The part contour is generally composed of straight lines and arcs, so we discuss the calculation of tool path of plane contour composed of these two graphics. Treat each side of the polygon as a vector, the vector direction is the cutting direction, and each vector is connected in turn according to the cutting order. As shown in Figure 1, m1m2, M7M8, m8m1. The arc contour takes the line between the starting point and the end point. The arrow in the figure indicates the tool travel direction. For the figure shown in Figure 2 (a), all points are convex points, and the discrimination method is relatively simple. By judging the cross product of two adjacent vectors at any vertex, the rotation direction of the machining closed loop can be determined. It is specified that the counterclockwise rotation of the processing closed loop is positive, and the clockwise rotation is negative. Then when the cross product of two vectors is positive, the processing direction goes counterclockwise; otherwise, it goes clockwise. However, for the contour shown in Fig. 2 (b), this method will not work. We designed the following two discrimination methods. The vertex rotation direction accumulation judgment method defines the vertex rotation direction as the cross product direction of two vectors adjacent to the vertex. For any plane figure, the processing direction is related to the rotation direction of each vertex, and N and K are material constants representing deformation strengthening. If the number of vertices with positive rotation direction is more than the number of vertices with negative rotation direction, the machining direction is positive; otherwise, it is negative. It can be verified that this method is effective for any plane graphics. However, when the number of vertices is large, the amount of computation is large. The pole discrimination method defines the pole of the polygon as the vertex with the smallest X coordinate. The closed-loop direction of machining can be obtained by judging the rotation direction of poles. Specifically, first, select poles and two adjacent vectors in the double linked list (if there are multiple poles, choose any one), and calculate their cross product. If the cross product is positive, the processing direction is positive (counterclockwise); otherwise, the processing direction is negative (clockwise). The pole discrimination method has nothing to do with the number of multilateral vertices, so the amount of calculation is small. 3 Calculation of tool path according to the machining direction judged above, the tool path can be calculated. Let the tool radius be DR and the unilateral discharge gap be D, then the offset of the tool center b=d+r

straight line contour arc contour for straight line contour, it is necessary to translate the straight line along the normal direction of the cutting direction by a distance B. given the points a (XA, ya) and B (XB, Yb) at both ends of the straight line, the straight line equation y=kx+c

after translation, the straight line equation is y=kx+c', C' can be calculated by the following formula

in which the positive and negative signs are selected according to the machining direction and the internal and external characteristics of the contour. Let the angle between the vector and the X axis be a, and table 1 shows the values in different cases. The compensation of arc contour is simpler than that of straight line, which only involves the increase or decrease of arc radius R. First, judge the direction of the arc. From the DXF file, we can obtain the coordinates of the starting and ending points of the arc, the radius of the arc, and the starting and ending angles. In this way, we can obtain the tangent vector at the starting and ending points of the arc. The cross product of the starting and ending tangent vectors determines the direction of the arc. The rule of judgment is: cross product is sure to maintain our impact machine well Positive, inverse circle: cross product is negative, and it is clockwise. After determining the arc direction, use table 2 to compensate the tool trajectory. After processing, it completes the automatic compensation of collision tool trajectory through information and wisdom. However, when two entities intersect to form sharp corners, it is also necessary to transition the sharp corners to avoid the interference of tools at the sharp corners or the discontinuity of tool tracks. We use the method of arc transition to pretreat the sharp corners, which solves this problem. According to the final tool path, the NC code can be generated after post-processing. Conclusion the DXF file output from AutoCAD provides a basis for cad/cam integration of EDM milling. According to the DXF file structure, this paper develops the interface software to extract entity information, and puts forward two methods to distinguish the machining direction. They can effectively judge the choice of halogen-free flame-retardant materials to reduce the odor of the air in the car and the rotation direction of the plane figure. According to the internal and external characteristics of the machining direction and contour, the tool path can be calculated. This lays the foundation for the generation of the final NC code. Using the method described in this paper, the tool trajectory can be obtained quickly and reliably. However, the tool path obtained according to the method in this paper is a theoretical path, and the tool loss in the machining process is not considered. In order to realize the integration of cad/cam in EDM milling and achieve better process effect, we also need to solve the problem of dynamic compensation of tool loss in the machining process

Related Topics