I am have an inconvenient issue using Creo Manufacturing to output lathe code to use on our Haas Lathe. Typically we keep our Haas TL1 lathe in diameter programming mode - this is the easiest to use with the conversational programming available on it. When outputting g-code from Creo, it is in radius programming. I have not been able to find a setting in Creo that would allow us to use diameters in place of radii.
The work-around that we use is changing the lathe parameters from diameter to radius (diam prog - 0). This works, but is inconvenient because it has to be switched back and forth depending on what type of code we want to run (conversational or CAM). If there was a way to fix it at the software level, that would be great.
Let me know if you have any idea.
Is there a way to change the mode in the g-code? I've not ever had the pleasure (?) of programming an NC lathe, but a quick search shows that "G190" is a common g-code to switch to radius mode, while "G191" switches to diameter mode. Thus, at the start of the program you switch into radius mode, then at the end of the program switch back to diameter mode. You'll just need to check into your particular controller to verify what the codes are, if it has them.
As for how to implement this, it might be possible with the post-processor configuration utility, or if not, you might have to do a little bit of FIL code editing.
The setting Paul is talking about is not the right one. You can change the post output to diameter on the Machine Tool Type -> Specs page where it says X - Axis Multiplier...