Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

No G20 or G21 in output file

jim_holloway
Explorer Explorer
464 Views
7 Replies
Message 1 of 8

No G20 or G21 in output file

jim_holloway
Explorer
Explorer

I am very new to Fusion 360 but after building a small project and taking it through the post process, it generated the expected .nc file.  The project was a 40 inch wide panel but when I attempted to run it on the machine, it became apparent that the machine was attempting to make a 40 MM wide panel instead. So I reviewed my setup making sure that I selected "inches" in the post setup.  Same result at the machine.

 

Did some research and found that G20 and G21 were the G-code output for Inches or MM respectively to the machine.

 

So I reviewed the generated G-code but did not find a G20 or a G21 command anywhere in the file.  Is this a fusion 360 error or did I miss a step somewhere ?

 

0 Likes
Accepted solutions (1)
465 Views
7 Replies
Replies (7)
Message 2 of 8

seth.madore
Community Manager
Community Manager

What post processor did you use, and what is the controller of the machine?


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 3 of 8

jim_holloway
Explorer
Explorer
The Post processor is UCCNC. I am not sure about the controller as its a friends machine but I will find out.
0 Likes
Message 4 of 8

seth.madore
Community Manager
Community Manager

I actually think that the code you shared IS in Imperial, but it's your machine that is in Metric. Reason for saying that? Number of decimal places. An MM program would cut off (typically) at 3 decimal places (xx.xxx) and your program has xx.xxxx, thus indicating that it's the machine, not the program.

Nevertheless, I would have expected to see a G20/21 in either case. This can easily be added to your post processor so it's there at all times, or you can manually add it into your code (at the beginning). Downside would be that you have to remember that each time.

Can you confirm that your machine accepts a G20/G21?


Seth Madore
Customer Advocacy Manager - Manufacturing


1 Like
Message 5 of 8

jim_holloway
Explorer
Explorer
I can manually add the G20 and try to run it again. I will let you know.

Thanks
0 Likes
Message 6 of 8

jim_holloway
Explorer
Explorer
Accepted solution

Seth,

  I manually modified the code with a G20 with no change in output.  So I checked the help file and apparently this machine does not accept either G20 or G21 as a valid code.  So I changed the project to MM, tried again and it worked this time.  I appreciate your help in this matter.

0 Likes
Message 7 of 8

seth.madore
Community Manager
Community Manager

Well, that is certainly interesting and....unfortunate. Well, our teachers (in the USA) have been preaching for years that "metric is coming", so now you get to work only in MM!


Seth Madore
Customer Advocacy Manager - Manufacturing


1 Like
Message 8 of 8

jim_holloway
Explorer
Explorer
Yes I was surprised as well that it would not accept imperial measurements. Fortunately Fusion 360 makes the conversion to metric relatively painless. As for the US conversion to metric being imminent, I was hearing that drum beat as a teenager and that was in the late sixties. It seems no closer today than it was then.
0 Likes