[0020] Unigraphics NX (UG software for short) is an interactive CAD/CAM/CAE/PDM (computer-aided design, auxiliary manufacturing, auxiliary engineering, product data management) that is applied on the PC side and proposes a good solution for virtual product design and process design. )Software system. In this embodiment, UG software is used as the CAD platform, and VS2015 (the internal compiler is Microsoft Visual studio 2010) integrated environment is used. Under the Windows 7 operating system, the UG function and NXOpenC++ library are compiled to generate a DLL (dynamic link library) through VS2015. After being called by the UG software, the code for the automatic forming of the trimming block is generated for processing on the trimming block manufacturing machine tool. The generation process of the code for the automatic shaping of the trimming block is as follows:
[0021] First, after getting the product 3D drawing given by the customer, import the 3D drawing into the UG software to read the casting model. Then, the engineer can use the UG software to read the casting model where it is necessary to remove the excess boundary material. On the horizontal plane, draw a line along the contour of the casting model, that is, the horizontal trimming line drawn on the casting model, so as to input the trimming shape information required by the engineer into the UG software. Then the engineer enters the type of cutter block that the engineer wants to generate into the UG software. The cutter block types are divided into three categories: one is the upper die block, which is used to make a linear cutting motion on the top of the casting vertically; The film knife block is cushioned at the bottom of the casting, and its contact surface with the bottom of the casting is a horizontal plane, and is provided with a gap corresponding to the upper mold knife block, so that the upper mold knife block can be embedded in the ordinary lower film knife block when cutting downwards. ; The third is the oblique punching film cutter block. The function and shape of the oblique punching film cutter block are basically the same as the ordinary film cutter block. The only difference is that the contact surface between the oblique punching film cutter block and the bottom of the casting is an irregular surface. Diagonal punching film cutter blocks are often used to cushion under certain castings with protruding bottoms.
[0022] After the trimming line and tool block type input by the engineer are obtained by the UG software, the UG software first selects which side of the trimming line to use the auxiliary line to connect the two ends of the trimming line to form a closure in the horizontal direction according to the type of the tool block Curve to obtain the horizontal shape of the trimming cutter block, and then move the closed curve in the vertical direction to form a block blank, and set the block blank close to the end face of the casting model according to the type of the block. Make the blank body of the knife block into shape. After forming, it is necessary to set the blade edge of the blank body. On the blank body, select the side wall with the trimming line as the boundary to process the blade edge of the blade block. The traditional setting carries on the default parameter setting in preparation for generating CNC code.
[0023] Specifically, if the type of cutter block is the upper mold block, since the upper mold block moves vertically downwards on the top of the casting, the UG software uses the auxiliary line away from the casting model to trim the edge line in the horizontal direction. The two ends are connected to automatically form a closed curve, and then move the closed curve upwards in the vertical direction by the offset distance preset by the engineer to obtain the moving trajectory of the closed curve, and the three-dimensional space enclosed by the closed curve and the moving trajectory It is defined as the blank of the cutter block. Since the upper die block only performs linear cutting motion, there is no need to consider the outer contour of the top of the casting. The blank is directly close to the end surface of the casting model, that is, the bottom surface of the cutter block is set to a horizontal plane. That's it. Then set the knife edge position and parameters of the upper die block. Since the punching direction of the upper die block is downward, on the blank body of the cutter block, select the side wall with the trimming line as the bottom side to process the upper die block Set the knife edge downward, and set the avoidance surface and attachment surface of the knife edge at the same time, and use the system preset size or manually input size to adjust the shape and size of the knife edge.
[0024] If the type of the knife block is the ordinary lower film knife block, because it needs to be cushioned at the bottom of the casting, the two ends of the trimming line are connected in the horizontal direction with auxiliary lines close to the casting model, thereby automatically forming a closed curve, and then closing the The curve moves down in the vertical direction by the offset distance preset by the engineer to obtain the moving trajectory of the closed curve. The three-dimensional space enclosed by the closed curve and the moving trajectory is defined as the blank of the tool block. The contact surface at the bottom of the casting is a horizontal plane, so the blank body of the cutter block is also directly close to the end face of the casting model, that is, the top surface of the blank body of the cutter block is set to a horizontal plane. Then set the position and parameters of the knife edge of the common film cutter block. Since the punching direction of the common film cutter block is upward, on the blank body of the cutter block, select the sidewall with the trimming line as the top edge to process the common film Set the knife edge of the knife block upwards, set the avoidance surface and attachment surface of the knife edge at the same time, and use the system preset size or manually input size to adjust the shape and size of the knife edge of the knife block.
[0025] If the type of cutter block is the oblique punching film cutter block, it should also be cushioned at the bottom of the casting. Therefore, in the horizontal direction, use auxiliary lines close to the casting model to connect the two ends of the trimming line to automatically form a closed curve. The closed curve moves downwards in the vertical direction by the offset distance preset by the engineer to obtain the moving trajectory of the closed curve. The three-dimensional space enclosed by the closed curve and the moving trajectory is defined as the blank body of the knife block. Blocks are often used to cushion some castings with protruding bottoms. Therefore, the top surface of the block blank cannot be simply set to a horizontal plane, but the interface between the block blank and the casting model is set as the block blank The top surface of the body. The specific method is to read the outer contour of the interface between the casting model and the blank body of the tool block on the casting model, and set the outer contour as the top surface of the blank body of the tool block. Then set the position and parameters of the knife edge of the oblique punching film cutter block. Since the cutting direction of the oblique punching film cutter block is upward, on the blank body of the cutter block, select the side wall with the trimming line as the top edge to process the oblique Punch down the knife edge of the film knife block, and set the knife edge upward, and set the avoidance surface and the attached surface of the knife edge at the same time, and use the system preset size or manually input size to adjust the shape and size of the knife edge of the knife block.
[0026] At this point, the UG software completes the data preparation of the shape of the trimming tool block and the edge, and then uses the UG internal function to convert the data into CNC code for the trimming tool manufacturing machine tool, and the trimming tool manufacturing machine tool automatically processes the repair according to the CNC code. The edge cutter block realizes the automatic forming of the trimming cutter block, so that the processing time of the trimming cutter block is shortened and controllable, and the processing efficiency is improved.
[0027] It should be noted that due to the complex shape of the knife edge of the knife block, for simplicity, the auxiliary line adopts the principle of drawing a straight line nearby when automatically forming a closed curve. The parameter settings of the blade also include blade type, blade height difference, thinnest thickness H, thinnest width B, blade length, blade neutral, symbol width, symbol avoidance, these parameters can be used in accordance with the traditional use to meet the revised standards The default parameters of the software can also be manually modified in advance according to actual needs.
[0028] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to preferred embodiments, those of ordinary skill in the art should understand The technical solution of the present invention can be modified or equivalently replaced without departing from the essence and scope of the technical solution of the present invention.