Home » Helpful Articles » UG programming the same program to output two coordinate system solutions

UG programming the same program to output two coordinate system solutions

Posted by: Yoyokuo 2021-09-27 Comments Off on UG programming the same program to output two coordinate system solutions

In the actual work of machining, sometimes two different products are encountered, but the same tool is used. (As shown in the figure below, the hole and thread requirements are the same)

We can use one method to make a machine tool process two products at the same time (I use a four-axis machine tool for demonstration here), and there is no need to manually change the program. (Slightly troublesome when programming)

(Do not use the center of rotation to program, do not spray)

First compile the programs of the two products and set the operation names (it is convenient for sorting in a while, you can use the Haoqiang tool to change the operation names in batch)

The coordinate is “G55”

Next, arrange the order in the program sequence view

. Then open the post-processing (add a coordinate output code in the initial movement and the first movement)

That’s it, let’s output the program to see (after changing the coordinates of individual machine tools, G0 G90 X Y positioning and G43 H are required for careful testing)

Please keep the source and address of this article for reprinting:UG programming the same program to output two coordinate system solutions

Reprint Statement: If there are no special instructions, all articles on this site are original. Please indicate the source for reprinting.:Cnc Machine Wiki,Thanks!^^