I. Introduction
Mastercam is a software that is widely used for modeling and CAM machining of complex shape parts. It can generate accurate and reliable tool paths according to the built model, and then output different machine tools through the post processing of different control systems selected. NC machining program. The software offers a wide range of post-processing programs that cover almost all major CNC machine tools (or control systems). Since there are many versions of the control system of the CNC machine tool, the NC program generated by the post-processing program provided by the direct application software generally has to undergo a simple modification before it can be put into production. Although the workload of each change is not large, it seems to be long Very cumbersome and error prone. After the author's research, it is found that the post-processing program can be solved once and for all, so that the generated NC program can conform to its own programming habits.
Conversion of two MAHO machining centers and Mastercam software coordinate system
A model MAHO machining center is a five-coordinate vertical conversion type. The default is horizontal. The coordinate system is shown in Figure 1:
When using horizontal machining, the spindle is parallel to the Z-axis direction. When vertical machining is used, the spindle is parallel to the Y-axis direction. Mastercam uses MPMAHOXY.pst to post the NC program under the G17 plane, and uses MPMAHOXZ.pst to post the NC program under the G18 plane. The master plane's tool plane in the 3D machining view defaults to the TOP plane, and Figure 1 The G17 horizontal machining coordinate system is consistent, so the coordinate system of the horizontal NC machining program under G17 generated by MPMAHOXY.pst as the post-processing program has not changed, the program is relatively correct, and almost no modification is required. The coordinate system of the vertical NC machining program under G18 generated by using MPMAHOXZ.pst as a post-processing program has changed and cannot be directly used for production, and some modifications are required.
After research, it is found that MPMAHOXZ.pst still uses the model and tool path in the G17 plane state during the processing of the NC program, but the setting of the coordinate axis is changed when the NC program is generated. The change process is shown in Fig. 2. The first step: rotate the entire coordinate system and the workpiece around the X axis by -90 degrees; the second step: swap the Y and Z coordinate values, and the X coordinate value changes direction (the NC program does this completely conforms to the Cartesian coordinate system). At this point, you can see that the current coordinate system is opposite to the X and Z coordinates of the G18 vertical machining plane, so it cannot be used directly for production. In the case of not modifying the post-processing program, there are two ways to modify the NC program for processing: the first method is to add the coordinate system rotation command G93 B4=180 to the program, that is, rotate the entire coordinate system around the current Y-axis 180. The second method is to use the mirror processing command G73 X-1 Z-1 to change the X and Z coordinate values ​​in the NC program. Although this can achieve the purpose of processing, the operator's response is not intuitive, because the direction of the tool in the command is opposite to the actual direction of the tool, which brings visual error to the operator. Therefore, it is necessary to correct the post processing of the vertical processing.
Correction of coordinate transformation in three MPMAHOXZ.pst post-processing program
According to the above analysis, we can achieve our goal by correcting some of the statements in the post-processing program MPMAHOXZ.pst. In order to meet the uniformity of the coordinate system after the vertical milling G17 model, we can also complete it in two steps. One step: rotate the entire coordinate system and the workpiece around the X axis by -90 degrees (the same as the first step in Figure 2); the second step: change Z to Y, Y becomes the negative direction of Z, and the X coordinate value remains unchanged. (See Figure 1 for the vertical G18 plane).
Next page
Holiday Outdoor String Light set is waterproof and durable. Can be used in any season and many applications such as wedding, party, garden etc. We have different wire model and Replacement Bulb type to choose.
Decorative string lights are not just for holidays anymore . Instantly transform indoor and outdoor spaces with a wide selection of covers and finishes that match current trends and personal tastes and expressions.
Celebrate any season ,event or inspired whim with a charming new set of outdoor string lights!
Battery Christmas Lights,Christmas String Lights,Led Outdoor Christmas Lights ,Christmas Fairy Lights
DONGGUAN JIANXING LIGHTING ELECTRIC APPLIANCES CO., LTD , https://www.rslightstring.com